/* ============================================================
   NVIRIA — nviria.com marketing site v0.1
   Light mode · cursor.com IA (simplified) · tokens §4.3
   ============================================================ */

:root {
  --bg:         #FFFFFF;
  --surface:    #FFFFFF;
  --surface-2:  #F0FAFB;
  --surface-3:  #E5F5F7;
  --border:     #C8E8EC;
  --border-soft: rgba(200, 232, 236, .55);

  --text:       #001E3C;
  --muted:      #4A7082;
  --muted-2:    #6B8A98;

  --cyan:       #1ED2D2;
  --cyan-soft:  rgba(30, 210, 210, .14);
  --blue:       #005AAA;
  --blue-soft:  rgba(0, 90, 170, .08);
  --green:      #42C599;
  --green-soft: rgba(66, 197, 153, .14);

  --grad-brand: linear-gradient(135deg, #1ED2D2 0%, #005AAA 55%, #42C599 100%);
  --grad-cta: linear-gradient(135deg, #1ED2D2 0%, #005AAA 50%, #003d6b 100%);
  --grad-cta-hover: linear-gradient(135deg, #32e4e4 0%, #006fcc 50%, #005AAA 100%);
  --grad-hero:  radial-gradient(ellipse 80% 60% at 50% -10%, rgba(30, 210, 210, .18), transparent 65%);

  --shadow-1: 0 1px 2px rgba(0, 30, 60, .06);
  --shadow-2: 0 4px 14px rgba(0, 30, 60, .08);
  --shadow-3: 0 24px 64px rgba(0, 30, 60, .12), 0 8px 24px rgba(0, 30, 60, .06);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-h: 80px;
  --logo-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation-duration: .01ms !important; } }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }

.skip {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip:focus {
  left: 16px; top: 16px; width: auto; height: auto;
  padding: 10px 16px; background: var(--text); color: #fff; z-index: 999; border-radius: 8px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--alt { background: var(--surface-2); }
.center { text-align: center; }
.measure { max-width: 62ch; margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.06; font-weight: 700; margin: 0; }
.h1 { font-size: clamp(2.5rem, 5.8vw, 4.6rem); letter-spacing: -0.04em; }
.h2 { font-size: clamp(1.85rem, 3.8vw, 3rem); letter-spacing: -0.035em; }
.h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.55; font-weight: 400; }
.body { color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.brand-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline {
  display: inline-flex; align-items: center; justify-content: center;
  gap: clamp(12px, 2.5vw, 18px);
  margin: 22px auto 0; padding: 11px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tagline-word {
  font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase;
}
.tagline-flow { color: #0a9ea0; }
.tagline-prove { color: var(--blue); }
.tagline-ship { color: #1a8a62; }
.tagline-sep {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-brand);
  box-shadow: 0 0 0 2px rgba(30, 210, 210, .15);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all .22s var(--ease);
  white-space: nowrap; letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--text); color: #fff;
  box-shadow: 0 4px 14px rgba(0, 30, 60, .18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0, 30, 60, .22); }
.btn-cta {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--grad-cta); color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 24, 48, .18);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .2) inset,
    0 6px 20px rgba(0, 90, 170, .26),
    0 2px 8px rgba(30, 210, 210, .2);
}
.btn-cta::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, transparent 48%);
  pointer-events: none;
}
.btn-cta:hover {
  background: var(--grad-cta-hover); color: #fff;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .3);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .25) inset,
    0 14px 36px rgba(0, 90, 170, .32),
    0 4px 14px rgba(30, 210, 210, .28);
}
.btn-cta:active {
  transform: translateY(0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .15) inset,
    0 4px 12px rgba(0, 90, 170, .22);
}
.btn-cta:disabled {
  opacity: .7; cursor: wait; transform: none;
  box-shadow: 0 4px 12px rgba(0, 90, 170, .15);
}
.btn-cyan {
  background: var(--grad-brand); color: #001E3C;
  box-shadow: 0 6px 20px rgba(30, 210, 210, .28);
}
.btn-cyan:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(30, 210, 210, .36); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue); background: var(--cyan-soft); }
.btn-disabled {
  background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border); cursor: default; pointer-events: none;
  box-shadow: none;
}
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

.textlink {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue); font-weight: 600; font-size: 15px;
  transition: gap .22s var(--ease);
}
.textlink:hover { gap: 10px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: var(--logo-h); width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--text);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn:not(.nav-burger) { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--bg); padding: 20px var(--gutter) 28px;
    gap: 18px; border-bottom: 1px solid var(--border); align-items: flex-start;
  }
  .nav-links.open a { font-size: 17px; }
}

/* Hero */
.hero {
  position: relative; padding-block: clamp(56px, 9vw, 100px) clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; background: var(--grad-hero);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero .h1 { max-width: 16ch; margin-inline: auto; margin-top: 20px; }
.hero .lead { max-width: 52ch; margin: 20px auto 0; }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-top: 32px;
}

.demo-stage { margin-top: clamp(40px, 6vw, 64px); }
.preview-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase;
}
.preview-tag .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}

.appwin {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}
.appwin-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted); font-weight: 500;
}
.tl-dots { display: flex; gap: 6px; }
.tl-dots i {
  width: 10px; height: 10px; border-radius: 50%; display: block;
  background: var(--border);
}
.tl-dots i:nth-child(1) { background: #FF5F57; }
.tl-dots i:nth-child(2) { background: #FEBC2E; }
.tl-dots i:nth-child(3) { background: #28C840; }
.appwin-title {
  flex: 1; text-align: center; color: var(--text); font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px;
}
.sandbox-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  color: var(--green); background: var(--green-soft); border: 1px solid rgba(66,197,153,.3);
  padding: 3px 9px; border-radius: 999px;
}
.appwin-spacer { flex: 1; }
.flowcount { font-size: 12px; color: var(--muted); font-weight: 600; }
.flowcount b { color: var(--blue); font-size: 15px; }

.appwin-body { display: grid; grid-template-columns: 168px 1fr 200px; min-height: 360px; }
.aw-nav { border-right: 1px solid var(--border); padding: 14px 10px; background: var(--surface-2); }
.aw-navitem {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: default;
  transition: all .35s var(--ease); margin-bottom: 2px;
}
.aw-navitem svg { width: 15px; height: 15px; opacity: .6; flex-shrink: 0; }
.aw-navitem.active { background: var(--cyan-soft); color: var(--blue); }
.aw-navitem.active svg { opacity: 1; }

.aw-main { padding: 18px 20px; position: relative; overflow: hidden; }
.aw-stage { display: none; animation: stagefade .6s var(--ease); }
.aw-stage.active { display: block; }
@keyframes stagefade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.aw-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.aw-head h4 { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.aw-head .aw-sub { font-size: 11.5px; color: var(--muted-2); }

.aw-fleet { border-left: 1px solid var(--border); padding: 14px 12px; background: var(--surface-2); }
.aw-fleet h5 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin: 0 0 12px; font-weight: 700; }
.agent {
  display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 9px; margin-bottom: 5px;
  background: var(--bg); border: 1px solid var(--border); transition: all .3s var(--ease);
}
.agent .av {
  width: 24px; height: 24px; border-radius: 7px; background: var(--grad-brand); color: #001E3C;
  font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.agent .an { font-size: 12px; font-weight: 600; }
.agent .as { font-size: 10.5px; color: var(--muted-2); }
.agent.busy { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.agent .spin { width: 11px; height: 11px; border: 2px solid var(--border); border-top-color: var(--cyan); border-radius: 50%; margin-left: auto; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.agent .tick { margin-left: auto; color: var(--green); }

.kv { display: flex; gap: 8px; font-size: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.kv .k { color: var(--muted-2); min-width: 92px; }
.kv .v { font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.chip-cyan { background: var(--cyan-soft); color: var(--blue); }
.chip-green { background: var(--green-soft); color: #2A7A4A; }
.chip-amber { background: rgba(224,168,0,.14); color: #B8860B; }
.chip-muted { background: rgba(0,30,60,.06); color: var(--muted); }
.minirow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; margin-bottom: 6px; font-size: 12px; background: var(--bg); }
.minirow .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--muted); }
.minirow .grow { flex: 1; }
.gate-card { border: 1px solid var(--cyan); border-radius: var(--r-md); padding: 16px; background: linear-gradient(180deg, var(--bg), var(--surface-2)); margin-top: 16px; }
.gate-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.gate-head .lock { width: 28px; height: 28px; border-radius: 8px; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; color: #001E3C; flex-shrink: 0; }
.gate-head h4 { font-size: 14px; margin: 0; }
.scorebar { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 5px 0 10px; }
.scorebar i { display: block; height: 100%; background: var(--grad-brand); border-radius: 999px; transition: width 1s var(--ease); }
.progressline { display: flex; gap: 4px; margin: 4px 0 12px; }
.progressline i { flex: 1; height: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; position: relative; }
.progressline i.done { background: var(--cyan); }
.progressline i.active::after { content: ''; position: absolute; inset: 0; background: var(--grad-brand); animation: fillbar 1.4s var(--ease) infinite; }
@keyframes fillbar { from { transform: translateX(-100%); } to { transform: translateX(0); } }

@media (max-width: 860px) {
  .appwin-body { grid-template-columns: 1fr; min-height: 0; }
  .aw-nav, .aw-fleet { display: none; }
}

/* Fleet feature mock (autonomous flows section) */
.fleet-mock { max-width: none; }
.fleet-mock-body { padding: 20px; font-size: 13px; }
.fleet-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-2); margin-bottom: 10px;
}
.fleet-row--active { background: var(--cyan-soft); }
.fleet-row--pass { background: var(--green-soft); }
.fleet-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.fleet-dot--green { background: var(--green); }
.fleet-dot--cyan { background: var(--cyan); }
.fleet-label {
  flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: var(--text); min-width: 0;
}
.fleet-status { font-size: 11px; font-weight: 700; color: var(--muted); flex-shrink: 0; }
.fleet-status--blue { color: var(--blue); }
.fleet-status--green { color: #2A7A4A; }
.fleet-evidence {
  margin-top: 6px; padding: 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg);
}
.fleet-evidence-label {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.fleet-evidence-text { font-size: 12.5px; color: var(--text); }
.fleet-evidence-text b { color: var(--green); }

/* Logo strip */
.logo-strip { padding-block: 36px; border-block: 1px solid var(--border-soft); }
.logo-strip p {
  text-align: center; margin: 0 0 22px;
  font-size: 13px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted);
}
.logo-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(28px, 5vw, 52px);
}
.logo-row span {
  font-size: 15px; font-weight: 800; letter-spacing: .06em;
  color: var(--text);
  opacity: .72;
}

/* Feature blocks — cursor-style alternating */
.feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.feature.reverse .feature-copy { order: 2; }
.feature.reverse .feature-visual { order: 1; }
.feature-copy .h3 { margin-top: 12px; }
.feature-copy .body { margin-top: 14px; }
.feature-copy .textlink { margin-top: 20px; display: inline-flex; }
.feature-visual { width: 100%; min-width: 0; }
.feature-visual .appwin,
.feature-visual .ide-mock,
.feature-visual .cursor-mock { width: 100%; max-width: none; margin: 0; }

@media (max-width: 860px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .feature-copy,
  .feature.reverse .feature-visual { order: unset; }
}

/* IDE mock */
.ide-mock {
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: #FAFCFD; box-shadow: var(--shadow-2); overflow: hidden;
}
.ide-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.ide-body { display: grid; grid-template-columns: 44px 1fr; min-height: 280px; }
.ide-gutter {
  background: var(--surface-3); border-right: 1px solid var(--border);
  padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ide-gutter span {
  width: 22px; height: 22px; border-radius: 6px; background: var(--cyan-soft);
}
.ide-code {
  padding: 16px 18px; font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px; line-height: 1.7; color: var(--text);
}
.ide-code .cm { color: var(--muted-2); }
.ide-code .kw { color: var(--blue); }
.ide-code .fn { color: #0A7A6E; }
.ide-code .str { color: #2A7A4A; }
.ide-suggest {
  margin: 8px 18px 16px; padding: 12px 14px;
  border-radius: var(--r-sm); border: 1px solid var(--cyan);
  background: var(--cyan-soft); font-size: 12px; color: var(--text);
  box-shadow: var(--shadow-1);
}
.ide-suggest b { color: var(--blue); }

/* IDE compatibility pills */
.ide-compat {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px;
}
.ide-compat span {
  font-size: 12px; font-weight: 600; padding: 5px 12px;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--muted);
}

/* Cursor Agent mock — riva-brownfield · light mode */
.cursor-mock {
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--bg); box-shadow: var(--shadow-3);
  overflow: hidden; color: var(--text); font-size: 12px;
}
.cursor-titlebar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--border); font-size: 12px;
}
.cursor-title { flex: 1; text-align: center; font-weight: 600; color: var(--text); }
.cursor-riva-badge {
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 6px;
  background: var(--cyan-soft); color: var(--blue);
  border: 1px solid var(--border);
}
.cursor-agent-pane {
  display: flex; flex-direction: column;
  background: var(--bg);
}
.cursor-agent-toolbar {
  display: flex; align-items: center;
  padding: 8px 14px; border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
}
.cursor-agent-tabs { display: flex; gap: 4px; }
.cursor-agent-tab {
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 6px; color: var(--muted);
}
.cursor-agent-tab.active {
  background: var(--surface-2); color: var(--text);
}
.cursor-chat {
  padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 10px;
}
.cursor-msg-user .cursor-msg-body {
  display: inline-block; padding: 8px 12px; border-radius: 10px 10px 10px 4px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 11px;
}
.cursor-slash {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700; color: var(--blue);
}
.cursor-args { color: var(--muted); margin-left: 4px; font-family: ui-monospace, Menlo, monospace; font-size: 10px; }
.cursor-msg-agent .cursor-msg-meta {
  font-size: 10px; font-weight: 600; color: var(--muted-2);
  margin-bottom: 4px; display: flex; align-items: center; gap: 5px;
}
.cursor-msg-agent .cursor-msg-body {
  padding: 10px 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.cursor-agent-logo {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--grad-brand); color: #001E3C;
  font-size: 9px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.cursor-flow {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.bf-step {
  display: grid; grid-template-columns: 16px 1fr auto;
  align-items: center; gap: 6px;
  padding: 5px 8px; border-radius: 6px;
  border: 1px solid transparent; font-size: 11px;
  color: var(--muted-2); transition: background .2s, border-color .2s, color .2s;
}
.bf-step.active {
  background: var(--cyan-soft); border-color: var(--border);
  color: var(--text);
}
.bf-step.done { color: var(--muted); }
.bf-step.done .bf-icon { color: var(--green); }
.bf-step.active .bf-icon { color: var(--cyan); animation: bfPulse 1.4s ease-in-out infinite; }
@keyframes bfPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
.bf-icon { font-size: 10px; text-align: center; }
.bf-label { font-weight: 500; }
.bf-meta {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px; color: var(--muted-2);
}
.bf-step.active .bf-meta { color: var(--blue); font-weight: 600; }
.bf-step.done .bf-meta { color: var(--green); }
.cursor-graph-preview {
  margin-top: 6px; padding: 6px 8px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border-soft);
  opacity: 0; transform: translateY(4px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.cursor-graph-preview.visible { opacity: 1; transform: none; }
.cursor-graph-preview svg { width: 100%; height: auto; display: block; max-height: 56px; }
.cursor-graph-preview .gn { fill: var(--surface); stroke: var(--border); stroke-width: 1.2; }
.cursor-graph-preview .gn-a { fill: var(--cyan-soft); stroke: var(--cyan); }
.cursor-graph-preview .gn-d { fill: var(--green-soft); stroke: var(--green); }
.cursor-graph-preview .ge { stroke: var(--border); stroke-width: 1; opacity: .85; }
.cursor-graph-preview .gt {
  fill: var(--muted); font-size: 7px; font-family: ui-monospace, Menlo, monospace;
  text-anchor: middle; dominant-baseline: middle;
}
.cursor-agent-fleet {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px;
}
.cursor-agent-chip {
  font-size: 9px; font-weight: 600; padding: 3px 6px;
  border-radius: 6px; background: var(--surface-2); color: var(--muted-2);
  border: 1px solid var(--border-soft);
  display: inline-flex; align-items: center; gap: 5px;
  transition: background .2s, color .2s, border-color .2s;
}
.cursor-agent-chip.busy {
  background: var(--cyan-soft); color: var(--blue); border-color: var(--border);
}
.cursor-agent-chip.busy::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid rgba(30, 210, 210, .35);
  border-top-color: var(--cyan);
  animation: spin .7s linear infinite;
}
.cursor-agent-chip.done {
  background: var(--green-soft); color: #2A7A4A; border-color: rgba(66, 197, 153, .35);
}
@keyframes spin { to { transform: rotate(360deg); } }
.cursor-output {
  margin-top: 6px; padding: 6px 8px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border-soft);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px; color: var(--muted); line-height: 1.4;
}
.cursor-output-line { display: block; }
.cursor-foot .preview-tag { margin: 0; color: var(--muted); }
.cursor-foot .pulse { background: var(--cyan); }

/* (cursor-foot removed from markup) */

/* Product cards */
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-top: 48px; align-items: stretch;
}
@media (max-width: 760px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); padding: clamp(28px, 4vw, 36px);
  display: flex; flex-direction: column;
  min-height: 100%;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow-2); border-color: var(--cyan); }
.product-card.featured {
  border-color: var(--blue);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-2);
}
.product-card-head { margin-bottom: 4px; }
.product-badge {
  display: inline-flex;
  padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px;
}
.product-badge.individual { background: var(--cyan-soft); color: var(--blue); }
.product-badge.enterprise { background: var(--blue-soft); color: var(--blue); }
.product-card .h3 { margin-bottom: 10px; }
.product-card > .body { margin: 0 0 20px; flex-shrink: 0; }
.product-features {
  list-style: none; margin: 0; padding: 0;
  flex: 1; display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border-soft);
  padding-top: 4px;
}
.product-features li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 0; font-size: 14.5px; color: var(--muted);
  border-bottom: 1px solid var(--border-soft);
  line-height: 1.45;
}
.product-features li::before {
  content: '';
  flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); margin-top: 7px;
}
.product-features .inline-cmd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; color: var(--blue); background: var(--cyan-soft);
  padding: 1px 6px; border-radius: 4px;
}
.product-card.featured .product-features li::before { background: var(--blue); }
.product-card-actions {
  margin-top: 24px; padding-top: 4px; flex-shrink: 0;
}
.product-card-actions .btn { width: 100%; justify-content: center; }

/* Pillars */
.pillar-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 48px;
}
@media (max-width: 860px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar {
  padding: 28px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface);
}
.pillar h3 { font-size: 1.1rem; margin-bottom: 10px; }
.pillar p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.pillar-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cyan-soft); color: var(--blue);
  margin-bottom: 16px;
}

/* Contact */
.contact-section {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border-soft);
}
.contact-section .contact-panel { margin-top: 36px; }
.contact-panel {
  position: relative;
  max-width: 580px; margin: 40px auto 0;
  padding: clamp(28px, 4vw, 36px);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.contact-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand);
}
.contact-form { display: flex; flex-direction: column; gap: 18px; text-align: left; }
.contact-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 560px) {
  .contact-form-grid { grid-template-columns: 1fr; }
}
.field label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 6px; color: var(--text);
}
.field-optional { font-weight: 500; color: var(--muted-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface-2);
  font-size: 15px; color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:hover, .field textarea:hover, .field select:hover {
  border-color: rgba(0, 90, 170, .25);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue);
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.field textarea { min-height: 108px; resize: vertical; }
.form-hint {
  margin: -6px 0 0; font-size: 12px; color: var(--muted-2); text-align: center;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-panel.is-submitted .contact-form { display: none !important; }
.contact-panel.is-submitted .form-success { display: flex !important; }
.form-success {
  display: none;
  flex-direction: column; align-items: center; text-align: center;
  padding: 32px 20px; gap: 4px;
}
.form-success-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-soft); color: var(--green);
  margin-bottom: 12px;
}
.form-success p { margin: 0 0 6px; font-size: 15px; color: var(--muted); }
.form-success p:first-of-type { font-size: 17px; color: var(--text); margin-bottom: 8px; }
.form-error {
  margin: 0; font-size: 13px; color: #B42318; text-align: center;
}

/* CTA band */
.cta-band {
  text-align: center; padding-block: clamp(64px, 8vw, 96px);
  background: var(--surface-2);
  border-block: 1px solid var(--border-soft);
}
.cta-band .h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lead { margin-top: 16px; }
.cta-band .hero-actions { margin-top: 28px; }

/* Footer */
.site-footer {
  padding-block: 48px 32px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: 32px;
}
.footer-brand img { height: var(--logo-h); width: auto; margin-bottom: 16px; }
.footer-brand p { margin: 0; font-size: 14px; color: var(--muted); max-width: 32ch; line-height: 1.55; }
.footer-credit { color: var(--muted-2); }
.footer-credit a { color: var(--blue); font-weight: 600; transition: color .2s; }
.footer-credit a:hover { color: var(--text); }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2); margin: 0 0 14px;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--muted);
  margin-bottom: 10px; transition: color .2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px; color: var(--muted-2);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
}
.footer-bottom a { color: var(--blue); font-weight: 500; }
.footer-bottom a:hover { color: var(--text); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
