/* ============================================
   AXO LANDING PAGE — DESIGN SYSTEM
   ============================================ */

/* --- Tokens --- */
:root {
    --bg:         #0A0A0F;
    --bg-subtle:  #0E0E15;
    --surface:    #12121A;
    --surface-hi: #1A1A25;
    --border:     #1E1E2E;
    --border-hi:  #2A2A3A;

    --text:       #F0F0F5;
    --text-2:     #B0B0C0;
    --text-3:     #6E6E85;

    --accent:     #3B82F6;
    --accent-hi:  #60A5FA;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --accent-glow-strong: rgba(59, 130, 246, 0.30);

    --green:      #34D399;
    --green-glow: rgba(52, 211, 153, 0.15);

    --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono:       'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    --container:  1120px;
    --radius:     12px;
    --radius-sm:  8px;
    --radius-lg:  20px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAV
   ============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.logo-badge {
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    background: var(--surface-hi);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-sm:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-primary {
    padding: 16px 36px;
    font-size: 1rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
}

.btn-primary:hover {
    background: var(--accent-hi);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.35);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-glow {
    box-shadow: 0 0 20px var(--accent-glow), 0 0 60px var(--accent-glow);
}

.btn-glow:hover {
    box-shadow: 0 0 30px var(--accent-glow-strong), 0 0 80px var(--accent-glow);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.hero-headline {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    color: var(--text);
}

.accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-hi));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: var(--text-2);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-proof {
    margin-top: 20px;
    font-size: 0.78rem;
    color: var(--text-3);
    font-family: var(--mono);
}

/* ============================================
   SECTIONS (shared)
   ============================================ */
.section {
    padding: 120px 0;
    position: relative;
}

.section-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    background: var(--accent-glow);
    padding: 5px 14px;
    border-radius: 20px;
}

.section-headline {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    max-width: 700px;
    margin-bottom: 48px;
}

/* ============================================
   PROBLEM
   ============================================ */
.section-problem {
    border-top: 1px solid var(--border);
}

.prose p {
    color: var(--text-2);
    max-width: 680px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.75;
}

.prose p:last-child { margin-bottom: 0; }

.code-inline {
    font-family: var(--mono);
    font-size: 0.85em;
    background: var(--surface);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--accent-hi);
    border: 1px solid var(--border);
}

/* ============================================
   STATS
   ============================================ */
.section-stats {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.stat-prefix {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-hi);
    letter-spacing: -0.02em;
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent), var(--accent-hi));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-symbol {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-hi);
    margin-left: 2px;
}

.stat-label {
    margin-top: 16px;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-2);
}

.stat-source {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 32px;
    min-width: 140px;
}

.flow-node-accent {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(59,130,246,0.08) 0%, var(--surface) 100%);
    box-shadow: 0 0 30px var(--accent-glow);
}

.flow-icon { font-size: 1.6rem; }
.flow-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
}

.flow-arrow {
    font-size: 1.4rem;
    color: var(--text-3);
    font-family: var(--mono);
}

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

.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: border-color 0.3s, transform 0.3s;
}

.step-card:hover {
    border-color: var(--border-hi);
    transform: translateY(-4px);
}

.step-num {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 0.08em;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.step-desc {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.65;
}

/* Code Block */
.code-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 520px;
    margin: 0 auto;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.code-block:hover {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-hi);
}

.code-filename {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-3);
    margin-left: 8px;
}

.code-block pre {
    padding: 20px 24px;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.7;
    overflow-x: auto;
    color: var(--text-2);
}

.code-comment { color: var(--text-3); }
.code-keyword { color: var(--accent-hi); }
.code-key { color: var(--green); }
.code-value { color: #F59E0B; }

/* ============================================
   WHO THIS IS FOR
   ============================================ */
.section-who {
    border-top: 1px solid var(--border);
}

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

.persona-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    transition: border-color 0.3s, transform 0.3s;
}

.persona-card:hover {
    border-color: var(--border-hi);
    transform: translateY(-4px);
}

.persona-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.persona-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.persona-desc {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.65;
}

/* ============================================
   BETA FEATURES
   ============================================ */
.section-beta {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.beta-list {
    max-width: 680px;
}

.beta-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-2);
    line-height: 1.55;
}

.beta-item:last-child { border-bottom: none; }

.beta-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-glow);
    color: var(--green);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 1px;
}

/* ============================================
   CTA / EMAIL CAPTURE
   ============================================ */
.section-cta {
    padding: 140px 0;
}

.cta-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-headline {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}

.cta-sub {
    font-size: 1rem;
    color: var(--text-2);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-form {
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.form-input {
    flex: 1;
    font-family: var(--font);
    font-size: 0.92rem;
    padding: 14px 20px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder { color: var(--text-3); }

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-btn {
    padding: 14px 24px;
    white-space: nowrap;
    font-size: 0.88rem;
}

.form-msg {
    margin-top: 12px;
    font-size: 0.82rem;
    min-height: 20px;
    font-family: var(--mono);
}

.form-msg.success { color: var(--green); }
.form-msg.error { color: #EF4444; }

.cta-trust {
    font-size: 0.78rem;
    color: var(--text-3);
    margin-top: 16px;
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-3);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-size: 0.78rem;
    color: var(--text-3);
    transition: color 0.2s;
}

.footer-link:hover { color: var(--text); }

.footer-attr {
    font-size: 0.72rem;
    color: var(--text-3);
    width: 100%;
    text-align: center;
    margin-top: 8px;
    font-family: var(--mono);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    html { font-size: 16px; }

    .section { padding: 80px 0; }

    .hero { padding: 100px 0 60px; min-height: auto; }

    .steps-grid,
    .persona-grid { grid-template-columns: 1fr; }

    .stats-grid { grid-template-columns: 1fr 1fr; }

    .flow-arrow { display: none; }
    .flow-diagram { flex-direction: column; gap: 12px; }
    .flow-node { width: 100%; max-width: 260px; }

    .form-group {
        flex-direction: column;
    }

    .form-btn { width: 100%; }

    .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .stats-grid { grid-template-columns: 1fr; }

    .hero-headline { font-size: 2rem; }

    .section-headline { font-size: 1.6rem; }

    .stat-number { font-size: 2.6rem; }

    .section-cta { padding: 100px 0; }
}
