/* ============================================================
   WORLDFORGE AI — Design System & Styles
   Based on the "Living Editor" design doc
   ============================================================ */

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

/* ---------- Design Tokens ---------- */
:root {
    /* Backgrounds */
    --bg-void:    #050508;
    --bg-base:    #0d0d12;
    --bg-surface: #14141c;
    --bg-raised:  #1c1c28;

    /* Accent — Lime */
    --lime-500:   #C8FF00;
    --lime-400:   #d4ff33;
    --lime-300:   #dfff66;
    --lime-glow:  rgba(200, 255, 0, 0.12);
    --lime-dim:   rgba(200, 255, 0, 0.06);

    /* Accent — Blue */
    --blue-500:   #00d4ff;
    --blue-dim:   rgba(0, 212, 255, 0.08);

    /* Text */
    --text-primary:   #f0f0f0;
    --text-secondary: #a0a0b0;
    --text-muted:     #505060;
    --text-accent:    #C8FF00;

    /* Borders */
    --border-default: rgba(255, 255, 255, 0.06);
    --border-strong:  rgba(255, 255, 255, 0.12);
    --border-accent:  rgba(200, 255, 0, 0.25);

    /* Semantic */
    --green-success: #22c55e;
    --red-error:     #ef4444;
    --orange-warn:   #f97316;

    /* Spacing (8px grid) */
    --space-1:  4px;
    --space-2:  8px;
    --space-3:  12px;
    --space-4:  16px;
    --space-6:  24px;
    --space-8:  32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    --space-32: 128px;

    /* Radius */
    --radius-sm:   2px;
    --radius-md:   4px;
    --radius-lg:   8px;
    --radius-xl:   12px;
    --radius-full: 9999px;

    /* Fonts */
    --font-display: 'Syne', sans-serif;
    --font-body:    'IBM Plex Sans', sans-serif;
    --font-mono:    'IBM Plex Mono', monospace;
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-primary);
    background-color: var(--bg-void);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- Typography ---------- */
.text-xs   { font-size: 11px; line-height: 1.5; letter-spacing: 0.06em; }
.text-sm   { font-size: 13px; line-height: 1.6; letter-spacing: 0.02em; }
.text-base { font-size: 15px; line-height: 1.75; }
.text-lg   { font-size: 18px; line-height: 1.6; letter-spacing: -0.01em; }
.text-xl   { font-size: 24px; line-height: 1.4; letter-spacing: -0.02em; }
.text-2xl  { font-size: 32px; line-height: 1.3; letter-spacing: -0.03em; }
.text-3xl  { font-size: 48px; line-height: 1.15; letter-spacing: -0.04em; }
.text-4xl  { font-size: 64px; line-height: 1.05; letter-spacing: -0.05em; }
.text-5xl  { font-size: 88px; line-height: 0.95; letter-spacing: -0.06em; }

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ---------- Section base ---------- */
.section {
    padding: var(--space-24) 0;
}

.section-header {
    margin-bottom: var(--space-16);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.3;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.75;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 1000;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
    background: rgba(13, 13, 18, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-default);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 var(--space-6);
    gap: var(--space-8);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 5px);
    grid-template-rows: repeat(3, 5px);
    gap: 3px;
}

.logo-grid span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--lime-500);
    animation: logoPulse 2s ease-in-out infinite;
}

.logo-grid span:nth-child(1) { animation-delay: 0s; }
.logo-grid span:nth-child(2) { animation-delay: 0.1s; }
.logo-grid span:nth-child(3) { animation-delay: 0.2s; }
.logo-grid span:nth-child(4) { animation-delay: 0.3s; }
.logo-grid span:nth-child(5) { animation-delay: 0.15s; }
.logo-grid span:nth-child(6) { animation-delay: 0.25s; }
.logo-grid span:nth-child(7) { animation-delay: 0.35s; }
.logo-grid span:nth-child(8) { animation-delay: 0.2s; }
.logo-grid span:nth-child(9) { animation-delay: 0.3s; }

@keyframes logoPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex: 1;
}

.nav-link {
    font-size: 13px;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.15s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--lime-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.15s ease;
}

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

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.nav-github {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    padding: 6px 12px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease;
}

.nav-github:hover {
    border-color: var(--border-strong);
    color: var(--text-secondary);
}

.nav-signin {
    font-size: 13px;
}

.btn-primary-sm {
    display: inline-flex;
    align-items: center;
    background: var(--lime-500);
    color: #050508;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary-sm:hover {
    background: var(--lime-400);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-void);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text-secondary);
    transition: color 0.15s;
}

.mobile-link:hover {
    color: var(--lime-500);
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    background: var(--lime-500);
    color: #050508;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

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

/* Dot grid background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(0, 212, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

/* Radial glow */
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(200, 255, 0, 0.06) 0%, transparent 60%);
    z-index: 2;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 640px;
}

.hero-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--lime-500);
    border: 1px solid var(--border-accent);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-6);
    opacity: 0;
    transform: translateY(-10px);
    animation: heroFadeIn 0.5s ease forwards;
    animation-delay: 0.1s;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 64px;
    line-height: 1.05;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    opacity: 0;
    transform: translateY(-8px);
    animation: heroFadeIn 0.5s ease forwards;
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: var(--space-8);
    opacity: 0;
    transform: translateY(-8px);
    animation: heroFadeIn 0.5s ease forwards;
    animation-delay: 0.35s;
}

.hero-ctas {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    opacity: 0;
    animation: heroFadeIn 0.5s ease forwards;
    animation-delay: 0.5s;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--lime-500);
    color: #050508;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--lime-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 255, 0, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    padding: 14px 28px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.btn-secondary .play-icon {
    color: var(--lime-500);
    font-size: 16px;
}

.hero-proof {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    animation: heroFadeIn 0.5s ease forwards;
    animation-delay: 0.6s;
}

.hero-proof span {
    margin: 0 var(--space-2);
}

/* Hero wireframe SVG */
.hero-visual {
    position: relative;
    width: 100%;
    height: 500px;
    opacity: 0;
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-visual svg {
    width: 100%;
    height: 100%;
}

.map-wall {
    stroke: var(--blue-500);
    stroke-width: 2;
    fill: none;
    opacity: 0.2;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: drawLine 3s ease-in-out forwards;
    animation-delay: 1s;
}

.map-wall-inner {
    stroke: var(--blue-500);
    stroke-width: 1.5;
    fill: none;
    opacity: 0.12;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawLine 2.5s ease-in-out forwards;
    animation-delay: 1.5s;
}

.map-npc {
    fill: var(--lime-500);
    opacity: 0;
    animation: fadeInItem 0.4s ease forwards;
}

.map-npc:nth-child(1) { animation-delay: 2.8s; }
.map-npc:nth-child(2) { animation-delay: 3.1s; }
.map-npc:nth-child(3) { animation-delay: 3.4s; }

.map-prop {
    fill: var(--orange-warn);
    opacity: 0;
    animation: fadeInItem 0.4s ease forwards;
}

.map-prop:nth-child(1) { animation-delay: 3.0s; }
.map-prop:nth-child(2) { animation-delay: 3.3s; }

.map-door {
    stroke: var(--lime-300);
    stroke-width: 2;
    fill: none;
    opacity: 0;
    animation: fadeInItem 0.4s ease forwards;
    animation-delay: 3.5s;
}

.map-coord {
    font-family: var(--font-mono);
    font-size: 9px;
    fill: var(--text-muted);
    opacity: 0;
    animation: fadeInItem 0.3s ease forwards;
}

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

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeInItem {
    to { opacity: 1; }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
    color: var(--text-muted);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   STAT SECTION (PROOF STRIPE)
   ============================================================ */
.stats-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 1280px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-4);
    border-right: 1px solid var(--border-default);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: var(--lime-500);
}

.stat-label {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    margin-top: var(--space-2);
}

/* ============================================================
   PIPELINE SECTION
   ============================================================ */
.pipeline-section {
    background: var(--bg-void);
}

.pipeline-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-1);
    margin-bottom: var(--space-16);
    position: relative;
}

.pipeline-card {
    background: var(--bg-raised);
    border: 1px solid var(--border-default);
    border-top: 2px solid var(--lime-500);
    padding: var(--space-6);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    position: relative;
}

.pipeline-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.pipeline-card-step {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--lime-500);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.pipeline-card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.pipeline-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Connector lines between pipeline cards */
.pipeline-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pipeline-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--lime-500), transparent);
    opacity: 0.3;
    animation: flowPulse 2s infinite;
}

@keyframes flowPulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.4; }
}

/* Comparison table */
.comparison-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 13px;
    max-width: 800px;
    margin: 0 auto;
}

.comparison-col {
    padding: var(--space-6);
}

.comparison-col.left {
    background: var(--bg-base);
    color: var(--text-muted);
    border-right: 1px solid var(--border-default);
}

.comparison-col.right {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.comparison-col h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-4);
    color: var(--text-muted);
}

.comparison-col.right h4 {
    color: var(--lime-500);
}

.comparison-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* ============================================================
   DEMO SECTION
   ============================================================ */
.demo-section {
    background: var(--bg-base);
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
}

.demo-input {
    background: var(--bg-raised);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.demo-input-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-default);
}

.demo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.demo-dot.red { background: var(--red-error); }
.demo-dot.yellow { background: var(--orange-warn); }
.demo-dot.green { background: var(--green-success); }

.demo-textarea {
    width: 100%;
    min-height: 260px;
    padding: var(--space-6);
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
    resize: none;
    outline: none;
}

.demo-textarea::placeholder {
    color: var(--text-muted);
}

.demo-btn-wrap {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border-default);
}

.demo-output {
    background: var(--bg-raised);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.demo-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-default);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.demo-output svg {
    width: 100%;
    height: 340px;
    padding: var(--space-4);
}

.demo-note {
    margin-top: var(--space-8);
    text-align: center;
}

.demo-note p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-section {
    background: var(--bg-void);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: var(--space-8);
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lime-dim);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    color: var(--lime-500);
}

.feature-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================================
   COMPETITOR COMPARISON TABLE
   ============================================================ */
.competitor-section {
    background: var(--bg-base);
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
}

.competitor-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
}

.competitor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 700px;
}

.competitor-table th,
.competitor-table td {
    padding: var(--space-4) var(--space-4);
    text-align: center;
    border-bottom: 1px solid var(--border-default);
}

.competitor-table th {
    background: var(--bg-surface);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.competitor-table th.highlight {
    background: var(--lime-dim);
    color: var(--lime-500);
    border-top: 2px solid var(--lime-500);
}

.competitor-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);
    position: sticky;
    left: 0;
    background: var(--bg-base);
    z-index: 1;
}

.competitor-table td.highlight {
    background: var(--lime-dim);
}

.competitor-table tr:last-child td {
    border-bottom: none;
}

.check { color: var(--green-success); }
.cross { color: var(--text-muted); }
.warn  { color: var(--orange-warn); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
    background: var(--bg-void);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.testimonial-card {
    background: var(--bg-surface);
    border-left: 3px solid var(--lime-500);
    padding: var(--space-8);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.testimonial-quote {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--space-4);
}

.testimonial-author {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing-section {
    background: var(--bg-base);
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: var(--space-8);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border: 2px solid var(--lime-500);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lime-500);
    color: #050508;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.pricing-plan {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
    margin-bottom: var(--space-6);
}

.pricing-amount {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.pricing-period {
    font-size: 13px;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    flex: 1;
}

.pricing-features li {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.pricing-features li::before {
    content: '✓';
    color: var(--lime-500);
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.pricing-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================================
   TECH RELIABILITY
   ============================================================ */
.tech-section {
    background: var(--bg-void);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.tech-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: var(--space-6);
}

.tech-card-title {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.tech-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tech-cost {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--lime-500);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
    background: var(--bg-raised);
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: var(--space-32) 0;
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(0, 212, 255, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
}

.final-cta-content {
    position: relative;
    z-index: 2;
}

.final-cta-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: var(--space-8);
}

.final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.final-cta-note {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-base);
    border-top: 1px solid var(--border-default);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    display: block;
    margin-bottom: var(--space-3);
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.footer-socials {
    display: flex;
    gap: var(--space-4);
}

.footer-socials a {
    color: var(--text-muted);
    transition: color 0.15s;
}

.footer-socials a:hover {
    color: var(--lime-500);
}

.footer-heading {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-link {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    transition: color 0.15s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-default);
    font-size: 12px;
    color: var(--text-muted);
}

.footer-easter-egg {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    cursor: help;
    transition: color 0.15s;
}

.footer-easter-egg:hover {
    color: var(--lime-500);
}

/* ============================================================
   PRICING PAGE SPECIFIC
   ============================================================ */
.pricing-page {
    padding-top: calc(64px + var(--space-16));
}

.pricing-page-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.pricing-page-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.pricing-page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-12);
}

.pricing-toggle span {
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-toggle span.active {
    color: var(--text-primary);
}

.toggle-switch {
    width: 48px;
    height: 24px;
    background: var(--bg-raised);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-switch.active {
    background: var(--lime-dim);
    border-color: var(--border-accent);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-secondary);
    transition: all 0.2s;
}

.toggle-switch.active::after {
    left: 27px;
    background: var(--lime-500);
}

/* Full pricing table */
.full-pricing-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-16);
}

.full-pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 800px;
}

.full-pricing-table th,
.full-pricing-table td {
    padding: var(--space-4);
    text-align: center;
    border-bottom: 1px solid var(--border-default);
}

.full-pricing-table th {
    background: var(--bg-surface);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}

.full-pricing-table th.highlight {
    background: var(--lime-dim);
    color: var(--lime-500);
    border-top: 2px solid var(--lime-500);
}

.full-pricing-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);
}

.full-pricing-table td.highlight {
    background: var(--lime-dim);
}

.full-pricing-table tr:last-child td {
    border-bottom: none;
}

/* Calculator */
.calculator {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-10);
    max-width: 640px;
    margin: 0 auto var(--space-16);
}

.calculator h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    text-align: center;
}

.calc-field {
    margin-bottom: var(--space-6);
}

.calc-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.calc-value {
    font-family: var(--font-mono);
    color: var(--lime-500);
}

.calc-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-raised);
    outline: none;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--lime-500);
    cursor: pointer;
    border: 2px solid var(--bg-void);
}

.calc-sizes {
    display: flex;
    gap: var(--space-2);
}

.calc-size-btn {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-raised);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}

.calc-size-btn.active {
    background: var(--lime-dim);
    border-color: var(--border-accent);
    color: var(--lime-500);
}

.calc-result {
    background: var(--bg-raised);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    margin-top: var(--space-6);
    text-align: center;
}

.calc-plan-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    color: var(--lime-500);
    margin-bottom: var(--space-2);
}

.calc-plan-cost {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* FAQ */
.faq-section {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-default);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: var(--space-6) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-primary);
    text-align: left;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: var(--space-4);
}

.faq-item.open .faq-question::after {
    content: '−';
    color: var(--lime-500);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: var(--space-6);
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

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

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .hero-title {
        font-size: 48px;
    }

    .pipeline-flow {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .final-cta-title {
        font-size: 36px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(5) {
        grid-column: span 2;
    }

    .stat-number {
        font-size: 32px;
    }

    .pipeline-flow {
        grid-template-columns: 1fr;
    }

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

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

    .comparison-mini {
        grid-template-columns: 1fr;
    }

    .final-cta-title {
        font-size: 28px;
    }

    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .section {
        padding: var(--space-16) 0;
    }

    .section-title {
        font-size: 24px;
    }

    .pricing-page-title {
        font-size: 32px;
    }
}
