/* ═══════════════════════════════════════════════════════
   StayFocus — Dark Theme Landing Page
   Clean design, no scroll-based animations
   ═══════════════════════════════════════════════════════ */

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

:root {
    --bg: #07070c;
    --bg2: #0d0d15;
    --bg3: #14141f;
    --bg4: #1a1a28;
    --gold: #c9a84c;
    --gold-l: #e8d48b;
    --gold-d: #8b7535;
    --gold-glow: rgba(201,168,76,0.30);
    --gold-sub: rgba(201,168,76,0.08);
    --gold-bdr: rgba(201,168,76,0.15);
    --txt: #f0f0f5;
    --txt2: #8c8ca0;
    --txt3: #55556a;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--txt);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.gold { color: var(--gold); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Reveal Animation ─────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero fade-up with delays */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--ease) forwards;
}
.d1 { animation-delay: 0.15s; }
.d2 { animation-delay: 0.3s; }
.d3 { animation-delay: 0.45s; }
.d4 { animation-delay: 0.6s; }

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

/* ─── Navbar ───────────────────────────────────────── */
#navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0; background: transparent;
    transition: background 0.4s, padding 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
}
#navbar.scrolled {
    background: rgba(7,7,12,0.88);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    padding: 10px 0;
    border-bottom-color: var(--gold-bdr);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.2rem;
}
.nav-logo { border-radius: 10px; transition: transform 0.35s var(--ease); }
.nav-brand:hover .nav-logo { transform: rotate(-5deg) scale(1.05); }
.nav-links { display: flex; gap: 28px; }
.nav-link {
    font-size: 0.9rem; font-weight: 500; color: var(--txt2);
    position: relative; transition: color 0.3s;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--gold); border-radius: 1px;
    transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--gold-l); }
.nav-link:hover::after { width: 100%; }

.btn-nav {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.85rem;
    padding: 10px 22px; border-radius: 14px;
    background: var(--gold-sub); color: var(--gold); border: 1px solid var(--gold-bdr);
    transition: all 0.35s var(--ease);
}
.btn-nav:hover {
    background: var(--gold); color: var(--bg); border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--gold-glow);
}

/* ─── Gold Button ──────────────────────────────────── */
.btn-gold {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--gold-d));
    color: #0a0a0a; border: none; cursor: pointer; text-decoration: none;
    border-radius: 28px;
    box-shadow: 0 0 40px var(--gold-glow), 0 4px 20px rgba(0,0,0,0.4);
    transition: all 0.35s var(--ease);
}
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }
.btn-xl { padding: 22px 56px; font-size: 1.2rem; }
.btn-gold:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 0 60px var(--gold-glow), 0 12px 40px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, var(--gold-l), var(--gold));
}
.btn-gold:active { transform: translateY(0) scale(0.98); }

/* ─── HERO ─────────────────────────────────────────── */
#hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 120px 24px 80px; overflow: hidden;
}
.hero-glow {
    position: absolute; top: -25%; left: 50%; transform: translateX(-50%);
    width: 750px; height: 750px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,0.10) 0%, transparent 65%);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite alternate;
}
@keyframes glowPulse {
    0%   { opacity: 0.5; transform: translateX(-50%) scale(0.95); }
    100% { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}

.hero-content { position: relative; z-index: 2; max-width: 700px; }

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 800; letter-spacing: -0.04em; line-height: 1;
    margin-bottom: 20px;
}

.hero-tagline {
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    color: var(--txt2); margin-bottom: 12px;
}
.hero-tagline em {
    color: var(--gold); font-style: normal; font-weight: 600;
}
.hero-desc {
    font-size: 0.98rem; color: var(--txt3); line-height: 1.7; margin-bottom: 36px;
}
.hero-cta {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    margin-bottom: 36px;
}
.hero-note { font-size: 0.82rem; color: var(--txt3); letter-spacing: 0.03em; }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill {
    background: var(--gold-sub); border: 1px solid var(--gold-bdr);
    color: var(--gold-l); padding: 8px 18px; border-radius: 100px;
    font-size: 0.84rem; font-weight: 500; transition: all 0.3s;
}
.pill:hover { background: rgba(201,168,76,0.14); transform: translateY(-2px); }

/* ─── SCROLL STORY ─────────────────────────────────── */
#story {
    height: 400vh;
    position: relative;
    background: var(--bg);
}
.story-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Distraction pills */
.distraction {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 16px;
    background: rgba(201, 130, 50, 0.08);
    border: 1px solid rgba(201, 150, 60, 0.2);
    color: #d4a054;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    will-change: transform, opacity;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.dis-icon { font-size: 1.5rem; }

/* Starting positions (off-screen) */
[data-pos="top-left"]  { top: 18%; left: 10%; }
[data-pos="top-right"] { top: 15%; right: 10%; }
[data-pos="mid-left"]  { top: 45%; left: 8%; }
[data-pos="mid-right"] { top: 48%; right: 8%; }
[data-pos="bot-left"]  { top: 72%; left: 12%; }
[data-pos="bot-right"] { top: 70%; right: 12%; }

/* Wasted time text */
.wasted-text {
    position: absolute;
    text-align: center;
    opacity: 0;
    will-change: transform, opacity;
}
.wasted-line {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    font-weight: 600;
    color: var(--txt2);
    margin-bottom: 8px;
}
.wasted-line.big {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--gold);
}

/* Big destroy X */
.destroy-x {
    position: absolute;
    font-size: 20rem;
    font-weight: 900;
    color: rgba(201, 168, 76, 0.7);
    opacity: 0;
    will-change: transform, opacity;
    text-shadow: 0 0 80px rgba(201, 168, 76, 0.3);
    pointer-events: none;
    line-height: 1;
}

/* StayFocus reveal */
.sf-reveal {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    will-change: transform, opacity;
    text-align: center;
}
.sf-logo {
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 60px var(--gold-glow);
}
.sf-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}
.sf-sub {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--gold-l);
    font-weight: 500;
}

/* ─── Section Common ──────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.badge {
    display: inline-block; padding: 6px 20px; border-radius: 100px;
    background: var(--gold-sub); border: 1px solid var(--gold-bdr);
    color: var(--gold); font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px;
}
.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
}

/* ─── FEATURES ─────────────────────────────────────── */
#features {
    padding: 100px 0 110px; position: relative;
}
#features::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-bdr), transparent);
}

.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.feature-card {
    background: var(--bg3); border: 1px solid rgba(255,255,255,0.04);
    border-radius: 20px; padding: 34px 26px; position: relative;
    transition: transform 0.4s var(--ease), background 0.4s, box-shadow 0.4s;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-6px);
    background: var(--bg4);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 30px rgba(201,168,76,0.04);
}
.feature-icon {
    width: 50px; height: 50px; border-radius: 14px;
    background: var(--gold-sub); border: 1px solid var(--gold-bdr);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; transition: all 0.35s var(--ease);
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--gold); }
.feature-card:hover .feature-icon {
    background: var(--gold); border-color: var(--gold);
}
.feature-card:hover .feature-icon svg { stroke: var(--bg); }

.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.12rem; font-weight: 600; margin-bottom: 10px;
}
.feature-card p { font-size: 0.9rem; color: var(--txt2); line-height: 1.6; }

/* Stagger reveal */
.features-grid .reveal:nth-child(1) { transition-delay: 0s; }
.features-grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.21s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.28s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.35s; }

/* ─── APP SHOWCASE ─────────────────────────────────── */
#screenshots {
    padding: 100px 0 110px; background: var(--bg2);
    position: relative;
}
#screenshots::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-bdr), transparent);
}

.showcase-row {
    display: flex; align-items: center; gap: 60px;
    max-width: 900px; margin: 0 auto 80px;
}
.showcase-row:last-child { margin-bottom: 0; }
.showcase-row.reverse { flex-direction: row-reverse; }

.showcase-phone { flex-shrink: 0; }

.phone-frame {
    width: 250px; height: 520px;
    border-radius: 32px; border: 3px solid #2a2a38;
    background: #000; overflow: hidden; position: relative;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 30px 80px rgba(0,0,0,0.5),
        0 0 40px rgba(201,168,76,0.06);
    transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.showcase-row:hover .phone-frame {
    transform: translateY(-6px);
    box-shadow:
        0 0 0 1px rgba(201,168,76,0.1),
        0 40px 90px rgba(0,0,0,0.6),
        0 0 60px rgba(201,168,76,0.12);
}
.phone-frame img {
    width: 100%; height: 100%; object-fit: cover;
}

.showcase-info { flex: 1; }
.info-badge {
    display: inline-block; padding: 5px 16px; border-radius: 100px;
    background: var(--gold-sub); border: 1px solid var(--gold-bdr);
    color: var(--gold); font-size: 0.78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.showcase-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    font-weight: 700; margin-bottom: 14px; letter-spacing: -0.02em;
}
.showcase-info p {
    color: var(--txt2); font-size: 1rem; line-height: 1.75; max-width: 400px;
}
.showcase-row.reverse .showcase-info { text-align: right; }
.showcase-row.reverse .showcase-info p { margin-left: auto; }

/* ─── ABOUT ────────────────────────────────────────── */
#about { padding: 100px 0; }

.about-card {
    background: var(--bg3); border: 1px solid rgba(255,255,255,0.04);
    border-radius: 24px; padding: 52px 48px; max-width: 800px;
    margin: 0 auto; position: relative; overflow: hidden;
}
.about-card::before {
    content: ''; position: absolute; top: -80px; right: -80px;
    width: 250px; height: 250px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.about-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2rem); font-weight: 700;
    line-height: 1.25; margin-bottom: 20px;
}
.about-card p {
    color: var(--txt2); font-size: 1rem; line-height: 1.75; margin-bottom: 16px;
}
.about-card p:last-child { margin-bottom: 0; }
.about-highlight {
    color: var(--gold) !important; font-weight: 600; font-size: 1.05rem !important;
}

/* ─── DOWNLOAD CTA ─────────────────────────────────── */
#download {
    padding: 80px 0 120px;
}

.download-card {
    position: relative; text-align: center;
    padding: 72px 40px; border-radius: 28px;
    background: linear-gradient(135deg, var(--bg3) 0%, var(--bg2) 100%);
    border: 1px solid var(--gold-bdr);
    overflow: hidden;
}
.dl-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: glowPulse 5s ease-in-out infinite alternate;
}
.download-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 700;
    letter-spacing: -0.02em; margin-bottom: 14px; position: relative;
}
.download-card p {
    color: var(--txt2); font-size: 1.05rem;
    max-width: 460px; margin: 0 auto 32px; position: relative;
}
.download-card .btn-gold { position: relative; }

.dl-meta {
    display: flex; justify-content: center; gap: 24px;
    margin-top: 24px; flex-wrap: wrap; position: relative;
}
.dl-meta span { font-size: 0.88rem; color: var(--txt3); }

/* ─── FOOTER ───────────────────────────────────────── */
#footer {
    padding: 28px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.footer-brand {
    display: flex; align-items: center; gap: 8px;
    font-family: 'Space Grotesk', sans-serif; font-weight: 600;
}
.footer-icon { font-size: 1.2rem; }
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-link {
    font-size: 0.8rem;
    color: var(--txt3);
    transition: color 0.3s;
}
.footer-link:hover {
    color: var(--gold-l);
}
.footer-inner p { font-size: 0.8rem; color: var(--txt3); }

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-row, .showcase-row.reverse {
        flex-direction: column; text-align: center; gap: 32px;
    }
    .showcase-row.reverse .showcase-info { text-align: center; }
    .showcase-row.reverse .showcase-info p { margin-left: auto; margin-right: auto; }
    .showcase-info p { margin: 0 auto; }
}

@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero-title { font-size: 3rem; }
    .phone-frame { width: 200px; height: 420px; border-radius: 24px; }
    .btn-xl { padding: 18px 36px; font-size: 1.05rem; }
    .download-card { padding: 48px 20px; }
    .about-card { padding: 36px 24px; }
    .dl-meta { flex-direction: column; align-items: center; gap: 8px; }
    .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
}

