:root {
    --bg-primary: #0A0A0A;
    --bg-panel: #16171A;
    --bg-panel-2: #1D1E22;
    --bg-secondary: #16171A;
    --text-primary: #FAF8F2;
    --text-secondary: #A1A1AA;
    --text-tertiary: #6B6B74;
    --accent: #3B82F6;
    --accent-light: #3B82F6;
    --accent-dim: rgba(59, 130, 246, 0.12);
    --border: rgba(255, 255, 255, 0.08);
    --font-sans: 'General Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Newsreader', Georgia, serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans); color: var(--text-primary); line-height: 1.6; overflow-x: hidden;
    background:
        radial-gradient(ellipse 900px 520px at 50% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
        repeating-linear-gradient(0deg, transparent 0 79px, rgba(255, 255, 255, 0.025) 79px 80px),
        var(--bg-primary);
}
a { color: inherit; text-decoration: none; }

header { position: fixed; top: 20px; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; }
.header-inner {
    display: flex; align-items: center; gap: 28px;
    background: rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.6); border-radius: 999px; padding: 10px 14px 10px 10px;
}
.logo {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); color: var(--text-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 15px; letter-spacing: normal;
    transition: transform .15s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo:hover { transform: scale(1.08); }
nav { display: flex; gap: 22px; align-items: center; }
nav a { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-secondary); transition: color .15s cubic-bezier(0.4, 0, 0.2, 1), transform .15s cubic-bezier(0.4, 0, 0.2, 1); white-space: nowrap; display: inline-block; }
nav a:hover { color: var(--text-primary); transform: translateY(-1px); }
nav a.active { color: var(--text-primary); }
nav .nav-contact { background: var(--text-primary); color: var(--bg-primary); padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 600; border: none; cursor: pointer; transition: transform .15s cubic-bezier(0.4, 0, 0.2, 1); }
nav .nav-contact:hover { transform: scale(1.05); }
.nav-contact-group { position: relative; }
.nav-contact-panel {
    position: absolute; top: 100%; right: 0; margin-top: 10px; min-width: 150px;
    display: flex; flex-direction: column; gap: 2px; padding: 8px;
    background: rgba(22, 23, 26, 0.95); border: 1px solid var(--border); border-radius: 16px;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav-contact-group:hover .nav-contact-panel,
.nav-contact-group:focus-within .nav-contact-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.nav-contact-panel a { padding: 8px 10px; border-radius: 10px; }
.nav-contact-panel a:hover { background: rgba(255,255,255,0.06); transform: none; }

.lab-wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.lab-hero { padding: 160px 0 48px; text-align: center; }
.lab-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 16px; display: inline-block; }
.lab-hero h1 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 20px; }
.lab-lede { font-size: 17px; line-height: 1.7; color: var(--text-secondary); max-width: 480px; margin: 0 auto; }

.app-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 20px;
    padding: 24px 0 80px;
}

.pegboard-photo {
    display: none;
    position: absolute;
    width: 86px;
    padding: 6px 6px 20px;
    background: #EDEAE3;
    border-radius: 2px;
    box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.35);
    z-index: 1;
}
.pegboard-photo img {
    display: block; width: 100%; height: 104px; object-fit: cover;
    filter: grayscale(1) sepia(0.12) contrast(1.05) brightness(0.95);
}
.pegboard-pin {
    position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
    width: 10px; height: 10px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #FF8A65, #C62828 70%);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
}
.pegboard-photo-1 { top: 4%; left: -120px; transform: rotate(-8deg); }
.pegboard-photo-2 { top: 28%; right: -118px; transform: rotate(9deg); }
.pegboard-photo-3 { top: 56%; left: -126px; transform: rotate(6deg); }
.pegboard-photo-4 { top: 80%; right: -122px; transform: rotate(-10deg); }
@media (min-width: 1280px) {
    .pegboard-photo { display: block; }
}
.app-tile {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    text-align: center; position: relative;
    transition: transform 1s cubic-bezier(0.22, 1.4, 0.36, 1), opacity 0.6s ease;
}
.app-tile::before {
    content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    width: calc(100% + 20px); max-width: 180px; aspect-ratio: 1 / 1;
    border: 2px dashed rgba(255, 255, 255, 0.14); border-radius: 24%;
    z-index: -1; pointer-events: none;
}
.app-icon {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 160px;
    margin: 0 auto;
    border-radius: 22%;
    overflow: hidden;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-tile.is-live:hover .app-icon { transform: translateY(-6px) scale(1.03); box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.app-label { font-size: 14px; font-weight: 600; color: var(--text-primary); }

.icon-skins, .icon-pages, .icon-paper, .icon-player, .icon-fund,
.icon-contrast, .icon-palette, .icon-ease { background: var(--bg-panel-2); }

.tip-panel {
    position: relative;
    padding: 64px 0 96px;
    display: grid;
    gap: 40px;
}
.tip-panel::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 2px;
    background: repeating-linear-gradient(135deg, #F5B82E 0 14px, #17181B 14px 28px);
    opacity: 0.85;
}
.tip-copy h2 { font-weight: 500; letter-spacing: -0.02em; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 10px 0 16px; }
.tip-copy p { font-size: 16px; line-height: 1.75; color: var(--text-secondary); max-width: 640px; }
.tip-truck {}

.tip-photo {
    position: relative; width: 100%; max-width: 640px; margin: 0 auto 28px;
    aspect-ratio: 25 / 14; border-radius: 16px; overflow: hidden;
    box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.6);
}
.tip-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tip-photo-cloud {
    position: absolute; left: -12%; width: 45%; height: 40%; border-radius: 50%;
    background: rgba(255, 255, 255, 0.85); filter: blur(14px); pointer-events: none;
}
.tip-photo-cloud-1 { bottom: 4%; animation: tip-cloud-drift 9s ease-in-out infinite; }
.tip-photo-cloud-2 { bottom: -4%; left: 32%; width: 50%; height: 44%; animation: tip-cloud-drift 11s ease-in-out infinite -4s; }
.tip-photo-cloud-3 { bottom: 10%; left: 58%; width: 38%; height: 34%; animation: tip-cloud-drift 8s ease-in-out infinite -2s; }
@keyframes tip-cloud-drift {
    0%, 100% { transform: translateX(-14px); }
    50% { transform: translateX(14px); }
}
@media (prefers-reduced-motion: reduce) {
    .tip-photo-cloud-1, .tip-photo-cloud-2, .tip-photo-cloud-3 { animation: none; }
}

.tip-flying-jet {
    position: absolute; top: 38%; left: 5%; width: 64px; height: 64px; z-index: 3;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    opacity: 0; pointer-events: none; transform: rotate(-135deg) scale(1);
    transition: left 0.25s ease-out, top 0.4s ease, opacity 0.3s ease, transform 0.4s ease;
}
.tip-flying-jet img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tip-flying-jet.is-flying { opacity: 1; }
.tip-flying-jet.is-takeoff {
    transition: left 0.9s cubic-bezier(0.3, 0.6, 0.4, 1), top 0.9s cubic-bezier(0.3, 0.6, 0.4, 1), opacity 0.9s ease 0.3s, transform 0.9s ease;
}
@media (prefers-reduced-motion: reduce) {
    .tip-flying-jet { transition: opacity 0.2s ease; }
}

.tip-amount-display { text-align: center; font-family: var(--font-serif); font-size: 32px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.tip-amount-slider {
    display: block; width: 100%; max-width: 420px; margin: 0 auto; -webkit-appearance: none; appearance: none;
    height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); outline: none; cursor: pointer;
}
.tip-amount-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--text-primary); cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.tip-amount-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--text-primary); cursor: pointer; border: none; }
.tip-slider-scale { display: flex; justify-content: space-between; max-width: 420px; margin: 8px auto 24px; font-size: 12px; color: var(--text-tertiary); }

.tip-cta {
    display: block; max-width: 320px; margin: 0 auto;
    text-align: center; background: var(--text-primary); color: var(--bg-primary);
    font-weight: 700; font-size: 14px; padding: 14px; border-radius: 999px; text-decoration: none;
    transition: transform .15s ease;
}
.tip-cta:hover { transform: scale(1.02); }
.tip-cta.is-disabled { opacity: 0.4; pointer-events: none; }

.tip-note { font-size: 12px; color: var(--text-tertiary); text-align: center; }
.tip-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.tip-note a:hover { color: var(--text-primary); }

footer { border-top: 1px solid var(--border); margin-top: 24px; }
.footer-inner { max-width: 1040px; margin: 0 auto; padding: 40px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-name { font-weight: 700; font-size: 14px; }
.footer-status { font-size: 13px; color: var(--text-tertiary); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 768px) {
    .header-inner { gap: 14px; padding: 8px 10px 8px 8px; }
    nav { gap: 12px; }
    .lab-hero { padding: 120px 0 32px; }
    .app-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
    .tip-hangar { width: 38px; height: 25px; }
    .tip-city { width: 44px; height: 27px; }
    .footer-inner { flex-direction: column; text-align: center; }
}
