/* ============================================================
   Aurora AiOps — design system
   ============================================================ */

:root {
  --bg: #05070d;
  --bg-soft: #080c15;
  --panel: rgba(15, 21, 35, 0.72);
  --panel-solid: #0b1120;
  --ink: #eef3ff;
  --muted: #8d9ab8;
  --muted-2: #6b7794;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);

  --blue: #5b8cff;
  --blue-soft: #6ea0ff;
  --violet: #8b6cff;
  --mint: #2ee6a8;
  --amber: #ffb020;
  --red: #ff6b7a;

  --grad: linear-gradient(100deg, #8fb4ff 0%, #5b8cff 38%, #2ee6a8 100%);
  --grad-soft: linear-gradient(135deg, rgba(91, 140, 255, 0.18), rgba(46, 230, 168, 0.1));

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.9);
  --maxw: 1200px;

  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
::selection { background: rgba(91, 140, 255, 0.35); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- ambient background ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-fx__grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 10%, transparent 75%);
}
.bg-fx__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}
.bg-fx__aurora--1 {
  width: 640px; height: 640px;
  top: -260px; left: -120px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.55), transparent 65%);
  animation: drift 24s ease-in-out infinite alternate;
}
.bg-fx__aurora--2 {
  width: 560px; height: 560px;
  top: -180px; right: -140px;
  background: radial-gradient(circle, rgba(46, 230, 168, 0.3), transparent 65%);
  animation: drift 30s ease-in-out infinite alternate-reverse;
}
.bg-fx__noise {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, 50px, 0) scale(1.15); }
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 10px 0;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand__text .brand__suffix {
  font-size: 0.94em;
  font-weight: 500;
  letter-spacing: -0.015em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 10px;
}
.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__burger span + span { margin-top: 6px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s, background 0.22s, border-color 0.22s, color 0.22s;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.22s; }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { padding: 9px 15px; font-size: 13.5px; }
.btn--lg { padding: 14px 24px; font-size: 15px; }
.btn--full { width: 100%; }

.btn--primary {
  background: linear-gradient(180deg, #6f9bff, #3f74f2);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(91, 140, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(91, 140, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--outline {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
}
.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}
.btn--ghost { color: var(--muted); padding: 9px 12px; }
.btn--ghost:hover { color: var(--ink); }
.btn--icon {
  width: 38px; height: 38px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.btn--icon:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}
.btn--icon svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { padding: 170px 0 0; position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px 6px 12px;
  margin-bottom: 26px;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: #c3cfe8;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(91, 140, 255, 0.14), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(8px);
}
.pill__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(46, 230, 168, 0.14);
  animation: pulseDot 2.4s ease-in-out infinite;
}
.pill__arrow { width: 13px; height: 13px; opacity: 0.55; }
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46, 230, 168, 0.16); }
  50% { box-shadow: 0 0 0 7px rgba(46, 230, 168, 0.03); }
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__cta { display: flex; gap: 12px; margin-top: 38px; flex-wrap: wrap; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 34px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  justify-content: start;
}
.stat__num {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat__num span { background: linear-gradient(180deg, #fff, #9db4da); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__num .unit { margin: 0 1px; font-size: 18px; color: var(--muted-2); -webkit-text-fill-color: var(--muted-2); }
.stat__label { font-size: 12.5px; color: var(--muted-2); margin-top: 2px; }

/* ---------- hero visual / console ---------- */
.hero__visual { position: relative; perspective: 1400px; }
.glow-ring {
  position: absolute;
  inset: -14% -8%;
  background: conic-gradient(from 180deg, rgba(91, 140, 255, 0.22), rgba(46, 230, 168, 0.16), rgba(139, 108, 255, 0.2), rgba(91, 140, 255, 0.22));
  filter: blur(70px);
  border-radius: 50%;
  z-index: -1;
  animation: spinGlow 22s linear infinite;
}
@keyframes spinGlow { to { transform: rotate(360deg); } }

.console {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 24, 40, 0.96), rgba(8, 12, 21, 0.97));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(3deg);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.console:hover { transform: rotateY(0deg) rotateX(0deg); }

.console__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #2c3650; }
.dots i:first-child { background: #ff6b7a66; }
.dots i:nth-child(2) { background: #ffb02066; }
.dots i:nth-child(3) { background: #2ee6a866; }
.console__path { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }
.live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--mint);
}
.live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

.console__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.kpi {
  padding: 14px 16px 13px;
  background: #0a0f1b;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi__label { font-size: 11px; color: var(--muted-2); letter-spacing: 0.02em; }
.kpi__value { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi__value em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--muted-2); margin-left: 2px; }
.kpi__delta { font-size: 10.5px; font-weight: 600; }
.kpi__delta.up { color: var(--mint); }
.kpi__delta.warn { color: var(--amber); }

.console__chart { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.chart__head { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--muted); }
.chart__legend { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted-2); }
.chart__legend i { width: 14px; height: 2px; border-radius: 2px; }
.chart__legend i.l1 { background: var(--blue); }
.chart__legend i.l2 { background: var(--mint); }
.spark { width: 100%; height: 118px; margin-top: 8px; }
.grid-lines line { stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; stroke-dasharray: 3 5; }
.spark__line {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.6s 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.spark__pulse { animation: pulsePoint 2.2s ease-in-out infinite; }
@keyframes pulsePoint {
  0%, 100% { opacity: 1; r: 4.5; }
  50% { opacity: 0.45; r: 3.4; }
}
.chart__axis { display: flex; justify-content: space-between; font-size: 9.5px; color: #55607a; font-family: var(--mono); }

.incident { padding: 14px 16px 16px; background: linear-gradient(180deg, rgba(91, 140, 255, 0.05), transparent); }
.incident__head { display: flex; align-items: center; justify-content: space-between; }
.tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.tag--ai { color: #bcd0ff; background: rgba(91, 140, 255, 0.16); border: 1px solid rgba(91, 140, 255, 0.3); }
.incident__conf { font-size: 10.5px; color: var(--muted-2); font-family: var(--mono); }
.incident__title { margin-top: 9px; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.incident__trace {
  display: flex; align-items: center; gap: 6px;
  margin-top: 11px;
  font-family: var(--mono);
  font-size: 10px;
}
.incident__trace .node {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: #9fb0cd;
}
.incident__trace .node--bad {
  color: #ffc2c8;
  background: rgba(255, 107, 122, 0.14);
  border-color: rgba(255, 107, 122, 0.4);
  box-shadow: 0 0 18px -4px rgba(255, 107, 122, 0.6);
}
.incident__trace i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); min-width: 8px; }

.incident__fix { margin-top: 13px; }
.fix__text { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); }
.fix__pct { color: var(--mint); font-family: var(--mono); }
.progress { margin-top: 6px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.progress span {
  display: block; height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  box-shadow: 0 0 12px rgba(46, 230, 168, 0.6);
  transition: width 0.8s ease;
}

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(12, 17, 28, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  font-size: 12px;
  animation: floaty 7s ease-in-out infinite;
}
.float strong { display: block; font-size: 12.5px; font-weight: 600; }
.float small { display: block; font-size: 10.5px; color: var(--muted-2); }
.float--1 { top: 8%; left: -34px; }
.float--2 { bottom: 6%; right: -22px; animation-delay: -3.2s; }
.float__icon {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 9px;
  background: rgba(255, 176, 32, 0.14);
  font-size: 13px;
}
.float__ring {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(46, 230, 168, 0.4);
  background: rgba(46, 230, 168, 0.1);
}
.float__ring i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- stack strip ---------- */
.stack-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 96px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stack-strip__label { font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.stack-strip__items {
  display: flex;
  gap: 38px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #7b89a6;
}
.stack-strip__items span { transition: color 0.25s; }
.stack-strip__items span:hover { color: #cbd8f0; }

/* ---------- sections ---------- */
.section { padding: 120px 0 0; }
.sec-head { max-width: 620px; margin: 0 auto 54px; text-align: center; }
.sec-head--left { margin: 0 0 40px; text-align: left; }
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue-soft);
}
.sec-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.sec-head p { margin-top: 16px; color: var(--muted); font-size: 15.5px; }

/* ---------- capability cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cards--2 { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
.cards--2 .card p { max-width: 92%; }
.card {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s, background 0.35s;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(91, 140, 255, 0.13), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: rgba(110, 160, 255, 0.34); }
.card:hover::after { opacity: 1; }
.card__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  color: #a9c2ff;
  background: linear-gradient(140deg, rgba(91, 140, 255, 0.18), rgba(46, 230, 168, 0.07));
  border: 1px solid rgba(110, 160, 255, 0.24);
}
.card__icon svg { width: 21px; height: 21px; }
.card h3 { font-size: 17.5px; font-weight: 650; letter-spacing: -0.02em; }
.card p { margin-top: 9px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.card__meta {
  display: inline-block;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  width: 100%;
  font-family: var(--mono);
  font-size: 11px;
  color: #6f7f9e;
}

/* ---------- loop ---------- */
.section--loop { position: relative; }
.loop {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: center;
}
.steps { display: flex; flex-direction: column; gap: 4px; }
.step {
  display: flex;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step__no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue-soft);
  padding-top: 4px;
  letter-spacing: 0.08em;
}
.step h4 { font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; }
.step p { margin-top: 3px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }

.loop__visual { position: relative; }
.reason {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.97), rgba(6, 9, 16, 0.98));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.reason__glow {
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  background: radial-gradient(circle at 70% 20%, rgba(91, 140, 255, 0.22), transparent 60%),
              radial-gradient(circle at 20% 90%, rgba(46, 230, 168, 0.14), transparent 55%);
  filter: blur(50px);
}
.reason__bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.024);
}
.reason__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.reason__time { margin-left: auto; color: var(--muted-2); }
.reason__body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.line {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  font-size: 12.6px;
  line-height: 1.65;
  color: #a6b4cf;
}
.who {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding-top: 2px;
}
.who--sys { color: #6f7f9e; }
.who--ai { color: #7fa6ff; }
.who--ok { color: var(--mint); }
.line b { color: #dbe6ff; font-weight: 600; }
.line--hl {
  margin: 2px -8px;
  padding: 10px 8px;
  border-radius: 10px;
  background: rgba(91, 140, 255, 0.09);
  border: 1px solid rgba(91, 140, 255, 0.22);
}
.line--hl .msg { color: #d3e0ff; }
.line--ok .msg { color: #a9f0d4; }
.caret {
  display: inline-block;
  width: 6px; height: 13px;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--mint);
  animation: blink 1.1s steps(1) infinite;
}

/* ---------- cockpit ---------- */
.cockpit {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.86), rgba(7, 10, 18, 0.94));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.cockpit__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.cockpit__title { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.cockpit__live {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--mint);
  background: rgba(46, 230, 168, 0.1);
  border: 1px solid rgba(46, 230, 168, 0.24);
}
.cockpit__live i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); animation: blink 1.6s infinite; }
.cockpit__filters { display: flex; gap: 8px; }
.chip {
  padding: 5px 11px;
  font-size: 11.5px;
  color: var(--muted-2);
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.chip--on { color: #cddcff; border-color: rgba(91, 140, 255, 0.36); background: rgba(91, 140, 255, 0.14); }

.cockpit__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.ckpi { padding: 18px 20px; background: #080d17; }
.ckpi > span { font-size: 11.5px; color: var(--muted-2); }
.ckpi strong { display: block; margin-top: 4px; font-size: 26px; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.ckpi strong em { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--muted-2); margin-left: 2px; }
.bar { margin-top: 10px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue), #8fb4ff); }
.bar i.bar--mint { background: linear-gradient(90deg, #1fbf8d, var(--mint)); }
.bar i.bar--violet { background: linear-gradient(90deg, #6f5bff, #a98cff); }

.cockpit__grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1px;
  background: var(--line);
}
.panel { background: #080d17; padding: 18px 20px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel__head h5 { font-size: 12.5px; font-weight: 600; color: #cbd7ee; }
.panel__more { font-size: 11px; color: var(--muted-2); }
.legend { display: flex; gap: 14px; font-size: 10.5px; color: var(--muted-2); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot--blue { background: var(--blue); }
.dot--red { background: var(--red); }
.dot--mint { background: var(--mint); box-shadow: 0 0 6px rgba(46, 230, 168, 0.7); }
.dot--amber { background: var(--amber); box-shadow: 0 0 6px rgba(255, 176, 32, 0.7); }

.area { width: 100%; height: 186px; }
.gl line { stroke: rgba(255, 255, 255, 0.045); stroke-dasharray: 3 6; }
.axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; color: #4e5a72; }

.health { display: flex; flex-direction: column; gap: 13px; }
.health li { display: grid; grid-template-columns: 118px 1fr 48px; align-items: center; gap: 10px; }
.health__name { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; color: #a9b7d1; }
.health__bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.health__bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, rgba(46, 230, 168, 0.6), var(--mint)); }
.health__val { font-family: var(--mono); font-size: 10.5px; text-align: right; color: #9fb0cd; }
.health__val.warn { color: var(--amber); }

.ledger { display: flex; flex-direction: column; }
.ledger li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.ledger li:last-child { border-bottom: 0; }
.ledger__res {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: #a9b7d1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ledger__cnt { font-family: var(--mono); font-size: 11px; color: #cddcff; }

.panel--table { border-top: 1px solid var(--line); }
.tbl { display: flex; flex-direction: column; }
.tbl__row {
  display: grid;
  grid-template-columns: 2.2fr 1.3fr 0.9fr 0.7fr 0.7fr;
  gap: 12px;
  align-items: center;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 12px;
  color: #9aa8c2;
}
.tbl__row:last-child { border-bottom: 0; }
.tbl__row--head {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #5b6885;
  padding-bottom: 8px;
}
.tbl__title { color: #d3deef; font-weight: 500; }
.tbl__ai { color: var(--blue-soft); font-family: var(--mono); font-size: 11px; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
}
.badge--fix { color: #b7ecd9; background: rgba(46, 230, 168, 0.12); border: 1px solid rgba(46, 230, 168, 0.28); }
.badge--warn { color: #ffd79a; background: rgba(255, 176, 32, 0.12); border: 1px solid rgba(255, 176, 32, 0.28); }
.badge--ok { color: #c3cfe8; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }

/* ---------- scenarios ---------- */
.tabs {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  overflow: hidden;
}
.tabs__nav { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); }
.tab {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: #fff; background: rgba(91, 140, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(91, 140, 255, 0.32); }

.tabs__body { position: relative; }
.tabpane {
  display: none;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 44px 44px 46px;
}
.tabpane.is-active { display: grid; animation: fadeUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.tabpane h3 { font-size: 24px; font-weight: 650; letter-spacing: -0.025em; }
.tabpane p { margin-top: 12px; max-width: 560px; color: var(--muted); font-size: 14.5px; }
.ticks { display: flex; flex-direction: column; gap: 9px; margin-top: 20px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 13.5px;
  color: #b6c3db;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(46, 230, 168, 0.12);
  box-shadow: inset 0 0 0 1px rgba(46, 230, 168, 0.4);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 4.5px; top: 9px;
  width: 5px; height: 2.5px;
  border-left: 1.4px solid var(--mint);
  border-bottom: 1.4px solid var(--mint);
  transform: rotate(-45deg);
}
.tabpane__stat {
  text-align: right;
  padding-left: 40px;
  border-left: 1px solid var(--line);
}
.tabpane__stat strong {
  display: block;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tabpane__stat strong span { font-size: 24px; }
.tabpane__stat > span { font-size: 12.5px; color: var(--muted-2); }

/* ---------- permission split ---------- */
.perm { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
.perm__card {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008));
  overflow: hidden;
}
.perm__card--rw {
  border-color: rgba(46, 230, 168, 0.26);
  background:
    radial-gradient(520px circle at 100% 0%, rgba(46, 230, 168, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
}
.perm__top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.perm__badge {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #bcd0ff;
  border-radius: 999px;
  border: 1px solid rgba(91, 140, 255, 0.34);
  background: rgba(91, 140, 255, 0.14);
}
.perm__badge--mint {
  color: #a9f0d4;
  border-color: rgba(46, 230, 168, 0.34);
  background: rgba(46, 230, 168, 0.12);
}
.perm__role { font-size: 12px; color: var(--muted-2); }
.perm__card h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.4; }
.perm__card > p { margin-top: 12px; font-size: 14px; color: var(--muted); }
.perm__card .ticks { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- boundary ---------- */
.boundary {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014);
  padding: 6px 28px 4px;
}
.boundary__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px 18px;
  border-bottom: 1px solid var(--line);
}
.boundary__head h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.boundary__head span { font-size: 12px; color: var(--muted-2); }
.no-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.no-item:last-child { border-bottom: 0; }
.no-item__label {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: #c6d3ea;
}
.no-item__label::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 9px; height: 1.5px;
  background: var(--muted-2);
}
.no-item p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ---------- onboarding paths ---------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.path {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008));
  transition: transform 0.35s, border-color 0.35s;
}
.path:hover { transform: translateY(-4px); border-color: rgba(110, 160, 255, 0.32); }
.path__no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue-soft);
  letter-spacing: 0.08em;
}
.path h3 { margin-top: 16px; font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
.path p { margin-top: 10px; flex: 1; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.path__meta {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: #6f7f9e;
}

/* ---------- cta ---------- */
.section--cta { padding-bottom: 0; }
.cta {
  position: relative;
  padding: 76px 56px;
  border-radius: 26px;
  border: 1px solid rgba(110, 160, 255, 0.26);
  background:
    radial-gradient(700px circle at 50% -20%, rgba(91, 140, 255, 0.22), transparent 62%),
    linear-gradient(180deg, rgba(17, 24, 40, 0.92), rgba(7, 10, 18, 0.96));
  text-align: center;
  overflow: hidden;
}
.cta__glow {
  position: absolute;
  left: 50%; top: -60%;
  width: 760px; height: 760px;
  transform: translateX(-50%);
  background: conic-gradient(from 200deg, rgba(91, 140, 255, 0.18), rgba(46, 230, 168, 0.14), transparent 55%);
  filter: blur(80px);
  pointer-events: none;
}
.cta h2 {
  position: relative;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.cta p { position: relative; max-width: 540px; margin: 16px auto 0; color: var(--muted); font-size: 15px; }
.cta__contact {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.cta__contact .btn svg { width: 17px; height: 17px; }
.cta__note { position: relative; margin-top: 16px; font-size: 11.5px; color: var(--muted-2); }

/* ---------- footer ---------- */
.footer { margin-top: 110px; border-top: 1px solid var(--line); padding-top: 56px; }
.footer__inner { display: flex; gap: 80px; justify-content: space-between; flex-wrap: wrap; }
.footer__brand p { margin-top: 16px; font-size: 13px; color: var(--muted-2); line-height: 1.75; }
.footer__mail {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: #b9cdf0;
  border-bottom: 1px solid rgba(110, 160, 255, 0.35);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.footer__mail:hover { color: #fff; border-color: #fff; }
.footer__social { margin-top: 10px; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  transition: color 0.2s;
}
.footer__social a:hover { color: var(--ink); }
.footer__social svg { width: 15px; height: 15px; }
.footer__cols { display: flex; gap: 72px; }
.footer__cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer__cols h6 { margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: #5a6783; }
.footer__cols a { font-size: 13.5px; color: var(--muted); transition: color 0.2s; }
.footer__cols a:hover { color: var(--ink); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 52px;
  padding: 22px 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
}
.footer__status { display: inline-flex; align-items: center; gap: 7px; }
.footer__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 72px; }
  .hero__visual { max-width: 620px; }
  .console { transform: none; }
  .float--1 { left: -12px; }
  .float--2 { right: -8px; }
  .loop { grid-template-columns: 1fr; gap: 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .nav__burger { display: block; margin-left: auto; }
  .nav__actions { margin-left: 0; }
}

@media (max-width: 860px) {
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 20px; right: 20px;
    flex-direction: column;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(8, 12, 21, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
  }
  .nav.is-open .nav__links a { padding: 11px 14px; font-size: 15px; }
  .cockpit__grid { grid-template-columns: 1fr; }
  .cockpit__kpis { grid-template-columns: repeat(2, 1fr); }
  .paths { grid-template-columns: 1fr; }
  .perm { grid-template-columns: 1fr; }
  .cards--2 { grid-template-columns: 1fr; }
  .no-item { grid-template-columns: 1fr; gap: 8px; }
  .boundary__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .tabpane { grid-template-columns: 1fr; gap: 28px; padding: 32px 26px; }
  .tabpane__stat { text-align: left; padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .tbl__row { grid-template-columns: 1.8fr 1fr 0.9fr; }
  .tbl__row > :nth-child(4), .tbl__row > :nth-child(5) { display: none; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero { padding-top: 132px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
  .cards { grid-template-columns: 1fr; }
  .stack-strip { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 70px; }
  .stack-strip__items { gap: 20px; font-size: 13px; }
  .section { padding-top: 88px; }
  .cockpit__bar { flex-direction: column; align-items: flex-start; }
  .cockpit__filters { flex-wrap: wrap; }
  .cta { padding: 52px 24px; }
  .cta__contact { flex-direction: column; align-items: stretch; }
  .cta__contact .btn { width: 100%; }
  .footer__cols { gap: 34px; flex-wrap: wrap; }
  .footer__inner { gap: 40px; }
  .footer__bottom { padding: 20px; }
  .float--1, .float--2 { display: none; }
  .nav__actions .btn--ghost { display: none; }
  .line { grid-template-columns: 52px 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
