/* eCloud Systems — shared styles (zinc console system) */

:root {
  color-scheme: light;
  --bg: #f5f9ff;
  --bg-alt: #edf4fc;
  --bg-elev: #ffffff;
  --bg-elev-2: #e8f1fc;
  --bg-hover: #eaf3ff;
  --border: #d7e3f0;
  --border-strong: #748ba6;
  --text: #142b46;
  --text-dim: #4b627c;
  --text-faint: #536b84;
  --accent: #1559b7;
  --accent-hover: #104995;
  --accent-bg: #e8f2ff;
  --accent-br: #b7d1ef;
  --on-accent: #ffffff;
  --accent-2: #3988df;
  --accent-deep: #104995;
  --accent-grad: linear-gradient(135deg, #1559b7 0%, #3988df 100%);
  --green: #18794e;
  --violet: #276fc2;
  --amber: #4b89d0;
  --rose: #3679c5;
  --blue: #3679c5;
  --glass: linear-gradient(160deg, rgba(21, 89, 183, 0.08), rgba(21, 89, 183, 0.02) 55%, rgba(21, 89, 183, 0)), #eef6ff;
  --danger: #b42318;
  --radius: 20px;
  --radius-sm: 10px;
  --max-w: 1200px;
  --shadow: 0 30px 60px -24px rgba(20, 43, 70, 0.22);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "Fira Code", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(20, 43, 70, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
}

::selection { background: var(--accent); color: var(--on-accent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
html { scrollbar-color: var(--border) var(--bg); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
strong { color: var(--text); font-weight: 600; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

section { padding: clamp(72px, 10vh, 120px) 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(21, 89, 183, 0.025) 50%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -0.04em; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
p { margin: 0 0 16px; color: var(--text-dim); }


.lede {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 620px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 2px rgba(20, 43, 70, 0.12), 0 8px 24px -8px rgba(21, 89, 183, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 2px 8px rgba(20, 43, 70, 0.12), 0 14px 36px -10px rgba(21, 89, 183, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--bg-elev);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 34px; font-size: 0.98rem; border-radius: 12px; }
.btn[disabled] { cursor: not-allowed; opacity: 0.55; transform: none; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(245, 249, 255, 0.3);
  border-top-color: var(--on-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: rgba(245, 249, 255, 0.75);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(20, 43, 70, 0.04); }
.nav-links a.active { color: var(--text); background: rgba(20, 43, 70, 0.06); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { padding: 8px 18px; font-size: 0.85rem; border-radius: 8px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px; height: 40px;
  color: var(--text);
  cursor: pointer;
  place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(245, 249, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px clamp(16px, 4vw, 40px);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; width: 100%; font-size: 1rem; }
  .nav-toggle { display: grid; }
}
@media (max-width: 420px) {
  .brand { font-size: 0.95rem; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  .nav-actions .btn { padding: 8px 12px; font-size: 0.8rem; }
}

/* Hero (home) */
.hero {
  padding: clamp(72px, 12vh, 120px) 0 clamp(40px, 6vh, 64px);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(21, 89, 183, 0.11), transparent),
    radial-gradient(ellipse 60% 40% at 82% 20%, rgba(57, 136, 223, 0.07), transparent),
    radial-gradient(ellipse 50% 50% at 18% 60%, rgba(24, 121, 78, 0.04), transparent);
}
.orb { position: absolute; border-radius: 50%; filter: blur(100px); animation: drift 22s ease-in-out infinite; }
.orb.o1 { width: 600px; height: 600px; top: -220px; left: 12%; background: rgba(21, 89, 183, 0.09); }
.orb.o2 { width: 420px; height: 420px; top: 30%; right: 6%; background: rgba(57, 136, 223, 0.07); animation-delay: -8s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.hero-title {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  max-width: 1000px;
  margin: 0 0 24px;
}
.hero-title .accent-line {
  display: block;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}
.hero-lede { max-width: 700px; margin: 0 auto; text-wrap: balance; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-cta-row.center { justify-content: center; }

.hero-in > * { animation: rise 0.8s var(--ease) both; }
.hero-in > *:nth-child(2) { animation-delay: 0.06s; }
.hero-in > *:nth-child(3) { animation-delay: 0.12s; }
.hero-in > *:nth-child(4) { animation-delay: 0.18s; }
.hero-in > *:nth-child(5) { animation-delay: 0.26s; }
.hero-in > *:nth-child(6) { animation-delay: 0.34s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* Browser-window frame */
.window {
  width: 100%;
  max-width: 1100px;
  margin-top: 56px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  box-shadow: 0 40px 80px -20px rgba(20, 43, 70, 0.22), 0 0 0 1px rgba(20, 43, 70, 0.03), 0 0 120px -40px rgba(21, 89, 183, 0.35);
  overflow: hidden;
  text-align: left;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev-2);
}
.window-bar .td { width: 12px; height: 12px; border-radius: 50%; background: var(--border-strong); }
.window-bar .td:nth-child(1) { background: #ef4444; }
.window-bar .td:nth-child(2) { background: #eab308; }
.window-bar .td:nth-child(3) { background: #22c55e; }
.window-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 0.66rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(24, 121, 78, 0.08);
  border: 1px solid rgba(24, 121, 78, 0.2);
}
.window-status .pulse { width: 6px; height: 6px; margin: 0 2px 0 3px; }
.window-body {
  position: relative;
  background-image: radial-gradient(circle, rgba(20, 43, 70, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.window-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 60% at 50% 35%, rgba(21, 89, 183, 0.1), transparent 70%);
  pointer-events: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 1100px;
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  overflow: hidden;
}
.hero-stat { padding: 22px 26px; text-align: left; }
.hero-stat + .hero-stat { border-left: 1px solid var(--border); }
.hero-stat .num {
  font: 600 1.6rem var(--mono);
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.hero-stat .label { font-size: 0.85rem; color: var(--text-dim); line-height: 1.45; }
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat + .hero-stat { border-left: none; border-top: 1px solid var(--border); }
  .hero-cta-row .btn { flex: 1 1 auto; }
}

/* Agent canvas (illustration) */
.stage-wrap { overflow-x: auto; overflow-y: hidden; }
.stage {
  container-type: inline-size;
  position: relative;
  min-width: 660px;
  aspect-ratio: 1000 / 720;
  perspective: 1500px;
  perspective-origin: 50% 28%;
}
.plane {
  position: absolute;
  left: 0; top: -13%;
  width: 100%;
  aspect-ratio: 1000 / 700;
  transform: rotateX(24deg) rotateZ(-6deg);
  transform-origin: 50% 50%;
}
.stage.flat { aspect-ratio: 1000 / 620; perspective: none; min-width: 0; }
.stage.flat .plane { top: -8%; transform: none; }
.stage.flat .node { font-size: clamp(8px, 1.25cqw, 15px); }
.node .field { margin-top: 0.5em; padding: 0.55em 0.85em; }
.node { text-align: left; }
.agent-flow { display: none; }
@media (max-width: 720px) {
  .window-body .stage { display: none; }
  .agent-flow { display: flex; flex-direction: column; align-items: stretch; padding: 20px 16px 22px; position: relative; }
  .af-node { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-elev-2); font: 700 0.95rem var(--display); letter-spacing: -0.02em; }
  .af-node .ico { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; }
  .af-node.glass { display: block; padding: 14px; border-radius: 14px; }
  .af-node.glass .nhead { font-size: 0.95rem; }
  .af-node .field { font-size: 0.85rem; margin-top: 8px; padding: 9px 12px; }
  .af-node .field small { font-size: 0.62rem; }
  .af-wire { width: 1px; height: 18px; margin: 0 auto; background: var(--accent); box-shadow: 0 0 6px rgba(21, 89, 183, 0.35); }
  .af-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .af-tool { padding: 10px 8px; border-radius: 10px; border: 1px dashed var(--border-strong); text-align: center; font: 600 0.82rem var(--display); }
  .af-tool small { display: block; font: 500 0.6rem var(--mono); letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; margin-bottom: 2px; }
}
.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lines path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.lines .on { stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 0 4px rgba(21, 89, 183, 0.35)); }
.lines .flow { stroke: #e8f2ff; stroke-width: 2; stroke-dasharray: 3 26; animation: flow 2.4s linear infinite; }
.lines .off { stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 4 6; }
@keyframes flow { to { stroke-dashoffset: -58; } }
.node { position: absolute; transform: translate(-50%, -50%); font-size: clamp(9px, 1.6cqw, 17px); color: var(--text); }
.glass {
  border-radius: 1.4em; padding: 1.4em;
  border: 1px solid var(--accent-br);
  background: var(--glass);
  box-shadow: 0 1.5em 3em -1em rgba(20, 43, 70, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.matte {
  border-radius: 1.3em;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  display: grid; place-items: center;
  box-shadow: 0 1.2em 2.4em -1em rgba(20, 43, 70, 0.18);
}
.nhead { display: flex; align-items: center; gap: 0.8em; font: 700 1.1em var(--display); letter-spacing: -0.02em; }
.nhead .ok { margin-left: auto; color: var(--green); }
.ico { width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: 0.55em; background: var(--accent-bg); border: 1px solid var(--accent-br); color: var(--accent); }
.ico svg { width: 60%; height: 60%; stroke: currentColor; }
.matte .ico { background: rgba(20, 43, 70, 0.05); border-color: var(--border); color: var(--text-dim); }
.field {
  margin-top: 0.7em; padding: 0.75em 0.95em; border-radius: 0.8em;
  background: rgba(245, 249, 255, 0.55);
  border: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 0.6em;
  font-size: 0.9em;
}
.field small { display: block; font: 500 0.7em var(--mono); color: var(--accent); margin-bottom: 0.2em; letter-spacing: 0.08em; }
.field svg { width: 1em; height: 1em; flex: none; opacity: 0.6; }
.matte > svg { stroke: var(--text-dim); }
.cap {
  position: absolute; top: 108%; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font: 600 0.95em var(--display); text-align: center; color: var(--text); line-height: 1.3;
}
.cap em { display: block; font: 500 0.7em var(--mono); color: var(--text-faint); font-style: normal; letter-spacing: 0.08em; }
.stage-flat .nhead { font-weight: 700; }
.pill-label {
  position: absolute; transform: translate(-50%, -50%);
  font: 500 0.75em var(--mono); padding: 0.35em 0.9em; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border-strong); color: var(--text-dim);
}
.soft { opacity: 0.9; }
@media (max-width: 720px) {
  .stage { min-width: 0; }
  .node { font-size: 2.6cqw; }
  .node .field { display: none; }
  .glass { padding: 0.9em; display: flex; flex-direction: column; justify-content: center; }
  .cap em { display: none; }
  .stage-flat .nhead { font-weight: 700; }
.pill-label { font-size: 0.72em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .lines .flow { stroke-dasharray: none; opacity: 0.4; }
  html { scroll-behavior: auto; }
}

/* Logo marquee */
.logo-band { padding: 48px 0; border-bottom: 1px solid var(--border); overflow: hidden; }
.logo-band-label {
  text-align: center;
  font: 600 0.7rem var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.marquee .ref-logo {
  margin: 0;
  height: 48px;
  width: 150px;
  padding: 8px 18px;
  background: transparent;
  border: none;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease);
}
.marquee .ref-logo img { filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; }
.marquee .ref-logo-text { color: var(--text); font-size: 1.05rem; }
.marquee .ref-logo:hover { opacity: 0.95; }
.logo-band-link { display: flex; justify-content: center; margin-top: 28px; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
.link-arrow:hover { color: var(--accent-hover); gap: 10px; }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover { border-color: var(--border-strong); }
.card .icon, .feat-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-bg);
  border: 1px solid var(--accent-br);
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.feat-icon svg { width: 20px; height: 20px; }
.card ul, .feat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--text-dim); font-size: 0.9rem; }
.card li, .feat li { margin: 0; padding-left: 18px; position: relative; }
.card li::before, .feat li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hue, var(--accent));
}

/* Hue system for icon tiles */
.hue-cyan { --hue: #1559b7; --hue-bg: rgba(21, 89, 183, 0.08); --hue-br: rgba(21, 89, 183, 0.24); }
.hue-green { --hue: #18794e; --hue-bg: rgba(24, 121, 78, 0.08); --hue-br: rgba(24, 121, 78, 0.24); }
.hue-violet { --hue: #276fc2; --hue-bg: rgba(39, 111, 194, 0.08); --hue-br: rgba(39, 111, 194, 0.24); }
.hue-amber { --hue: #2f6fb5; --hue-bg: rgba(47, 111, 181, 0.08); --hue-br: rgba(47, 111, 181, 0.24); }
.hue-rose { --hue: #3679c5; --hue-bg: rgba(54, 121, 197, 0.08); --hue-br: rgba(54, 121, 197, 0.24); }
.hue-blue { --hue: #3679c5; --hue-bg: rgba(54, 121, 197, 0.08); --hue-br: rgba(54, 121, 197, 0.24); }
[class*="hue-"] .feat-icon { color: var(--hue); background: var(--hue-bg); border-color: var(--hue-br); }

/* Feature bento (home) */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.feat {
  position: relative;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.feat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 0% 0%, var(--hue-bg, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.feat:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feat:hover::after { opacity: 1; }
.feat > * { position: relative; z-index: 1; }
.feat h3 { margin-bottom: 8px; }
.feat p { font-size: 0.92rem; line-height: 1.65; }
.feat.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.feat.wide ul {
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 0;
  font-size: 0.88rem;
}
.feat.wide li { padding: 12px 16px 12px 36px; }
.feat.wide li + li { border-top: 1px solid var(--border); }
.feat.wide li::before { left: 16px; top: 50%; margin-top: -3px; box-shadow: 0 0 0 3px var(--hue-bg); }
.feat a.feat-cover { position: absolute; inset: 0; z-index: 2; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .bento .feat.wide { grid-column: auto; grid-template-columns: 1fr; gap: 20px; } }

.section-actions { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.section-actions.center { justify-content: center; }

.stat-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.stat-card .num {
  font: 600 1.9rem var(--mono);
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}
.stat-card .desc { font-size: 0.88rem; color: var(--text-dim); line-height: 1.55; }
.stat-card .src { font-size: 0.72rem; color: var(--text-faint); margin-top: 10px; }
.src { font-size: 0.72rem; color: var(--text-faint); }

/* Stat panel: stats as one bordered instrument */
.stat-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
  margin-top: 56px;
}
.stat-panel .cell { padding: 36px 32px; position: relative; }
.stat-panel .cell + .cell { border-left: 1px solid var(--border); }
.stat-panel .num {
  font: 600 clamp(2.4rem, 5vw, 3.4rem) var(--mono);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 14px;
  color: var(--text);
}
.stat-panel .num span { color: var(--accent); }
.stat-panel .desc { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }
@media (max-width: 800px) {
  .stat-panel { grid-template-columns: 1fr; }
  .stat-panel .cell + .cell { border-left: none; border-top: 1px solid var(--border); }
}

.logo-strip-head { margin-bottom: 14px; }
.logo-strip { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.logo-strip .ref-logo { margin-bottom: 0; height: 44px; padding: 8px 16px; }
.logo-strip .ref-logo-text { font-size: 0.9rem; }

/* References */
.ref-logo {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  margin-bottom: 18px;
}
.ref-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ref-logo-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.ref-example { font-size: 0.9rem; line-height: 1.55; color: var(--text-dim); }
.mono-label {
  display: block;
  font: 600 0.68rem var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

/* Funnel chart */
.funnel { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.funnel-row { display: flex; align-items: center; gap: 20px; }
.funnel-track { flex: 1 1 auto; height: 12px; border-radius: 999px; background: rgba(20, 43, 70, 0.05); border: 1px solid var(--border); overflow: hidden; }
.funnel-bar { height: 100%; border-radius: 999px; background: var(--accent-grad); }
.funnel-meta { flex: 0 0 240px; display: flex; align-items: baseline; gap: 8px; }
.funnel-pct { font: 600 1.1rem var(--mono); color: var(--text); letter-spacing: -0.03em; }
.funnel-desc { font-size: 0.82rem; color: var(--text-dim); }
.funnel-drop { padding-left: 4px; font: 500 0.7rem var(--mono); color: var(--rose); letter-spacing: 0.04em; margin: 2px 0 6px; }
@media (max-width: 620px) {
  .funnel-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .funnel-meta { flex: none; }
}

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.section-head .lede { margin-bottom: 0; }

.pill {
  font: 600 0.66rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(24, 121, 78, 0.25);
  background: rgba(24, 121, 78, 0.07);
  color: var(--green);
}

/* Item name inside a heading, and quiet meta line */
.h-name { color: var(--accent); }
.meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
}
.meta-line::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(24, 121, 78, 0.18); flex-shrink: 0; }

/* Split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split-sticky { align-items: start; }
.split-sticky > :last-child { position: sticky; top: 96px; }
@media (max-width: 900px) { .split-sticky > :last-child { position: static; } }

/* Panel with rows (home "why") */
.panel {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.panel-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-radius: 12px;
  transition: background 0.2s var(--ease);
}
.panel-row + .panel-row { border-top: 1px solid var(--border); border-radius: 0; }
.panel-row:hover { background: rgba(20, 43, 70, 0.02); }
.panel-row .num { font: 600 1.3rem var(--mono); color: var(--accent); letter-spacing: -0.04em; }
.panel-row .desc { font-size: 0.88rem; color: var(--text-dim); line-height: 1.55; }
@media (max-width: 520px) { .panel-row { grid-template-columns: 1fr; gap: 6px; } }

/* Pipeline diagrams */
.diagram { margin-top: 32px; padding: 22px 26px; }
.diagram .label { font: 600 0.68rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.flowrow { display: flex; align-items: center; gap: 0; overflow-x: auto; padding: 16px 4px 8px; }
.mini {
  flex: none; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  font: 600 0.85rem var(--display); color: var(--text);
}
.mini small { display: block; font: 500 0.62rem var(--mono); color: var(--text-faint); letter-spacing: 0.1em; margin-bottom: 3px; }
.mini.g { border-color: var(--accent-br); background: var(--glass); }
.mini.g small { color: var(--accent); }
.wire { flex: none; width: 34px; height: 1px; background: var(--accent); }
.wire.d { background: var(--border-strong); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  background: var(--bg-elev-2);
  position: relative;
  transition: border-color 0.3s var(--ease);
}
.step:hover { border-color: var(--border-strong); }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.88rem; line-height: 1.6; margin: 0; }
.step .step-num {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  font: 700 0.7rem var(--mono);
  color: var(--on-accent);
  background: var(--accent);
  margin-bottom: 18px;
}
@media (min-width: 901px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 39px;
    right: -17px;
    width: 18px;
    height: 1px;
    background: var(--accent);
    opacity: 0.6;
  }
}

/* CTA banner */
.cta-banner {
  border-radius: 24px;
  padding: clamp(48px, 8vw, 88px) clamp(20px, 5vw, 56px);
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(21, 89, 183, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 100%, rgba(57, 136, 223, 0.12), transparent 70%),
    var(--bg-elev);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(20, 43, 70, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000, transparent);
}
.cta-banner .content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.cta-banner h2 { color: var(--text); }
.cta-banner p { color: var(--text-dim); }
.cta-banner-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* Table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .pricing-table { display: block; overflow-x: auto; }
}
.pricing-table th, .pricing-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.pricing-table tr:hover td { background: rgba(20, 43, 70, 0.015); }
.pricing-table td { color: var(--text-dim); }
.pricing-table td:first-child { color: var(--text); font-weight: 600; }
.pricing-table th { color: var(--text-faint); font: 600 0.68rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }

/* Showcases */
.showcase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: 1fr; }
}
.showcase-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.showcase-card h3 { margin: 0; }
.showcase-request {
  align-self: flex-end;
  max-width: 90%;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 16px 16px 4px 16px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}
.showcase-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 0.72rem var(--mono);
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.showcase-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 3px rgba(57, 136, 223, 0.18);
  flex-shrink: 0;
}
.showcase-reply {
  align-self: flex-start;
  max-width: 94%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px 16px 16px 16px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.showcase-outcome {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.showcase-outcome::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 1px;
  border-radius: 5px;
  background: rgba(24, 121, 78, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318794e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid rgba(24, 121, 78, 0.3);
}

.showcase-result { margin-top: 4px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }

.showcase-result.doc { background: var(--bg-alt); padding: 16px 18px; }
.showcase-result.doc .doc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.showcase-result.doc .doc-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent-grad); display: grid; place-items: center; color: #fff; font: 800 10px var(--display); flex-shrink: 0; }
.showcase-result.doc .doc-title { font: 700 0.82rem var(--display); color: var(--text); }
.showcase-result.doc .doc-row { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-dim); }
.showcase-result.doc .doc-row:first-of-type { border-top: none; }
.showcase-result.doc .doc-row b { color: var(--text); font-weight: 700; }

.showcase-result.photo { background: #fff; line-height: 0; }
.showcase-result.photo img { width: 100%; display: block; }

.showcase-result.cal { background: var(--bg-elev); padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.showcase-result.cal .cal-date { flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px; background: var(--accent-bg); border: 1px solid var(--accent-br); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.showcase-result.cal .cal-date .mon { font: 600 0.6rem var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.showcase-result.cal .cal-date .day { font: 800 1.2rem var(--display); color: var(--text); }
.showcase-result.cal .cal-info { min-width: 0; }
.showcase-result.cal .cal-info .title { font: 700 0.86rem var(--display); color: var(--text); margin-bottom: 2px; }
.showcase-result.cal .cal-info .time { font-size: 0.78rem; color: var(--text-dim); }
.showcase-result.cal .cal-status { margin-left: auto; font: 600 0.65rem var(--mono); color: var(--green); background: rgba(24, 121, 78, 0.08); border: 1px solid rgba(24, 121, 78, 0.25); padding: 5px 10px; border-radius: 6px; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 480px) {
  .showcase-result.cal { flex-wrap: wrap; }
  .showcase-result.cal .cal-status { margin-left: 0; }
}

/* Split story cards (home use cases) */
.story-stack { display: grid; gap: 20px; }
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.story:hover { border-color: var(--border-strong); }
.story-copy { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 14px; }
.story-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.22; letter-spacing: -0.03em; margin: 0 0 6px; }
.story-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 40px);
  background:
    radial-gradient(60% 60% at 50% 40%, var(--hue-bg, rgba(21, 89, 183, 0.08)), transparent 75%),
    rgba(20, 43, 70, 0.012);
  border-left: 1px solid var(--border);
}
.story-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(20, 43, 70, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.story-visual .window { position: relative; margin: 0; max-width: 100%; box-shadow: 0 30px 60px -20px rgba(20, 43, 70, 0.24); }
.story-visual .window-bar { height: 36px; padding: 0 12px; gap: 6px; }
.story-visual .window-bar .td { width: 10px; height: 10px; }
.story-visual .window-body { padding: 18px; }
.story-visual .window-body::before { display: none; }
.story-visual .showcase-result { position: relative; margin: 0; }
.showcase-result.photo.crop img { aspect-ratio: 2.05 / 1; object-fit: cover; object-position: left center; }
.story.rev .story-copy { order: 2; }
.story.rev .story-visual { order: 1; border-left: none; border-right: 1px solid var(--border); }
.story-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font: 500 0.72rem var(--mono);
  color: var(--text-faint);
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(20, 43, 70, 0.03);
  border: 1px solid var(--border);
}
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story-visual, .story.rev .story-visual { order: 2; border-left: none; border-right: none; border-top: 1px solid var(--border); }
  .story.rev .story-copy { order: 1; }
}

/* Promo banner */
.promo-banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(ellipse 60% 90% at 100% 50%, rgba(21, 89, 183, 0.12), transparent 70%),
    var(--bg-elev-2);
  border: 1px solid var(--accent-br);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 56px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.promo-banner:hover { border-color: rgba(21, 89, 183, 0.45); transform: translateY(-2px); box-shadow: 0 30px 60px -30px rgba(21, 89, 183, 0.35); }
.promo-banner-text { min-width: 0; }
.promo-banner-text h2 { margin: 6px 0 14px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.promo-banner-text p { max-width: 480px; margin: 0 0 28px; color: var(--text-dim); }
.promo-banner-visual { min-width: 0; }
.promo-steps { display: flex; flex-direction: column; gap: 0; }
.promo-steps .mini { width: 100%; padding: 16px 18px; font-size: 0.95rem; }
.promo-steps .vwire { width: 1px; height: 18px; margin-left: 28px; background: var(--border-strong); }
.promo-banner-visual .flowrow { padding: 0; overflow: visible; }
@media (max-width: 900px) {
  .promo-banner { grid-template-columns: 1fr; gap: 32px; }
}

/* Gradient text */
.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.center { text-align: center; }

/* Product hero (Managed AI) */
.product-hero {
  padding-top: clamp(72px, 12vh, 112px);
  padding-bottom: clamp(48px, 7vh, 72px);
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(21, 89, 183, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(57, 136, 223, 0.07), transparent);
}
.product-hero h1.giant {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 920px;
  margin: 0 auto 22px;
}
.product-hero .lede { max-width: 640px; margin: 0 auto 8px; }
.product-hero .hero-cta-row { margin-top: 32px; margin-bottom: 56px; }

.stage-flat {
  position: relative;
  container-type: inline-size;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 900 / 480;
}
.stage-flat .node { font-size: clamp(8px, 1.3cqw, 14px); z-index: 1; color: var(--text); }
.stage-flat { margin-bottom: 40px; overflow: visible; }
@media (max-width: 720px) {
  .stage-flat { aspect-ratio: 900 / 640; }
  .stage-flat .node { font-size: 2.6cqw; }
  .stage-flat .node .field { display: none; }
}

/* Feature blocks */
.feature-block { text-align: center; }
.feature-block h2 { max-width: 760px; margin: 0 auto 16px; }
.feature-block .lede { max-width: 580px; margin: 0 auto 48px; }
.feature-visual {
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(60% 70% at 50% 30%, rgba(21, 89, 183, 0.1), transparent 70%),
    var(--bg-elev);
  padding: 56px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.feature-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(20, 43, 70, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000, transparent);
  pointer-events: none;
}
.feature-visual > * { position: relative; }
.medallion {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent-bg);
  border: 1px solid var(--accent-br);
  color: var(--accent);
  flex-shrink: 0;
}
.medallion svg { width: 28px; height: 28px; stroke: currentColor; }
.feature-visual .medallion { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 20px 50px -15px rgba(21, 89, 183, 0.45); }
.feature-visual .medallion svg { width: 40px; height: 40px; }
.medallion.small { width: 64px; height: 64px; border-radius: 16px; }
.medallion.small svg { width: 28px; height: 28px; }
.medallion-row { display: flex; gap: 48px; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.medallion-row > div { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.medallion-label { font: 700 1.05rem var(--display); color: var(--text); letter-spacing: -0.02em; }
.medallion-caption { font-size: 0.86rem; color: var(--text-dim); max-width: 360px; text-align: center; }
@media (max-width: 620px) {
  .feature-visual { padding: 40px 20px; }
  .medallion-row { gap: 28px; }
}

/* Console panels (Managed AI) */
.window.console { margin: 0 auto; max-width: 980px; }
.window.console .window-body { padding: clamp(20px, 4vw, 44px); }
.console-grid { text-align: left; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
.console-node { font-size: 15px; }
.console-node .ico { color: var(--accent); }
.loc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; position: relative; }
.loc-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-elev-2);
  font-weight: 600; font-size: 0.95rem; color: var(--text-dim);
}
.loc-list li.on { border-color: var(--accent-br); background: var(--accent-bg); color: var(--text); }
.loc-list .radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex-shrink: 0; }
.loc-list li.on .radio { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--bg-elev-2), inset 0 0 0 8px var(--accent); }
.console-caption { margin: 20px auto 0; font-size: 0.88rem; color: var(--text-faint); max-width: 560px; }
.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; position: relative; }
.agent-card { border: 1px solid var(--border); background: var(--bg-elev-2); border-radius: 14px; padding: 18px; font-size: 15px; }
.agent-card .ico { color: var(--accent); }
.agent-card .live { margin-left: auto; display: inline-flex; }
.agent-card .live .pulse { width: 7px; height: 7px; }
.step-list { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: step; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 9px 0 9px 34px;
  font-size: 0.88rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}
.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  font: 600 0.66rem var(--mono); color: var(--accent);
}
.step-list li.esc { color: var(--amber); }
.step-list li.esc::before { color: var(--amber); }
.console-flow { display: flex; flex-direction: column; align-items: center; gap: 24px; position: relative; }
.console-flow .flowrow { justify-content: center; max-width: 100%; }
.console-flow .mini { padding: 14px 18px; font-size: 0.95rem; }
.console-flow .wire { width: 48px; }
.chip-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip-row li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 8px;
  border: 1px solid rgba(24, 121, 78, 0.25); background: rgba(24, 121, 78, 0.07);
  font-size: 0.82rem; font-weight: 600; color: var(--green);
}
.chip-row li::before { content: ""; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318794e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 760px) {
  .console-grid, .agent-grid { grid-template-columns: 1fr; }
  .console-flow .flowrow { flex-direction: column; }
  .console-flow .wire { width: 1px; height: 18px; }
}

/* Plan cards */
.plan-card {
  position: relative;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease);
}
.plan-card:hover { border-color: var(--border-strong); }
.plan-card.featured {
  border-color: var(--accent-br);
  background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(21, 89, 183, 0.1), transparent 70%), var(--bg-elev-2);
  box-shadow: 0 30px 60px -30px rgba(21, 89, 183, 0.35);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  font: 600 0.66rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
}
.plan-card h3 { margin: 0 0 12px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.plan-price .amount { font: 800 2.4rem var(--display); color: var(--text); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.plan-price .period { font-size: 0.85rem; color: var(--text-faint); }
.plan-desc { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 20px; }
.plan-card ul { list-style: none; margin: 0 0 28px; padding: 20px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; color: var(--text-dim); font-size: 0.9rem; flex: 1 1 auto; }
.plan-card li { margin: 0; padding-left: 26px; position: relative; }
.plan-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231559b7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Forms */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  caret-color: var(--accent);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: var(--border-strong); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-faint); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 89, 183, 0.15);
}
.required-marker { color: var(--danger); }
.field-error { font-size: 0.78rem; color: var(--danger); margin-top: 6px; }
.form-field input.ng-invalid.ng-touched,
.form-field textarea.ng-invalid.ng-touched {
  border-color: var(--danger);
}
.form-note { font-size: 0.78rem; color: var(--text-faint); margin-top: 12px; }
.form-success {
  display: none;
  background: rgba(24, 121, 78, 0.08);
  border: 1px solid rgba(24, 121, 78, 0.3);
  color: var(--green);
  padding: 16px;
  border-radius: 12px;
  margin-top: 16px;
  font-size: 0.9rem;
}
.form-success.show { display: block; }
.form-error {
  background: rgba(180, 35, 24, 0.07);
  border: 1px solid rgba(180, 35, 24, 0.3);
  color: var(--danger);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
  color: var(--text-faint);
  font-size: 0.88rem;
  background: var(--bg);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-grid p { font-size: 0.88rem; max-width: 280px; }
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--text); font: 600 0.68rem var(--mono); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; color: var(--text-dim); }
.footer-grid a { color: var(--text-dim); transition: color 0.2s var(--ease); }
.footer-grid a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font: 500 0.75rem var(--mono);
  letter-spacing: 0.02em;
}
.footer-bottom a:hover { color: var(--text); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(72px, 12vh, 112px) 0 clamp(48px, 7vh, 72px);
  background:
    radial-gradient(ellipse 70% 70% at 50% 0%, rgba(21, 89, 183, 0.1), transparent),
    radial-gradient(ellipse 45% 50% at 88% 30%, rgba(57, 136, 223, 0.07), transparent);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 880px; }
.breadcrumb { font: 500 0.75rem var(--mono); letter-spacing: 0.04em; color: var(--text-faint); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }

.page-hero-graphic {
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.page-hero-graphic circle { fill: none; stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 6; }
.page-hero-graphic circle.dot { fill: var(--accent); stroke: none; opacity: 0.8; }
@media (max-width: 900px) {
  .page-hero-graphic { display: none; }
}

.divider { height: 1px; background: var(--border); margin: 0; }

/* Cookie notice */
.cookie-notice {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 100;
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 20px 50px -10px rgba(20, 43, 70, 0.21);
}
.cookie-notice-inner {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-notice-inner p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-dim);
  max-width: 620px;
}
.cookie-notice-inner a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-notice-actions .btn { padding: 9px 18px; font-size: 0.85rem; }
@media (max-width: 640px) {
  .cookie-notice-inner { flex-direction: column; align-items: stretch; }
  .cookie-notice-actions { justify-content: flex-end; }
}
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
}

/* Photos */
.hero-shot {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev-2);
  box-shadow: var(--shadow);
}
.hero-shot img { width: 100%; height: auto; aspect-ratio: 2000 / 860; object-fit: cover; }
@media (max-width: 620px) { .hero-shot img { aspect-ratio: 4 / 3; } }

.feat-img {
  width: calc(100% + 56px);
  max-width: none;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  margin: -28px -28px 24px;
  border-bottom: 1px solid var(--border);
}

.side-img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cta-banner.with-img { display: grid; grid-template-columns: 1.15fr 1fr; padding: 0; text-align: left; }
.cta-banner.with-img .content { margin: 0; padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px); align-self: center; }
.cta-banner.with-img .cta-banner-actions { justify-content: flex-start; }
.cta-img { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-left: 1px solid var(--border); }
@media (max-width: 860px) {
  .cta-banner.with-img { grid-template-columns: 1fr; }
  .cta-img { height: auto; aspect-ratio: 16 / 10; min-height: 0; border-left: 0; border-top: 1px solid var(--border); }
}

/* Article-only rules for the static guide pages. Appended to styles.css by
   scripts/build-content.mjs, so every token and base rule comes from the app. */

.article-section { padding: clamp(48px, 7vh, 80px) 0; }
.related-section { padding: clamp(56px, 8vh, 88px) 0; }
.related-section h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.article-meta {
  font: 500 0.75rem var(--mono);
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin: 20px 0 0;
}

.prose { max-width: 760px; font-size: 1.05rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  letter-spacing: -0.03em;
  margin: 56px 0 16px;
}
.prose h3 { font-size: 1.15rem; margin: 32px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-hover); }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; color: var(--text-dim); }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }

.prose .note {
  background: var(--accent-bg);
  border: 1px solid var(--accent-br);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 28px 0;
}
.prose .note p:last-child { margin-bottom: 0; }

.prose .table-wrap { overflow-x: auto; margin: 0 0 26px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.5;
}
.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.prose tr:last-child td { border-bottom: 0; }
.prose th {
  color: var(--text-faint);
  font: 600 0.68rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.prose td { color: var(--text-dim); }
.prose td:first-child { color: var(--text); font-weight: 600; }

.prose .sources { font-size: 0.82rem; color: var(--text-faint); margin-top: 40px; }

.guide-card { display: flex; flex-direction: column; }
.guide-card h3 { margin-bottom: 10px; }
.guide-card p { font-size: 0.92rem; flex: 1; }

.footer-grid-static { grid-template-columns: 1.3fr 0.9fr 1.3fr 1.4fr 1.2fr; }
@media (max-width: 920px) { .footer-grid-static { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-grid-static { grid-template-columns: 1fr; } }

.nav-actions .btn { white-space: nowrap; }

/* Offer pages (fixed-price service with booking) */
.offer-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
@media (max-width: 920px) { .offer-hero { grid-template-columns: 1fr; gap: 28px; } }
.price-box {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 18px 40px -28px rgba(16, 73, 149, 0.35);
}
.price-box .price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.price-box .price strong { font-size: 2.6rem; letter-spacing: -0.04em; line-height: 1; }
.price-box .price span { color: var(--text-faint); font-size: 0.9rem; }
.price-box ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.price-box li { padding-left: 26px; position: relative; color: var(--text-dim); }
.price-box li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-note { font-size: 0.82rem; color: var(--text-faint); margin: 14px 0 0; }

.booking-section { padding: clamp(56px, 8vh, 88px) 0; }
.booking { max-width: 560px; margin: 0 auto; }
.booking h2 { margin-bottom: 10px; }
.booking .lede { margin-bottom: 26px; }
.booking form { display: grid; gap: 16px; }
.booking label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.booking input {
  font: inherit; font-weight: 400; padding: 12px 14px;
  border: 1px solid var(--border-strong, var(--border)); border-radius: 10px; background: var(--bg-elev);
}
.booking input:focus { outline: 2px solid var(--accent-br); border-color: var(--accent); }
#bk-pay-step { display: grid; gap: 18px; }
#bk-payment { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; }
.bk-mail { margin: 0; color: var(--text-dim); }
.bk-status { min-height: 1.4em; margin: 14px 0 0; color: var(--text-dim); }
.bk-status.bad { color: #b42318; }
.bk-guarantee { font-size: 0.85rem; color: var(--text-faint); margin: 4px 0 0; }
.bk-result { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.bk-result.ok { border-color: var(--accent-br); background: var(--accent-bg); }
.bk-result.ok .btn { display: none; }
.booking [hidden] { display: none !important; }

/* Service pages (packages with prices, enquiry instead of checkout) */
.service-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
@media (max-width: 920px) { .service-hero { grid-template-columns: 1fr; gap: 28px; } }
.service-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.service-img { width: 100%; height: auto; display: block; border-radius: var(--radius); background: #0b0b0f; box-shadow: var(--shadow); }
.service-packages { padding: clamp(56px, 8vh, 88px) 0; }
.service-packages .lede { margin-bottom: 32px; }
.pkg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
@media (max-width: 760px) { .pkg-grid { grid-template-columns: 1fr; } }
.pkg { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 96px; }
.pkg h3 { margin: 0; }
.pkg > p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }
.pkg .pkg-for { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); }
.pkg-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pkg-price strong { font-size: 2rem; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.pkg-price span { color: var(--text-faint); font-size: 0.85rem; }
.pkg ul { flex: 1; }
.service-packages .price-note { margin-top: 24px; max-width: 760px; }
.nav-links a { white-space: nowrap; }
