/* ==========================================================================
   TrustFlow Landing — Light editorial theme
   Inspired by webdesignawards.io (modular, rounded cards, generous type)
   ========================================================================== */

:root {
    --bg: #f4f6fb;
    --bg-elevated: #ffffff;
    --bg-subtle: #eaeef7;
    --bg-tint: #e2e8f5;
    --bg-dark: #0b1736;
    --bg-dark-2: #142348;

    --text: #0b1e3f;
    --text-muted: #4a5878;
    --text-soft: #8893ad;
    --text-inverse: #ffffff;
    --text-inverse-muted: #b8c2dd;

    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-soft: #dbe7ff;
    --brand: #2563eb;
    --brand-2: #7c3aed;
    --brand-soft: #dbe7ff;
    --success: #059669;
    --success-soft: #d1fae5;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gold: #fbbf24;

    --border: #d8def0;
    --border-strong: #2563eb;

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(10,10,10,0.04);
    --shadow-md: 0 4px 16px rgba(10,10,10,0.06);
    --shadow-lg: 0 20px 60px rgba(10,10,10,0.09);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    --font-display: 'Inter', sans-serif;

    --max: 1280px;
    --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

.ambient-grid {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 0%, rgba(37,99,235,0.10), transparent 45%),
        radial-gradient(circle at 90% 8%, rgba(124,58,237,0.10), transparent 45%),
        radial-gradient(circle, rgba(11,30,63,0.05) 1px, transparent 1px);
    background-size: auto, auto, 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(244,246,251,0.78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 18px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.02em;
    box-shadow: 0 6px 16px rgba(37,99,235,0.35);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: 14.5px;
    font-weight: 500;
}
.nav-links a { color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-docs { color: var(--text); }
.mobile-menu { display: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: -0.005em;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, #2563eb, #7c3aed); color: white; box-shadow: 0 8px 24px rgba(37,99,235,0.30); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37,99,235,0.40); filter: brightness(1.05); }
.btn-ghost { color: var(--text); border-color: var(--border); background: transparent; }
.btn-ghost:hover { background: var(--bg-elevated); border-color: var(--accent); color: var(--accent); }
.btn-outline { color: var(--text); border-color: var(--border); background: var(--bg-elevated); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
a.btn-nav, .btn-nav { padding: 10px 18px; font-size: 14px; background: linear-gradient(135deg, #2563eb, #7c3aed); color: #ffffff !important; font-weight: 700; box-shadow: 0 6px 16px rgba(37,99,235,0.30); }
a.btn-nav:hover, .btn-nav:hover { filter: brightness(1.08); transform: translateY(-1px); color: #ffffff !important; }
.btn-full { width: 100%; }

/* Hero */
.hero { position: relative; padding: 90px 0 110px; z-index: 1; overflow: hidden; }
.hero::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 720px; height: 720px;
    background: radial-gradient(circle, rgba(124,58,237,0.22), transparent 60%);
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -260px; left: -160px;
    width: 640px; height: 640px;
    background: radial-gradient(circle, rgba(37,99,235,0.20), transparent 60%);
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; position: relative; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: var(--r-pill);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(5,150,105,0.15);
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(46px, 6.4vw, 84px);
    line-height: 0.96;
    letter-spacing: -0.04em;
    font-weight: 900;
    margin-bottom: 26px;
    color: var(--text);
}
.hero h1 .accent-grad {
    background: linear-gradient(120deg, #2563eb 0%, #7c3aed 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero-desc {
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.proof-metric { font-size: 14px; color: var(--text-muted); }
.proof-metric strong { color: var(--text); font-weight: 700; font-size: 17px; display: block; font-variant-numeric: tabular-nums; }
.proof-divider { width: 1px; height: 28px; background: var(--border); }

/* Hero gauge card */
.hero-visual { position: relative; }
.gauge-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.gauge-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10,10,10,0.1), transparent);
}
.gauge-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.gauge-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-soft); font-weight: 600; }
.gauge-badge {
    padding: 5px 11px;
    border-radius: var(--r-pill);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: var(--brand-soft);
    color: var(--brand);
}
.gauge-container { position: relative; text-align: center; padding: 10px 0 4px; }
.gauge-svg { width: 100%; max-width: 280px; height: auto; display: block; margin: 0 auto; }
.gauge-arc { transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.gauge-needle {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: 100px 100px;
    transform-box: view-box;
    filter: drop-shadow(0 2px 4px rgba(11,30,63,0.25));
}
.gauge-score {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}
.gauge-factors { margin: 20px 0 16px; display: grid; gap: 8px; }
.factor {
    display: grid;
    grid-template-columns: 110px 1fr 36px;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
}
.factor-name { color: var(--text-muted); font-weight: 500; }
.factor-bar { height: 5px; background: var(--bg-subtle); border-radius: var(--r-pill); overflow: hidden; }
.factor-fill { height: 100%; border-radius: var(--r-pill); transition: width 0.5s ease; }
.factor-val { font-family: var(--font-mono); font-size: 11px; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.gauge-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-soft);
}

/* Standards */
.standards { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; z-index: 1; }
.standards-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; }
.standards-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-soft); font-weight: 600; }
.standards-list { display: flex; gap: 36px; flex-wrap: wrap; }
.standards-list span { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* Section headers */
section { position: relative; z-index: 1; padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-tag {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 16px;
    padding: 7px 14px;
    border: 1px solid rgba(37,99,235,0.25);
    border-radius: var(--r-pill);
    background: var(--accent-soft);
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin-bottom: 16px;
}
.section-desc { font-size: 17px; color: var(--text-muted); margin-top: 12px; }

/* Code section */
.code-section { padding-top: 60px; }
.code-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.code-text h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 20px; }
.code-text p { font-size: 17px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; }
.code-text code { font-family: var(--font-mono); font-size: 13px; background: var(--bg-subtle); padding: 2px 8px; border-radius: 5px; color: var(--text); }
.code-benefits { list-style: none; display: grid; gap: 14px; }
.code-benefits li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text); }
.code-benefits svg { flex-shrink: 0; }

.code-window {
    background: #0f0f14;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid #1e1e24;
}
.code-header { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: #16161c; border-bottom: 1px solid #1e1e24; }
.code-dots { display: flex; gap: 7px; }
.code-dots .dot { width: 11px; height: 11px; border-radius: 50%; background: #2a2a32; }
.code-tabs { display: flex; gap: 4px; margin-left: auto; }
.code-tab { padding: 6px 12px; font-size: 12px; color: #8a8a94; border-radius: 6px; font-weight: 500; transition: all 0.15s; }
.code-tab.active { background: #1e1e24; color: #fff; }
.copy-btn { color: #8a8a94; padding: 6px; border-radius: 5px; transition: color 0.15s; }
.copy-btn:hover { color: #fff; }
.code-block { display: none; padding: 24px; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: #e4e4e9; overflow-x: auto; }
.code-block.active { display: block; }
.hl-kw { color: #c084fc; font-weight: 500; }
.hl-str { color: #86efac; }
.hl-num { color: #fbbf24; }
.hl-cmt { color: #6b7280; font-style: italic; }
.hl-key { color: #60a5fa; }
.code-response { border-top: 1px solid #1e1e24; background: #0a0a0e; }
.response-bar { display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: #13131a; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; color: #6b7280; }
.response-ok { color: var(--brand); margin-left: auto; }
.response-ms { color: #8a8a94; font-family: var(--font-mono); }
.code-response pre { padding: 20px 24px; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: #e4e4e9; overflow-x: auto; }

/* Features */
.features { background: var(--bg-subtle); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(37,99,235,0.18); border-color: var(--accent); }
.feature-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 22px; color: white; background: linear-gradient(135deg, #2563eb, #7c3aed); box-shadow: 0 8px 20px rgba(37,99,235,0.30); }
.feature-icon.compliance { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.feature-icon.speed { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.feature-icon.trace { background: linear-gradient(135deg, #ec4899, #be185d); }
.feature-icon.config { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.feature-icon.sdk { background: linear-gradient(135deg, #10b981, #059669); }
.feature-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.feature-card code { font-family: var(--font-mono); font-size: 12.5px; background: var(--bg-subtle); padding: 1px 6px; border-radius: 4px; }

/* How it works */
.steps-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 20px; align-items: stretch; }
.step-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 36px 32px; position: relative; }
.step-num {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.step-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.step-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.step-card code { font-family: var(--font-mono); font-size: 13px; background: var(--bg-subtle); padding: 2px 7px; border-radius: 4px; }
.step-code { font-family: var(--font-mono); font-size: 12.5px; padding: 10px 14px; background: var(--bg-subtle); border-radius: 8px; color: var(--text); border: 1px solid var(--border); }
.step-connector { align-self: center; width: 40px; height: 2px; background: linear-gradient(90deg, var(--border), var(--text-soft), var(--border)); }

/* Metrics */
.metrics { background: var(--bg-dark); color: var(--text-inverse); padding: 80px 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.metric-value {
    font-family: var(--font-display);
    font-size: clamp(44px, 5.4vw, 72px);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(120deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-variant-numeric: tabular-nums;
}
.metric-label { font-size: 13px; color: var(--text-inverse-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* Pricing */
.pricing { background: var(--bg-subtle); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1080px; margin: 0 auto; }
.pricing-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 40px 32px;
    position: relative;
    transition: transform 0.3s;
}
.pricing-card:hover { transform: translateY(-3px); }
.pricing-card.featured { background: linear-gradient(160deg, #0b1736 0%, #2a1858 60%, #4c1d95 100%); color: var(--text-inverse); border-color: transparent; transform: scale(1.04); box-shadow: 0 30px 70px rgba(37,99,235,0.30); }
.pricing-card.featured:hover { transform: scale(1.02) translateY(-3px); }
.pricing-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--text);
    padding: 6px 16px;
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.pricing-tier { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--text-muted); margin-bottom: 14px; }
.pricing-card.featured .pricing-tier { color: var(--text-inverse-muted); }
.pricing-amount { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; line-height: 1; }
.pricing-currency { font-size: 28px; vertical-align: top; margin-right: 2px; }
.pricing-period { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.pricing-card.featured .pricing-period { color: var(--text-inverse-muted); }
.pricing-for { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.pricing-card.featured .pricing-for { color: var(--text-inverse-muted); }
.pricing-list { list-style: none; margin-bottom: 28px; display: grid; gap: 11px; }
.pricing-list li { font-size: 14.5px; padding-left: 22px; position: relative; color: var(--text); }
.pricing-card.featured .pricing-list li { color: var(--text-inverse); }
.pricing-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
}
.pricing-card.featured .pricing-list li::before { border-color: var(--gold); }
.pricing-card.featured .btn-primary { background: var(--gold); color: var(--text); }
.pricing-card.featured .btn-primary:hover { background: #f4d975; }

/* CTA */
.cta { padding: 100px 0; }
.cta-inner {
    background: linear-gradient(135deg, #0b1736 0%, #1e1b4b 50%, #4c1d95 100%);
    color: var(--text-inverse);
    border-radius: var(--r-xl);
    padding: 84px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(37,99,235,0.25);
}
.cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(96,165,250,0.35), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236,72,153,0.28), transparent 50%);
    pointer-events: none;
}
.cta-inner > * { position: relative; }
.cta-content h2 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 14px; }
.cta-content p { font-size: 17px; color: var(--text-inverse-muted); margin-bottom: 36px; }
.signup-form { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; flex-wrap: wrap; }
.signup-form input {
    flex: 1;
    min-width: 180px;
    padding: 14px 20px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: var(--text-inverse);
    font-size: 14.5px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.signup-form input::placeholder { color: rgba(255,255,255,0.5); }
.signup-form input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.1); }
.signup-form .btn-primary { background: linear-gradient(135deg, #60a5fa, #f472b6); color: #ffffff; font-weight: 700; }
.signup-form .btn-primary:hover { filter: brightness(1.08); }
.signup-form input:focus { outline: none; border-color: #a78bfa; background: rgba(255,255,255,0.12); }
.signup-result { display: none; margin-top: 24px; }
.signup-result.active { display: block; }
.key-warning { font-size: 13px; color: var(--gold); margin-bottom: 10px; font-weight: 500; }
.key-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r-md);
    max-width: 560px;
    margin: 0 auto;
}
.key-box code { flex: 1; font-family: var(--font-mono); font-size: 13px; color: var(--gold); overflow-x: auto; text-align: left; }
.key-copy { padding: 6px 14px; border-radius: var(--r-pill); background: rgba(255,255,255,0.1); color: var(--text-inverse); font-size: 12px; font-weight: 600; }
.key-copy:hover { background: rgba(255,255,255,0.2); }

/* Footer */
.footer { background: var(--bg-dark); color: var(--text-inverse); padding: 80px 0 40px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; margin-bottom: 56px; }
.footer-brand .nav-logo { color: var(--text-inverse); margin-bottom: 16px; }
.footer-brand p { color: var(--text-inverse-muted); font-size: 14px; line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--text-inverse); margin-bottom: 20px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--text-inverse-muted); padding: 6px 0; transition: color 0.2s; }
.footer-col a:hover { color: #a78bfa; }
.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px; color: var(--text-inverse-muted); }

/* Legal pages */
.legal-page { padding: 80px 0 120px; position: relative; z-index: 1; }
.legal-content {
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 64px 56px;
    box-shadow: var(--shadow-md);
}
.legal-content h1 { font-family: var(--font-display); font-size: clamp(34px, 4.5vw, 52px); letter-spacing: -0.03em; font-weight: 800; margin-bottom: 12px; }
.legal-meta { color: var(--text-soft); font-size: 14px; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.legal-content h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 40px 0 14px; }
.legal-content h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.legal-content p, .legal-content li { color: var(--text); font-size: 15.5px; line-height: 1.7; margin-bottom: 12px; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin-bottom: 16px; }
.legal-content a { color: var(--brand); text-decoration: underline; }
.legal-content code { font-family: var(--font-mono); font-size: 13px; background: var(--bg-subtle); padding: 1px 6px; border-radius: 4px; }
.legal-content strong { font-weight: 700; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 60px; }
    .hero-visual { max-width: 460px; margin: 0 auto; }
    .code-layout { grid-template-columns: 1fr; gap: 40px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
    .step-connector { display: none; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
    .pricing-card.featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 700px) {
    section { padding: 72px 0; }
    .nav-links { display: none; }
    .mobile-menu { display: flex; flex-direction: column; gap: 4px; padding: 10px; }
    .mobile-menu span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
    .hero { padding: 60px 0 80px; }
    .hero-proof { gap: 18px; }
    .proof-divider { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .cta-inner { padding: 56px 32px; }
    .legal-content { padding: 40px 28px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Pricing calculator */
.pricing-calculator {
    margin-top: 64px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.08);
}
.pricing-calculator h3 {
    margin: 0 0 6px;
    font-size: 22px;
    color: var(--text);
}
.pricing-calculator .muted {
    color: #64748b;
    margin: 0 0 24px;
}
.calc-row {
    display: grid;
    grid-template-columns: 180px 1fr 120px;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}
.calc-row label {
    font-weight: 600;
    color: var(--text);
}
.calc-row input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
}
.calc-row output {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--accent);
    text-align: right;
}
.calc-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.calc-card {
    padding: 20px;
    border-radius: 14px;
    background: #f8fafc;
    border: 2px solid transparent;
    transition: all .2s ease;
}
.calc-card.highlighted {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08));
    border-color: var(--accent);
    transform: translateY(-3px);
}
.calc-plan {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
}
.calc-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin-top: 6px;
}
.calc-note {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}
.calc-recommend {
    margin: 22px 0 0;
    text-align: center;
    color: var(--text);
}
@media (max-width: 720px) {
    .calc-row { grid-template-columns: 1fr; }
    .calc-results { grid-template-columns: 1fr; }
}
