/* ========================================================
   SOLR — DESIGN SYSTEM
   Colors extracted from the app:
   - Background: #040413 (deep midnight navy)
   - Purple accent: #A78BFA / #8B5CF6 
   - Orange accent: #F97316 / #FB923C
   - Ring gradient: purple → coral → orange
   - Card bg: rgba(255,255,255,0.04)
   - Muted text: #7B7B94
   ======================================================== */

:root {
    --bg:           #040413;
    --bg-alt:       #0A0A1F;
    --card:         rgba(255, 255, 255, 0.04);
    --card-border:  rgba(255, 255, 255, 0.07);
    --card-hover:   rgba(167, 139, 250, 0.08);
    --text:         #F4F4F8;
    --text-muted:   #7B7B94;
    --text-dim:     #4A4A64;
    --purple:       #A78BFA;
    --purple-deep:  #8B5CF6;
    --orange:       #F97316;
    --coral:        #FB7185;
    --gradient:     linear-gradient(135deg, #A78BFA 0%, #F97316 100%);
    --gradient-text: linear-gradient(90deg, #C4B5FD, #F9A8D4, #FB923C);
    --nav-h:        68px;
    --max-w:        1140px;
    --radius:       20px;
}

/* ========================================================
   RESET
   ======================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }

/* ========================================================
   UTILITY
   ======================================================== */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--purple);
    margin-bottom: 16px;
}
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 72px;
}
.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

/* ========================================================
   BUTTONS
   ======================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    text-decoration: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.35);
}
.btn-nav { padding: 10px 24px; font-size: 0.85rem; }
.btn-hero { padding: 16px 36px; font-size: 1rem; }
.btn-cta { padding: 18px 40px; font-size: 1.05rem; }

/* ========================================================
   NAVBAR
   ======================================================== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(4, 4, 19, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    transition: background 0.3s ease;
}
#navbar.scrolled { background: rgba(4, 4, 19, 0.92); }
.nav-inner {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-img { height: 24px; opacity: 0.95; }

/* ========================================================
   3D PHONE — Clean device mockup
   Key: dark glass body, visible bezel, deep layered shadow
   ======================================================== */
.phone-frame {
    --pw: 272px;
    --ph: 558px;
    --bezel: 10px;
    --corner: 48px;
    --screen-corner: 38px;
    width: var(--pw);
    height: var(--ph);
    position: relative;
    flex-shrink: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    background: #0E0E0E;
    border-radius: var(--corner);
    box-shadow:
        0 8px 24px rgba(0,0,0,0.5),
        0 32px 64px rgba(0,0,0,0.5),
        0 80px 160px -20px rgba(0,0,0,0.6);
}

/* Dynamic Island */
.phone-notch {
    position: absolute;
    top: calc(var(--bezel) + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 24px;
    background: #000;
    border-radius: 50px;
    z-index: 10;
}

/* Screen area */
.phone-screen {
    position: absolute;
    top: var(--bezel);
    left: var(--bezel);
    right: var(--bezel);
    bottom: var(--bezel);
    border-radius: var(--screen-corner);
    overflow: hidden;
    background: #000;
    z-index: 1;
}
.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}


/* ========================================================
   HERO
   ======================================================== */
#hero {
    padding: calc(var(--nav-h) + 80px) 28px 100px;
    position: relative;
    overflow: hidden;
}
/* Ambient glow */
#hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
#hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}
.hero-text { flex: 1; max-width: 540px; }
.hero-text h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    font-weight: 800;
}
.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 12px;
}
.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 460px;
}
.hero-ctas { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hero-free { font-size: 0.85rem; color: var(--text-dim); }

.hero-phone-area {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-phones-img {
    width: 100%;
    max-width: 1160px;
    height: auto;
    animation: heroFloat 7s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ========================================================
   HOW IT WORKS
   ======================================================== */
#how-it-works {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 120px 28px;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.step {
    padding: 36px 28px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    transition: border-color 0.3s, transform 0.3s;
}
.step:hover {
    border-color: rgba(167, 139, 250, 0.2);
    transform: translateY(-4px);
}
.step-num {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* ========================================================
   FEATURES — STICKY SCROLL
   ======================================================== */
#features {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 120px 28px 160px;
}
.features-scroll {
    display: flex;
    gap: 72px;
    position: relative;
}
.phone-column {
    width: 42%;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-frame {
    --pw: 270px;
    --ph: 552px;
}
/* Screen slides for crossfade */
.screen-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}
.screen-slide.active {
    opacity: 1;
    z-index: 2;
}

.cards-column {
    width: 58%;
    padding: 28vh 0 36vh;
}
.feature-card {
    padding: 44px 36px;
    margin-bottom: 18px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    opacity: 0.2;
    transform: translateY(8px) scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.4s ease;
}
.feature-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    border-color: rgba(167, 139, 250, 0.18);
}
.card-icon { font-size: 1.8rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature-card h3 sup { font-size: 0.55em; font-weight: 400; color: var(--text-dim); vertical-align: super; letter-spacing: 0; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ========================================================
   SCIENCE SECTION
   ======================================================== */
#science {
    padding: 120px 28px;
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.03) 50%, transparent);
}
.science-layout {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}
.science-text { flex: 1; }
.science-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 24px;
}
.science-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 44px;
}
.pillars { display: flex; flex-direction: column; gap: 16px; }
.pillar {
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    transition: border-color 0.3s, transform 0.3s;
}
.pillar:hover { border-color: rgba(167, 139, 250, 0.12); transform: translateX(6px); }
.pillar h4 { font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.pillar p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

.science-phone-area { flex-shrink: 0; }
.science-frame {
    --pw: 250px;
    --ph: 510px;
    animation: sciFloat 8s ease-in-out infinite;
}
@keyframes sciFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ========================================================
   IMPACT / SCREEN TIME
   ======================================================== */
#impact {
    padding: 120px 28px;
}
.impact-content {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}
.impact-phone-area { flex-shrink: 0; }
.impact-frame {
    --pw: 250px;
    --ph: 510px;
    animation: impactFloat 8s ease-in-out infinite 0.5s;
}
@keyframes impactFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.impact-text { flex: 1; }
.impact-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 20px;
}
.impact-text > p {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 16px;
}
.impact-text > p strong { color: var(--text); }

.impact-stats {
    display: flex;
    gap: 28px;
    margin-top: 40px;
}
.impact-stat {
    text-align: center;
    padding: 20px 24px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    min-width: 120px;
}
.stat-val {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}
.stat-label { font-size: 0.78rem; color: var(--text-dim); }

/* ========================================================
   BENEFITS
   ======================================================== */
#benefits {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 120px 28px;
    text-align: center;
}
.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}
.benefit-pill {
    padding: 12px 26px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.benefit-pill:hover {
    border-color: rgba(167, 139, 250, 0.2);
    color: var(--text);
    transform: translateY(-2px);
}
.benefits-summary {
    max-width: 560px;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.7;
}

/* ========================================================
   FINAL CTA
   ======================================================== */
#cta {
    padding: 160px 28px;
    text-align: center;
    position: relative;
}
#cta::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
    pointer-events: none;
}
.cta-content { position: relative; max-width: 600px; margin: 0 auto; }
.cta-logo { height: 30px; margin: 0 auto 36px; opacity: 0.5; }
.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 16px;
}
.cta-content > p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

/* ========================================================
   FOOTER
   ======================================================== */
footer {
    border-top: 1px solid var(--card-border);
    padding: 48px 28px 28px;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto 36px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}
.footer-logo { height: 20px; margin-bottom: 12px; opacity: 0.4; }
.footer-brand p { font-size: 0.85rem; color: var(--text-dim); max-width: 280px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--text-dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-muted); }
.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-dim); opacity: 0.6; }

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

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 48px;
    }
    .hero-text { max-width: 100%; }
    .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-ctas { align-items: center; }
    .hero-frame {
        --pw: 240px;
        --ph: 490px;
    }

    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    /* Stack features on mobile */
    .features-scroll {
        flex-direction: column;
        gap: 32px;
    }
    .phone-column {
        position: relative;
        width: 100%;
        height: auto;
        top: auto;
        padding: 32px 0;
    }
    .feature-frame {
        --pw: 220px;
        --ph: 450px;
    }
    .cards-column {
        width: 100%;
        padding: 0;
    }
    .feature-card {
        opacity: 1;
        transform: none;
    }

    .science-layout {
        flex-direction: column-reverse;
        text-align: center;
    }
    .science-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
    .science-frame {
        --pw: 220px;
        --ph: 450px;
    }

    .impact-content {
        flex-direction: column;
        text-align: center;
    }
    .impact-text > p { max-width: 100%; margin-left: auto; margin-right: auto; }
    .impact-frame {
        --pw: 220px;
        --ph: 450px;
    }
    .impact-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 500px) {
    .steps-grid { grid-template-columns: 1fr; }
    .impact-stats { flex-direction: column; align-items: center; }
    .impact-stat { width: 100%; }
}
