/* ============================================================
   Workwise — cinematic design system
   Deep navy + vivo blue accent, with AgentMail structure
   ============================================================ */

/* ---------- Fonts (Inter, self-hostable later) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300..700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --bg:            #05060f;
  --bg-2:          #070813;
  --surface:       rgba(255, 255, 255, 0.024);
  --surface-2:     rgba(255, 255, 255, 0.04);
  --border:        rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);

  /* Text */
  --text:      #ffffff;
  --text-soft: #c7d3ea;
  --text-mute: #7f8aa3;
  --text-dim:  #55607a;

  /* Accents (vivo blue #415fff, used sparingly) */
  --brand:      #415fff;
  --brand-2:    #7b90ff;
  --brand-hi:   #5a6dfa;   /* gradient top on solid buttons: darker than --brand-2 so white text stays legible */
  --brand-deep: #2b40c9;
  --ice:         #bad6f7;
  --ice-2:       #d1e4fa;

  /* Glow (dialed back for restraint) */
  --glow-brand: rgba(65, 95, 255, 0.55);
  --glow-soft:   rgba(65, 95, 255, 0.16);
  --glow-ice:    rgba(186, 214, 247, 0.28);

  /* Layered "glass" surface — dimensional via shadow, not borders (AuthKit-style) */
  --surface-tint:   rgba(186, 214, 247, 0.03);
  --surface-tint-2: rgba(186, 214, 247, 0.055);
  --shadow-glass:       inset 0 1px 1px rgba(199, 211, 234, 0.12), inset 0 24px 48px rgba(199, 211, 234, 0.04), 0 20px 40px -14px rgba(6, 6, 14, 0.7);
  --shadow-glass-hover: inset 0 1px 1px rgba(199, 211, 234, 0.18), inset 0 24px 48px rgba(199, 211, 234, 0.06), 0 26px 52px -14px rgba(6, 6, 14, 0.82);

  /* Layout */
  --maxw: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.6, 0.6, 0, 1);
  --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.018em; line-height: 1.12; }
p { margin: 0; }

/* ---------- Global starfield / grid background ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 50% -8%, rgba(102, 58, 243, 0.10), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(94, 130, 255, 0.06), transparent 55%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.5), transparent 100%),
    radial-gradient(1px 1px at 68% 6%,  rgba(255,255,255,0.35), transparent 100%),
    radial-gradient(1.5px 1.5px at 42% 32%, rgba(186,214,247,0.4), transparent 100%),
    radial-gradient(1px 1px at 88% 24%, rgba(255,255,255,0.3), transparent 100%),
    radial-gradient(1px 1px at 26% 44%, rgba(186,214,247,0.28), transparent 100%),
    radial-gradient(1.5px 1.5px at 79% 41%, rgba(255,255,255,0.22), transparent 100%),
    linear-gradient(rgba(255,255,255,0.013) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.013) 1px, transparent 1px);
  background-size: 520px 520px, 480px 480px, 560px 560px, 610px 610px, 540px 540px, 660px 660px, 64px 64px, 64px 64px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 100px; position: relative; }
.section-sm { padding-block: 64px; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mute);
  font-family: var(--mono);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 10px 2px var(--glow-brand);
}
.section-title { font-size: clamp(28px, 4vw, 46px); font-weight: 500; letter-spacing: -0.022em; }
.section-lead {
  color: var(--text-mute); font-size: 17px; max-width: 560px;
  margin-top: 16px;
}
.center .section-lead { margin-inline: auto; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 6, 15, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand-mark {
  display: grid; place-items: center;
  color: var(--brand-2);
}
/* viewBox is cropped to the mark itself, so no dead space around it */
.brand-mark svg { width: 38px; height: 20px; }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  border: none; transition: transform 0.2s var(--ease-out), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
/* Primary — brand blue, reserved for the key action. Refined, no light-streak. */
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--brand-hi), var(--brand));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 8px 22px -8px var(--glow-brand);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.34), 0 12px 28px -8px var(--glow-brand); }
/* Ghost — subtle glass pill (AuthKit secondary) */
.btn-ghost {
  color: var(--text-soft);
  background: rgba(186, 214, 247, 0.06);
  box-shadow: inset 0 0 0 1px rgba(186, 215, 247, 0.12);
}
.btn-ghost:hover { background: rgba(186, 214, 247, 0.1); color: var(--text); box-shadow: inset 0 0 0 1px rgba(186, 215, 247, 0.22); }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-block { width: 100%; }

/* ============================================================
   HERO + SPOTLIGHT
   ============================================================ */
.hero { position: relative; padding-block: 120px 90px; overflow: hidden; text-align: center; }
/* spotlight beam from top, breathing */
.spotlight {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 720px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 0%, var(--glow-brand), transparent 70%);
  filter: blur(34px);
  opacity: 0.45;
  animation: spot-breathe 8s ease-in-out infinite;
}
.spotlight.two {
  width: 500px; height: 600px;
  background: radial-gradient(ellipse 50% 60% at 50% 0%, var(--glow-ice), transparent 70%);
  opacity: 0.28; animation-duration: 11.5s; animation-delay: -3s;
}
@keyframes spot-breathe {
  0%, 100% { opacity: 0.28; transform: translateX(-50%) scale(0.95); }
  50%      { opacity: 0.5;  transform: translateX(-50%) scale(1.05); }
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; margin-inline: auto; }

.hero h1 {
  font-size: clamp(42px, 7.2vw, 80px); font-weight: 560; letter-spacing: -0.032em;
  margin-top: 26px; line-height: 1.06;
  text-wrap: balance; /* keeps the last word off a line of its own */
}
.hero h1 .grad {
  background: linear-gradient(180deg, #fff 30%, var(--ice) 75%, var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  color: var(--text-mute); font-size: clamp(16px, 2.2vw, 19px);
  max-width: 600px; margin: 24px auto 0;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* ============================================================
   HERO CARD STACK — a live workflow card flanked by 3D-tilted cards
   ============================================================ */
.hero-stack {
  position: relative; margin: 64px auto 0; height: 340px; max-width: 900px;
  perspective: 1400px;
}
.stack-card {
  position: absolute; top: 0; left: 50%; width: 360px;
  border-radius: 16px; padding: 22px;
  background: rgba(7, 8, 18, 0.96);
  box-shadow: var(--shadow-glass);
  text-align: left;
}
.stack-card.front { transform: translateX(-50%); z-index: 3; }
.stack-card.back { z-index: 1; filter: brightness(0.52) saturate(0.8); top: 14px; }
.stack-card.back.left  { transform: translateX(-108%) rotateY(12deg) scale(0.94); }
.stack-card.back.right { transform: translateX(8%) rotateY(-12deg) scale(0.94); }

.wf-head { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--text); padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid rgba(199,211,234,0.08); }
.wf-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px 1px rgba(74,222,128,0.55); flex: none; }
.wf-badge { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--ice); background: rgba(186,214,247,0.08); padding: 3px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(186,215,247,0.14); }
.wf-step { display: flex; align-items: center; gap: 10px; padding: 9px 2px; font-size: 13.5px; color: var(--text-soft); }
.wf-step .st-ico { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.wf-step.done .st-ico { background: rgba(74,222,128,0.14); color: #4ade80; }
.wf-step.done .st-ico svg { width: 10px; height: 10px; }
.wf-step.active { color: var(--text); }
.wf-step.active .st-ico { color: var(--brand-2); }
.wf-step.active .st-ico svg { width: 14px; height: 14px; animation: wf-spin 1.6s linear infinite; }
@keyframes wf-spin { to { transform: rotate(360deg); } }
.wf-step.wait { color: var(--text-dim); }
.wf-step.wait .st-ico { box-shadow: inset 0 0 0 1.5px rgba(127,138,163,0.35); }
.wf-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(199,211,234,0.08); font-size: 11.5px; font-family: var(--mono); color: var(--text-dim); display: flex; align-items: center; gap: 7px; }
.wf-foot svg { width: 12px; height: 12px; color: var(--ice); flex: none; }

/* ============================================================
   FEATURE ICON ROW (workflow types)
   ============================================================ */
.icon-row {
  display: flex; justify-content: center; align-items: flex-start; gap: clamp(20px, 4.5vw, 52px);
  flex-wrap: wrap; margin-top: 58px;
}
.icon-item { display: grid; justify-items: center; gap: 10px; width: 86px; }
.icon-item .ii-ico {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px;
  background: rgba(186,214,247,0.05); color: var(--ice-2);
  box-shadow: inset 0 1px 1px rgba(199,211,234,0.14), inset 0 0 0 1px rgba(186,215,247,0.08);
}
.icon-item .ii-ico svg { width: 18px; height: 18px; }
.icon-item span:last-child { font-size: 12px; color: rgba(199,211,234,0.64); text-align: center; line-height: 1.35; }

/* ============================================================
   CARDS / PANELS
   ============================================================ */
.card {
  position: relative; background: var(--surface-tint); border: none;
  border-radius: var(--radius); padding: 28px; backdrop-filter: blur(4px);
  box-shadow: var(--shadow-glass);
  transition: box-shadow 0.35s var(--ease), background 0.3s var(--ease), transform 0.35s var(--ease-out);
  overflow: hidden;
}
.card:hover { background: var(--surface-tint-2); box-shadow: var(--shadow-glass-hover); transform: translateY(-2px); }
.card-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(102,58,243,0.22), rgba(102,58,243,0.05));
  border: 1px solid var(--border-strong); color: var(--ice-2); margin-bottom: 18px;
}
.card-icon svg { width: 20px; height: 20px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-mute); font-size: 15px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   BENEFITS PANEL — one glass slab, hairline-divided outcomes
   ============================================================ */
.benefits-panel {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-radius: 20px; overflow: hidden;
  background: var(--surface-tint); backdrop-filter: blur(4px);
  box-shadow: var(--shadow-glass);
}
.benefit-col {
  position: relative; padding: 40px 34px;
}
.benefit-col + .benefit-col { border-left: 1px solid rgba(199, 211, 234, 0.08); }
.benefit-col .b-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-2); display: flex; align-items: center; gap: 8px;
}
.benefit-col .b-kicker svg { width: 13px; height: 13px; }
.benefit-col h3 {
  font-size: clamp(20px, 2.4vw, 26px); font-weight: 550; letter-spacing: -0.02em;
  margin-top: 14px;
  background: linear-gradient(180deg, #fff 55%, var(--ice));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.benefit-col p { color: var(--text-mute); font-size: 14.5px; margin-top: 10px; line-height: 1.65; }
.benefit-col::after {
  content: ""; position: absolute; left: 34px; right: 34px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 107, 255, 0.35), transparent);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.benefit-col:hover::after { opacity: 1; }
@media (max-width: 860px) {
  .benefits-panel { grid-template-columns: 1fr; }
  .benefit-col + .benefit-col { border-left: 0; border-top: 1px solid rgba(199, 211, 234, 0.08); }
}

/* ============================================================
   STAT STRIP
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 30px 26px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat-num { font-size: 30px; font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff, var(--ice)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--text-mute); font-size: 13.5px; margin-top: 6px; }

/* ============================================================
   PROCESS TIMELINE (big 01–04 numbers)
   ============================================================ */
.process { display: grid; gap: 20px; }
.step {
  position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 30px; align-items: start;
  padding: 34px; border: none; border-radius: var(--radius);
  background: var(--surface-tint); backdrop-filter: blur(4px); box-shadow: var(--shadow-glass);
  overflow: hidden;
}
.step-num {
  font-size: 72px; font-weight: 600; line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.16);
  position: relative;
}
.step-num span {
  position: absolute; inset: 0; color: transparent;
  background: linear-gradient(180deg, var(--brand-2), var(--brand-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 0;
  filter: drop-shadow(0 0 18px var(--glow-brand));
  opacity: 0.9;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--text-mute); font-size: 15px; max-width: 620px; }
.step::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 2px;
  background: linear-gradient(180deg, transparent, var(--brand), transparent);
  opacity: 0.5;
}

/* ============================================================
   CIRCUIT DIAGRAM (flowing dots + radar)  — the "how it connects" visual
   ============================================================ */
.diagram { position: relative; height: 360px; border: none; border-radius: var(--radius); box-shadow: var(--shadow-glass);
  background: radial-gradient(circle at 50% 50%, rgba(102,58,243,0.08), transparent 65%), var(--surface-tint); overflow: hidden; }
.diagram .radar {
  position: absolute; top: 50%; left: 50%; width: 520px; height: 520px; transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0deg, rgba(102,58,243,0.22) 30deg, transparent 60deg);
  border-radius: 50%; animation: radar 8s linear infinite;
}
@keyframes radar { to { transform: translate(-50%, -50%) rotate(360deg); } }
.diagram .core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 18px; display: grid; place-items: center; z-index: 3;
  background: linear-gradient(150deg, var(--brand), var(--brand-deep));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.16) inset, 0 0 40px 4px var(--glow-brand);
  animation: core-pulse 4s ease-in-out infinite;
}
.diagram .core svg { width: 34px; height: 34px; color: #fff; }
@keyframes core-pulse { 0%,100%{ box-shadow:0 0 0 1px rgba(255,255,255,0.16) inset, 0 0 30px 2px var(--glow-soft);} 50%{ box-shadow:0 0 0 1px rgba(255,255,255,0.16) inset, 0 0 55px 8px var(--glow-brand);} }
.diagram .node {
  position: absolute; z-index: 2; padding: 9px 14px; border-radius: 10px; font-size: 12.5px; font-family: var(--mono);
  background: rgba(10,12,24,0.9); border: 1px solid var(--border-strong); color: var(--text-soft);
}
.diagram .n1 { top: 16%; left: 12%; } .diagram .n2 { top: 14%; right: 12%; }
.diagram .n3 { bottom: 16%; left: 14%; } .diagram .n4 { bottom: 14%; right: 14%; }
.diagram svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.diagram svg.wires path { stroke: rgba(255,255,255,0.1); stroke-width: 1; fill: none; }
.diagram svg.wires .flow {
  stroke: var(--brand-2); stroke-width: 1.6; stroke-dasharray: 6 190; filter: drop-shadow(0 0 4px var(--glow-brand));
  animation: flow-dots 3s linear infinite;
}
@keyframes flow-dots { to { stroke-dashoffset: -196; } }

/* ============================================================
   LIVE AGENT PRODUCTION console
   ============================================================ */
.live-sim-badge {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); background: rgba(186,214,247,0.05); padding: 5px 12px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(186,215,247,0.1);
}
.live-companies { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.company-chip {
  border: none; cursor: pointer; font-family: inherit; text-align: left;
  display: grid; gap: 2px; padding: 10px 16px; border-radius: 12px;
  background: rgba(186,214,247,0.04); color: var(--text-soft);
  box-shadow: inset 0 0 0 1px rgba(186,215,247,0.08);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s var(--ease-out);
}
.company-chip:hover { background: rgba(186,214,247,0.08); transform: translateY(-1px); }
.company-chip b { font-size: 13.5px; font-weight: 600; color: var(--text); }
.company-chip span { font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); letter-spacing: 0.05em; }
.company-chip.active {
  background: linear-gradient(180deg, rgba(102,58,243,0.34), rgba(102,58,243,0.16));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 8px 22px -10px var(--glow-brand);
}
.company-chip.active span { color: var(--ice); }

.live-orch { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 24px 28px; }
.orch-core {
  width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--brand-2), var(--brand-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 0 30px -4px var(--glow-brand);
  animation: core-pulse 4s ease-in-out infinite;
}
.orch-core svg { width: 28px; height: 28px; }
.orch-name { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; flex-wrap: wrap; }
.orch-meta p { color: var(--text-mute); font-size: 13.5px; margin-top: 6px; max-width: 520px; }
.orch-stats { display: flex; gap: 26px; }
.orch-stats div { display: grid; justify-items: center; gap: 2px; }
.orch-stats b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff, var(--ice)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.orch-stats span { font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); letter-spacing: 0.05em; }

.live-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.lw-card {
  padding: 16px; border-radius: 13px; background: var(--surface-tint);
  box-shadow: var(--shadow-glass); display: grid; gap: 9px; align-content: start;
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.lw-card:hover { background: var(--surface-tint-2); }
.lw-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lw-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--ice-2);
  background: rgba(186,214,247,0.06); box-shadow: inset 0 0 0 1px rgba(186,215,247,0.09); }
.lw-ico svg { width: 15px; height: 15px; }
.lw-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.35; }
.lw-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.07em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.lw-status .dot { width: 5px; height: 5px; border-radius: 50%; }
.lw-status.running { color: #4ade80; background: rgba(74,222,128,0.09); }
.lw-status.running .dot { background: #4ade80; box-shadow: 0 0 7px 1px rgba(74,222,128,0.6); animation: live-blink 1.6s ease-in-out infinite; }
.lw-status.done { color: var(--ice); background: rgba(186,214,247,0.08); }
.lw-status.done .dot { background: var(--ice); }
.lw-status.queued { color: var(--text-dim); background: rgba(127,138,163,0.1); }
.lw-status.queued .dot { background: var(--text-dim); }
.lw-status.approval { color: #fbbf24; background: rgba(251,191,36,0.09); }
.lw-status.approval .dot { background: #fbbf24; box-shadow: 0 0 7px 1px rgba(251,191,36,0.55); animation: live-blink 1.1s ease-in-out infinite; }
@keyframes live-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.lw-last { font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); }

.live-feed { padding: 20px 24px; }
.feed-head { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.feed-lines { display: grid; gap: 7px; }
.feed-line { display: flex; gap: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--text-mute); animation: feed-in 0.4s var(--ease-out); }
.feed-line time { color: var(--text-dim); flex: none; }
.feed-line b { color: var(--ice); font-weight: 500; }
@keyframes feed-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) { .live-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .live-orch { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .orch-name { justify-content: center; }
}
@media (max-width: 640px) { .live-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq { max-width: 760px; margin-inline: auto; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; color: var(--text);
  font-size: 16.5px; font-weight: 500; padding: 22px 4px; display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq-q .ico { color: var(--text-mute); transition: transform 0.3s var(--ease); flex: none; }
.faq-item.open .faq-q .ico { transform: rotate(45deg); color: var(--brand-2); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { color: var(--text-mute); font-size: 15px; padding: 0 4px 22px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  position: relative; text-align: center; padding: 72px 30px; border-radius: 24px; overflow: hidden;
  border: none; box-shadow: var(--shadow-glass);
  background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(102,58,243,0.16), transparent 62%), var(--surface-tint);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 500; letter-spacing: -0.022em; }
.cta-band p { color: var(--text-soft); margin: 16px auto 0; max-width: 480px; }
.cta-band .hero-actions { margin-top: 30px; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 44px; align-items: stretch;
}
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px; border-radius: var(--radius);
  background: var(--surface-tint); box-shadow: var(--shadow-glass);
  backdrop-filter: blur(4px);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease-out);
}
.plan:hover { box-shadow: var(--shadow-glass-hover); transform: translateY(-2px); }
.plan.featured {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(102, 58, 243, 0.18), transparent 65%),
    var(--surface-tint-2);
}
.plan-badge {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ice-2); background: rgba(102, 58, 243, 0.26);
  padding: 5px 10px; border-radius: 999px;
}
.plan-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.plan-desc { color: var(--text-mute); font-size: 14px; margin: 7px 0 0; line-height: 1.5; }
.plan-price { margin-top: 22px; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.plan-price b { font-size: 36px; font-weight: 560; letter-spacing: -0.03em; line-height: 1; }
.plan-price span { color: var(--text-dim); font-size: 13.5px; }
.plan-alt { margin: 9px 0 0; font-size: 13.5px; color: var(--text-dim); }
.plan-alt b { color: var(--ice); font-weight: 600; }
.plan-setup {
  margin: 16px 0 0; padding: 10px 13px; border-radius: 11px;
  background: rgba(102, 58, 243, 0.15);
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 13.5px;
}
.plan-setup s { color: var(--text-dim); }
.plan-setup b { color: var(--ice-2); font-weight: 600; }
.plan-setup em {
  font-family: var(--mono); font-style: normal; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-2);
}
.plan-list { list-style: none; margin: 20px 0 26px; padding: 0; display: grid; gap: 11px; }
.plan-list li {
  position: relative; padding-left: 27px;
  color: var(--text-soft); font-size: 14.5px; line-height: 1.5;
}
.plan-list li::before {
  content: ''; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%; background: rgba(102, 58, 243, 0.26);
}
.plan-list li::after {
  content: ''; position: absolute; left: 4.5px; top: 8.5px;
  width: 6px; height: 3px;
  border-left: 1.7px solid var(--ice-2); border-bottom: 1.7px solid var(--ice-2);
  transform: rotate(-45deg);
}
/* headline feature: styled as a highlighted row, marked with the brand sparkle */
.plan-list li.hl {
  margin-top: 5px;
  padding: 12px 14px 12px 38px;
  border-radius: 11px;
  color: var(--text);
  font-weight: 500;
  background: rgba(102, 58, 243, 0.17);
  box-shadow: inset 0 0 0 1px rgba(139, 107, 255, 0.3);
}
.plan-list li.hl::before,
.plan-list li.hl::after { display: none; }
.plan-list li.hl .hl-ico {
  position: absolute; left: 13px; top: 13px;
  width: 17px; height: 17px; color: var(--brand-2);
}

.plan .btn { margin-top: auto; }
.plan-note { margin-top: 26px; text-align: center; font-size: 13px; color: var(--text-dim); }

@media (max-width: 900px) {
  .pricing { grid-template-columns: 1fr; }
}

/* ============================================================
   FORM
   ============================================================ */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; text-align: left; }
.field label { font-size: 13.5px; color: var(--text-soft); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--border-strong);
  border-radius: 11px; padding: 12px 14px; color: var(--text); font-size: 15px; font-family: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--glow-soft);
}
.field textarea { min-height: 120px; resize: vertical; }

/* Attachments */
.dropzone {
  position: relative; text-align: center; padding: 22px 18px;
  border: 1px dashed var(--border-strong); border-radius: 13px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: var(--glow-soft); }
.dropzone input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; padding: 0; border: 0;
}
.dropzone-ico { width: 22px; height: 22px; color: var(--text-dim); margin-bottom: 6px; }
.dropzone.is-over .dropzone-ico { color: var(--brand-2); }
.dropzone-hint { font-size: 14.5px; color: var(--text-soft); }
.dropzone-hint span { color: var(--brand-2); font-weight: 600; }
.dropzone-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }

.filelist { display: grid; gap: 7px; margin-top: 10px; list-style: none; padding: 0; }
.filelist li {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 9px; padding: 8px 10px 8px 12px; font-size: 13.5px;
}
.filelist-name { flex: 1; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist-size { color: var(--text-dim); font-size: 12.5px; font-family: var(--mono); }
.filelist-remove {
  background: none; border: 0; color: var(--text-dim); cursor: pointer;
  font-size: 18px; line-height: 1; padding: 0 2px; transition: color 0.2s var(--ease);
}
.filelist-remove:hover { color: var(--text); }

.form-error {
  font-size: 13.5px; color: #ff8a8a; background: rgba(255,90,90,0.08);
  border: 1px solid rgba(255,90,90,0.25); border-radius: 10px; padding: 10px 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding-block: 54px 40px; margin-top: 60px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--text-mute); font-size: 14px; margin-top: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); font-family: var(--mono); font-weight: 500; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-mute); font-size: 14.5px; padding: 5px 0; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-dim); font-size: 13px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ============================================================
   MARQUEE (AgentMail logo strip)
   ============================================================ */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .stack-card.back { display: none; }
  .hero-stack { height: 320px; }
  .stack-card { width: min(360px, calc(100vw - 48px)); }
  .icon-row { gap: 18px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 9px 13px; font-size: 13px; }
}
@media (max-width: 560px) {
  /* logo mark only — free the width for the two CTA buttons */
  .nav .brand { font-size: 0; gap: 0; }
  .nav-inner { padding-inline: 14px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: 8px 11px; font-size: 12px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .step { grid-template-columns: 1fr; gap: 12px; padding: 26px; }
  .step-num { font-size: 54px; }
  .footer-grid { flex-direction: column; }
  .section { padding-block: 72px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .diagram .node { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
