/* ============================================================
   ROOT & RESET
   ============================================================ */
:root {
    --bg-color: #09090c;
    --card-bg: rgba(22, 22, 28, 0.65);
    --card-border: rgba(255, 255, 255, 0.07);
    --text-primary: #f2f2f4;
    --text-secondary: #8a8a96;
    --accent-warm: #ffb703;   /* tungsten amber */
    --accent-cool: #3db8e8;   /* daylight blue */
    --accent-mid: #e87b2a;    /* warm orange midpoint */
    --nav-h: 60px;
    --section-max: 1100px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* ============================================================
   ANIMATED BACKGROUND ORBS
   ============================================================ */
.background-effects {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
}

.orb-1 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--accent-warm) 0%, transparent 65%);
    top: -12%;
    left: -8%;
    opacity: 0.45;
    animation-delay: 0s;
}

.orb-2 {
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, var(--accent-cool) 0%, transparent 65%);
    bottom: -22%;
    right: -12%;
    opacity: 0.35;
    animation-delay: -4s;
}

.orb-3 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, var(--accent-mid) 0%, transparent 65%);
    top: 40%;
    left: 45%;
    opacity: 0.2;
    animation-delay: -8s;
}


/* ============================================================
   STICKY NAV
   ============================================================ */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(9, 9, 12, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateY(-100%);
    transition: transform 0.35s ease;
}

.sticky-nav.visible {
    transform: translateY(0);
}

.nav-inner {
    max-width: var(--section-max);
    margin: 0 auto;
    height: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--text-primary);
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: #e0e0e0;
    transform: scale(1.03);
}

.nav-waitlist-btn {
    background: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent-mid) 100%);
    color: #000;
}

.nav-waitlist-btn:hover {
    background: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent-mid) 100%);
    filter: brightness(1.08);
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 3rem) 2rem 5rem;
}

.hero-inner {
    max-width: var(--section-max);
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    max-width: 560px;
    animation: fadeUp 0.9s ease-out both;
}

.logo-container {
    margin-bottom: 1.8rem;
    display: inline-block;
    perspective: 1000px;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.06);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
}

.logo:hover {
    transform: scale(1.06) translateY(-6px);
}

.title {
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
    background: linear-gradient(130deg, #ffffff 0%, rgba(255,255,255,0.55) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1.2rem;
    background: linear-gradient(100deg, var(--accent-warm), var(--accent-cool));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-body {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

/* ============================================================
   APP STORE BUTTON
   ============================================================ */
.cta-container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.hero-waitlist-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.hero-waitlist-link:hover {
    color: var(--accent-warm);
    gap: 0.55rem;
}

.app-store-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 0.85rem 1.6rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.app-store-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255,183,3,0.15), rgba(61,184,232,0.12));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-store-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.5), 0 0 20px rgba(255,183,3,0.15);
    border-color: rgba(255,183,3,0.3);
}

.app-store-btn:hover::before { opacity: 1; }
.app-store-btn:active { transform: translateY(-1px); }

.app-store-btn-lg { padding: 1.1rem 2rem; }

.app-store-content {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    position: relative;
    z-index: 1;
}

.app-store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.small-text {
    font-size: 0.65rem;
    line-height: 1;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.large-text {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 2px;
}

/* ============================================================
   CSS PHONE FRAME
   ============================================================ */
.phone-frame-wrapper {
    flex-shrink: 0;
    animation: fadeUp 1.1s 0.15s ease-out both;
}

.phone-frame {
    position: relative;
    width: 280px;
    border-radius: 48px;
    background: linear-gradient(160deg, #2a2a2a 0%, #141414 100%);
    border: 2px solid rgba(255,255,255,0.12);
    padding: 16px 10px 20px;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.6),
        0 40px 80px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.phone-notch {
    width: 90px;
    height: 26px;
    background: #000;
    border-radius: 0 0 18px 18px;
    margin-bottom: 8px;
    position: relative;
}

.phone-notch::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #1a1a1a;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
}

.phone-screen {
    width: 100%;
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}

.phone-home-bar {
    width: 90px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    margin-top: 10px;
}

/* Hero vs side phone sizing */
.phone-frame-wrapper:not(.phone-frame-sm) .phone-frame {
    width: 290px;
}

.phone-frame-wrapper:not(.phone-frame-sm) .phone-screen {
    min-height: 520px;
}

.phone-frame-sm .phone-frame {
    width: 220px;
    border-radius: 38px;
    padding: 12px 8px 14px;
}

.phone-frame-sm .phone-notch {
    width: 70px;
    height: 20px;
}

.phone-frame-sm .phone-screen {
    min-height: 380px;
}

/* Mockup placeholder fill & images */
.mockup-hero,
.mockup-side {
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.info-section {
    padding: 6rem 2rem;
}

.info-section.alternate {
    background: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, transparent 100%);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section-container {
    max-width: var(--section-max);
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ============================================================
   AUDIENCE GRID
   ============================================================ */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    text-align: left;
}

.audience-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem 1.6rem;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,183,3,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 20px rgba(255,183,3,0.07);
}

.audience-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: block;
}

.audience-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.7rem;
}

.audience-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================================
   FEATURE SHOWCASE
   ============================================================ */
.feature-showcase {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin-bottom: 6rem;
    text-align: left;
}

.feature-showcase.reverse {
    flex-direction: row-reverse;
}

.feature-showcase:last-child {
    margin-bottom: 0;
}

.feature-text {
    flex: 1;
}

.feature-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--accent-warm), var(--accent-cool));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem;
}

.feature-text h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ============================================================
   USE CASE GRID
   ============================================================ */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    text-align: left;
}

.use-case-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem 1.6rem;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-6px);
    border-color: rgba(61,184,232,0.25);
}

.use-case-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.use-case-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.7rem;
}

.use-case-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================================
   CLOSING CTA
   ============================================================ */
.closing-cta {
    padding: 7rem 2rem;
    text-align: center;
    position: relative;
}

.closing-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vh;
    background: radial-gradient(ellipse, rgba(255,183,3,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.closing-inner {
    position: relative;
    z-index: 1;
}

.closing-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1.2rem;
    background: linear-gradient(130deg, #ffffff 0%, rgba(255,255,255,0.55) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.closing-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 2.5rem auto;
}

.closing-inner .cta-container {
    justify-content: center;
}

/* ============================================================
   WAITLIST FORM
   ============================================================ */
.waitlist-form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.waitlist-fields {
    display: flex;
    gap: 0.75rem;
}

.waitlist-input {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}

.waitlist-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.65;
}

.waitlist-input:focus {
    border-color: rgba(255, 183, 3, 0.45);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.08);
}

.waitlist-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent-mid) 100%);
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.95rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    letter-spacing: 0.1px;
}

.waitlist-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 183, 3, 0.3);
}

.waitlist-btn:active {
    transform: translateY(-1px);
}

.waitlist-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.waitlist-btn svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.waitlist-btn:hover svg {
    transform: translateX(3px);
}

.waitlist-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    max-width: 520px;
    margin: 0 auto;
    animation: fadeUp 0.6s ease-out both;
}

.waitlist-success.visible {
    display: flex;
}

.waitlist-success-icon {
    font-size: 2.8rem;
    margin-bottom: 0.4rem;
}

.waitlist-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.waitlist-success-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 2rem;
}

.footer-inner {
    max-width: var(--section-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-logo {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    opacity: 0.7;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-child {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-child.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-child:nth-child(1) { transition-delay: 0.05s; }
.reveal-child:nth-child(2) { transition-delay: 0.15s; }
.reveal-child:nth-child(3) { transition-delay: 0.25s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE — tablet (≤900px)
   ============================================================ */
@media (max-width: 900px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-body {
        max-width: 100%;
    }

    .cta-container {
        justify-content: center;
    }

    .logo-container {
        display: flex;
        justify-content: center;
    }

    .audience-grid,
    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .feature-showcase,
    .feature-showcase.reverse {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
        margin-bottom: 4rem;
    }

    .phone-frame-sm .phone-frame {
        width: 260px;
    }

    .phone-frame-sm .phone-screen {
        min-height: 420px;
    }
}

/* ============================================================
   RESPONSIVE — mobile (≤600px, iPhone 17)
   ============================================================ */
@media (max-width: 600px) {
    .hero-section {
        padding-top: calc(var(--nav-h) + 2rem);
        padding-bottom: 3rem;
    }

    .phone-frame-wrapper:not(.phone-frame-sm) .phone-frame {
        width: 240px;
    }

    .phone-frame-wrapper:not(.phone-frame-sm) .phone-screen {
        min-height: 440px;
    }

    .phone-frame-sm .phone-frame {
        width: 230px;
        border-radius: 34px;
    }

    .phone-frame-sm .phone-screen {
        min-height: 380px;
    }

    .info-section {
        padding: 4rem 1.25rem;
    }

    .audience-grid,
    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .closing-cta {
        padding: 5rem 1.25rem;
    }

    .waitlist-fields {
        flex-direction: column;
    }

    .nav-inner {
        padding: 0 1.25rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
