/* ============================================================
   SSHGrid — design system (v2)
   Dark, refined, motion-aware. Single stylesheet, no framework.
   ============================================================ */

:root {
    /* Brand */
    --brand:         #1a7f4c;
    --brand-hi:      #2da568;
    --brand-lo:      #156b3f;
    --brand-glow:    rgba(45, 165, 104, 0.18);
    --brand-dim:     rgba(45, 165, 104, 0.10);

    /* Surfaces (dark) */
    --bg-0:          #0a0d10;   /* page bg */
    --bg-1:          #11151a;   /* surface */
    --bg-2:          #161b21;   /* raised */
    --bg-3:          #1c232a;   /* hover/input */
    --bg-4:          #232c34;   /* selected */

    --line:          #1f262e;
    --line-strong:   #2a333c;
    --line-bright:   #3a4552;

    --text:          #eef2f6;
    --text-dim:      #a0acb7;
    --text-faint:    #5f6b76;

    --ok:            #34d399;
    --warn:          #f59e0b;
    --err:           #ef4444;

    --radius:        10px;
    --radius-lg:     16px;
    --radius-xl:     22px;

    --shadow-1:      0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(0,0,0,0.4);
    --shadow-2:      0 12px 32px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.3);
    --shadow-3:      0 30px 80px rgba(0,0,0,0.55), 0 8px 16px rgba(0,0,0,0.3);

    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; scroll-behavior: smooth; }

body {
    background:
        radial-gradient(1200px 600px at 50% -200px, rgba(45,165,104,0.06), transparent 60%),
        var(--bg-0);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
    font-feature-settings: "cv11", "ss01", "ss03";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}

a { color: var(--text); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--brand-hi); }
a.subtle { color: var(--text-dim); }
a.subtle:hover { color: var(--text); }

::selection { background: var(--brand); color: #fff; }

hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }

h1, h2, h3, h4 { letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 600; font-family: var(--sans); }
h1 { font-size: 60px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: 36px; line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: 20px; }
p  { color: var(--text-dim); margin: 0 0 1em; }
p.lede { font-size: 19px; color: var(--text); line-height: 1.6; }

code, pre, .mono { font-family: var(--mono); }
code { background: var(--bg-2); padding: 2px 7px; border-radius: 5px; color: var(--text); font-size: 13.5px; border: 1px solid var(--line); }
pre  { background: var(--bg-1); border: 1px solid var(--line); padding: 16px 18px; border-radius: var(--radius); overflow: auto; line-height: 1.55; font-size: 13px; }
pre code { background: transparent; padding: 0; border: 0; }

kbd {
    display: inline-block; padding: 1px 6px; font-family: var(--mono); font-size: 11px;
    background: var(--bg-2); border: 1px solid var(--line-strong); border-bottom-width: 2px;
    border-radius: 4px; color: var(--text-dim); vertical-align: 1px;
}

/* ---------- layout ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.tight { max-width: 760px; }
.container.narrow { max-width: 920px; }
.row { display: flex; gap: 24px; }
.row.wrap { flex-wrap: wrap; }
.col { flex: 1; }
.spacer { flex: 1; }
.center { text-align: center; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }

.tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; padding: 5px 12px; border-radius: 999px;
    background: var(--brand-dim); color: var(--brand-hi);
    letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
    border: 1px solid var(--brand-glow);
}
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-hi); box-shadow: 0 0 8px var(--brand-hi); }

.fadein   { animation: fadein .6s var(--ease) both; }
.fadeup   { animation: fadeup .7s var(--ease) both; }
@keyframes fadein { from {opacity:0} to {opacity:1} }
@keyframes fadeup { from {opacity:0; transform: translateY(12px)} to {opacity:1; transform: none} }

/* ---------- top nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10,13,16,0.7);
    backdrop-filter: saturate(140%) blur(16px);
    -webkit-backdrop-filter: saturate(140%) blur(16px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    height: 64px; display: flex; align-items: center; gap: 32px;
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
}
.nav .brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 15.5px; letter-spacing: -0.015em;
    color: var(--text);
}
.nav .brand:hover { color: var(--text); }
.nav .brand svg { display: block; }
.nav .brand span { line-height: 1; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-dim); font-size: 14px; font-weight: 500; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius); font-weight: 500;
    font-size: 14px; line-height: 1; cursor: pointer; border: 1px solid transparent;
    font-family: inherit;
    transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .04s ease, box-shadow .15s var(--ease);
    user-select: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--brand); color: #fff;
    box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 4px 14px rgba(26,127,76,.35);
}
.btn-primary:hover { background: var(--brand-lo); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 6px 20px rgba(26,127,76,.45); }
.btn-secondary { background: var(--bg-2); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--bg-3); color: var(--text); border-color: var(--line-bright); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-2); color: var(--text); }
.btn-sm  { padding: 7px 14px; font-size: 13px; }
.btn-lg  { padding: 14px 22px; font-size: 16px; }
.btn-xl  { padding: 17px 28px; font-size: 17px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-arrow { transition: transform .2s var(--ease); display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- cards ---------- */
.card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.card-hd { display:flex; align-items:center; justify-content:space-between; margin-bottom: 14px; }
.card-hd h3 { margin: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero-wrap { position: relative; overflow: hidden; }
.hero-glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 1100px; height: 700px;
    background: radial-gradient(closest-side, rgba(45,165,104,0.22), transparent 70%);
    z-index: -1; pointer-events: none;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask: radial-gradient(closest-side, #000 30%, transparent 80%);
    -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 80%);
    z-index: -1;
}
.hero { padding: 110px 0 80px; text-align: center; position: relative; }
.hero h1 { font-size: 64px; margin-bottom: 20px; }
.hero h1 .accent {
    background: linear-gradient(135deg, #34d399 0%, #1a7f4c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p.lede { max-width: 640px; margin: 0 auto 36px; font-size: 19px; color: var(--text-dim); }
.hero-actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-trust { margin-top: 22px; color: var(--text-faint); font-size: 13px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { color: var(--brand-hi); }

/* ---------- terminal preview ---------- */
.terminal {
    margin: 64px auto 0; max-width: 820px;
    background: var(--bg-1);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-3);
    overflow: hidden;
    position: relative;
}
.terminal::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 50%);
}
.terminal-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.terminal-bar .dot { width: 12px; height: 12px; border-radius: 50%; background: #3b454f; }
.terminal-bar .dot:nth-child(1) { background: #ff5f57; }
.terminal-bar .dot:nth-child(2) { background: #febc2e; }
.terminal-bar .dot:nth-child(3) { background: #28c840; }
.terminal-bar .title { margin: 0 auto; font-family: var(--mono); font-size: 12px; color: var(--text-faint); padding-right: 50px; }
.terminal-body {
    padding: 22px 26px; font-family: var(--mono); font-size: 13.5px; line-height: 1.8;
    text-align: left; min-height: 220px;
}
.terminal-body .you    { color: var(--text); }
.terminal-body .you::before { content: "you ›  "; color: var(--brand-hi); }
.terminal-body .agent  { color: var(--text-dim); }
.terminal-body .agent::before { content: "ops ›  "; color: var(--brand-hi); }
.terminal-body .ok     { color: var(--ok); }
.terminal-body .ok::before { content: "✓  "; }
.terminal-body .dim    { color: var(--text-faint); }
.terminal-body .cursor { display: inline-block; width: 7px; height: 16px; background: var(--brand-hi); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal-line { opacity: 0; animation: fadeup .5s var(--ease) forwards; }
.terminal-line:nth-child(1) { animation-delay: .3s; }
.terminal-line:nth-child(2) { animation-delay: 1.4s; }
.terminal-line:nth-child(3) { animation-delay: 2.4s; }
.terminal-line:nth-child(4) { animation-delay: 3.0s; }
.terminal-line:nth-child(5) { animation-delay: 3.5s; }
.terminal-line:nth-child(6) { animation-delay: 3.8s; }

/* ============================================================
   FEATURES + SECTIONS
   ============================================================ */
.section { padding: 110px 0; position: relative; }
.section-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--brand-hi); font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px;
}
.section-eyebrow::before {
    content: ""; width: 24px; height: 1px; background: var(--brand-hi);
}
.section-head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-head h2 { font-size: 40px; margin-bottom: 14px; }
.section-head p { font-size: 18px; color: var(--text-dim); margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
    padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.feature:hover { border-color: var(--line-bright); transform: translateY(-2px); }
.feature .ico {
    width: 42px; height: 42px; border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-glow), var(--brand-dim));
    color: var(--brand-hi);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    border: 1px solid var(--brand-glow);
}
.feature h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { font-size: 14.5px; margin: 0; line-height: 1.6; }

/* ---------- how it works (3 steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
    padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--bg-1); position: relative;
}
.step::before {
    counter-increment: step;
    content: "0" counter(step);
    position: absolute; top: 20px; right: 24px;
    font-family: var(--mono); font-size: 13px; color: var(--text-faint);
    letter-spacing: 0.05em;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; margin: 0; }
.step .ico {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--brand-dim); color: var(--brand-hi);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    border: 1px solid var(--brand-glow);
}

/* ---------- code showcase ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.showcase h3 { font-size: 26px; margin-bottom: 12px; }
.showcase p { font-size: 16px; }
.showcase .demo { border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-2); background: var(--bg-1); }
.showcase .demo-bar { padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
.showcase .demo pre { margin: 0; border: 0; background: transparent; padding: 18px 20px; font-size: 13px; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1050px; margin: 0 auto; }
.price-card {
    padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--bg-1); position: relative; transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.price-card:hover { border-color: var(--line-bright); }
.price-card.popular {
    border-color: var(--brand);
    background: linear-gradient(180deg, var(--brand-dim) 0%, var(--bg-1) 60%);
    box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 40px rgba(26,127,76,.15);
}
.price-card.popular::before {
    content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--brand); color: #fff; font-size: 11px; padding: 5px 12px; border-radius: 999px;
    font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.price-card h3 { font-size: 14px; color: var(--text-dim); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; }
.price-card .price { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.price-card .price small { font-size: 15px; color: var(--text-dim); font-weight: 400; letter-spacing: 0; }
.price-card .desc { color: var(--text-dim); font-size: 14px; margin-bottom: 26px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; }
.price-card li { padding: 9px 0; color: var(--text); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { color: var(--brand-hi); flex: 0 0 auto; margin-top: 2px; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { font-size: 13px; color: var(--text-dim); display: block; margin-bottom: 6px; font-weight: 500; }
.form input[type="text"],
.form input[type="email"],
.form input[type="password"] {
    width: 100%; padding: 12px 14px; font-size: 15px;
    background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--text);
    border-radius: var(--radius); font-family: inherit;
    transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.form input:focus { outline: none; border-color: var(--brand); background: var(--bg-3); box-shadow: 0 0 0 3px var(--brand-glow); }
.form .field { display: block; }
.form .row-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; }

.auth-wrap { max-width: 420px; margin: 100px auto; }
.auth-wrap .card { padding: 36px; }
.auth-wrap h2 { font-size: 26px; margin-bottom: 28px; letter-spacing: -0.02em; }
.auth-wrap .alt { margin-top: 22px; text-align: center; font-size: 14px; color: var(--text-dim); }
.auth-wrap .alt a { color: var(--brand-hi); font-weight: 500; }

/* Auth split layout */
.auth-split {
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 64px);
    align-items: center;
}
.auth-split .panel-l {
    padding: 60px 64px;
    border-right: 1px solid var(--line);
    background:
        radial-gradient(800px 400px at 0% 50%, rgba(45,165,104,0.07), transparent 60%),
        var(--bg-0);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex; align-items: center;
}
.auth-split .panel-l::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    mask: radial-gradient(closest-side, #000 50%, transparent 100%);
    -webkit-mask: radial-gradient(closest-side, #000 50%, transparent 100%);
    pointer-events: none;
}
.auth-split .panel-l-inner { position: relative; max-width: 460px; }
.auth-split .panel-l h1 { font-size: 38px; line-height: 1.1; margin-bottom: 16px; }
.auth-split .panel-l p { font-size: 16px; color: var(--text-dim); margin-bottom: 24px; }
.auth-split .panel-l .feat-list { margin: 24px 0 0; padding: 0; list-style: none; }
.auth-split .panel-l .feat-list li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 0; color: var(--text); font-size: 14.5px;
}
.auth-split .panel-l .feat-list svg {
    color: var(--brand-hi); flex: 0 0 auto; margin-top: 3px;
    background: var(--brand-dim); border-radius: 50%; padding: 4px;
    border: 1px solid var(--brand-glow); box-sizing: content-box;
}
.auth-split .panel-r {
    padding: 60px;
    display: flex; align-items: center; justify-content: center;
}
.auth-split .panel-r .card { width: 100%; max-width: 380px; padding: 0; border: 0; background: transparent; }
.auth-split .panel-r h2 { font-size: 28px; margin-bottom: 8px; }
.auth-split .panel-r .auth-sub { color: var(--text-dim); font-size: 14.5px; margin-bottom: 24px; }
.auth-split .form button[type="submit"] { padding: 13px 20px; font-size: 15px; }
.auth-split .alt {
    margin-top: 26px; padding-top: 22px;
    border-top: 1px solid var(--line);
    text-align: center; font-size: 14px; color: var(--text-dim);
}
.auth-split .alt a { color: var(--brand-hi); font-weight: 500; }

@media (max-width: 880px) {
    .auth-split { grid-template-columns: 1fr; min-height: 0; }
    .auth-split .panel-l { display: none; }
    .auth-split .panel-r { padding: 60px 24px 80px; }
}

/* ---------- footer ---------- */
.footer { padding: 64px 0 80px; border-top: 1px solid var(--line); margin-top: 100px; color: var(--text-faint); font-size: 13px; background: linear-gradient(180deg, transparent, rgba(45,165,104,0.025)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; font-weight: 600; }
.footer a { display: block; padding: 5px 0; color: var(--text-dim); font-size: 13.5px; }
.footer a:hover { color: var(--text); }
.footer .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 12.5px; }

/* ============================================================
   /chat — ChatGPT-style two-pane
   ============================================================ */
body.app {
    overflow: hidden;
    background: var(--bg-0);
}
.app-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
    overflow: hidden;
}
.app-side {
    background: var(--bg-1);
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column;
    min-height: 0; overflow: hidden;
}
.app-side .top { padding: 14px 12px 8px; display: flex; align-items: center; gap: 10px; }
.app-side .top .brand { font-weight: 600; display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--text); letter-spacing: -0.015em; }
.app-side .top .brand svg { display: block; }
.app-side .top .brand span { line-height: 1; }
.app-side .top .sidebar-btn {
    margin-left: auto; width: 32px; height: 32px; border-radius: 8px;
    background: transparent; border: 0; color: var(--text-dim); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.app-side .top .sidebar-btn:hover { background: var(--bg-2); color: var(--text); }

.new-chat {
    margin: 4px 12px 12px; padding: 11px 14px;
    border: 1px solid var(--line-strong); border-radius: 10px;
    color: var(--text); background: var(--bg-2); cursor: pointer;
    display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500;
    transition: background .15s var(--ease), border-color .15s var(--ease);
}
.new-chat:hover { background: var(--bg-3); border-color: var(--line-bright); }

.convo-list { flex: 1; overflow-y: auto; padding: 4px 8px 14px; }
.convo-section { padding: 14px 10px 6px; color: var(--text-faint); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.convo {
    padding: 9px 11px; border-radius: 8px; cursor: pointer;
    color: var(--text-dim); font-size: 14px;
    display: flex; align-items: center; gap: 9px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    text-decoration: none;
    transition: background .12s var(--ease), color .12s var(--ease);
}
.convo:hover { background: var(--bg-2); color: var(--text); }
.convo.is-active { background: var(--bg-3); color: var(--text); }
.convo .convo-agent {
    font-family: var(--mono); font-size: 9.5px; font-weight: 700;
    letter-spacing: .08em; padding: 2px 6px; border-radius: 4px;
    background: var(--bg-3); color: var(--text-dim);
    border: 1px solid var(--line); flex: 0 0 auto;
}
.convo.is-active .convo-agent { background: var(--brand-dim); color: var(--brand-hi); border-color: var(--brand-glow); }
.convo .convo-title { overflow: hidden; text-overflow: ellipsis; flex: 1; }

.app-side .bottom {
    border-top: 1px solid var(--line);
    padding: 12px;
}
.app-side .bottom .user-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px; border-radius: 10px; cursor: pointer;
    transition: background .12s var(--ease);
}
.app-side .bottom .user-row:hover { background: var(--bg-2); }
.app-side .bottom .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.app-side .bottom .who { font-size: 13.5px; line-height: 1.25; flex: 1; min-width: 0; }
.app-side .bottom .who div { color: var(--text); font-weight: 500; }
.app-side .bottom .who small { color: var(--text-faint); font-size: 11.5px; }

.app-main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; position: relative; }
.app-top {
    height: 56px; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; padding: 0 18px; gap: 16px;
    background: var(--bg-0); flex: 0 0 auto;
}
.app-top .title-area { display: flex; align-items: center; gap: 12px; }
.app-top .title-area strong { font-weight: 600; font-size: 14.5px; }

.agent-toggle {
    display: inline-flex; background: var(--bg-2); border-radius: 999px;
    padding: 4px; gap: 0; border: 1px solid var(--line);
}
.agent-toggle button {
    border: 0; background: transparent; color: var(--text-dim);
    padding: 6px 14px; border-radius: 999px; font-size: 13px; cursor: pointer; font-weight: 500;
    font-family: inherit;
    transition: background .15s var(--ease), color .15s var(--ease);
}
.agent-toggle button:hover { color: var(--text); }
.agent-toggle button.is-active { background: var(--brand); color: #fff; }

.app-top .right { margin-left: auto; display: flex; align-items: center; gap: 14px; color: var(--text-dim); font-size: 13px; }
.app-top .quota {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 12px; background: var(--bg-2); border: 1px solid var(--line);
    border-radius: 999px; font-size: 12.5px;
}
.app-top .quota .bar { width: 64px; height: 5px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.app-top .quota .bar > div { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-hi)); border-radius: 3px; transition: width .3s var(--ease); }

/* ---------- chat pane ---------- */
.chat-pane {
    flex: 1; overflow-y: auto;
    padding: 30px 0 24px;
    scroll-behavior: smooth;
}
.chat-inner { max-width: 760px; margin: 0 auto; padding: 0 28px; display: flex; flex-direction: column; gap: 26px; }

/* Empty state — "How can I help today?" */
.empty-state {
    max-width: 760px; margin: 0 auto; padding: 0 28px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: calc(100vh - 56px - 200px);
    text-align: center;
    animation: fadein .4s var(--ease);
}
.empty-state .es-logo {
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
}
.empty-state .es-logo svg { display: block; }
.empty-state h1 {
    font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px;
    background: linear-gradient(135deg, #eef2f6, #a0acb7);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.empty-state p { font-size: 15px; color: var(--text-dim); margin-bottom: 36px; }

.suggestions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    width: 100%; max-width: 660px;
}
.suggestion {
    text-align: left; padding: 14px 16px;
    background: var(--bg-1); border: 1px solid var(--line);
    border-radius: 12px; cursor: pointer;
    transition: border-color .15s var(--ease), background .15s var(--ease), transform .04s ease;
    font-family: inherit; color: var(--text); font-size: 14px;
}
.suggestion:hover { border-color: var(--brand); background: var(--bg-2); }
.suggestion:active { transform: scale(.99); }
.suggestion .s-title { font-weight: 600; margin-bottom: 4px; color: var(--text); }
.suggestion .s-sub { color: var(--text-faint); font-size: 13px; line-height: 1.45; }

/* ---------- messages ---------- */
.msg { display: flex; gap: 14px; align-items: flex-start; animation: fadeup .35s var(--ease); }
.msg .av {
    width: 28px; height: 28px; border-radius: 6px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
}
.msg.user .av {
    background: var(--bg-3); color: var(--text-dim); border: 1px solid var(--line-strong);
}
.msg.agent .av {
    background: linear-gradient(135deg, var(--brand), var(--brand-hi));
    color: #fff; box-shadow: 0 2px 8px rgba(26,127,76,.4);
}
.msg .bubble { flex: 1; font-size: 15.5px; line-height: 1.7; color: var(--text); min-width: 0; }
.msg .bubble pre { font-size: 13px; margin: 12px 0; }
.msg .bubble code { font-size: 13px; }
.msg .bubble p { margin: 0 0 .8em; color: var(--text); }
.msg .bubble p:last-child { margin-bottom: 0; }
.msg .bubble ol, .msg .bubble ul { padding-left: 22px; color: var(--text); margin: 8px 0; }
.msg .bubble li { margin: 4px 0; }
.msg .bubble a { color: var(--brand-hi); }
.msg .actions {
    display: flex; gap: 4px; margin-top: 10px;
    opacity: 0; transition: opacity .15s var(--ease);
}
.msg:hover .actions { opacity: 1; }
.msg .actions button {
    border: 0; background: transparent; color: var(--text-faint);
    width: 28px; height: 28px; border-radius: 6px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.msg .actions button:hover { background: var(--bg-2); color: var(--text); }

.msg .meta-line { color: var(--text-faint); font-size: 12px; margin-top: 4px; font-family: var(--mono); }
.msg .status-done { color: var(--ok); }

/* typing dots */
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 0; }
.typing span {
    width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint);
    animation: typing 1.2s var(--ease) infinite;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- composer ---------- */
.composer {
    flex: 0 0 auto; background: var(--bg-0);
    padding: 14px 0 20px;
    position: relative;
}
.composer::before {
    content: ""; position: absolute; top: -32px; left: 0; right: 0; height: 32px;
    background: linear-gradient(180deg, transparent, var(--bg-0));
    pointer-events: none;
}
.composer-inner { max-width: 760px; margin: 0 auto; padding: 0 28px; }
.composer-box {
    display: flex; align-items: flex-end; gap: 8px;
    background: var(--bg-2);
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    padding: 8px 8px 8px 18px;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
    box-shadow: var(--shadow-2);
}
.composer-box:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-glow), var(--shadow-2);
}
.composer-box textarea {
    flex: 1; resize: none; border: 0; background: transparent;
    color: var(--text); font-family: inherit; font-size: 15.5px;
    outline: none; padding: 10px 4px;
    min-height: 24px; max-height: 240px; line-height: 1.55;
}
.composer-box textarea::placeholder { color: var(--text-faint); }
.composer-actions { display: flex; gap: 4px; align-items: center; padding-bottom: 4px; }
.composer-actions .attach {
    width: 36px; height: 36px; border-radius: 50%;
    background: transparent; border: 0; color: var(--text-dim); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s var(--ease), color .15s var(--ease);
}
.composer-actions .attach:hover { background: var(--bg-3); color: var(--text); }
.composer-actions .send {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--brand); border: 0; color: #fff; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s var(--ease), transform .04s ease;
}
.composer-actions .send:hover { background: var(--brand-lo); }
.composer-actions .send:active { transform: scale(.95); }
.composer-actions .send:disabled { background: var(--bg-3); color: var(--text-faint); cursor: not-allowed; }
.composer-hint {
    color: var(--text-faint); font-size: 12px; margin-top: 10px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 10px; flex-wrap: wrap;
}
.composer-hint kbd { margin: 0 2px; }
.composer-hint .char-count { color: var(--text-faint); }
@media (max-width: 600px) { .composer-hint { justify-content: center; text-align: center; } .composer-hint .char-count { display: none; } }

/* stop button (chat) — hidden by default, shown when streaming */
.composer-actions .send.stop { background: var(--bg-3); color: var(--text); display: none; }
.composer-actions .send.stop.show { display: inline-flex; animation: fadein .2s var(--ease); }
.composer-actions .send.stop:hover { background: var(--bg-4); }
.composer-actions .send.hidden { display: none; }
.composer-actions { gap: 6px; }

/* ---------- account / billing layout (inside app shell) ---------- */
.app-page { padding: 48px 0; height: 100%; overflow-y: auto; }
.app-page h1 { font-size: 30px; margin-bottom: 6px; }
.app-page p.lede { color: var(--text-dim); margin-bottom: 32px; font-size: 16px; }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 12px 28px; align-items: center; }
.kv > dt { color: var(--text-dim); font-size: 14px; }
.kv > dd { margin: 0; font-size: 14.5px; }
.divider { height: 1px; background: var(--line); margin: 24px 0; }

/* ---------- empty / 404 ---------- */
.empty { text-align: center; padding: 80px 24px; color: var(--text-dim); }
.empty h2 { color: var(--text); }

.notfound { text-align: center; padding: 140px 24px; }
.notfound .big {
    font-size: 110px; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
    background: linear-gradient(135deg, var(--brand), var(--brand-hi));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 8px;
}

/* ============================================================
   V2 ADDITIONS — bento, marquee, stats, spotlight, glow borders
   ============================================================ */

/* ---------- mouse spotlight (hero) ---------- */
.spotlight {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: radial-gradient(
        600px circle at var(--mx, 50%) var(--my, 50%),
        rgba(45, 165, 104, 0.10),
        transparent 60%
    );
    transition: background-position .1s ease;
}

/* ---------- floating orbs ---------- */
.orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: .55;
    pointer-events: none; z-index: -1;
}
.orb.a { width: 380px; height: 380px; background: radial-gradient(circle, #1a7f4c, transparent 70%); top: -60px; left: 8%; animation: float 18s ease-in-out infinite; }
.orb.b { width: 320px; height: 320px; background: radial-gradient(circle, #2da568, transparent 70%); top: 120px; right: 6%; animation: float 22s ease-in-out infinite reverse; }
.orb.c { width: 260px; height: 260px; background: radial-gradient(circle, #34d399, transparent 70%); bottom: -60px; left: 38%; animation: float 26s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(40px,-30px) scale(1.05); }
    66%      { transform: translate(-30px, 40px) scale(.95); }
}

/* ---------- live status pill ---------- */
.live {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; font-size: 12px; font-weight: 600;
    letter-spacing: .04em;
    color: var(--text); background: var(--bg-2);
    border: 1px solid var(--line-strong); border-radius: 999px;
}
.live .pulse {
    position: relative; width: 7px; height: 7px; border-radius: 50%;
    background: #34d399; box-shadow: 0 0 10px #34d399;
}
.live .pulse::before {
    content: ""; position: absolute; inset: -5px;
    border-radius: 50%; border: 2px solid #34d399;
    animation: ping 1.6s var(--ease) infinite;
}
@keyframes ping {
    0%   { transform: scale(.8); opacity: .8; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* ---------- typing-terminal (actual typing effect) ---------- */
.terminal-body .typed::before { content: ""; }
.terminal-body .typed { opacity: 1; min-height: 1.55em; }

/* ---------- bento grid ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
}
.bento-card {
    position: relative; overflow: hidden;
    background: var(--bg-1); border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color .2s var(--ease), transform .2s var(--ease);
    display: flex; flex-direction: column; justify-content: space-between;
}
.bento-card:hover { border-color: var(--line-bright); transform: translateY(-2px); }
.bento-card .glow {
    position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(360px circle at var(--mx,50%) var(--my,50%), rgba(45,165,104,0.10), transparent 60%);
    transition: opacity .25s var(--ease);
}
.bento-card:hover .glow { opacity: 1; }
.bento-card h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.bento-card p  { font-size: 14px; margin: 0; color: var(--text-dim); }
.bento-card .ico {
    width: 38px; height: 38px; border-radius: 9px;
    background: linear-gradient(135deg, var(--brand-glow), var(--brand-dim));
    color: var(--brand-hi); display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--brand-glow); margin-bottom: 12px;
}

/* sizes */
.bento-card.lg { grid-column: span 4; grid-row: span 2; }
.bento-card.md { grid-column: span 3; }
.bento-card.sm { grid-column: span 2; }

/* "command shell" bento background */
.bento-card.shell-card {
    background:
        radial-gradient(800px 300px at 100% 100%, rgba(45,165,104,.08), transparent 60%),
        var(--bg-1);
}
.bento-card .mini-term {
    margin-top: 14px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7;
    color: var(--text-dim);
    background: var(--bg-0); border: 1px solid var(--line);
    border-radius: 8px; padding: 10px 12px; flex: 1; overflow: hidden;
    position: relative;
}
.bento-card .mini-term .y { color: var(--brand-hi); }
.bento-card .mini-term .a { color: var(--text-dim); }
.bento-card .mini-term .ok { color: var(--ok); }

/* graph bento (lines) */
.bento-card .graph {
    flex: 1; margin-top: 14px; position: relative; overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(180deg, transparent, rgba(45,165,104,0.04));
}
.bento-card .graph svg { width: 100%; height: 100%; display: block; }

/* domain bento — chip grid */
.bento-card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.bento-card .chip {
    font-family: var(--mono); font-size: 12px;
    padding: 4px 10px; border-radius: 999px;
    background: var(--bg-2); border: 1px solid var(--line-strong);
    color: var(--text-dim);
}
.bento-card .chip.brand { color: var(--brand-hi); border-color: var(--brand-glow); background: var(--brand-dim); }

/* stack bento — logos */
.bento-card .stack { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 14px; }
.bento-card .stack .s {
    aspect-ratio: 1; border-radius: 8px;
    background: var(--bg-2); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim); font-family: var(--mono); font-size: 10px; font-weight: 600;
    transition: color .15s var(--ease), border-color .15s var(--ease);
}
.bento-card .stack .s:hover { color: var(--brand-hi); border-color: var(--brand-glow); }

/* ---------- stats strip ---------- */
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stat {
    padding: 36px 24px; text-align: center;
    border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat .n {
    font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
    background: linear-gradient(135deg, #eef2f6 0%, #2da568 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    font-feature-settings: "tnum";
}
.stat .l { color: var(--text-dim); font-size: 13px; margin-top: 8px; letter-spacing: .04em; }

/* ---------- capabilities marquee ---------- */
.marquee {
    overflow: hidden; position: relative;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-0);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
    display: flex; gap: 14px; width: max-content;
    animation: marquee 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 999px;
    background: var(--bg-1); border: 1px solid var(--line);
    color: var(--text-dim); font-size: 13px; font-family: var(--mono);
    white-space: nowrap;
}
.marquee-item .arrow { color: var(--brand-hi); }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- code window (showcase) ---------- */
.codewin {
    background: var(--bg-1); border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-3);
}
.codewin .topbar {
    display: flex; align-items: center; gap: 6px;
    padding: 11px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.codewin .topbar .dot { width: 11px; height: 11px; border-radius: 50%; background: #3b454f; }
.codewin .topbar .dot:nth-child(1) { background: #ff5f57; }
.codewin .topbar .dot:nth-child(2) { background: #febc2e; }
.codewin .topbar .dot:nth-child(3) { background: #28c840; }
.codewin .topbar .title { font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-left: 12px; }
.codewin .body { padding: 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--text-dim); }
.codewin .body .kw  { color: #c084fc; }
.codewin .body .str { color: #34d399; }
.codewin .body .num { color: #fbbf24; }
.codewin .body .fn  { color: #60a5fa; }
.codewin .body .cm  { color: var(--text-faint); font-style: italic; }

/* ---------- glow border for popular card ---------- */
.price-card.popular {
    position: relative;
    background: linear-gradient(180deg, rgba(45,165,104,0.10) 0%, var(--bg-1) 60%);
}
.price-card.popular::after {
    content: "";
    position: absolute; inset: -1px;
    border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, #34d399 0%, transparent 35%, transparent 65%, #1a7f4c 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
    animation: rotate-grad 8s linear infinite;
}
@keyframes rotate-grad {
    to { filter: hue-rotate(20deg); }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .05s; }
.reveal.d2 { transition-delay: .10s; }
.reveal.d3 { transition-delay: .15s; }
.reveal.d4 { transition-delay: .20s; }

/* ---------- scroll-to-bottom button (chat) ---------- */
.scroll-bottom {
    position: absolute; bottom: 130px; left: 50%; transform: translateX(-50%);
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--text);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--shadow-2);
    opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
    z-index: 5;
}
.scroll-bottom.show { opacity: 1; pointer-events: auto; }
.scroll-bottom:hover { background: var(--bg-3); }

/* ---------- chat empty-state extras ---------- */
.empty-state { position: relative; }
.empty-state .es-logo { position: relative; }
.empty-state .es-logo::after {
    content: ""; position: absolute; inset: -28px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45,165,104,0.10), transparent 65%);
    filter: blur(16px); z-index: -1;
    animation: pulse-glow 4s var(--ease) infinite;
}
@keyframes pulse-glow {
    0%, 100% { opacity: .6; transform: scale(1); }
    50%      { opacity: 1;  transform: scale(1.08); }
}

/* ---------- shimmer text (hero accent) ---------- */
.shimmer {
    background: linear-gradient(
        90deg,
        #2da568 0%,
        #34d399 25%,
        #ffffff 50%,
        #34d399 75%,
        #1a7f4c 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
    0%   { background-position: 0% center; }
    100% { background-position: -200% center; }
}

/* ---------- noise overlay (very subtle film grain) ---------- */
body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
    opacity: .025; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============================================================
   V3 ADDITIONS — premium polish, new components
   ============================================================ */

/* ---------- custom scrollbar ---------- */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: var(--bg-3); border-radius: 5px;
    border: 2px solid var(--bg-0);
}
*::-webkit-scrollbar-thumb:hover { background: var(--line-bright); }
* { scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent; }

/* ---------- focus rings (accessible everywhere) ---------- */
:focus-visible {
    outline: 2px solid var(--brand-hi);
    outline-offset: 2px;
    border-radius: 6px;
}
button:focus-visible, a:focus-visible {
    box-shadow: 0 0 0 3px var(--brand-glow);
    outline: none;
}

/* ---------- improved hero contrast (override) ---------- */
.hero h1 .shimmer {
    /* Stronger contrast — more white in middle */
    background: linear-gradient(
        90deg,
        #34d399 0%,
        #5eeaa7 20%,
        #ffffff 50%,
        #5eeaa7 80%,
        #2da568 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 8s linear infinite;
    text-shadow: 0 0 60px rgba(45,165,104,0.25);
}
.hero h1 { color: #f8fafc; }
.hero p.lede { color: #cbd5e0; }

/* ---------- nav: stronger glass ---------- */
.nav {
    background: rgba(10,13,16,0.55);
    border-bottom-color: rgba(255,255,255,0.06);
}
.nav::before {
    content: "";
    position: absolute; inset: 0; bottom: -1px;
    background: linear-gradient(180deg, transparent 0%, rgba(45,165,104,0.05) 100%);
    pointer-events: none;
}
.nav-inner { position: relative; z-index: 1; }

/* ---------- copy button (universal) ---------- */
.copy-btn {
    position: absolute; top: 8px; right: 8px;
    width: 30px; height: 30px; border-radius: 7px;
    background: var(--bg-3); border: 1px solid var(--line-strong);
    color: var(--text-dim); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
    z-index: 2;
}
.has-copy { position: relative; }
.has-copy:hover .copy-btn,
.copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { background: var(--bg-4); color: var(--text); }
.copy-btn.copied { color: var(--ok); border-color: var(--ok); }
.copy-btn.copied svg { animation: pop .35s var(--ease); }
@keyframes pop { 0%{transform:scale(.6)} 60%{transform:scale(1.25)} 100%{transform:scale(1)} }

/* pre with copy needs a touch more right padding */
pre.has-copy { padding-right: 50px; }

/* ---------- loading button state ---------- */
.btn.is-loading {
    pointer-events: none; position: relative; color: transparent !important;
}
.btn.is-loading::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 16px; height: 16px; margin: -8px 0 0 -8px;
    border: 2px solid currentColor; border-top-color: transparent;
    border-radius: 50%; color: #fff;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- input — improved focus + visibility ---------- */
.form input[type="text"],
.form input[type="email"],
.form input[type="password"] {
    background: var(--bg-2);
    border: 1px solid var(--line-bright);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2) inset;
}
.form input::placeholder { color: var(--text-faint); }
.form input:hover { border-color: #4a5663; }

/* Password input wrap */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-wrap .pw-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 7px;
    background: transparent; border: 0; cursor: pointer;
    color: var(--text-faint);
    display: inline-flex; align-items: center; justify-content: center;
    transition: color .15s var(--ease), background .15s var(--ease);
}
.pw-wrap .pw-toggle:hover { color: var(--text); background: var(--bg-3); }

/* ---------- live activity feed (landing) ---------- */
.live-feed-wrap {
    background:
        radial-gradient(900px 400px at 30% 0%, rgba(45,165,104,0.06), transparent 60%),
        var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-2);
    overflow: hidden;
    position: relative;
}
.live-feed-wrap::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--bg-1) 100%);
    pointer-events: none; z-index: 1;
    height: 60px; bottom: 0; top: auto;
}
.live-feed-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; flex-wrap: wrap; gap: 12px;
}
.live-feed-head h3 {
    margin: 0; font-size: 18px; display: inline-flex; align-items: center; gap: 10px;
}
.live-feed-head .badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 11px; border-radius: 999px;
    background: var(--bg-2); border: 1px solid var(--line-strong);
    font-size: 11.5px; font-family: var(--mono);
    color: var(--text-dim);
}
.live-feed-head .badge .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ok); box-shadow: 0 0 8px var(--ok);
    animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot { 50% { opacity: .5; } }

.live-feed {
    display: flex; flex-direction: column; gap: 8px;
    height: 320px; overflow: hidden; position: relative;
    font-family: var(--mono); font-size: 13px;
}
.live-feed-row {
    display: grid; grid-template-columns: 78px 100px 1fr auto;
    gap: 14px; align-items: center;
    padding: 9px 14px; border-radius: 8px;
    background: var(--bg-2); border: 1px solid var(--line);
    animation: feed-in .5s var(--ease);
}
@keyframes feed-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
}
.live-feed-row .t { color: var(--text-faint); font-size: 11.5px; }
.live-feed-row .who {
    color: var(--brand-hi); font-weight: 600; font-size: 12px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.live-feed-row .what {
    color: var(--text); font-size: 12.5px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.live-feed-row .st {
    font-size: 11px; padding: 3px 8px; border-radius: 4px;
    background: var(--brand-dim); color: var(--brand-hi);
    border: 1px solid var(--brand-glow);
}
.live-feed-row .st.warn { background: rgba(245,158,11,0.10); color: var(--warn); border-color: rgba(245,158,11,0.25); }
.live-feed-row .st.ok   { background: rgba(52,211,153,0.10); color: var(--ok); border-color: rgba(52,211,153,0.25); }

/* ---------- comparison table (landing) ---------- */
.compare {
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; background: var(--bg-1);
}
.compare table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td {
    padding: 18px 22px; text-align: left;
    border-bottom: 1px solid var(--line);
}
.compare thead th {
    background: var(--bg-2); color: var(--text-dim); font-weight: 600;
    font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
    position: sticky; top: 0;
}
.compare thead th.us { color: var(--brand-hi); position: relative; }
.compare thead th.us::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover { background: var(--bg-2); }
.compare td { color: var(--text-dim); vertical-align: middle; }
.compare td.feature { color: var(--text); font-weight: 500; }
.compare td.us {
    color: var(--text);
    background: linear-gradient(180deg, var(--brand-dim), transparent 60%);
}
.compare td.us .check { color: var(--brand-hi); font-weight: 600; }
.compare td .x { color: var(--err); }

/* ---------- use case cards (landing) ---------- */
.usecases { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.usecase {
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--bg-1); padding: 0; overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.usecase:hover { border-color: var(--line-bright); transform: translateY(-2px); }
.usecase .uc-head {
    padding: 22px 24px 16px; display: flex; align-items: flex-start; gap: 14px;
    border-bottom: 1px solid var(--line);
}
.usecase .uc-ico {
    width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
    background: linear-gradient(135deg, var(--brand-glow), var(--brand-dim));
    color: var(--brand-hi); display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--brand-glow);
}
.usecase h3 { font-size: 17px; margin: 0 0 4px; }
.usecase p { margin: 0; font-size: 14px; color: var(--text-dim); }
.usecase .uc-term {
    font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
    padding: 16px 22px;
    background:
        radial-gradient(600px 200px at 100% 0%, rgba(45,165,104,0.05), transparent 60%),
        var(--bg-0);
    flex: 1;
}
.usecase .uc-term .y { color: var(--brand-hi); }
.usecase .uc-term .a { color: var(--text-dim); }
.usecase .uc-term .ok { color: var(--ok); }
.usecase .uc-term .dim { color: var(--text-faint); }
.usecase .uc-term code {
    background: transparent; border: 0; padding: 0; font-size: inherit; color: var(--text);
}

/* ---------- testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial {
    background: var(--bg-1); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 24px;
    display: flex; flex-direction: column; gap: 18px;
    transition: border-color .2s var(--ease);
}
.testimonial:hover { border-color: var(--line-bright); }
.testimonial blockquote {
    margin: 0; font-size: 15px; line-height: 1.6; color: var(--text);
    font-weight: 400; letter-spacing: -0.005em;
}
.testimonial blockquote::before {
    content: "“"; display: block;
    font-size: 32px; line-height: 0.4; color: var(--brand-hi);
    font-family: Georgia, serif; margin-bottom: 14px;
}
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .who .av {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-hi), var(--brand-lo));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; flex: 0 0 auto;
}
.testimonial .who .info { font-size: 13px; line-height: 1.4; }
.testimonial .who .info strong { display: block; color: var(--text); font-weight: 600; }
.testimonial .who .info span { color: var(--text-faint); }

/* ---------- logo cloud / trusted-by ---------- */
.logo-cloud {
    display: flex; flex-wrap: wrap; gap: 16px 56px;
    justify-content: center; align-items: center;
    margin: 0 auto;
}
.logo-cloud span {
    color: var(--text-faint);
    font-family: var(--mono); font-weight: 600;
    font-size: 15px; letter-spacing: -0.01em;
    opacity: .7; transition: opacity .2s var(--ease), color .2s var(--ease);
}
.logo-cloud span:hover { opacity: 1; color: var(--text-dim); }

/* ---------- "thinking" status bar inside chat ---------- */
.thinking-bar {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 14px; border-radius: 10px;
    background: var(--bg-2); border: 1px solid var(--line);
    font-size: 13px; color: var(--text-dim); font-family: var(--mono);
}
.thinking-bar .spin {
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid var(--brand-glow); border-top-color: var(--brand-hi);
    animation: spin .8s linear infinite;
}
.thinking-bar .label { color: var(--text); }
.thinking-bar .step { color: var(--text-faint); }

/* ---------- chat: command preview pill ---------- */
.cmd-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 10px; border-radius: 6px;
    background: rgba(45,165,104,0.08); border: 1px solid var(--brand-glow);
    color: var(--brand-hi);
    font-family: var(--mono); font-size: 12px; font-weight: 500;
}

/* ---------- chat msg streaming caret ---------- */
.msg .bubble.streaming::after {
    content: ""; display: inline-block;
    width: 8px; height: 16px;
    background: var(--brand-hi); margin-left: 2px;
    vertical-align: -3px;
    animation: blink 1s steps(2) infinite;
}

/* ---------- syntax highlighting (lightweight) ---------- */
.hl-cmt { color: var(--text-faint); font-style: italic; }
.hl-str { color: #34d399; }
.hl-kw  { color: #c084fc; }
.hl-fn  { color: #60a5fa; }
.hl-num { color: #fbbf24; }
.hl-op  { color: #f472b6; }
.hl-shellp { color: var(--brand-hi); user-select: none; }
.hl-cmd { color: var(--text); font-weight: 500; }
.hl-flag { color: #fbbf24; }
.hl-path { color: #60a5fa; }

/* ---------- empty state polish ---------- */
.empty-state .es-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px; margin-bottom: 24px;
    border-radius: 999px; font-size: 12px;
    background: var(--bg-2); border: 1px solid var(--line-strong);
    color: var(--text-dim); font-family: var(--mono);
}
.empty-state .es-tag .pulse {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand-hi); box-shadow: 0 0 8px var(--brand-hi);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ---------- chat: starter prompts (improved) ---------- */
.suggestion {
    display: flex; flex-direction: column; gap: 6px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
    position: relative; overflow: hidden;
}
.suggestion::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(360px circle at var(--mx,50%) var(--my,50%), var(--brand-dim), transparent 60%);
    opacity: 0; transition: opacity .2s var(--ease);
    pointer-events: none;
}
.suggestion:hover::before { opacity: 1; }
.suggestion:hover { border-color: var(--brand-glow); }
.suggestion .s-meta {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; color: var(--brand-hi); font-family: var(--mono);
    text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
    margin-bottom: 4px;
}
.suggestion .s-meta svg { width: 12px; height: 12px; }

/* ---------- chat top: better quota bar ---------- */
.app-top .quota .num { color: var(--text); font-weight: 600; font-feature-settings: "tnum"; }

/* ---------- avatar improvements ---------- */
.app-side .bottom .avatar {
    background: linear-gradient(135deg, var(--brand-hi), var(--brand-lo));
    box-shadow: 0 2px 8px rgba(26,127,76,.4), inset 0 1px 0 rgba(255,255,255,.15);
}

/* ---------- nav active link underline ---------- */
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a.is-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -22px;
    height: 2px; background: var(--brand-hi);
    box-shadow: 0 0 10px var(--brand-glow);
}

/* ---------- docs: ToC sidebar ---------- */
.docs-shell { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding: 70px 0; }
.docs-toc {
    position: sticky; top: 84px; align-self: start;
    font-size: 13.5px;
    max-height: calc(100vh - 100px); overflow-y: auto;
}
.docs-toc h4 {
    font-size: 11px; color: var(--text-faint);
    letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
    margin: 0 0 12px;
}
.docs-toc a {
    display: block; padding: 7px 10px; border-radius: 6px;
    color: var(--text-dim); border-left: 2px solid transparent;
    transition: color .12s var(--ease), background .12s var(--ease), border-color .12s var(--ease);
}
.docs-toc a:hover { color: var(--text); background: var(--bg-1); }
.docs-toc a.is-active { color: var(--brand-hi); border-left-color: var(--brand-hi); background: var(--brand-dim); }
.docs-body h2 {
    margin-top: 56px; font-size: 28px;
    padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.docs-body h2:first-child { margin-top: 0; }
.docs-body h3 { margin-top: 32px; font-size: 18px; }
.docs-body pre { font-size: 13px; }
.docs-body .prompt { color: var(--brand-hi); user-select: none; }

/* ---------- billing: sparkline ---------- */
.spark {
    width: 100%; height: 80px; margin-top: 16px;
    border-radius: 8px; overflow: hidden;
    background: linear-gradient(180deg, transparent, rgba(45,165,104,0.04));
    border: 1px solid var(--line);
}
.spark svg { width: 100%; height: 100%; display: block; }

/* ---------- modal (confirm) ---------- */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    z-index: 200; display: none; align-items: center; justify-content: center;
}
.modal-backdrop.show { display: flex; animation: fadein .15s var(--ease); }
.modal {
    background: var(--bg-1); border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg); padding: 24px; max-width: 420px; width: 92%;
    box-shadow: var(--shadow-3);
    animation: modal-in .18s var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: scale(.95) translateY(8px); } to { opacity: 1; transform: none; } }
.modal h3 { margin: 0 0 8px; font-size: 18px; }
.modal p { color: var(--text-dim); font-size: 14.5px; margin: 0 0 20px; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- toast ---------- */
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    padding: 11px 18px; border-radius: 10px;
    background: var(--bg-2); border: 1px solid var(--line-strong);
    color: var(--text); font-size: 13.5px;
    box-shadow: var(--shadow-2);
    opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    z-index: 250;
    display: inline-flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .ico { color: var(--ok); display: inline-flex; }

/* ---------- table polish (account/billing/domains) ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th {
    text-align: left; padding: 12px 16px; font-size: 12px;
    color: var(--text-dim); border-bottom: 1px solid var(--line);
    letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
    background: var(--bg-2); border-radius: 0;
}
.tbl thead th:first-child { border-top-left-radius: 8px; }
.tbl thead th:last-child  { border-top-right-radius: 8px; }
.tbl tbody td {
    padding: 14px 16px; border-bottom: 1px solid var(--line);
    font-size: 14px; vertical-align: middle;
}
.tbl tbody tr:hover { background: var(--bg-2); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.dot-ok { color: var(--ok); font-size: 10px; vertical-align: 1px; }
.dot-warn { color: var(--warn); font-size: 10px; vertical-align: 1px; }
.dot-err { color: var(--err); font-size: 10px; vertical-align: 1px; }

/* ---------- quota progress (better) ---------- */
.usage-bar {
    height: 12px; background: var(--bg-3); border-radius: 6px;
    overflow: hidden; position: relative;
    border: 1px solid var(--line);
}
.usage-bar > .fill {
    height: 100%; border-radius: 5px;
    background: linear-gradient(90deg, var(--brand), var(--brand-hi));
    transition: width .5s var(--ease);
    position: relative;
}
.usage-bar > .fill::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    background-size: 200% 100%;
    animation: shimmer-bar 2.4s linear infinite;
}
@keyframes shimmer-bar { to { background-position: -200% 0; } }
.usage-bar.warn > .fill { background: linear-gradient(90deg, var(--warn), #fbbf24); }

/* ---------- hero: new content - dual terminal stack ---------- */
.terminal-pair {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin: 56px auto 0; max-width: 980px;
}
.terminal-pair .terminal { margin: 0; max-width: none; }
@media (max-width: 880px) {
    .terminal-pair { grid-template-columns: 1fr; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    h1 { font-size: 36px; }
    .hero h1 { font-size: 42px; }
    .section-head h2 { font-size: 30px; }
    .feature-grid, .price-grid, .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .nav-links { display: none; }
    .app-shell { grid-template-columns: 1fr; }
    .app-side { display: none; }
    .showcase { grid-template-columns: 1fr; }
    .suggestions { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .bento-card.lg, .bento-card.md, .bento-card.sm { grid-column: 1 / -1; grid-row: auto; min-height: 220px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
    .usecases { grid-template-columns: 1fr; }
    .testimonials { grid-template-columns: 1fr; }
    .live-feed-row { grid-template-columns: 60px 1fr auto; gap: 10px; }
    .live-feed-row .who { display: none; }
    .docs-shell { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
    .docs-toc { position: static; max-height: none; }
    .compare table { font-size: 12.5px; }
    .compare th, .compare td { padding: 12px 10px; }
}
