﻿/* ---------------------------------------------------------------------------
   novadatahub - Design System v2
   Font    : system-native UI stack
   Theme   : Dark-first, premium developer-tool aesthetic
   Inspired: modern developer platforms
   --------------------------------------------------------------------------- */

/* -- 1. DESIGN TOKENS ----------------------------------------------------- */
:root {
    /* Background scale */
    --bg:        #cfdcf1;   /* page */
    --bg-2:      #dbe6f6;   /* elevated surface */
    --surface:   #e3ebf8;   /* card */
    --surface-2: #d4def0;   /* card-hover / nested */

    /* Text */
    --fg:        #0c1528;
    --muted:     #394863;
    --very-muted:#5e6f8b;

    /* Accent */
    --accent:       #6d28d9;
    --accent-light: #7c5cff;
    --accent-2:     #06b6d4;
    --accent-3:     #f472b6;
    --success:      #22c55e;
    --danger:       #ef4444;
    --warning:      #f59e0b;

    /* Gradients */
    --grad:       linear-gradient(135deg,#7c5cff 0%,#ff6fb5 45%,#06b6d4 100%);
    --grad-text:  linear-gradient(90deg,#8b5cf6 0%,#67e8f9 50%,#6ee7b7 100%);
    --grad-subtle:linear-gradient(135deg,rgba(99,102,241,.12),rgba(6,182,212,.07));

    /* micro UI accents */
    --glass: rgba(255,255,255,.6);

    /* Borders */
    --border:   rgba(15,23,42,.24);
    --border-2: rgba(15,23,42,.36);

    /* Shadow / Glow */
    --shadow:      0 10px 30px rgba(15,23,42,.14);
    --shadow-lg:   0 22px 64px rgba(15,23,42,.24);
    --glow-accent: 0 0 0 1px rgba(99,102,241,.24), 0 14px 36px rgba(99,102,241,.22);

    /* Code */
    --code-bg: #0b0e1a;
    --code-fg: #c8d3e8;


    /* Radii */
    --r-sm:  8px;
    --r-md:  12px;
    --r-lg:  16px;
    --r-xl:  20px;
    --r-2xl: 24px;
    --r-pill:999px;

    /* Type scale */
    --text-xs:   11px;
    --text-sm:   13px;
    --text-base: 15px;
    --text-lg:   17px;
    --text-xl:   20px;
    --text-2xl:  24px;
    --text-3xl:  clamp(22px,2.5vw,32px);
    --text-hero: clamp(38px,5.5vw,72px);

    /* Animation */
    --ease:     cubic-bezier(.22,.68,0,1.2);
    --ease-out: cubic-bezier(0,0,.2,1);
    --dur:      180ms;
}
.theme-dark {
    --bg:        #09090b;   /* near-black page */
    --bg-2:      #101014;   /* elevated */
    --surface:   #131316;   /* card */
    --surface-2: #1c1c22;   /* card-hover */
    --fg:        #eff0f5;
    --muted:     #8896a8;
    --very-muted:#56667a;
    --accent:       #7c5cff;
    --accent-light: #a78bfa;
    --accent-2:     #22d3ee;
    --accent-3:     #f472b6;
    --grad:       linear-gradient(135deg,#7c5cff 0%,#06b6d4 55%,#ff6fb5 100%);
    --grad-text:  linear-gradient(90deg,#a78bfa 0%,#67e8f9 50%,#f0abfc 100%);
    --grad-subtle:linear-gradient(135deg,rgba(124,92,255,.07),rgba(6,182,212,.04));
    --border:     rgba(255,255,255,.055);
    --border-2:   rgba(255,255,255,.09);
    --shadow:       0 10px 30px rgba(0,0,0,.55);
    --shadow-lg:    0 22px 64px rgba(0,0,0,.65);
    --glow-accent:  0 0 0 1px rgba(124,92,255,.2), 0 14px 36px rgba(124,92,255,.15);
    --code-bg:    #050507;
    --code-fg:    #cfe9ff;
    --glass:      rgba(255,255,255,.04);
}

/* animated gradient overlay applied to hero for extra liveliness */
.hero::before {
    /* keep existing background layers via previous rule, add animated gradient layer on top */
}
.hero .hero-overlay {
    position: absolute; inset: 0; z-index:0; pointer-events:none;
    background: linear-gradient(270deg, rgba(124,92,255,.06), rgba(6,182,212,.05), rgba(244,114,182,.04));
    background-size: 300% 300%;
    animation: gradientShift 14s ease infinite;
    mix-blend-mode: screen;
}

/* subtle particle layer using repeating-radial-gradients */
.hero .hero-dots {
    position: absolute; inset: 0; z-index:0; pointer-events:none;
    background-image:
        radial-gradient(circle, rgba(12,21,40,.035) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 36px 36px, 90px 90px;
    opacity: .9;
    animation: dotsDrift 12s ease-in-out infinite;
    transform: translateZ(0);
}

/* ensure hero content sits above overlays */
.hero-inner { position: relative; z-index: 2; }

/* Theme presets - apply by adding .theme-cool | .theme-neutral | .theme-warm to the <body> */
.theme-cool {
    --bg:        #dae5f6;
    --bg-2:      #e8f1fb;
    --surface:   #f0f6ff;
    --surface-2: #e1ecf8;
    --fg:        #0c1528;
    --muted:     #394863;
    --very-muted:#5e6f8b;
    --accent:       #6d28d9;
    --accent-light: #7c5cff;
    --grad:       linear-gradient(135deg,#7c5cff 0%,#ff6fb5 45%,#06b6d4 100%);
    --grad-text:  linear-gradient(90deg,#8b5cf6 0%,#67e8f9 50%,#6ee7b7 100%);
    --border:     rgba(15,23,42,.2);
    --border-2:   rgba(15,23,42,.32);
}
.theme-neutral {
    --bg:        #eef1f6;
    --bg-2:      #f6f8fb;
    --surface:   #ffffff;
    --surface-2: #edf1f6;
    --fg:        #18202c;
    --muted:     #5c6878;
    --very-muted:#8898aa;
    --accent:       #3b82f6;
    --accent-light: #60a5fa;
    --grad:       linear-gradient(135deg,#3b82f6 0%,#8b5cf6 55%,#06b6d4 100%);
    --grad-text:  linear-gradient(90deg,#60a5fa 0%,#a78bfa 50%,#67e8f9 100%);
    --border:     rgba(30,40,55,.12);
    --border-2:   rgba(30,40,55,.20);
    --shadow:       0 10px 30px rgba(20,30,50,.10);
    --shadow-lg:    0 22px 64px rgba(20,30,50,.15);
    --glow-accent:  0 0 0 1px rgba(59,130,246,.2), 0 14px 36px rgba(59,130,246,.15);
}
.theme-warm {
    --bg:        #fdf5ec;
    --bg-2:      #fef9f4;
    --surface:   #fffaf6;
    --surface-2: #fdefdf;
    --fg:        #1c0f04;
    --muted:     #7a5030;
    --very-muted:#b07840;
    --accent:       #c2410c;
    --accent-light: #f97316;
    --accent-2:     #f59e0b;
    --grad:       linear-gradient(135deg,#f97316 0%,#ec4899 45%,#fbbf24 100%);
    --grad-text:  linear-gradient(90deg,#fb923c 0%,#f472b6 50%,#fbbf24 100%);
    --border:     rgba(140,60,10,.14);
    --border-2:   rgba(140,60,10,.22);
    --shadow:       0 10px 30px rgba(100,30,5,.12);
    --shadow-lg:    0 22px 64px rgba(100,30,5,.18);
    --glow-accent:  0 0 0 1px rgba(249,115,22,.25), 0 14px 36px rgba(249,115,22,.18);
}

/* Animated gradient overlay for extra liveliness */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* particle subtle move */
@keyframes dotsDrift {
    0% { background-position: 0 0, 0 0; opacity: .95; }
    50% { background-position: 20px 10px, -20px -8px; opacity: .7; }
    100% { background-position: 0 0, 0 0; opacity: .95; }
}

/* -- 2. RESET + BASE ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background:
        radial-gradient(ellipse 60% 40% at 10% -5%, rgba(124,92,255,.16), transparent 50%),
        radial-gradient(ellipse 50% 36% at 90% 8%, rgba(6,182,212,.09), transparent 50%),
        linear-gradient(180deg, rgba(255,255,255,.02), rgba(244,114,182,.03)),
        var(--bg);
    color: var(--fg);
    font-family: "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: var(--text-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; font-size: inherit; }
code, .mono {
    font-family: ui-monospace, 'Cascadia Code', 'Fira Code', Menlo, Consolas, monospace;
    font-size: .9em;
}

/* -- 3. LAYOUT ------------------------------------------------------------ */
.container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(16px, 3vw, 32px);
}

.page { padding: 0 0 80px; }
.page > :first-child { margin-top: 0; }

.grid-2 { display: grid; gap: 24px; grid-template-columns: 1.2fr 1fr; }
.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(3,1fr); }
.grid-4 { display: grid; gap: 24px; grid-template-columns: repeat(4,1fr); }
.grid-2 > *,
.grid-3 > *,
.grid-4 > * { min-width: 0; }

@media (max-width: 1000px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
    .grid-4 { grid-template-columns: 1fr; }
}

.flex    { flex: 1; }
.mt10    { margin-top: 10px; }
.mt16    { margin-top: 16px; }
.center  { text-align: center; }
.gap16   { gap: 16px; }
.mb14    { margin-bottom: 14px; }
.muted   { color: var(--muted); }
.success { color: var(--success); }
.truncate{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* -- 4. TYPOGRAPHY -------------------------------------------------------- */
.display {
    font-size: var(--text-hero);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.03em;
}

.display-grad {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin: 0 0 8px;
    text-align: center;
}
/* Left-aligned variant used inside grid columns (quickstart etc.) */
.section-title.left { text-align: left; }

.section-sub {
    color: var(--muted);
    text-align: center;
    margin: 0 0 36px;
    font-size: var(--text-lg);
    max-width: 60ch;
    margin-inline: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.22);
    color: var(--accent-light);
    border-radius: var(--r-pill);
    padding: 5px 14px;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.lead {
    font-size: var(--text-lg);
    color: var(--muted);
    line-height: 1.75;
    max-width: 54ch;
}

h1, h2, h3, h4 { letter-spacing: -.015em; line-height: 1.2; }

/* -- 5. BUTTONS ----------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--r-md);
    border: 1px solid var(--border-2);
    background: var(--surface);
    color: var(--fg);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur), background var(--dur), border-color var(--dur), filter var(--dur);
    white-space: nowrap;
    line-height: 1;
    text-decoration: none;
}
.btn:hover {
    transform: translateY(-2px);
    background: var(--surface-2);
    border-color: var(--border-2);
    box-shadow: var(--shadow);
}
.btn:active { transform: translateY(0); }

.btn.primary {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 20px rgba(99,102,241,.4), 0 1px 4px rgba(0,0,0,.3);
}
.btn.primary:hover {
    box-shadow: 0 6px 32px rgba(99,102,241,.55), 0 2px 8px rgba(0,0,0,.3);
    filter: brightness(1.08);
}

.btn.ghost {
    background: transparent;
    border-color: var(--border-2);
    color: var(--muted);
}
.btn.ghost:hover { background: rgba(15,23,42,.04); color: var(--fg); }

.btn.block   { width: 100%; }
.btn.sm-nav  { padding: 7px 14px; font-size: var(--text-sm); }

/* -- 6. TOPBAR / NAVIGATION ----------------------------------------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(200,214,235,.94);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-bottom: 1px solid rgba(15,23,42,.26);
    box-shadow: 0 8px 34px rgba(15,23,42,.08);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: var(--text-base);
    letter-spacing: -.025em;
    color: var(--fg);
    flex-shrink: 0;
}
.brand svg { color: var(--accent-light); }

.links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.lnk {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: var(--r-sm);
    transition: color var(--dur), background var(--dur);
    white-space: nowrap;
}
.lnk:hover { color: var(--fg); background: rgba(15,23,42,.04); }
.lnk.active {
    color: var(--fg);
    background: rgba(99,102,241,.1);
    color: var(--accent-light);
}

/* Dropdown */
.dd { position: relative; }
.links .dd > summary { list-style: none; cursor: pointer; }
.links .dd > summary::-webkit-details-marker { display: none; }

.links .lnk,
.links .dd .dd-trigger {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: var(--r-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color var(--dur), background var(--dur);
    white-space: nowrap;
}
.links .lnk:hover,
.links .dd .dd-trigger:hover { color: var(--fg); background: rgba(15,23,42,.04); }
.links .dd-trigger.active,
.links .lnk.active {
    color: var(--accent-light);
    background: rgba(99,102,241,.1);
}

.caret {
    width: 12px; height: 12px;
    opacity: .55;
    transition: transform .18s var(--ease-out), opacity .18s;
    flex-shrink: 0;
}
.links .dd[open] .caret { transform: rotate(180deg); opacity: .9; }

.dd-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 200;
    display: none;
    animation: ddFadeIn .13s var(--ease-out);
}
.links .dd[open] .dd-menu { display: block; }

@keyframes ddFadeIn {
    from { opacity: 0; transform: translateY(-6px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dd-item {
    display: block;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: background var(--dur), color var(--dur);
}
.dd-item:hover, .dd-item.active {
    background: rgba(99,102,241,.1);
    color: var(--accent-light);
}

.dd-sep { height: 1px; background: var(--border); margin: 4px 0; }

/* Right-aligned account dropdown */
.dd-menu--right {
    left: auto; right: 0;
    max-width: min(280px, calc(100vw - 24px));
    box-sizing: border-box;
}
.dd-user-info { padding: 10px 12px 8px; overflow: hidden; min-width: 0; }
.dd-user-email {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--muted);
    width: 100%; max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    display: block;
}
.avatar-pill {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    font-size: 12px; font-weight: 700;
    flex-shrink: 0;
}
.account-trigger { gap: 4px; padding: 4px 8px; }
.theme-label { display: none; }
.btn-logout {
    width: 100%; text-align: left;
    background: transparent; border: none;
    cursor: pointer;
    font-size: 14px; font-family: inherit;
    color: var(--danger);
}
.btn-logout:hover { background: rgba(239,68,68,.08); }

/* Hamburger */
.hamburger {
    display: none;
    background: none; border: 0; cursor: pointer;
    margin-left: auto; padding: 6px;
}
.hamburger .bar {
    display: block;
    width: 20px; height: 2px;
    background: var(--fg);
    margin: 4px 0; border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.hamburger.open .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open .bar:nth-child(2) { opacity: 0; }
.hamburger.open .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
    .hamburger { display: block; }
    .links {
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: rgba(214,226,244,.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 40px rgba(15,23,42,.14);
        flex-direction: column; align-items: stretch;
        gap: 6px; padding: 14px max(16px, calc((100vw - 720px) / 2));
        display: none;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
    .links.open { display: flex; }
    .links .flex { display: none; }
    .links > .lnk,
    .links > .btn,
    .links .dd > summary.dd-trigger {
        width: 100%;
        min-height: 42px;
        justify-content: space-between;
        border-radius: var(--r-md);
        padding: 10px 12px;
    }
    .links > .btn {
        justify-content: center;
        margin-top: 4px;
    }
    .links .dd { width: 100%; }
    .dd-menu {
        position: static; min-width: 0;
        box-shadow: none; border-radius: var(--r-md);
        margin-top: 4px; display: none;
        background: var(--surface-2); border: 1px solid var(--border);
    }
    .links .dd[open] .dd-menu { display: block; }
    .links .dd .dd-menu {
        position: static; text-align: left;
        max-width: none; margin: 4px 0 0;
        width: 100%;
    }
    .dd-menu--right { left: 0; right: auto; }
    .account-dd { width: 100%; }
    .account-trigger { justify-content: space-between; }
    .links .dd > summary.theme-trigger { justify-content: flex-start; }
    .theme-label { display: inline; }
}

/* -- 7. HERO -------------------------------------------------------------- */
.hero {
    position: relative;
    padding: clamp(64px,8.5vw,120px) 0 clamp(48px,6.5vw,96px);
    overflow: hidden;
    border-bottom: 1px solid rgba(15,23,42,.22);
    box-shadow: 0 20px 60px rgba(15,23,42,.04) inset;
}

/* Animated mesh gradient backdrop */
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 85% 55% at 15% 5%,  rgba(99,102,241,.28) 0%, transparent 55%),
        radial-gradient(ellipse 65% 45% at 85% 15%, rgba(6,182,212,.20) 0%, transparent 55%),
        radial-gradient(ellipse 65% 65% at 55% 90%, rgba(139,92,246,.16) 0%, transparent 55%);
    pointer-events: none;
}

/* Subtle dot-grid overlay */
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle, rgba(12,21,40,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,.0));
    background-size: 40px 40px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 20%, transparent 100%);
}

.hero-inner {
    position: relative; z-index: 1;
    display: grid;
    gap: 56px;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
}
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; gap: 40px; } }

.hero-copy { max-width: 600px; }
.hero-copy .display {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 22px;
    text-shadow: 0 6px 18px rgba(109,40,217,.08);
}
.hero-copy .lead { margin: 0 0 32px; font-size: clamp(16px,1.4vw,19px); }

/* Uptime proof bar */
.proof {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: var(--text-sm);
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.proof .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--success);
    animation: livepulse 2.4s ease-in-out infinite;
}
@keyframes livepulse {
    0%,100% { box-shadow: 0 0 4px var(--success); }
    50%      { box-shadow: 0 0 16px var(--success); }
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

/* Chip tags */
.chips {
    display: flex; gap: 8px; flex-wrap: wrap;
    padding: 0; list-style: none;
}
.chips li {
    background: rgba(99,102,241,.08);
    border: 1px solid rgba(99,102,241,.18);
    color: var(--accent-light);
    padding: 4px 12px;
    border-radius: var(--r-pill);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: .04em;
}

/* Hero API card */
.hero-card {
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg), 0 6px 20px rgba(124,92,255,.06);
    overflow: hidden;
}
.hero-card::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, rgba(124,92,255,.95), rgba(6,182,212,.85));
}
.card-head {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 20px 0;
}
.card-head h3 { font-size: var(--text-base); font-weight: 700; }
.card-body { padding: 12px 20px; }
.card-foot {
    padding: 10px 20px 16px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
}
.micro { font-size: var(--text-xs); color: var(--very-muted); }

.chip {
    display: inline-flex;
    background: rgba(99,102,241,.12);
    color: var(--accent-light);
    border: 1px solid rgba(99,102,241,.22);
    padding: 3px 10px;
    border-radius: var(--r-pill);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.code {
    display: block;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    margin: 10px 0;
    color: var(--accent-2);
    font-family: ui-monospace, 'Cascadia Code', Menlo, monospace;
    font-size: var(--text-sm);
    word-break: break-all;
}

pre.json, .json {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    white-space: pre-wrap;
    overflow: auto;
    color: var(--code-fg);
    font-size: var(--text-sm);
    font-family: ui-monospace, 'Cascadia Code', Menlo, monospace;
    line-height: 1.65;
}
pre.error, .error {
    background: rgba(239,68,68,.07);
    border: 1px solid rgba(239,68,68,.2);
    border-radius: var(--r-md);
    padding: 14px 16px;
    color: #fca5a5;
    font-size: var(--text-sm);
    font-family: ui-monospace, Menlo, monospace;
    white-space: pre-wrap;
}
pre.json, pre.code, pre.error { white-space: pre-wrap; }
.hero-bg { display: none; } /* replaced by ::before/::after pseudos */

/* -- 8. SECTION WRAPPER --------------------------------------------------- */
.value, .features, .quickstart, .pg-callout,
.templates, .pricing, .faq, .cta {
    padding: clamp(56px,7vw,104px) 0;
    border-bottom: 1px solid var(--border);
}
.stats { padding: 40px 0; border-bottom: 1px solid var(--border); }

/* -- 9. VALUE PROPS ------------------------------------------------------- */
.vcard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px;
    box-shadow: 0 6px 18px rgba(15,23,42,.05);
    transition: border-color var(--dur), transform .22s var(--ease), box-shadow .22s;
}
.vcard:hover {
    border-color: rgba(99,102,241,.28);
    transform: translateY(-4px);
    box-shadow: var(--glow-accent);
}
.vcard h3 { font-size: var(--text-xl); font-weight: 700; margin-bottom: 12px; }
.vcard p  { color: var(--muted); margin-bottom: 18px; line-height: 1.75; }
.tick { padding-left: 22px; color: var(--muted); font-size: var(--text-sm); }
.tick li { margin: 9px 0; line-height: 1.6; }
.tick li::marker { color: var(--success); }

/* -- 10. FEATURE CARDS ---------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    box-shadow: 0 6px 18px rgba(15,23,42,.05);
    transition: border-color var(--dur), transform .22s var(--ease), box-shadow .22s, transform .12s ease;
}
.card:hover {
    border-color: rgba(124,92,255,.36);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 34px 64px rgba(12,21,40,.16), 0 10px 28px rgba(124,92,255,.12);
}
.feature .icon {
    width: 48px; height: 48px;
    border-radius: var(--r-sm);
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.18);
    display: grid; place-items: center;
    margin-bottom: 18px;
    font-size: 22px;
}
.feature h3 { font-size: var(--text-xl); font-weight: 700; margin-bottom: 10px; }
.feature p  { color: var(--muted); margin-bottom: 16px; line-height: 1.75; }
.feature p a { color: var(--accent-light); }
.feature p a:hover { text-decoration: underline; }

/* Tags */
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border-2);
    color: var(--muted);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    font-family: ui-monospace, Menlo, monospace;
}
.tags.tight .tag { padding: 3px 8px; font-size: 11px; }
.mt16 { margin-top: 16px; }
.sample { margin-top: 28px; }

/* -- 11. STATS ------------------------------------------------------------ */
/* Social proof / metrics bar */
.metrics {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
}
.metrics-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 32px;
    border-right: 1px solid var(--border);
}
.metric-item:last-child { border-right: none; }
@media (max-width: 700px) {
    .metric-item { padding: 12px 20px; border-right: none; border-bottom: 1px solid var(--border); width: 50%; }
    .metric-item:nth-child(even) { border-right: none; }
    .metric-item:nth-last-child(-n+2) { border-bottom: none; }
}
.metric-num {
    font-size: clamp(20px,2.5vw,28px); font-weight: 800; letter-spacing: -.03em;
    background: var(--grad-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.metric-label { color: var(--muted); font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* Section eyebrow label */
.section-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--accent-light);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    flex: 1;
    max-width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,.4));
}
.section-eyebrow::after { background: linear-gradient(90deg, rgba(99,102,241,.4), transparent); }

/* Feature card icon */
.feature-icon {
    width: 52px; height: 52px;
    border-radius: var(--r-md);
    display: grid; place-items: center;
    margin-bottom: 20px;
    font-size: 26px;
    position: relative;
    flex-shrink: 0;
}
.feature-icon.indigo  { background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.18); }
.feature-icon.cyan    { background: rgba(6,182,212,.1);  border: 1px solid rgba(6,182,212,.18); }
.feature-icon.violet  { background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.18); }
.feature-icon.emerald { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.18); }
.feature-icon.pink    { background: rgba(244,114,182,.1);border: 1px solid rgba(244,114,182,.18);}

/* Inline code highlight */
code {
    color: var(--accent-2);
    background: rgba(6,182,212,.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: .85em;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    text-align: center;
}
.stat .num {
    font-size: 40px; font-weight: 800; letter-spacing: -.04em;
    background: var(--grad-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat .cap { color: var(--muted); font-size: var(--text-sm); margin-top: 6px; }

/* -- 12. QUICKSTART ------------------------------------------------------- */
.steps { padding-left: 0; margin: 20px 0; counter-reset: step; list-style: none; }
.steps li {
    margin: 16px 0; line-height: 1.75; color: var(--fg);
    display: flex; align-items: flex-start; gap: 14px;
    counter-increment: step;
}
.steps li::before {
    content: counter(step);
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 26px; height: 26px; border-radius: 50%;
    background: rgba(99,102,241,.15); border: 1px solid rgba(99,102,241,.3);
    color: var(--accent-light); font-size: var(--text-xs); font-weight: 800;
    flex-shrink: 0; margin-top: 3px;
}
.steps a { color: var(--accent-light); }
.steps code { color: var(--accent-2); background: rgba(6,182,212,.08); padding: 1px 6px; border-radius: 4px; }

/* Code accordion */
.qa {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin: 10px 0;
    overflow: hidden;
}
.qa > summary {
    cursor: pointer;
    font-weight: 600;
    font-size: var(--text-sm);
    padding: 12px 16px;
    background: var(--surface-2);
    color: var(--fg);
    list-style: none;
    display: flex; align-items: center; gap: 8px;
    transition: background var(--dur);
    user-select: none;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary::before {
    content: '\25b6';
    font-size: 9px; opacity: .45;
    transition: transform .18s var(--ease-out);
    flex-shrink: 0;
}
.qa[open] > summary::before { transform: rotate(90deg); opacity: .8; }
.qa > summary:hover { background: rgba(99,102,241,.07); }
.qa > *:not(summary) { padding: 0; }
.qa > div { padding: 14px 16px; color: var(--muted); font-size: var(--text-sm); line-height: 1.7; }
.qa > div a { color: var(--accent-light); }
.qa > div code { color: var(--accent-2); background: rgba(6,182,212,.08); padding: 1px 6px; border-radius: 4px; }

pre.code-block {
    background: var(--code-bg);
    color: var(--code-fg);
    padding: 16px 18px;
    font-size: var(--text-sm);
    font-family: ui-monospace, 'Cascadia Code', Menlo, monospace;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.65;
    border-top: 1px solid var(--border);
}
pre.code { background: var(--code-bg); color: var(--code-fg); padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--border); font-size: var(--text-sm); }

/* -- 13. PLAYGROUND CALLOUT ----------------------------------------------- */
.pg-callout-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px; align-items: center;
    background: var(--grad-subtle);
    border: 1px solid rgba(99,102,241,.18);
    border-radius: var(--r-2xl);
    padding: clamp(24px,3vw,44px);
}
@media (max-width: 900px) {
    .pg-callout-inner { grid-template-columns: 1fr; text-align: center; }
    .pg-callout-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
}
.pg-callout-icon { font-size: 48px; line-height: 1; }
.pg-callout-copy h3 { font-size: var(--text-xl); font-weight: 700; margin-bottom: 8px; }
.pg-callout-copy p  { color: var(--muted); font-size: var(--text-base); line-height: 1.75; }
.pg-callout-cta { display: flex; flex-direction: column; gap: 10px; }

/* -- 14. TEMPLATES -------------------------------------------------------- */
.templates { position: relative; }
.templates-bg { display: none; } /* removed; we use the section ::before on dark bg */

.pillbar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 0 32px; }
.pill {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 6px 16px;
    border-radius: var(--r-pill);
    font-size: var(--text-sm); font-weight: 600;
    cursor: pointer;
    transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.pill:hover { border-color: var(--border-2); color: var(--fg); }
.pill.active {
    background: rgba(99,102,241,.12);
    border-color: rgba(99,102,241,.3);
    color: var(--accent-light);
}

.template-grid { align-items: stretch; }
.tcard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px;
    display: flex; flex-direction: column; gap: 12px;
    box-shadow: 0 6px 18px rgba(15,23,42,.05);
    transition: border-color var(--dur), transform .22s var(--ease);
}
.tcard:hover { border-color: rgba(99,102,241,.25); transform: translateY(-3px); }
.tcard-h    { display: flex; align-items: center; gap: 12px; }
.tcard-icon { width: 38px; height: 38px; display: grid; place-items: center; font-size: 22px; }
.tcard-title{ margin: 0; font-size: var(--text-lg); font-weight: 700; }
.tcard-sub  { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.65; }
.tcard-f    { margin-top: auto; display: flex; justify-content: flex-end; }
.link { color: var(--accent-light); font-weight: 600; font-size: var(--text-sm); }
.link:hover { text-decoration: underline; }

/* -- 15. PRICING ---------------------------------------------------------- */
.plans-toolbar {
    display: flex; align-items: center; gap: 12px;
    justify-content: center; margin-bottom: 36px;
}
.plans-toolbar .label { color: var(--muted); font-size: var(--text-sm); }
.plans-grid {
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    padding-top: 16px; /* room for .plan-badge overhanging top of cards */
}
@media (max-width: 720px) { .plans-grid { grid-template-columns: 1fr; } }

.plan-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 32px 28px;
    display: flex; flex-direction: column; gap: 16px;
    box-shadow: 0 8px 20px rgba(15,23,42,.06);
    transition: border-color .22s, transform .22s var(--ease), box-shadow .22s;
}

.plan-card.plan-select {
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.plan-card.selected {
    border-color: rgba(99,102,241,.55);
    box-shadow: 0 0 0 2px rgba(99,102,241,.2), var(--shadow-lg);
}

.plan-card:hover {
    border-color: rgba(99,102,241,.22);
    transform: translateY(-5px);
    box-shadow: var(--glow-accent);
}
.plan-card.highlight {
    background: linear-gradient(160deg,rgba(99,102,241,.07),rgba(6,182,212,.03));
    border-color: rgba(99,102,241,.28);
    box-shadow: 0 0 0 1px rgba(99,102,241,.12), var(--shadow);
}
.plan-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--grad); color: #fff;
    font-size: 10px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; padding: 5px 18px;
    border-radius: var(--r-pill); white-space: nowrap;
    box-shadow: 0 4px 14px rgba(99,102,241,.45);
    z-index: 2;
}
.plan-head { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.plan-head h3 { margin: 0; font-size: var(--text-xl); font-weight: 700; line-height: 1.2; }
.plan-price {
    font-size: clamp(22px,2vw,30px); font-weight: 800; letter-spacing: -.03em;
    background: var(--grad-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
}
.plan-meta, .plan-body .meta {
    display: flex; flex-direction: column; gap: 4px;
    color: var(--muted); font-size: var(--text-sm);
}
.plan-features, .plan-body ul {
    margin: 0; padding: 0; list-style: none;
    display: flex; flex-direction: column; gap: 9px;
    color: var(--fg); font-size: var(--text-sm);
}
.plan-features li::before, .plan-body li::before {
    content: '\2713\00a0'; color: var(--success); font-weight: 800;
}
.plan-cta { margin-top: auto; }
.plan-choice-indicator {
    display: inline-flex;
    width: 20px;
    justify-content: center;
    font-size: 15px;
    margin-right: 4px;
    color: var(--accent-light);
}
.fineprint { color: var(--muted); font-size: var(--text-sm); }
.signup-terms {
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: var(--r-sm);
    padding: 14px;
    margin: 18px 0;
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.55;
}
.signup-terms strong {
    display: block;
    color: var(--fg);
    font-size: var(--text-sm);
    margin-bottom: 6px;
}
.signup-terms p { margin: 0 0 8px; }
.signup-terms ul {
    margin: 0;
    padding-left: 18px;
}
.signup-terms li { margin: 4px 0; }
.price.skeleton .sk-line  { height: 14px; background: rgba(15,23,42,.08); border-radius: 6px; margin: 8px 0; }
.price.skeleton .sk-block { background: rgba(15,23,42,.08); border-radius: var(--r-sm); }
.price.skeleton .sk-btn   { display: block; height: 38px; background: rgba(15,23,42,.08); border-radius: var(--r-md); margin-top: 14px; }

/* -- 16. CTA BANNER ------------------------------------------------------- */
.cta-inner {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg,rgba(99,102,241,.1),rgba(6,182,212,.06));
    border: 1px solid rgba(99,102,241,.18);
    border-radius: var(--r-2xl);
    padding: clamp(40px,5vw,72px);
    text-align: center;
}
.cta-inner::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%,rgba(99,102,241,.1),transparent);
    pointer-events: none;
}
.cta-inner h2 {
    position: relative; font-size: var(--text-3xl); font-weight: 800;
    letter-spacing: -.025em; margin-bottom: 14px;
}
.cta-inner p { color: var(--muted); max-width: 52ch; margin: 0 auto 28px; position: relative; font-size: var(--text-lg); }
.cta-inner .cta-row { justify-content: center; position: relative; }

/* -- 17. FOOTER ----------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 56px 0 28px;
    background: var(--bg-2);
}
.foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 32px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.foot-brand { max-width: 220px; }
.foot-logo {
    display: flex; align-items: center; gap: 9px;
    margin-bottom: 10px;
}
.foot-logo strong { font-weight: 800; font-size: var(--text-base); letter-spacing: -.02em; }
.foot-logo svg { color: var(--accent-light); }
.foot-brand small { color: var(--muted); font-size: var(--text-sm); line-height: 1.5; }
.foot-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 10px; min-width: 100px; }
.foot-heading {
    font-size: var(--text-xs); font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--fg); margin-bottom: 4px;
}
.foot-col a { color: var(--muted); font-size: var(--text-sm); transition: color var(--dur); }
.foot-col a:hover { color: var(--fg); }
.foot-bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    color: var(--very-muted); font-size: var(--text-xs);
}
/* keep legacy foot-links selectors working */
.foot-links { display: flex; gap: 24px; align-items: center; }
.foot-links a { color: var(--muted); font-size: var(--text-sm); transition: color var(--dur); }
.foot-links a:hover { color: var(--fg); }

.contact-direct {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 28px;
}
.contact-direct > div {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--r-sm);
    padding: 14px;
}
.contact-direct .k {
    display: block;
    color: var(--very-muted);
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.contact-direct a,
.contact-direct span:not(.k) {
    color: var(--fg);
    font-size: var(--text-sm);
    font-weight: 600;
}
@media (max-width: 720px) {
    .contact-direct { grid-template-columns: 1fr; }
}

/* -- 18. AUTH PAGES ------------------------------------------------------- */
.auth {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 64px);
    padding: clamp(28px,4vw,56px) 16px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse 85% 65% at 0% 0%, rgba(99,102,241,.12), transparent 64%),
        radial-gradient(ellipse 70% 52% at 100% 100%, rgba(14,165,233,.08), transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, white 12%), color-mix(in srgb, var(--bg-2) 94%, white 6%));
}

.auth::before,
.auth::after {
    content: "";
    position: absolute;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(18px);
    opacity: .8;
    z-index: 0;
}

.auth::before {
    top: 8%;
    left: max(-120px, -8vw);
    width: min(360px, 34vw);
    height: min(360px, 34vw);
    background: radial-gradient(circle, rgba(99,102,241,.18) 0%, rgba(99,102,241,.06) 44%, transparent 72%);
}

.auth::after {
    right: max(-140px, -10vw);
    bottom: 6%;
    width: min(420px, 38vw);
    height: min(420px, 38vw);
    background: radial-gradient(circle, rgba(14,165,233,.16) 0%, rgba(14,165,233,.05) 46%, transparent 74%);
}

.auth-layout {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 620px);
    gap: clamp(22px, 2.8vw, 34px);
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.auth-layout-tight {
    grid-template-columns: minmax(260px, .9fr) minmax(360px, 520px);
    width: min(980px, 100%);
}

.auth-side {
    border: 1px solid rgba(99,102,241,.24);
    border-radius: var(--r-xl);
    padding: clamp(28px,3vw,36px);
    background: linear-gradient(160deg, #1e293b, #312e81);
    box-shadow: 0 18px 40px rgba(15,23,42,.22);
    display: flex;
    flex-direction: column;
    color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.auth-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.14), transparent 48%);
    pointer-events: none;
}

.auth-side-kicker {
    margin: 0 0 10px;
    font-size: var(--text-xs);
    color: #dbeafe;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.auth-side h2 {
    margin: 0;
    font-size: clamp(28px, 2.7vw, 36px);
    line-height: 1.14;
    letter-spacing: -.03em;
    position: relative;
    z-index: 1;
}

.auth-side-sub {
    margin: 14px 0 18px;
    color: #e2e8f0;
    line-height: 1.65;
    font-size: var(--text-base);
    position: relative;
    z-index: 1;
}

.auth-side-points {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: #f8fafc;
    font-size: var(--text-sm);
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    background: color-mix(in srgb, var(--surface) 90%, white 10%);
    border: 1px solid color-mix(in srgb, var(--border) 88%, rgba(255,255,255,.06));
    border-radius: var(--r-xl);
    box-shadow: 0 20px 46px rgba(15,23,42,.12);
    padding: clamp(30px,3vw,40px);
    overflow: hidden;
    color: var(--fg);
    backdrop-filter: blur(10px);
}

.auth-card-compact {
    align-self: center;
}

.auth-card::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--grad);
    margin: calc(clamp(28px,3vw,38px) * -1) calc(clamp(28px,3vw,38px) * -1) 24px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--fg);
    font-size: var(--text-sm);
    font-weight: 800;
    letter-spacing: .02em;
    text-decoration: none;
}

.auth-brand svg {
    color: var(--accent-light);
}

.auth-brand:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 3px;
    border-radius: 6px;
}

.auth-title {
    font-size: clamp(34px, 2.8vw, 40px);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 10px;
    line-height: 1.08;
}

.auth-sub {
    color: var(--muted);
    font-size: var(--text-base);
    margin-bottom: 28px;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 8px;
}

.auth-foot {
    text-align: center;
    margin-top: 22px;
    color: var(--muted);
    font-size: var(--text-sm);
}

.auth-foot a {
    color: var(--fg);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.validation-summary-errors {
    margin: 0 0 14px;
    border-radius: var(--r-md);
    border: 1px solid rgba(185,28,28,.28);
    background: #fef2f2;
    color: #991b1b;
    padding: 10px 14px;
    font-size: var(--text-sm);
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
}

/* Form */
.field { margin-bottom: 18px; }
.field.row { display: flex; justify-content: space-between; align-items: center; }
.field label, .field > label {
    display: block; font-size: var(--text-sm); font-weight: 600;
    margin-bottom: 6px; color: var(--fg);
}
.label { font-size: var(--text-sm); font-weight: 600; color: var(--fg); }

.input {
    width: 100%; padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--border) 92%, rgba(255,255,255,.08));
    border-radius: var(--r-md);
    background: color-mix(in srgb, var(--surface-2) 92%, white 8%);
    color: var(--fg);
    font-size: var(--text-sm); font-family: inherit;
    transition: border-color var(--dur), box-shadow var(--dur), background-color var(--dur), transform var(--dur);
    outline: none;
}
.input:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(79,70,229,.20);
}
.input::placeholder { color: var(--very-muted); }

.input-wrap:focus-within .input {
    background: color-mix(in srgb, var(--surface) 96%, white 4%);
}

.muted {
    color: var(--muted);
    font-size: var(--text-sm);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.muted:hover {
    color: var(--fg);
}

.input-append:focus-visible,
.auth-foot a:focus-visible,
.muted:focus-visible,
.check:focus-within,
.plan-select:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.validation-message {
    color: #b91c1c;
    font-size: var(--text-xs);
    margin-top: 6px;
    display: block;
}

@media (max-width: 980px) {
    .auth-layout,
    .auth-layout-tight {
        grid-template-columns: 1fr;
    }

    .auth-side {
        order: 2;
    }
}

.input-wrap { position: relative; }
.input-append {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; color: var(--muted);
    cursor: pointer; padding: 6px 10px; border-radius: var(--r-sm);
    font-size: var(--text-sm); font-family: inherit;
    transition: background var(--dur), color var(--dur), transform var(--dur);
}
.input-append:hover { background: color-mix(in srgb, var(--surface-2) 92%, transparent); color: var(--fg); }
.input-append:active { transform: translateY(-50%) scale(.98); }

.check { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: var(--text-sm); color: var(--fg); }
.check-box { width: 16px; height: 16px; accent-color: var(--accent); }
.consent-field {
    display: block;
}
.terms-consent {
    display: grid;
    grid-template-columns: 18px minmax(0,1fr);
    gap: 10px;
    align-items: start;
}
.terms-consent .check-box {
    margin-top: 2px;
    cursor: pointer;
}
.check-text {
    display: inline;
    margin: 0;
    cursor: pointer;
    user-select: none;
    color: var(--fg);
    font-size: var(--text-sm);
    font-weight: 600;
}
.policy-links {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.45;
}
.policy-links a {
    position: relative;
    z-index: 1;
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.policy-links span {
    margin: 0 6px;
    color: var(--very-muted);
}

/* Alerts */
.alert {
    padding: 12px 16px; border-radius: var(--r-md);
    border: 1px solid var(--border); margin-bottom: 16px;
    font-size: var(--text-sm); line-height: 1.55;
}
.alert.error   { background: #fef2f2; border-color: rgba(185,28,28,.28); color: #991b1b; }
.alert.success { background: #f0fdf4; border-color: rgba(21,128,61,.26); color: #166534; }

/* Password strength */
.pw-meter {
    height: 5px; background: color-mix(in srgb, var(--surface-2) 92%, rgba(255,255,255,.08));
    border-radius: var(--r-pill); overflow: hidden; margin-top: 8px;
}
.pw-meter .bar {
    height: 100%; width: 0%;
    transition: width .3s var(--ease-out), background .3s;
    border-radius: var(--r-pill);
}
.pw-meter .bar.weak     { background: var(--danger); }
.pw-meter .bar.fair     { background: var(--warning); }
.pw-meter .bar.good     { background: #10b981; }
.pw-meter .bar.strong   { background: var(--success); }
.pw-meter .bar.excellent{ background: #16a34a; }
.pw-hint { font-size: var(--text-xs); color: var(--muted); margin-top: 4px; display: block; }

/* Radio / segmented controls */
.radio-group {
    display: inline-flex; gap: 4px; align-items: center;
    background: color-mix(in srgb, var(--surface-2) 88%, white 12%);
    border: 1px solid color-mix(in srgb, var(--border) 92%, rgba(255,255,255,.08));
    padding: 4px; border-radius: var(--r-md);
    transition: border-color var(--dur), box-shadow var(--dur);
}
.radio-group label {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: var(--r-sm);
    cursor: pointer; user-select: none;
    font-size: var(--text-sm); font-weight: 500; color: var(--fg);
    transition: background var(--dur), color var(--dur), transform var(--dur);
}
.radio-group label:hover { background: color-mix(in srgb, var(--accent-light) 10%, var(--surface)); }
.radio-group:focus-within {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(79,70,229,.16);
}
.radio-group input[type="radio"] { accent-color: var(--accent-light); }

.signup-terms {
    background: color-mix(in srgb, var(--surface-2) 86%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 92%, rgba(255,255,255,.08));
    color: var(--muted);
}

.signup-terms strong,
.signup-terms p,
.signup-terms li,
.fineprint {
    color: inherit;
}

.plan-card.plan-select {
    color: var(--fg);
    background: color-mix(in srgb, var(--surface) 94%, white 6%);
}

.plan-card.plan-select.selected {
    border-color: color-mix(in srgb, var(--accent-light) 55%, var(--border));
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--accent-light) 7%, var(--surface)), color-mix(in srgb, var(--accent-2) 4%, var(--surface)));
    box-shadow: 0 14px 34px rgba(15,23,42,.10), 0 0 0 1px color-mix(in srgb, var(--accent-light) 18%, transparent);
}

.plan-card.plan-select .price,
.plan-card.plan-select .plan-head h3,
.plan-card.plan-select .plan-body ul,
.plan-card.plan-select .plan-foot {
    color: inherit;
}

@media (prefers-reduced-motion: reduce) {
    .auth-card,
    .plan-card,
    .input,
    .input-append,
    .radio-group,
    .radio-group label {
        transition: none !important;
    }
}
.radio-group input[type="radio"] { accent-color: var(--accent); }
.radio-group input[type="radio"]:checked + span { font-weight: 700; color: var(--fg); }
.seg {
    display: inline-flex; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--r-md);
    padding: 3px; gap: 2px;
}
.seg button {
    background: transparent; border: none; border-radius: var(--r-sm);
    padding: 6px 16px; font-size: var(--text-sm); font-weight: 500;
    color: var(--muted); cursor: pointer;
    transition: background var(--dur), color var(--dur);
}
.seg button.active { background: var(--surface-2); color: var(--fg); font-weight: 600; }

/* -- 19. DASHBOARD -------------------------------------------------------- */
.dash { padding: 40px 0; }
.dash-hero { margin-bottom: 32px; position: relative; }
.dash-hero-top { position: relative; z-index: 1; padding: 32px 0 24px; }
.glow {
    position: absolute; top: -30px; left: -50px;
    width: 360px; height: 240px;
    background: radial-gradient(ellipse 100% 100% at 30% 50%,rgba(99,102,241,.1),transparent 70%);
    pointer-events: none;
}
.divider { height: 1px; background: linear-gradient(90deg,var(--accent) 0%,transparent 60%); opacity: .25; }

/* Tile grid */
.tiles { display: grid; gap: 16px; margin-bottom: 24px; }
.tiles-kpis { grid-template-columns: repeat(3,1fr); }
.tiles-keys { grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); }
@media (max-width: 768px) { .tiles-kpis { grid-template-columns: 1fr; } }

.tile {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 20px;
    transition: border-color var(--dur), transform .2s var(--ease);
}
.tile:hover { border-color: var(--border-2); }
.tile-kpi.url { overflow: hidden; }
.tile-head {
    display: flex; align-items: center; gap: 8px;
    color: var(--muted); font-size: var(--text-sm); font-weight: 500; margin-bottom: 12px;
}
.tile-icon  { font-size: 18px; }
.tile-label { color: var(--muted); font-size: var(--text-sm); }
.tile-value {
    font-size: 34px; font-weight: 800; letter-spacing: -.03em;
    background: var(--grad-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tile-value.mono.small {
    font-size: var(--text-sm); font-weight: 500;
    background: none; -webkit-text-fill-color: var(--muted);
    letter-spacing: 0; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; display: block;
    font-family: ui-monospace, Menlo, monospace;
}
.tile-key { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--success); box-shadow: 0 0 6px var(--success); flex-shrink: 0;
}
.tile-key-head { display: flex; align-items: center; gap: 10px; }
.key { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.key-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.title { font-weight: 700; font-size: var(--text-base); }

/* Skeleton shimmer */
.tile.skeleton { position: relative; overflow: hidden; }
.tile.skeleton::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg,transparent 0%,rgba(255,255,255,.04) 50%,transparent 100%);
    animation: shimmer 1.8s infinite;
}
.sk-line  { height: 12px; background: rgba(255,255,255,.05); border-radius: var(--r-sm); margin: 8px 0; }
.sk-block { background: rgba(255,255,255,.05); border-radius: var(--r-sm); }
.sk-btn   { display: block; height: 32px; background: rgba(255,255,255,.05); border-radius: var(--r-md); }
.sk-btn.wide { min-width: 120px; }
@keyframes shimmer { from { transform:translateX(-100%); } to { transform:translateX(100%); } }

/* -- 20. SERVICES PAGE ---------------------------------------------------- */
.svc-hero {
    padding: 56px 0 28px; border-bottom: 1px solid var(--border);
    text-align: center;
}
.svc-list { padding: 48px 0; }
.svc-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-xl); padding: 28px;
    display: flex; flex-direction: column; gap: 14px;
    transition: border-color var(--dur), transform .22s var(--ease);
}
.svc-card:hover { border-color: rgba(99,102,241,.25); transform: translateY(-3px); }
.svc-head { display: flex; align-items: center; gap: 14px; }
.svc-icon { width: 42px; height: 42px; display: grid; place-items: center; font-size: 24px; }
.svc-title{ margin: 0; font-size: var(--text-xl); font-weight: 700; }
.svc-sub  { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.svc-desc { color: var(--muted); font-size: var(--text-sm); line-height: 1.75; }
.svc-endpoint { margin-top: 8px; }
.svc-endpoint .kv { margin-top: 8px; }
.svc-endpoint .k { display: block; font-size: var(--text-xs); color: var(--muted); margin-bottom: 4px; letter-spacing: .06em; text-transform: uppercase; }
.svc-endpoint .v { font-weight: 700; font-family: ui-monospace, Menlo, monospace; font-size: var(--text-sm); color: var(--accent-2); }
.svc-ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: var(--text-sm); }
.svc-ul li { margin: 7px 0; }
.svc-actions { display: flex; gap: 10px; margin-top: auto; }
.svc .link, .svc-card .link { color: var(--accent-light); font-weight: 600; }

/* -- 21. SERVICE DOC PAGES ------------------------------------------------ */
.svc-doc { padding: 40px 0; }
.crumb {
    color: var(--muted); font-size: var(--text-sm);
    display: inline-flex; align-items: center; gap: 4px;
    margin-bottom: 18px;
    transition: color var(--dur);
}
.crumb:hover { color: var(--fg); }
.endpoint { margin: 18px 0; }
.endpoint .k { font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; display: block; }
.section-h {
    font-size: var(--text-2xl); font-weight: 700; letter-spacing: -.02em;
    margin: 36px 0 18px; padding-top: 10px;
    border-top: 1px solid var(--border);
}
.section-h:first-of-type { border-top: none; margin-top: 24px; }

.param-table, .err-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); margin: 14px 0; }
.param-table th, .err-table th {
    text-align: left; padding: 10px 14px;
    border-bottom: 1px solid var(--border-2);
    color: var(--muted); font-size: var(--text-xs); font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    background: var(--surface-2);
}
.param-table td, .err-table td {
    padding: 10px 14px; border-bottom: 1px solid var(--border);
    vertical-align: top; line-height: 1.55;
}
.param-table tr:last-child td, .err-table tr:last-child td { border-bottom: none; }
.param-table tr:hover td, .err-table tr:hover td { background: rgba(255,255,255,.015); }

.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: var(--text-sm); }
@media (max-width: 1000px) { .form-grid { grid-template-columns: 1fr 1fr; } }

.trycard {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 22px; margin-top: 22px;
}
.try-actions {
    display: flex; gap: 10px; align-items: center;
    margin: 12px 0; flex-wrap: wrap;
}
.copied { color: var(--success); font-size: var(--text-sm); font-weight: 600; }

/* -- 22. PLANS PAGE ------------------------------------------------------- */
.page-title { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -.025em; margin-bottom: 8px; }
.page-sub   { color: var(--muted); margin-bottom: 36px; }
.plan-body .meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: var(--text-sm); margin: 4px 0 10px; }
.plan-body ul   { margin: 0; padding-left: 20px; }
.plan-body li   { margin: 6px 0; font-size: var(--text-sm); }
.plan-body .meta{ display: flex; gap: 12px; }
.plan-foot      { margin-top: 10px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--text-sm); }

/* -- 23. KEYCARD (legacy dashboard) -------------------------------------- */
.keycard {
    display: grid; gap: 16px; grid-template-columns: 1.1fr .9fr;
    margin-bottom: 20px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px;
}
@media (max-width: 1000px) { .keycard { grid-template-columns: 1fr; } }
.key-meta .k, .key-help .k { font-size: var(--text-xs); color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.svc-manage .section-title { margin: 16px 0 14px; }
.svc-manage-card { display: flex; flex-direction: column; gap: 10px; }
.svc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* -- 24. PER-THEME OVERRIDES ---------------------------------------------- */

/* Dark theme - body background & key structural overrides */
body.theme-dark {
    background:
        radial-gradient(ellipse 70% 50% at 5% -5%, rgba(124,92,255,.10), transparent 55%),
        radial-gradient(ellipse 55% 40% at 95% 5%, rgba(6,182,212,.06), transparent 55%),
        var(--bg);
}
body.theme-dark .topbar {
    background: rgba(9,9,11,.88);
    border-bottom: 1px solid rgba(255,255,255,.05);
    box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 8px 24px rgba(0,0,0,.4);
}
@media (max-width: 900px) {
    body.theme-dark .links {
        background: rgba(9,9,11,.97);
        border-bottom-color: rgba(255,255,255,.05);
    }
}
body.theme-dark .hero {
    border-bottom-color: rgba(255,255,255,.05);
}
body.theme-dark .hero::before {
    background:
        radial-gradient(ellipse 85% 55% at 15% 5%,  rgba(124,92,255,.16) 0%, transparent 55%),
        radial-gradient(ellipse 65% 45% at 85% 15%, rgba(6,182,212,.09) 0%, transparent 55%),
        radial-gradient(ellipse 65% 65% at 55% 90%, rgba(139,92,246,.09) 0%, transparent 55%);
}
body.theme-dark .metrics    { background: var(--bg-2); }
body.theme-dark .footer     { background: var(--bg-2); }
body.theme-dark .dd-menu    { background: #1a1a1f; border-color: rgba(255,255,255,.07); }
body.theme-dark .hero-card  { background: var(--surface); }
body.theme-dark .auth-card  { background: var(--surface); }

/* Warm theme overrides */
body.theme-warm {
    background:
        radial-gradient(ellipse 60% 40% at 8% -5%, rgba(249,115,22,.14), transparent 50%),
        radial-gradient(ellipse 50% 36% at 92% 8%, rgba(236,72,153,.09), transparent 50%),
        var(--bg);
}
body.theme-warm .topbar {
    background: rgba(253,245,236,.94);
    border-bottom-color: rgba(140,60,10,.14);
}
@media (max-width: 900px) {
    body.theme-warm .links { background: rgba(253,245,236,.97); }
}
body.theme-warm .hero::before {
    background:
        radial-gradient(ellipse 85% 55% at 15% 5%,  rgba(249,115,22,.2) 0%, transparent 55%),
        radial-gradient(ellipse 65% 45% at 85% 15%, rgba(236,72,153,.13) 0%, transparent 55%),
        radial-gradient(ellipse 65% 65% at 55% 90%, rgba(251,191,36,.1) 0%, transparent 55%);
}

/* Neutral theme overrides */
body.theme-neutral {
    background:
        radial-gradient(ellipse 60% 40% at 8% -5%, rgba(59,130,246,.08), transparent 50%),
        radial-gradient(ellipse 50% 36% at 92% 8%, rgba(139,92,246,.06), transparent 50%),
        var(--bg);
}
body.theme-neutral .topbar {
    background: rgba(238,241,246,.94);
    border-bottom-color: rgba(30,40,55,.12);
}
@media (max-width: 900px) {
    body.theme-neutral .links { background: rgba(238,241,246,.97); }
}

/* -- 25. THEME PICKER ----------------------------------------------------- */
.theme-dd .theme-trigger { padding: 5px 8px; }
.theme-trigger > svg     { display: block; }

.theme-menu { min-width: 180px; padding: 12px; }
.theme-menu-label {
    display: block;
    font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    color: var(--very-muted); padding: 0 2px 10px;
}
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.theme-swatch {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 10px 8px; border-radius: var(--r-sm);
    border: 1.5px solid transparent;
    cursor: pointer; background: transparent;
    font-size: 11px; font-weight: 600; color: var(--muted);
    transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.theme-swatch:hover  { background: rgba(99,102,241,.07); border-color: var(--border); color: var(--fg); }
.theme-swatch.active { border-color: var(--accent-light); background: rgba(99,102,241,.08); color: var(--accent-light); }

.swatch-dot {
    width: 28px; height: 28px; border-radius: 50%;
    flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,.16);
}
.swatch-cool    { background: linear-gradient(135deg, #cfdcf1 0%, #7c5cff 100%); }
.swatch-neutral { background: linear-gradient(135deg, #e9eef6 0%, #60a5fa 100%); }
.swatch-warm    { background: linear-gradient(135deg, #fdf5ec 0%, #f97316 100%); }
.swatch-dark    { background: linear-gradient(135deg, #131316 0%, #a78bfa 100%); }

/* dark theme swatch hover adjustments */
body.theme-dark .theme-swatch:hover  { background: rgba(124,92,255,.08); border-color: rgba(255,255,255,.08); }
body.theme-dark .theme-swatch.active { border-color: var(--accent-light); background: rgba(124,92,255,.1); }

/* -- 26. ANIMATIONS + ENTER EFFECTS -------------------------------------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .4s var(--ease-out) both; }

/* ================================================================
   § 27  UNIVERSAL UI ENHANCEMENTS — all themes, all components
   ================================================================ */

/* —— SMOOTH THEME SWITCH (passive containers only) ——————————————————— */
body,
.topbar, .footer, .metrics,
.dd-menu, .qa, .qa > summary, .qa > div,
.input, .seg, .seg button, .radio-group,
.alert, .stat, .trycard, .keycard, .auth-card,
.eyebrow, .chip, .chips li, .pill, .tag,
.dd-item, .lnk, .dd-trigger, .svc-title, .tile-head {
    transition:
        background-color .22s var(--ease-out),
        border-color      .18s var(--ease-out),
        color             .14s ease;
}

/* —— TAGS — visible on ALL light/dark themes ————————————————————— */
.tag {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--muted);
}

/* —— SKELETONS — works on every theme ————————————————————————————— */
.sk-line, .sk-block, .sk-btn { background: var(--surface-2); }
.price.skeleton .sk-line,
.price.skeleton .sk-block,
.price.skeleton .sk-btn    { background: var(--surface-2); }
.tile.skeleton::after {
    background: linear-gradient(90deg,
        transparent 0%,
        color-mix(in srgb, var(--fg) 6%, transparent) 50%,
        transparent 100%);
}

/* —— CARD TOP-ACCENT LINE (gradient accent appears on hover) ——————— */
.card, .vcard, .tcard, .svc-card, .plan-card {
    position: relative;
}
/* plan-card must stay overflow:visible so the .plan-badge (top:-14px) isn't clipped */
.card, .vcard, .tcard, .svc-card { overflow: hidden; }
.plan-card { overflow: visible; }
/* Top accent — only for cards with overflow:hidden so corners clip cleanly */
.card::before, .vcard::before, .tcard::before,
.svc-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad);
    opacity: 0;
    z-index: 1;
    border-radius: inherit;
    transition: opacity .24s ease;
}
.card:hover::before, .vcard:hover::before, .tcard:hover::before,
.svc-card:hover::before { opacity: 1; }

/* —— CARD hover — theme-aware lift & glow —————————————————————————— */
.card {
    box-shadow: 0 2px 8px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.04);
    transition: transform .22s var(--ease), box-shadow .22s ease, border-color .18s ease;
}
.card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: color-mix(in srgb, var(--accent-light) 50%, transparent);
    box-shadow:
        0 24px 48px rgba(0,0,0,.09),
        0 8px 20px color-mix(in srgb, var(--accent-light) 16%, transparent);
}
.vcard {
    box-shadow: 0 2px 8px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.04);
    transition: transform .22s var(--ease), box-shadow .22s ease, border-color .18s ease;
}
.vcard:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--accent-light) 45%, transparent);
    box-shadow:
        0 20px 40px rgba(0,0,0,.08),
        0 6px 18px color-mix(in srgb, var(--accent-light) 14%, transparent);
}
.tcard {
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
    transition: transform .22s var(--ease), box-shadow .22s ease, border-color .18s ease;
}
.tcard:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent-light) 40%, transparent);
    box-shadow:
        0 16px 32px rgba(0,0,0,.07),
        0 5px 14px color-mix(in srgb, var(--accent-light) 12%, transparent);
}
.svc-card {
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
    transition: transform .22s var(--ease), box-shadow .22s ease, border-color .18s ease;
}
.svc-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent-light) 40%, transparent);
    box-shadow:
        0 16px 32px rgba(0,0,0,.07),
        0 5px 14px color-mix(in srgb, var(--accent-light) 12%, transparent);
}
.plan-card {
    box-shadow: 0 2px 8px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.04);
    transition: transform .22s var(--ease), box-shadow .22s ease, border-color .18s ease;
}
.plan-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--accent-light) 55%, transparent);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--accent-light) 18%, transparent),
        0 24px 48px rgba(0,0,0,.09),
        0 8px 22px color-mix(in srgb, var(--accent-light) 16%, transparent);
}
/* Featured plan card — badge + glowing border replace the top accent */
.plan-card.highlight {
    background: linear-gradient(160deg,
        color-mix(in srgb, var(--accent-light) 6%, var(--surface)),
        color-mix(in srgb, var(--accent-2) 4%, var(--surface)));
    border: 2px solid color-mix(in srgb, var(--accent-light) 32%, transparent);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--accent-light) 14%, transparent),
        0 0 24px color-mix(in srgb, var(--accent-light) 10%, transparent),
        0 10px 32px rgba(0,0,0,.07);
    padding-top: 36px;
}
.plan-card.highlight:hover {
    border-color: color-mix(in srgb, var(--accent-light) 52%, transparent);
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--accent-light) 18%, transparent),
        0 28px 56px rgba(0,0,0,.1),
        0 10px 24px color-mix(in srgb, var(--accent-light) 18%, transparent);
}

/* —— TILE (dashboard) —————————————————————————————————————————————— */
.tile {
    box-shadow: 0 1px 4px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.03);
    transition: transform .2s var(--ease), box-shadow .2s ease, border-color .18s ease;
}
.tile:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent-light) 38%, transparent);
    box-shadow:
        0 8px 24px rgba(0,0,0,.07),
        0 3px 10px rgba(0,0,0,.04);
}

/* —— STAT CARD ————————————————————————————————————————————————————— */
.stat {
    position: relative; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: transform .2s var(--ease), box-shadow .2s ease, border-color .18s ease;
}
.stat:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent-light) 35%, transparent);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

/* —— AUTH CARD ————————————————————————————————————————————————————— */
.auth-card {
    box-shadow:
        0 16px 48px rgba(0,0,0,.1),
        0 6px 20px rgba(0,0,0,.06);
}

/* —— HERO CARD ————————————————————————————————————————————————————— */
.hero-card {
    box-shadow:
        0 24px 64px rgba(0,0,0,.1),
        0 8px 24px color-mix(in srgb, var(--accent-light) 10%, transparent);
}

/* —— TRYCARD ——————————————————————————————————————————————————————— */
.trycard {
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: box-shadow .2s ease, border-color .18s ease;
}
.trycard:focus-within {
    border-color: color-mix(in srgb, var(--accent-light) 30%, transparent);
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

/* —— BUTTONS — enhanced ———————————————————————————————————————————— */
.btn {
    position: relative;
    overflow: hidden;
    letter-spacing: .012em;
}
/* sm size */
.btn.sm { padding: 7px 14px; font-size: var(--text-sm); }
/* Ghost adaptive */
.btn.ghost:hover {
    background: var(--surface-2);
    color: var(--fg);
    border-color: var(--border-2);
}
/* Primary shine sweep */
.btn.primary::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg,
        transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
    opacity: 0;
    transform: translateX(-100%) skewX(-15deg);
    transition: opacity .3s ease, transform .55s ease;
}
.btn.primary:hover::after {
    opacity: 1;
    transform: translateX(130%) skewX(-15deg);
}

/* —— INPUTS ———————————————————————————————————————————————————————— */
.input:hover { border-color: var(--border-2); }
.input:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-light) 14%, transparent);
    background: var(--surface);
}

/* —— EYEBROW / CHIP / CHIPS — theme-aware accent ——————————————————— */
.eyebrow {
    background: color-mix(in srgb, var(--accent-light) 10%, transparent);
    border-color: color-mix(in srgb, var(--accent-light) 22%, transparent);
}
.chip {
    background: color-mix(in srgb, var(--accent-light) 10%, transparent);
    border-color: color-mix(in srgb, var(--accent-light) 22%, transparent);
}
.chips li {
    background: color-mix(in srgb, var(--accent-light) 8%, transparent);
    border-color: color-mix(in srgb, var(--accent-light) 18%, transparent);
}

/* —— PILLS (active) ———————————————————————————————————————————————— */
.pill.active {
    background: color-mix(in srgb, var(--accent-light) 12%, transparent);
    border-color: color-mix(in srgb, var(--accent-light) 35%, transparent);
    color: var(--accent-light);
}
.pill:hover { background: var(--surface-2); color: var(--fg); }

/* —— NAV: active links, dropdown items ————————————————————————————— */
.dd-item:hover, .dd-item.active {
    background: color-mix(in srgb, var(--accent-light) 10%, transparent);
    color: var(--accent-light);
}
.lnk.active,
.links .dd-trigger.active,
.links .lnk.active {
    background: color-mix(in srgb, var(--accent-light) 10%, transparent);
    color: var(--accent-light);
}
.links .lnk:hover,
.links .dd .dd-trigger:hover {
    background: color-mix(in srgb, var(--fg) 5%, transparent);
    color: var(--fg);
}

/* —— QA ACCORDION ————————————————————————————————————————————————— */
.qa > summary:hover {
    background: color-mix(in srgb, var(--accent-light) 6%, var(--surface-2));
}

/* —— SECTION EYEBROW LINES — theme-aware ——————————————————————————— */
.section-eyebrow::before {
    background: linear-gradient(90deg, transparent,
        color-mix(in srgb, var(--accent-light) 45%, transparent));
}
.section-eyebrow::after {
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--accent-light) 45%, transparent), transparent);
}

/* —— FEATURE ICONS — theme-aware + hover ——————————————————————————— */
.feature-icon {
    box-shadow: 0 4px 12px rgba(0,0,0,.07);
    transition: transform .2s var(--ease), box-shadow .2s ease;
}
.feature-icon.indigo {
    background: color-mix(in srgb, var(--accent-light) 10%, transparent);
    border-color: color-mix(in srgb, var(--accent-light) 22%, transparent);
}

/* —— CTA INNER — theme-aware ——————————————————————————————————————— */
.cta-inner {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--accent-light) 8%, transparent),
        color-mix(in srgb, var(--accent-2) 6%, transparent));
    border-color: color-mix(in srgb, var(--accent-light) 18%, transparent);
}
.cta-inner::before {
    background: radial-gradient(ellipse 70% 60% at 50% 0%,
        color-mix(in srgb, var(--accent-light) 10%, transparent), transparent);
}

/* —— PG CALLOUT — theme-aware ————————————————————————————————————— */
.pg-callout-inner {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--accent-light) 7%, var(--surface)),
        color-mix(in srgb, var(--accent-2) 4%, var(--surface)));
    border-color: color-mix(in srgb, var(--accent-light) 16%, transparent);
}

/* —— METRIC ITEMS ————————————————————————————————————————————————— */
.metric-item { transition: transform .2s var(--ease-out); }
.metric-item:hover { transform: translateY(-2px); }

/* —— PARAM TABLE ————————————————————————————————————————————————— */
.param-table th, .err-table th {
    background: var(--surface-2);
    color: var(--fg);
}
.param-table tr:hover td, .err-table tr:hover td {
    background: color-mix(in srgb, var(--accent-light) 4%, transparent);
}

/* —— FOOTER — enhanced ———————————————————————————————————————————— */
.foot-col a:hover { color: var(--accent-light); }

/* ================================================================
   § 28  DARK THEME OVERRIDES — extra depth & contrast
   ================================================================ */
body.theme-dark .card,
body.theme-dark .vcard,
body.theme-dark .tcard,
body.theme-dark .svc-card {
    box-shadow: 0 1px 3px rgba(0,0,0,.5), 0 4px 16px rgba(0,0,0,.4);
}
body.theme-dark .card:hover,
body.theme-dark .vcard:hover,
body.theme-dark .tcard:hover,
body.theme-dark .svc-card:hover {
    box-shadow: 0 24px 56px rgba(0,0,0,.6), 0 8px 24px rgba(124,92,255,.15);
}
body.theme-dark .plan-card {
    box-shadow: 0 2px 8px rgba(0,0,0,.5), 0 6px 20px rgba(0,0,0,.4);
}
body.theme-dark .plan-card:hover {
    box-shadow: 0 24px 64px rgba(0,0,0,.65), 0 8px 24px rgba(124,92,255,.18);
}
body.theme-dark .plan-card.highlight {
    background: linear-gradient(160deg,rgba(124,92,255,.08),rgba(6,182,212,.04));
    border: 2px solid rgba(124,92,255,.22);
    box-shadow:
        0 0 0 1px rgba(124,92,255,.12),
        0 0 20px rgba(124,92,255,.08),
        0 10px 32px rgba(0,0,0,.4);
}
body.theme-dark .tile {
    box-shadow: 0 1px 4px rgba(0,0,0,.5), 0 4px 14px rgba(0,0,0,.4);
}
body.theme-dark .tile:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.55), 0 4px 14px rgba(124,92,255,.1);
}
body.theme-dark .auth-card {
    box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 8px 24px rgba(0,0,0,.5);
}
body.theme-dark .auth {
    background:
        radial-gradient(ellipse 72% 56% at 8% 0%, rgba(124,92,255,.18), transparent 58%),
        radial-gradient(ellipse 60% 44% at 100% 100%, rgba(34,211,238,.10), transparent 62%),
        linear-gradient(180deg, #0b0d14 0%, #10131b 42%, #121622 100%);
}
body.theme-dark .auth::before {
    background: radial-gradient(circle, rgba(124,92,255,.26) 0%, rgba(124,92,255,.09) 42%, transparent 72%);
    opacity: .9;
}
body.theme-dark .auth::after {
    background: radial-gradient(circle, rgba(34,211,238,.16) 0%, rgba(34,211,238,.06) 44%, transparent 74%);
    opacity: .85;
}
body.theme-dark .auth-card {
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--surface) 96%, rgba(255,255,255,.02)),
            color-mix(in srgb, var(--surface) 92%, rgba(0,0,0,.12)));
    border-color: rgba(255,255,255,.08);
}
body.theme-dark .auth-side {
    border-color: rgba(124,92,255,.24);
    box-shadow: 0 24px 56px rgba(0,0,0,.42), 0 8px 24px rgba(124,92,255,.12);
}
body.theme-dark .auth-side::after {
    background: radial-gradient(circle at 82% 18%, rgba(255,255,255,.10), transparent 48%);
}
body.theme-dark .hero-card {
    box-shadow: 0 28px 72px rgba(0,0,0,.65), 0 10px 28px rgba(124,92,255,.12);
}
body.theme-dark .input:focus {
    box-shadow: 0 0 0 3px rgba(167,139,250,.14);
    background: var(--surface-2);
}
body.theme-dark .sk-line,
body.theme-dark .sk-block,
body.theme-dark .sk-btn { background: rgba(255,255,255,.06); }
body.theme-dark .tile.skeleton::after {
    background: linear-gradient(90deg,
        transparent 0%, rgba(255,255,255,.04) 50%, transparent 100%);
}
body.theme-dark .btn.ghost:hover {
    background: rgba(255,255,255,.06);
    color: var(--fg);
}
body.theme-dark .tag { background: var(--surface-2); border-color: var(--border); }
body.theme-dark .code,
body.theme-dark pre.json,
body.theme-dark pre.code,
body.theme-dark pre.code-block { border-color: rgba(255,255,255,.07); }
body.theme-dark .qa { border-color: var(--border); }
body.theme-dark .qa > summary { background: var(--surface-2); }
body.theme-dark .cta-inner { border-color: rgba(167,139,250,.18); }
body.theme-dark .pg-callout-inner { border-color: rgba(167,139,250,.18); }
body.theme-dark .section-eyebrow::before,
body.theme-dark .section-eyebrow::after { opacity: .7; }
body.theme-dark .hero::after { opacity: .4; }
/* Code block enhanced in dark */
body.theme-dark pre.code-block { background: var(--code-bg); }
body.theme-dark .param-table th,
body.theme-dark .err-table th {
    background: var(--surface-2);
    border-bottom-color: var(--border-2);
}
body.theme-dark .param-table tr:hover td,
body.theme-dark .err-table tr:hover td { background: rgba(167,139,250,.04); }

/* ================================================================
   § 29  WARM THEME OVERRIDES
   ================================================================ */
body.theme-warm .card:hover,
body.theme-warm .vcard:hover {
    box-shadow:
        0 20px 40px rgba(100,30,5,.1),
        0 8px 20px rgba(249,115,22,.1);
}
body.theme-warm .plan-card:hover {
    box-shadow:
        0 20px 48px rgba(100,30,5,.12),
        0 8px 20px rgba(249,115,22,.12);
}
body.theme-warm .btn.primary {
    box-shadow: 0 8px 24px rgba(249,115,22,.35), 0 2px 6px rgba(0,0,0,.2);
}
body.theme-warm .btn.primary:hover {
    box-shadow: 0 14px 40px rgba(249,115,22,.45), 0 4px 10px rgba(0,0,0,.25);
}
body.theme-warm .eyebrow { color: var(--accent-light); }
body.theme-warm .plan-badge { box-shadow: 0 4px 14px rgba(249,115,22,.4); }

/* ================================================================
   § 30  NEUTRAL THEME OVERRIDES
   ================================================================ */
body.theme-neutral .card:hover,
body.theme-neutral .vcard:hover {
    box-shadow:
        0 20px 40px rgba(20,30,50,.1),
        0 8px 20px rgba(59,130,246,.08);
}
body.theme-neutral .plan-card:hover {
    box-shadow:
        0 20px 48px rgba(20,30,50,.1),
        0 8px 20px rgba(59,130,246,.1);
}
body.theme-neutral .btn.primary {
    box-shadow: 0 8px 24px rgba(59,130,246,.35), 0 2px 6px rgba(0,0,0,.15);
}
body.theme-neutral .btn.primary:hover {
    box-shadow: 0 14px 40px rgba(59,130,246,.45), 0 4px 10px rgba(0,0,0,.18);
}
body.theme-neutral .plan-badge { box-shadow: 0 4px 14px rgba(59,130,246,.4); }

/* ================================================================
   § 31  PUBLIC SITE REFRESH - accessibility, hierarchy, layout
   ================================================================ */
.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    transform: translateY(-140%);
    background: var(--fg);
    color: var(--bg);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: var(--shadow-lg);
}
.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent-2) 70%, white);
    outline-offset: 3px;
    border-radius: 6px;
}

#main-content:focus {
    outline: none;
}

.site-hero {
    min-height: calc(100vh - 64px);
    display: grid;
    align-items: center;
    padding: 88px 0 76px;
    background:
        radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--accent-light) 22%, transparent), transparent 30%),
        radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 28%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 54%, transparent), transparent 72%);
}

.site-hero::before {
    opacity: .55;
}

.site-hero .hero-dots {
    opacity: .35;
}

.site-hero .hero-inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
    gap: 64px;
}

.site-hero .hero-copy {
    max-width: 680px;
}

.site-hero .hero-copy .display {
    color: var(--fg);
    background: none;
    -webkit-text-fill-color: currentColor;
    text-shadow: none;
    font-size: 62px;
    line-height: 1.02;
    letter-spacing: 0;
    max-width: 11ch;
}

.site-hero .lead {
    max-width: 62ch;
    color: var(--muted);
}

.hero-proof-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    max-width: 560px;
}

.hero-proof-list li {
    min-height: 78px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    padding: 14px;
}

.hero-proof-list strong {
    display: block;
    color: var(--fg);
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: 0;
}

.hero-proof-list span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.site-hero .hero-card {
    border-radius: 18px;
    background: #09111f;
    border: 1px solid rgba(255,255,255,.14);
    color: #eaf2ff;
    box-shadow:
        0 36px 90px rgba(15,23,42,.34),
        0 0 0 1px rgba(255,255,255,.04) inset;
}

.site-hero .hero-card::before {
    height: 34px;
    background:
        radial-gradient(circle at 18px 50%, #ff5f57 0 5px, transparent 6px),
        radial-gradient(circle at 38px 50%, #ffbd2e 0 5px, transparent 6px),
        radial-gradient(circle at 58px 50%, #28c840 0 5px, transparent 6px),
        linear-gradient(180deg, #111a2b, #0b1322);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-hero .card-head {
    padding: 20px 22px 4px;
    justify-content: space-between;
}

.site-hero .card-head h3 {
    color: #f8fbff;
    font-size: 15px;
    letter-spacing: 0;
}

.site-hero .card-body {
    padding: 14px 22px 18px;
}

.site-hero .steps {
    margin: 6px 0 0;
}

.site-hero .steps li {
    color: #d9e7ff;
}

.site-hero .steps a {
    color: #8be9ff;
}

.site-hero .steps code {
    color: #c4fdf3;
    background: rgba(103,232,249,.1);
}

.site-hero .code {
    display: block;
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 14px;
    overflow-x: auto;
    background: rgba(103,232,249,.08);
    border: 1px solid rgba(103,232,249,.16);
    border-radius: 10px;
    color: #a7f3d0;
}

.site-hero pre.json {
    max-height: 330px;
    background: #050914;
    border-color: rgba(255,255,255,.08);
    color: #d9e7ff;
}

.site-hero .card-foot {
    border-top-color: rgba(255,255,255,.08);
}

.site-hero .micro {
    color: #9fb2d0;
}

.trust-strip {
    padding: 20px 0;
    background: color-mix(in srgb, var(--surface) 62%, transparent);
}

.trust-strip .metrics-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.trust-strip .metric-item {
    width: auto;
    border-right: 1px solid var(--border);
    border-bottom: 0;
    padding: 18px 16px;
}

.trust-strip .metric-label {
    text-align: center;
}

.design-section {
    padding: 88px 0;
}

.alt-band {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 42%, transparent), transparent);
}

.section-split {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(320px, .58fr);
    gap: 36px;
    align-items: end;
    margin-bottom: 34px;
}

.section-split .section-title,
.section-split .section-sub {
    text-align: left;
    margin-inline: 0;
}

.section-sub.left {
    text-align: left;
    margin-inline: 0;
}

.section-eyebrow-left,
.section-split .section-eyebrow {
    justify-content: flex-start;
}

.section-eyebrow-left::before,
.section-split .section-eyebrow::before {
    display: none;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 20px;
}

.bento-grid .vcard {
    min-height: 260px;
}

.bento-large {
    grid-row: span 2;
}

.bento-large p {
    max-width: 62ch;
}

.api-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.api-showcase .feature:first-child {
    grid-row: span 2;
}

.api-showcase .feature {
    min-height: 260px;
}

.code-showcase {
    margin-top: 22px;
}

.quickstart .container,
.quickstart .qa,
.quickstart pre,
.quickstart code {
    min-width: 0;
    max-width: 100%;
}

.home-secondary-section,
.pg-callout,
.templates {
    display: none;
}

.product-workflow .container {
    grid-template-columns: 1fr;
}

.workflow-preview-col {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(320px, 1fr);
    gap: 36px;
    align-items: center;
}

.workflow-preview-col .product-preview {
    grid-column: 2;
    grid-row: 1 / 6;
}

.workflow-preview-col .section-eyebrow,
.workflow-preview-col .section-title,
.workflow-preview-col > p,
.workflow-preview-col .workflow-steps {
    grid-column: 1;
}

.product-preview {
    background: #09111f;
    color: #eaf2ff;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 32px 80px rgba(15,23,42,.28);
}

.preview-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aab9d4;
    font-size: 13px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.preview-toolbar strong {
    color: #f8fbff;
    font-size: 14px;
}

.preview-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px rgba(34,197,94,.7);
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.preview-card,
.preview-playground {
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.045);
    border-radius: 12px;
    padding: 14px;
}

.preview-card.active {
    border-color: rgba(103,232,249,.35);
    background: rgba(103,232,249,.08);
}

.preview-label {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 8px;
}

.preview-card strong {
    display: block;
    color: #f8fbff;
    margin-bottom: 10px;
}

.preview-card code,
.preview-playground code {
    color: #a7f3d0;
    word-break: break-word;
}

.preview-playground {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 12px;
}

.preview-run {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 34px;
    border-radius: 9px;
    background: var(--grad);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.plan-note {
    margin: 10px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.card,
.vcard,
.tcard,
.svc-card,
.plan-card,
.qa,
.pg-callout-inner,
.cta-inner {
    border-radius: 12px;
}

.card:hover,
.vcard:hover,
.tcard:hover,
.svc-card:hover,
.plan-card:hover,
.tile:hover {
    transform: translateY(-3px);
}

.plan-card {
    min-height: 100%;
}

.pricing .section-sub {
    margin-bottom: 24px;
}

.payment-trust .vcard {
    min-height: 190px;
}

.footer {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 52%, transparent), var(--bg-2));
}

@media (max-width: 1080px) {
    .site-hero .hero-inner {
        grid-template-columns: 1fr;
    }
    .site-hero .hero-copy .display {
        max-width: 14ch;
        font-size: 52px;
    }
    .site-hero .hero-card {
        max-width: 720px;
    }
    .trust-strip .metrics-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .trust-strip .metric-item:nth-child(3) {
        border-right: 0;
    }
}

@media (max-width: 820px) {
    .site-hero {
        min-height: auto;
        padding: 58px 0 46px;
    }
    .site-hero .hero-copy .display {
        font-size: 42px;
        max-width: 100%;
    }
    .hero-proof-list,
    .bento-grid,
    .api-showcase,
    .section-split {
        grid-template-columns: 1fr;
    }
    .bento-large,
    .api-showcase .feature:first-child {
        grid-row: auto;
    }
    .design-section {
        padding: 64px 0;
    }
    .workflow-preview-col {
        grid-template-columns: 1fr;
    }
    .workflow-preview-col .product-preview,
    .workflow-preview-col .section-eyebrow,
    .workflow-preview-col .section-title,
    .workflow-preview-col > p,
    .workflow-preview-col .workflow-steps {
        grid-column: 1;
    }
    .workflow-preview-col .product-preview {
        grid-row: auto;
        order: 2;
    }
}

@media (max-width: 620px) {
    .site-hero .hero-copy .display {
        font-size: 34px;
    }
    .hero-proof-list,
    .trust-strip .metrics-row {
        grid-template-columns: 1fr;
    }
    .trust-strip .metric-item {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
    .trust-strip .metric-item:last-child {
        border-bottom: 0;
    }
    .site-hero .cta-row .btn,
    .cta-inner .cta-row .btn {
        width: 100%;
    }
    .preview-grid {
        grid-template-columns: 1fr;
    }
    .preview-playground {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
    .card:hover,
    .vcard:hover,
    .tcard:hover,
    .svc-card:hover,
    .plan-card:hover,
    .tile:hover,
    .btn:hover,
    .metric-item:hover {
        transform: none !important;
    }
}
.breadcrumb-trail {
    margin: 0 0 12px;
}

.breadcrumb-trail ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    color: var(--muted);
    font-size: var(--text-xs);
}

.breadcrumb-trail li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-trail li:not(:last-child)::after {
    content: ">";
    color: var(--very-muted);
}

.breadcrumb-trail a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb-trail a:hover {
    color: var(--fg);
}

.content-freshness {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: var(--text-xs);
}
