:root {
  --bg: #FAFAF7;
  --bg-card: #FFFFFF;
  --bg-soft: #F2F1EC;
  --ink: #0A0A0A;
  --ink-2: #3A3A38;
  --ink-3: #6B6B68;
  --ink-4: #9A9A96;
  --line: #E6E5DE;
  --line-2: #EFEEE8;
  --brand: #13A16E;
  --brand-2: #0E8459;
  --brand-soft: #E3F4EC;
  --brand-soft-2: #F0F9F4;
  --amber: #C68A3A;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(10,10,10,0.04), 0 1px 0 rgba(10,10,10,0.02);
  --shadow-md: 0 6px 24px rgba(10,10,10,0.06), 0 2px 6px rgba(10,10,10,0.03);
  --shadow-lg: 0 24px 60px rgba(10,10,10,0.10), 0 8px 20px rgba(10,10,10,0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

.mono {  }

/* ---------- shared layout ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.section-title {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}
.section-sub {
  font-size: 18px;
  color: var(--ink-3);
  margin-top: 18px;
  max-width: 640px;
  line-height: 1.55;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: #1a1a1a; transform: translateY(-1px); }

.btn-brand {
  background: var(--brand);
  color: #fff;
}
.btn-brand:hover { background: var(--brand-2); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  background: rgba(250,250,247,0.75);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.nav-logo-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2);
  transition: background 120ms ease, color 120ms ease;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-cta { display: flex; gap: 10px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  padding-top: 40px;
  padding-bottom: 60px;
  overflow: visible;
  background: radial-gradient(ellipse 90% 70% at 50% 40%, rgba(255,255,255,0.95) 0%, rgba(250,250,247,0.5) 60%, var(--bg) 100%);
  /* allow children with higher z-index (the floating octopus canvas) to paint
     above the following section's background */
  isolation: auto;
}
/* The very first hero-canvas (decorative back layer, if rendered) keeps default. */

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 100px);
  padding-top: 20px;
}
.hero-copy {
  max-width: 620px;
  display: flex; flex-direction: column;
  text-align: left;
  align-items: flex-start;
  position: relative; z-index: 3;
}
.hero h1 {
  font-size: clamp(48px, 5.4vw, 80px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-top: 24px;
  max-width: 690px;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  font-weight: 700;
}
.hero-sub {
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 560px;
  font-weight: 400;
}

.hero-typewriter {
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  max-width: 560px;
  min-height: 52px;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 600px;
  /* canvas inside extends beyond bounds — let it overflow downward to next section */
  overflow: visible;
}
.hero-visual .hero-canvas {
  position: absolute;
  /* extend the canvas beyond the hero column so tentacles don't get clipped */
  top: -80px;
  bottom: -240px;
  left: -10%;
  right: -10%;
  width: 120%;
  height: auto;
  inset: auto;
  /* float ABOVE subsequent sections so tentacles aren't covered by .features bg */
  z-index: 30;
  pointer-events: none;
}
.hero-typewriter .chat-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--brand-soft);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--brand-soft); }
  50% { box-shadow: 0 0 0 7px rgba(19,161,110,0.12); }
}
.hero-typewriter .tw-text {
  font-size: 15px;
  color: var(--ink);
  
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hero-typewriter .caret {
  display: inline-block;
  width: 2px; height: 16px; background: var(--ink);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-ctas { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta-row {
  position: relative; z-index: 4;
  grid-column: 1 / -1;
  margin-top: 20px;
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
}
.hero-meta-row span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta-row .check {
  width: 18px; height: 18px; border-radius: 50%; background: var(--brand);
  display: grid; place-items: center; color: #fff;
}

/* ---------- features ---------- */
.features {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}
.features-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d9d8cf; }

.feature h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 20px;
}
.feature p {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.55;
}
.feature-art {
  height: 180px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
}

.feature.span-6 { grid-column: span 6; }
.feature.span-4 { grid-column: span 4; }
.feature.span-8 { grid-column: span 8; }
.feature.span-12 { grid-column: span 12; }

.feature--react {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
}
.feature--react .feature-art--react {
  height: 460px;
  margin: 0;
  background: var(--bg);
}
.feature--react .feature-text h3 { margin-top: 0; }
.feature--react .feature-text p { margin-top: 14px; font-size: 15.5px; line-height: 1.6; }

/* ---------- chat demo ---------- */
.demo {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #F5F4EF 100%);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.demo-head { text-align: left; margin-bottom: 56px; }
.demo-head .eyebrow { margin: 0; }
.demo-head .section-title { margin-top: 20px; max-width: 720px; }
.demo-head .section-sub { margin: 18px 0 0; max-width: 720px; text-align: left; }

.demo-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 1160px;
  margin: 0 auto;
}
.demo-scenarios {
  display: flex; flex-direction: column; gap: 8px;
}
.scenario-tab {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 12px;
  transition: all 150ms ease;
  position: relative;
  overflow: hidden;
}
.scenario-tab:hover { border-color: #d9d8cf; }
.scenario-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.scenario-tab .st-num {
  
  font-size: 11px;
  color: var(--ink-4);
}
.scenario-tab.active .st-num { color: rgba(255,255,255,0.5); }
.scenario-tab .st-progress {
  position: absolute; left: 0; bottom: 0; height: 2px; background: var(--brand);
  border-radius: 0 0 14px 14px;
  transition: width 80ms linear;
}

.chat-frame {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 640px;
}
.chat-top {
  height: 48px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--ink-3);
}
.chat-top .ct-left, .chat-top .ct-right { display: flex; align-items: center; gap: 12px; }
.chat-top .ct-title { color: var(--ink); font-weight: 500; }
.chat-top .traffic { display: flex; gap: 6px; }
.chat-top .traffic span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.chat-body {
  flex: 1;
  padding: 28px 32px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
  max-height: 560px;
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.chat-msg-user {
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 16px 16px 4px 16px;
  font-size: 14.5px;
  max-width: 75%;
  line-height: 1.45;
}
.chat-msg-user .file-attach { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.18); color: #fff; }
.chat-msg-user .file-attach svg path { stroke: #fff; fill: rgba(255,255,255,0.08); }
.chat-msg-ai {
  align-self: flex-start;
  max-width: 100%;
  width: 100%;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
  display: flex; flex-direction: column; gap: 8px;
}
.thinking {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-3);
  font-size: 14px;
  padding: 6px 0;
}
.thinking .spin {
  width: 14px; height: 14px;
  border: 1.6px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tool-step {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--bg-soft);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-2);
  
  border: 1px solid var(--line-2);
  max-width: fit-content;
}
.tool-step.done { color: var(--ink-3); }
.tool-step .check { color: var(--brand); }

.result-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}
.result-table .rt-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
}
.result-table .rt-top .rt-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand); color: #fff;
  padding: 6px 12px; border-radius: 8px;
  font-size: 12px;
}
.result-table .rt-top .rt-copy {
  color: var(--ink-3); font-size: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px;
}
.result-table table { width: 100%; border-collapse: collapse; }
.result-table th, .result-table td {
  text-align: left; padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--line-2);
}
.result-table th { color: var(--ink-3); font-weight: 500; background: var(--bg-soft); font-size: 12px; letter-spacing: 0.01em; }
.result-table td { color: var(--ink); }
.result-table td.mono {  font-size: 12.5px; color: var(--ink-2); }
.result-table tr:last-child td { border-bottom: none; }

.result-success {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--brand-soft-2);
  border: 1px solid #CEE8DB;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--brand-2);
  font-weight: 500;
}
.result-success .rs-meta { color: var(--ink-3); font-weight: 400; font-size: 13px; }

.confirm-action {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.confirm-action .ca-text { flex: 1; }
.confirm-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font: inherit;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  overflow: hidden;
  animation: cb-press 1500ms ease-out 1 both;
  transform-origin: center;
}
.confirm-btn .cb-cursor {
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
  top: 50%; left: 50%;
  opacity: 0;
  animation: cb-cursor 1500ms ease-out 1 both;
}
.confirm-btn .cb-ripple {
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: cb-ripple 1500ms ease-out 1 both;
}
@keyframes cb-press {
  0%   { transform: scale(0.94); opacity: 0; }
  20%  { transform: scale(1); opacity: 1; }
  55%  { transform: scale(1); background: var(--brand); }
  65%  { transform: scale(0.96); background: #0E8559; }
  80%  { transform: scale(1); background: var(--brand); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes cb-cursor {
  0%   { opacity: 0; transform: translate(40px, 30px); }
  35%  { opacity: 1; transform: translate(0px, 0px); }
  60%  { opacity: 1; transform: translate(-4px, -4px) scale(0.85); }
  75%  { opacity: 1; transform: translate(-4px, -4px) scale(1); }
  100% { opacity: 0; transform: translate(-4px, -4px) scale(1); }
}
@keyframes cb-ripple {
  0%, 55% { transform: translate(-50%, -50%) scale(0); opacity: 0.7; }
  100%    { transform: translate(-50%, -50%) scale(14); opacity: 0; }
}

.bar-chart {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.bar-chart .bc-title { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 70px; align-items: center; gap: 12px; padding: 6px 0; font-size: 13px; }
.bar-row .bar-label { color: var(--ink); }
.bar-row .bar-track { height: 8px; background: var(--bg-soft); border-radius: 4px; overflow: hidden; position: relative; }
.bar-row .bar-fill { height: 100%; background: var(--brand); border-radius: 4px; transform-origin: left; }
.bar-row .bar-val {  font-size: 12px; color: var(--ink-2); text-align: right; }

.file-attach {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

.chat-input-mock {
  margin: 0 24px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-sm);
}
.chat-input-mock .ci-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.chat-input-mock .ci-pill {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-3);
}
.chat-input-mock .ci-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chat-input-mock .ci-placeholder { color: var(--ink-4); font-size: 14px; padding: 4px 0; }
.chat-input-mock .ci-send {
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft);
  display: grid; place-items: center; color: var(--ink-4);
}

/* ---------- security ---------- */
.security { padding: 120px 0; }
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.sec-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.sec-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.sec-card h4 {
  font-size: 15px; font-weight: 600; margin-top: 16px; letter-spacing: -0.01em;
}
.sec-card p { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
.sec-icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}

.sec-card--clean { padding: 20px; }
.sec-card--clean .sec-num {
  
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.08em;
}
.sec-card--clean h4 { margin-top: 10px; }

.arch-diagram {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
}

.arch-diagram--v2 {
  padding: 24px;
  background: linear-gradient(180deg, #fafaf6 0%, var(--bg-card) 100%);
}
.arch-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.arch-eyebrow {
  font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.12em;
  
}
.arch-pulse {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--ink-3);
  
}
.arch-pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #13A16E;
  box-shadow: 0 0 0 0 rgba(19, 161, 110, 0.7);
  animation: arch-pulse 1.6s infinite;
}
@keyframes arch-pulse {
  0% { box-shadow: 0 0 0 0 rgba(19, 161, 110, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(19, 161, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(19, 161, 110, 0); }
}
.arch-canvas {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
}
.arch-note--v2 {
  margin-top: 14px;
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.5px; color: var(--ink-2);
  line-height: 1.5;
}

.arch-row {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 24px;
}
.arch-node {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 72px;
}
.arch-node.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.arch-node .n-sub { font-size: 11px; color: var(--ink-4); font-weight: 400; margin-top: 4px;  }
.arch-node.primary .n-sub { color: rgba(255,255,255,0.55); }
.arch-arrow { color: var(--ink-4); font-size: 16px;  display: flex; align-items: center; justify-content: center; padding: 0 4px; }

.arch-note {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--brand-soft-2);
  border: 1px solid #CEE8DB;
  border-radius: 12px;
  font-size: 13px;
  color: var(--brand-2);
  display: flex; align-items: center; gap: 10px;
}

/* ---------- roles ---------- */
.roles { padding: 120px 0; background: var(--bg-soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.roles-grid { display: grid; grid-template-columns: 240px 1fr; gap: 40px; margin-top: 56px; }
.role-tabs { display: flex; flex-direction: column; gap: 4px; }
.role-tab {
  padding: 14px 16px; border-radius: 12px; text-align: left; font-size: 15px;
  color: var(--ink-3); border: 1px solid transparent;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 150ms ease;
}
.role-tab:hover { color: var(--ink); }
.role-tab.active { background: var(--bg-card); border-color: var(--line); color: var(--ink); font-weight: 500; }
.role-tab .arrow { opacity: 0; transition: opacity 150ms ease;  }
.role-tab.active .arrow { opacity: 1; color: var(--brand); }

.role-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  min-height: 460px;
  position: relative;
  overflow: hidden;
}
.role-panel h3 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.role-panel .role-quote {
  margin-top: 16px;
  font-size: 17px; color: var(--ink-2); line-height: 1.5; max-width: 480px;
}
.role-tasks {
  margin-top: 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px;
}
.role-task {
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink-2);
  display: flex; align-items: start; gap: 10px;
  line-height: 1.45;
}
.role-task .rt-icon { color: var(--brand); flex-shrink: 0; margin-top: 2px; }

.role-metric {
  margin-top: 32px;
  display: flex; gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}
.role-metric .rm-item { }
.role-metric .rm-val { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.role-metric .rm-val em { font-style: normal; color: var(--brand); }
.role-metric .rm-label { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* ---------- pricing / llm ---------- */
.pricing { padding: 120px 0; }
.llm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.llm-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.llm-card.featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.llm-card .llm-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3);
  padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line-2);
}
.llm-card.featured .llm-tag { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.12); }
.llm-card h3 { margin-top: 20px; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.llm-card .llm-sub { margin-top: 10px; font-size: 15px; color: var(--ink-3); line-height: 1.5; }
.llm-card.featured .llm-sub { color: rgba(255,255,255,0.7); }
.llm-list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.llm-list li { list-style: none; padding-left: 22px; position: relative; font-size: 14.5px; line-height: 1.45; }
.llm-list li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 10px; height: 10px; border-radius: 3px; background: var(--brand); opacity: 0.25;
}
.llm-list li::after {
  content: ''; position: absolute; left: 2px; top: 9px;
  width: 6px; height: 6px; border-radius: 2px; background: var(--brand);
}
.llm-card.featured .llm-list li::before { background: rgba(255,255,255,0.15); }
.llm-card.featured .llm-list li::after { background: #fff; }

.sub-card {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 32px; align-items: center;
}
.sub-card h4 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.sub-card p { font-size: 14px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
.sub-card .sub-price { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.sub-card .sub-price span { font-size: 14px; color: var(--ink-3); font-weight: 400; }
.sub-card--two { grid-template-columns: 1fr auto; }

/* ---------- shared section CTA ---------- */
.section-cta {
  margin-top: 64px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.section-cta .btn { height: 52px; padding: 0 26px; font-size: 15px; }
.section-cta .btn-brand { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- pricing: token explanation note ---------- */
.token-note {
  margin-top: 32px;
  padding: 18px 22px;
  border-left: 2px solid var(--ink);
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
  border-radius: 0 12px 12px 0;
}
.token-note strong { color: var(--ink); font-weight: 600; }

/* ---------- pricing: scenario toggle ---------- */
.econ-toggle {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: 16px;
}
.econ-toggle-btn {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 160ms, border-color 160ms, color 160ms;
  color: var(--ink-2);
  font-family: inherit;
}
.econ-toggle-btn:hover { color: var(--ink); }
.econ-toggle-btn.active {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.econ-toggle-label { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
.econ-toggle-sub { font-size: 12.5px; color: var(--ink-3); }
.econ-toggle-btn.active .econ-toggle-sub { color: var(--ink-3); }
@media (max-width: 720px) {
  .econ-toggle { grid-template-columns: 1fr; }
}

/* ---------- pricing: unit-economics ---------- */
.econ {
  margin-top: 56px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
}
.econ-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.econ-head-text { flex: 1 1 480px; min-width: 0; }
.econ-head h3 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin-top: 16px; max-width: 720px; line-height: 1.15; }
.econ-head .econ-lead { margin-top: 14px; max-width: 700px; font-size: 16px; line-height: 1.5; color: var(--ink-3); }
.econ-head-stat {
  flex: 0 0 auto;
  background: var(--brand);
  color: #fff;
  border-radius: 18px;
  padding: 22px 26px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: stretch;
  justify-content: center;
}
.econ-head-stat-eyebrow {
  
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}
.econ-head-stat-num {
  
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  margin-top: 4px;
}
.econ-head-stat-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  line-height: 1.4;
}
@media (max-width: 720px) {
  .econ-head-stat { width: 100%; }
}

.econ-compare {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}
.econ-col {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.econ-col-tag {
  display: inline-flex; align-items: center; gap: 7px;
  
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.econ-col-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

/* "Руками" — psychologically negative: warm red wash, strike-through cost. */
.econ-col--danger {
  background: linear-gradient(180deg, #FBEEEA 0%, #F6DFD7 100%);
  border-color: #ECC7BE;
}
.econ-col--danger .econ-col-tag { color: #B73A2C; }
.econ-col--danger .econ-num {
  color: #B73A2C;
  text-decoration: line-through;
  text-decoration-color: rgba(183,58,44,0.5);
  text-decoration-thickness: 2px;
}
.econ-col--danger .econ-cap { color: #6E2418; }
.econ-col--danger .econ-sub { color: #9A4434; }

/* SPRUT column — calm light-green wash. */
.econ-col--brand {
  background: #ECF7F1;
  color: var(--ink);
  border-color: #C8E6D5;
}
.econ-col--brand .econ-col-tag { color: var(--brand-2); }
.econ-col--brand .econ-num { color: var(--brand-2); }
.econ-col--brand .econ-cap { color: var(--brand-2); }
.econ-col--brand .econ-sub { color: var(--brand-2); opacity: 0.78; }

/* % savings — the "winner" highlight: solid brand green with white type. */
.econ-col--save {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(15,138,94,0.45);
}
.econ-col--save .econ-col-tag { color: rgba(255,255,255,0.82); }
.econ-col--save .econ-num--save { color: #fff; font-size: 56px; }
.econ-col--save .econ-cap { color: #fff; }
.econ-col--save .econ-sub { color: rgba(255,255,255,0.9); }

.econ-num { font-size: 48px; font-weight: 700; letter-spacing: -0.025em;  line-height: 1; }
.econ-num--mute { color: var(--ink-3); }
.econ-num--save { color: #fff; font-size: 56px; }
.econ-cap { font-size: 14px; font-weight: 600; margin-top: 10px; }
.econ-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.econ-col--brand .econ-sub { color: rgba(255,255,255,0.9); }
.econ-vs {
  align-self: center;
  font-size: 22px; color: var(--ink-4); 
  font-weight: 500;
  padding: 0 4px;
}

.econ-calc {
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--bg-soft);
}
.econ-calc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.econ-calc-label { font-size: 16px; font-weight: 600; letter-spacing: -0.005em; }
.econ-calc-hint { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.econ-calc-volume {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 16px;
}
.econ-calc-volume input {
  width: 110px; border: 0; outline: 0; background: transparent;
   font-size: 22px; font-weight: 600;
  color: var(--ink); padding: 0;
}
.econ-calc-volume span { font-size: 13px; color: var(--ink-3); }

.econ-slider {
  margin-top: 24px;
  width: 100%;
  -webkit-appearance: none; appearance: none;
  height: 4px; background: var(--line-2); border-radius: 2px; outline: 0;
}
.econ-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.18);
  cursor: pointer;
}
.econ-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.18);
  cursor: pointer;
}
.econ-ticks {
  display: flex; justify-content: space-between;
  margin-top: 8px;
   font-size: 11px; color: var(--ink-3);
}

.econ-result {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 12px;
}
.econ-cell {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 20px 22px;
}
/* "Руками" — losing money, danger styling. */
.econ-cell--manual {
  background: linear-gradient(180deg, #FBEEEA 0%, #F7E3DC 100%);
  border-color: #ECC7BE;
}
.econ-cell--manual .econ-cell-cap { color: #8C3024; }
.econ-cell--manual .econ-cell-val { color: #B73A2C; }
.econ-cell--manual .econ-cell-sub { color: #9A4434; }

/* "Через SPRUT" — calm light-green wash with brand-green type. */
.econ-cell--agent {
  background: #ECF7F1;
  color: var(--brand-2);
  border-color: #C8E6D5;
  box-shadow: none;
}
.econ-cell--agent .econ-cell-cap { color: var(--brand-2); }
.econ-cell--agent .econ-cell-val { color: var(--brand-2); }
.econ-cell--agent .econ-cell-sub { color: var(--brand-2); opacity: 0.78; }

/* "Экономия в месяц" — solid brand-green winner cell. */
.econ-cell--save {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(15,138,94,0.45);
}
.econ-cell--save .econ-cell-cap { color: rgba(255,255,255,0.92); }
.econ-cell-cap { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; color: var(--ink-3); }
.econ-cell-val { margin-top: 10px; font-size: 32px; font-weight: 700; letter-spacing: -0.02em;  }
.econ-cell--save .econ-cell-val { color: #fff; font-size: 36px; }
.econ-cell-sub { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.econ-cell--save .econ-cell-sub { color: rgba(255,255,255,0.88); }

@media (max-width: 880px) {
  .econ { padding: 28px 22px; }
  .econ-compare { grid-template-columns: 1fr; }
  .econ-vs { transform: rotate(90deg); }
  .econ-result { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq { padding: 120px 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; margin-top: 32px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  cursor: pointer;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.faq-q .faq-toggle {
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform 200ms ease, background 200ms ease;
  color: var(--ink-2);
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.55;
}
.faq-item.open .faq-a { max-height: 300px; padding-top: 14px; }

/* ---------- CTA ---------- */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box {
  position: relative;
  background: var(--ink);
  color: #fff;
  border-radius: 32px;
  padding: 80px 48px;
  overflow: hidden;
}
.cta-box h2 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 800px;
  margin: 0 auto;
}
.cta-box p { margin-top: 20px; font-size: 18px; color: rgba(255,255,255,0.65); }
.cta-actions { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-actions .btn-primary { background: #fff; color: var(--ink); }
.cta-actions .btn-primary:hover { background: #f3f3f0; }
.cta-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.2); }
.cta-actions .btn-ghost:hover { border-color: #fff; }

.cta-bg-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- footer ---------- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13.5px;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer-col h5 { color: var(--ink); font-weight: 500; font-size: 13px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col a { display: block; padding: 4px 0; color: var(--ink-3); }
.footer-col a:hover { color: var(--ink); }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 300px; }
.footer-brand p { font-size: 13px; line-height: 1.5; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--ink-4); }
.footer-bottom-links { display: inline-flex; align-items: center; gap: 12px; }
.footer-bottom-links a { color: var(--ink-3); }
.footer-bottom-links a:hover { color: var(--ink); }
.footer-bottom-sep { color: var(--ink-4); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; }
  .features-head { grid-template-columns: 1fr; }
  .feature.span-6, .feature.span-4, .feature.span-8 { grid-column: span 12; }
  .feature--react { grid-template-columns: 1fr; }
  .feature--react .feature-art--react { height: 320px; }
  .demo-layout { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
  .role-tabs { flex-direction: row; overflow-x: auto; }
  .llm-grid { grid-template-columns: 1fr; }
  .sub-card { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .role-tasks { grid-template-columns: 1fr; }
  .arch-row { grid-template-columns: 1fr; gap: 8px; }
  .arch-arrow { transform: rotate(90deg); margin: 0 auto; }
}

/* reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(.2,.6,.3,1), transform 700ms cubic-bezier(.2,.6,.3,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1 !important; transform: none !important; transition: none !important; }
