/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
    --bg:          #0b0d11;
    --bg-2:        #111318;
    --bg-3:        #171a21;
    --surface:     #1c2028;
    --surface-2:   #232831;
    --border:      rgba(255,255,255,0.07);
    --border-hover:rgba(255,255,255,0.14);

    --text-primary:  #f0f2f5;
    --text-secondary:#8b919e;
    --text-muted:    #555c6a;

    --green:   #22c55e;
    --green-bg:#0d2218;
    --amber:   #f59e0b;
    --amber-bg:#1f1608;
    --red:     #ef4444;
    --red-bg:  #200d0d;

    --accent:      #3b82f6;
    --accent-soft: rgba(59,130,246,0.12);

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 20px;

    --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
    --shadow:     0 4px 20px rgba(0,0,0,0.5);
    --shadow-lg:  0 8px 40px rgba(0,0,0,0.6);

    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    --max-w: 1120px;
    --section-pad: 96px 0;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── LAYOUT HELPERS ─────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: var(--section-pad); }

/* ─── NAV ────────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    background: rgba(11,13,17,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.logo span {
    color: var(--accent);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color .2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    transition: opacity .2s, transform .15s;
}
.nav-cta:hover { opacity: .88; transform: translateY(-1px); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 128px 24px 80px;
    position: relative;
    overflow: hidden;
}
/* Subtle grid background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 100%);
    pointer-events: none;
}
/* Glow top center */
.hero::after {
    content: '';
    position: absolute;
    top: -120px; left: 50%; transform: translateX(-50%);
    width: 700px; height: 500px;
    background: radial-gradient(ellipse at center, rgba(59,130,246,0.09) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 28px;
}
.hero-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-blue 2.4s infinite;
}
@keyframes pulse-blue {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(59,130,246,0.5); }
    50%       { opacity: .7; box-shadow: 0 0 0 5px rgba(59,130,246,0); }
}
.hero-title {
    font-family: var(--font-head);
    font-size: clamp(42px, 5.5vw, 68px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 18px;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 440px;
    line-height: 1.65;
    margin-bottom: 36px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 0 0 0 rgba(59,130,246,0.4);
}
.btn-primary:hover {
    opacity: .9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color .2s, color .2s, transform .15s;
}
.btn-ghost:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}
.btn-arrow {
    font-size: 18px;
    transition: transform .2s;
}
.btn-ghost:hover .btn-arrow { transform: translateX(3px); }

/* ─── INSIGHT CARD ───────────────────────────────────────── */
.insight-card-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.insight-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transition: border-color .3s;
}
.insight-card:hover { border-color: var(--border-hover); }
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.card-status {
    display: flex;
    align-items: center;
    gap: 10px;
}
.status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot.amber {
    background: var(--amber);
    animation: pulse-amber 2.4s infinite;
}
@keyframes pulse-amber {
    0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.5); }
    50%      { box-shadow: 0 0 0 5px rgba(245,158,11,0); }
}
.status-dot.green  { background: var(--green); }
.status-dot.red    { background: var(--red); }
.status-label {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
}
.card-date {
    font-size: 12px;
    color: var(--text-muted);
}
.card-reasons {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}
.reason-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-secondary);
}
.reason-item::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}
.card-rec {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}
.card-rec.amber { background: var(--amber-bg); color: var(--amber); }
.card-rec.green { background: var(--green-bg); color: var(--green); }
.card-rec.red   { background: var(--red-bg);   color: var(--red); }
.rec-arrow { font-size: 16px; margin-top: 1px; flex-shrink: 0; }
.insight-card-mini {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: border-color .3s, transform .2s;
}
.insight-card-mini:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}
.mini-label {
    font-size: 13.5px;
    color: var(--text-secondary);
}
.mini-label strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ─── STRIP ──────────────────────────────────────────────── */
.strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
    padding: 18px 24px;
    text-align: center;
}
.strip p {
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}
.strip span { color: var(--text-secondary); }

/* ─── SECTION HEADER ─────────────────────────────────────── */
.section-eyebrow {
    font-size: 11.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-head);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 14px;
}
.section-sub {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.7;
}
.section-header {
    margin-bottom: 56px;
}
.section-header.center {
    text-align: center;
}
.section-header.center .section-sub {
    margin: 0 auto;
}

/* ─── PROBLEM ────────────────────────────────────────────── */
.problem { background: var(--bg); }
.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color .3s, transform .25s, box-shadow .25s;
}
.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.card-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
}
.card-title {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.card-body {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ─── SOLUTION ───────────────────────────────────────────── */
.solution { background: var(--bg-2); }
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.solution-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: border-color .3s, transform .25s;
    position: relative;
    overflow: hidden;
}
.solution-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity .3s;
}
.solution-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.solution-card:hover::before { opacity: 1; }
.sol-num {
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

/* ─── EXAMPLES ───────────────────────────────────────────── */
.examples { background: var(--bg); }
.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.ex-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color .3s, transform .25s, box-shadow .25s;
}
.ex-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.ex-card.green:hover { border-color: rgba(34,197,94,0.3); }
.ex-card.amber:hover { border-color: rgba(245,158,11,0.3); }
.ex-card.red:hover   { border-color: rgba(239,68,68,0.3); }
.ex-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.ex-status-label {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
}
.ex-title {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.25;
}
.ex-reasons {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}
.ex-reasons li {
    font-size: 13.5px;
    color: var(--text-secondary);
    padding-left: 14px;
    position: relative;
}
.ex-reasons li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}
.ex-rec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    padding: 10px 13px;
    border-radius: var(--radius-sm);
}
.ex-rec.green { background: var(--green-bg); color: var(--green); }
.ex-rec.amber { background: var(--amber-bg); color: var(--amber); }
.ex-rec.red   { background: var(--red-bg);   color: var(--red); }

/* ─── FOR WHOM ───────────────────────────────────────────── */
.forwho { background: var(--bg-2); }
.forwho-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.forwho-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: border-color .3s, transform .25s;
}
.forwho-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}
.forwho-icon {
    font-size: 28px;
    margin-bottom: 16px;
}
.forwho-role {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.forwho-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}
.forwho-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.forwho-perks li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: var(--text-secondary);
}
.perk-check {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ─── API SECTION ────────────────────────────────────────── */
.api-section { background: var(--bg); }
.api-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.api-text .section-sub { max-width: none; }
.api-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.api-pill {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 5px 13px;
    border-radius: 100px;
    transition: border-color .2s, color .2s;
}
.api-pill:hover { border-color: var(--border-hover); color: var(--text-primary); }
.api-diagram {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.api-flow-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.api-node {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    transition: border-color .3s;
}
.api-node:hover { border-color: var(--border-hover); }
.api-node.accent-node {
    background: var(--accent-soft);
    border-color: rgba(59,130,246,0.3);
}
.api-node-title {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}
.api-node-sub {
    font-size: 12px;
    color: var(--text-muted);
}
.api-arrow {
    color: var(--text-muted);
    font-size: 18px;
    flex-shrink: 0;
}
.api-data-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
}
.api-data-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: .04em;
}
.api-output-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}
.api-out-node {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    transition: border-color .3s;
}
.api-out-node:hover { border-color: var(--border-hover); }
.api-out-node .api-node-title { font-size: 13px; }
.api-out-node .api-node-sub { font-size: 11px; }

/* ─── FINAL CTA ──────────────────────────────────────────── */
.final-cta {
    background: var(--bg-2);
    text-align: center;
}
.cta-box {
    max-width: 600px;
    margin: 0 auto;
}
.cta-box .section-title { margin-bottom: 16px; }
.cta-box .section-sub { margin: 0 auto 36px; }
.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.cta-note {
    margin-top: 16px;
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 40px 24px;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-brand .logo { font-size: 16px; margin-bottom: 4px; }
.footer-tagline {
    font-size: 12.5px;
    color: var(--text-muted);
}
.footer-links {
    display: flex;
    gap: 28px;
    list-style: none;
}
.footer-links a {
    font-size: 13.5px;
    color: var(--text-muted);
    transition: color .2s;
}
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

/* ─── DIVIDER ────────────────────────────────────────────── */
.section-divider {
    height: 1px;
    background: var(--border);
}

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .insight-card-wrap { max-width: 460px; animation: none; }
    .cards-3, .solution-grid, .examples-grid,
    .forwho-grid { grid-template-columns: 1fr; }
    .api-inner { grid-template-columns: 1fr; gap: 40px; }
    .nav-links { display: none; }
}
@media (max-width: 600px) {
    :root { --section-pad: 64px 0; }
    .hero-title { font-size: 38px; }
    .hero-sub { font-size: 16px; }
    .btn-primary, .btn-ghost { padding: 12px 20px; font-size: 14px; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}
