/* ============================================================
   WRENNA — Landing Page Styles
   Warm, bold, confident. Matches app design language.
   ============================================================ */

/* ---- TOKENS ---- */
:root {
    --bg-0: #141210;
    --bg-1: #1a1714;
    --bg-2: #211d19;
    --bg-3: #2a2520;
    --bg-4: #332d27;
    
    --fg-0: #f2ead9;
    --fg-1: rgba(242, 234, 217, 0.7);
    --fg-2: rgba(242, 234, 217, 0.45);
    --fg-3: rgba(242, 234, 217, 0.2);
    
    --accent: #e8734a;
    --accent-bright: #f08560;
    --accent-glow: rgba(232, 115, 74, 0.15);
    --accent-glow-strong: rgba(232, 115, 74, 0.25);
    
    --moss: #7a8b52;
    --moss-bright: #8fa368;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --font-serif: 'Lora', Georgia, serif;
    
    --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
    --r-xl: 20px; --r-2xl: 28px; --r-full: 9999px;
    
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-glide: cubic-bezier(0.25, 0.1, 0.25, 1);
    
    --nav-h: 64px;
    --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--fg-0);
    background: var(--bg-0);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: var(--accent-glow-strong); color: var(--fg-0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: fixed; top: -100%; left: 50%; transform: translateX(-50%);
    padding: 8px 20px; background: var(--accent); color: var(--fg-0);
    border-radius: var(--r-md); font-weight: 600; z-index: 1000;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---- NAV ---- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; z-index: 100;
    background: rgba(20, 18, 16, 0.85);
    border-bottom: 1px solid var(--bg-2);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background: rgba(20, 18, 16, 0.97);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-serif); font-size: 1.375rem;
    font-weight: 600; color: var(--fg-0); text-decoration: none;
    transition: opacity 0.2s ease;
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo svg { width: 28px; height: 28px; color: var(--accent); filter: drop-shadow(0 2px 8px rgba(232,115,74,0.3)); }

.nav-links { display: flex; gap: 32px; }

.nav-links a {
    font-size: 0.9375rem; font-weight: 500; color: var(--fg-1);
    text-decoration: none; position: relative; padding: 4px 0;
    transition: color 0.2s ease;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px; background: var(--accent); border-radius: 1px;
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s var(--ease-spring);
}
.nav-links a:hover { color: var(--fg-0); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---- BUTTONS ---- */
.btn-accent {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; font-family: var(--font-sans);
    font-size: 0.9375rem; font-weight: 600; color: #fff;
    background: var(--accent); text-decoration: none;
    border-radius: var(--r-md);
    box-shadow: 0 2px 12px rgba(232,115,74,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: background 0.15s ease, transform 0.15s var(--ease-spring), box-shadow 0.15s ease;
    cursor: pointer; border: none;
}
.btn-accent:hover {
    background: var(--accent-bright); transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232,115,74,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-accent:active { transform: translateY(0) scale(0.97); }
.btn-accent svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease-spring); }
.btn-accent:hover svg { transform: translateX(3px); }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; font-size: 0.9375rem; font-weight: 600;
    color: var(--fg-1); background: transparent;
    border: 1px solid var(--bg-3); border-radius: var(--r-md);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s var(--ease-spring);
    cursor: pointer;
}
.btn-ghost:hover {
    background: var(--bg-1); color: var(--fg-0);
    border-color: var(--bg-4); transform: translateY(-2px);
}

.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.0625rem; }
.btn-xl { padding: 18px 44px; font-size: 1.125rem; }

/* ---- HERO ---- */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center; justify-content: center;
    padding: var(--nav-h) 24px 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute; top: -20%; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(ellipse, rgba(232,115,74,0.08) 0%, transparent 65%);
    pointer-events: none;
}

.hero-content {
    position: relative; z-index: 2; text-align: center; max-width: 640px;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--font-mono); font-size: 0.75rem;
    font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 24px;
}
.eyebrow-line { display: block; width: 32px; height: 1px; background: var(--accent); }

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 10vw, 7.5rem);
    font-weight: 600; line-height: 1; letter-spacing: -0.02em;
    margin-bottom: 24px;
    text-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

.hero-tagline {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    line-height: 1.4; color: var(--fg-1); margin-bottom: 24px;
}
.hero-tagline em {
    font-family: var(--font-serif); font-style: italic; color: var(--fg-0);
}

.hero-sub {
    font-size: 1rem; line-height: 1.7; color: var(--fg-2);
    max-width: 480px; margin: 0 auto 40px;
}
.hero-sub code {
    font-family: var(--font-mono); font-size: 0.85em;
    padding: 2px 8px; background: var(--bg-2);
    border: 1px solid var(--bg-3); border-radius: 6px;
    color: var(--accent);
}

.hero-actions {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; flex-wrap: wrap; margin-bottom: 40px;
}

.hero-note {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.875rem; color: var(--fg-2);
}
.hero-note svg { width: 14px; height: 14px; color: var(--accent); }

/* ---- PARTICLES ---- */
.particles {
    position: absolute; inset: 0; z-index: 1;
    pointer-events: none; overflow: hidden;
}
.particles span {
    position: absolute; bottom: -10px; left: var(--x, 50%);
    width: var(--s, 3px); height: var(--s, 3px);
    background: var(--fg-3); border-radius: 50%; opacity: 0;
    animation: particle-rise var(--t, 16s) linear var(--d, 0s) infinite;
}
@keyframes particle-rise {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.2; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* ---- SCROLL HINT ---- */
.scroll-hint {
    position: absolute; bottom: 32px; left: 50%;
    transform: translateX(-50%); z-index: 2;
}
.scroll-track {
    width: 2px; height: 48px; background: var(--bg-3);
    border-radius: 1px; overflow: hidden; position: relative;
}
.scroll-dot {
    position: absolute; top: 0; left: 0; width: 100%; height: 16px;
    background: var(--accent); border-radius: 1px;
    animation: scroll-fall 2s var(--ease-glide) infinite;
}
@keyframes scroll-fall {
    0% { transform: translateY(-16px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(48px); opacity: 0; }
}

/* ---- SECTIONS ---- */
.section { position: relative; padding: 96px 24px; }
.section-inner { max-width: var(--container); margin: 0 auto; }
.section-alt { background: var(--bg-1); border-top: 1px solid var(--bg-2); border-bottom: 1px solid var(--bg-2); }
.section-center { text-align: center; }

.section-title {
    display: flex; align-items: baseline; gap: 20px;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 600; margin-bottom: 56px;
}
.title-num {
    font-family: var(--font-mono); font-size: 0.875rem;
    color: var(--accent); letter-spacing: 0.1em; position: relative; top: -0.5em;
}

/* ---- FEATURES ---- */
.feature-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 36px; background: var(--bg-1);
    border: 1px solid var(--bg-3); border-radius: var(--r-xl);
    transition: transform 0.3s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--bg-4);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.feature-icon {
    width: 52px; height: 52px; display: grid; place-items: center;
    background: var(--bg-2); border: 1px solid var(--bg-3);
    border-radius: var(--r-lg); color: var(--accent);
    margin-bottom: 24px;
    transition: transform 0.3s var(--ease-spring), background 0.3s ease;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card:hover .feature-icon {
    transform: scale(1.08); background: var(--accent-glow);
}

.feature-card h3 {
    font-size: 1.125rem; font-weight: 600; margin-bottom: 8px;
}
.feature-card p { font-size: 0.9375rem; line-height: 1.7; color: var(--fg-1); }
.feature-card code {
    font-family: var(--font-mono); font-size: 0.85em;
    padding: 2px 6px; background: var(--bg-2);
    border-radius: 4px; color: var(--accent);
}

/* ---- STEPS ---- */
.steps { display: flex; flex-direction: column; max-width: 640px; }

.step { display: flex; align-items: flex-start; gap: 28px; padding: 32px 0; }

.step-num {
    flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center;
    font-family: var(--font-mono); font-size: 1.25rem; font-weight: 500;
    color: var(--accent); background: var(--bg-1);
    border: 1px solid var(--bg-3); border-radius: 50%;
    transition: transform 0.3s var(--ease-spring), background 0.3s ease;
}
.step:hover .step-num {
    transform: scale(1.1); background: var(--accent-glow);
}

.step h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; padding-top: 4px; }
.step p { font-size: 0.9375rem; line-height: 1.7; color: var(--fg-1); }

.step-connector {
    width: 1px; height: 24px; background: var(--bg-3);
    margin-left: 24px;
}

/* ---- AUDIENCE ---- */
.audience-sub { font-size: 1.125rem; color: var(--fg-1); margin-bottom: 32px; }

.tool-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.badge {
    padding: 8px 20px; font-family: var(--font-mono);
    font-size: 0.875rem; font-weight: 500; color: var(--fg-1);
    background: var(--bg-1); border: 1px solid var(--bg-3);
    border-radius: var(--r-full);
    transition: all 0.2s var(--ease-glide);
}
.badge:hover {
    color: var(--fg-0); border-color: var(--accent);
    background: var(--accent-glow); transform: translateY(-2px);
}

/* ---- CTA CARD ---- */
.cta-card {
    position: relative; text-align: center;
    padding: 72px 40px; background: var(--bg-1);
    border: 1px solid var(--bg-3); border-radius: var(--r-2xl);
    overflow: hidden;
}
.cta-glow {
    position: absolute; top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(232,115,74,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.cta-wren {
    width: 64px; height: 40px; margin: 0 auto 28px;
    color: var(--accent); opacity: 0.85;
}
.cta-card h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600;
    margin-bottom: 12px;
}
.cta-card > p { font-size: 1.0625rem; color: var(--fg-1); margin-bottom: 36px; }

/* ---- FOOTER ---- */
.footer {
    border-top: 1px solid var(--bg-2); padding: 40px 32px;
}
.footer-inner {
    max-width: var(--container); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 24px;
}
.footer-brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600;
}
.footer-brand svg { width: 20px; height: 20px; color: var(--accent); }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
    font-size: 0.875rem; color: var(--fg-2); text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--fg-0); }
.footer-note {
    font-family: var(--font-serif); font-style: italic;
    font-size: 0.8125rem; color: var(--fg-2);
    width: 100%; text-align: center; margin-top: 16px;
}

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s var(--ease-glide), transform 0.6s var(--ease-spring);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 100ms; }
.reveal[data-delay="2"] { transition-delay: 200ms; }

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .particles span, .scroll-dot { display: none; }
    .reveal { opacity: 1; transform: none; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .nav { padding: 0 20px; }
    .nav-links { display: none; }
    
    .hero { padding: var(--nav-h) 20px 60px; }
    
    .hero-actions {
        flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto 32px;
    }
    .hero-actions .btn-accent, .hero-actions .btn-ghost { width: 100%; }
    
    .section { padding: 64px 20px; }
    .feature-grid { grid-template-columns: 1fr; }
    
    .step { flex-direction: column; gap: 16px; }
    .step-connector { display: none; }
    
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 3.5rem; }
    .section-title { font-size: 1.75rem; }
    .cta-card { padding: 48px 24px; }
    .btn-xl { padding: 14px 32px; font-size: 1rem; }
}
