:root {
  color-scheme: dark;
  --bg: #050816;
  --bg-2: #07111f;
  --panel: rgba(7, 17, 31, 0.78);
  --panel-strong: rgba(10, 18, 32, 0.94);
  --border: rgba(148, 163, 184, 0.22);
  --border-strong: rgba(56, 189, 248, 0.42);
  --text: #f8fafc;
  --muted: #a8b3c7;
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --green: #22c55e;
  --yellow: #facc15;
  --orange: #f97316;
  --red: #ef4444;
  --violet: #a78bfa;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    #050816;
  background-size: 56px 56px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(34, 211, 238, 0.08), transparent 32%),
    linear-gradient(250deg, rgba(239, 68, 68, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(5, 8, 22, 0.2), rgba(5, 8, 22, 0.86));
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(30deg, transparent 0 45%, rgba(34, 211, 238, 0.08) 46%, transparent 47% 100%),
    linear-gradient(150deg, transparent 0 58%, rgba(249, 115, 22, 0.08) 59%, transparent 60% 100%);
  background-size: 620px 420px, 720px 500px;
  animation: mapDrift 28s linear infinite;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 8px;
  color: #02111b;
  background: var(--cyan);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px max(20px, calc((100vw - 1180px) / 2));
  background: rgba(5, 8, 22, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.brand,
.site-nav,
.hero-actions,
.console-header,
.briefing-meta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.12), 0 0 24px rgba(34, 211, 238, 0.76);
}

.site-nav {
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a,
.nav-cta,
.button {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-cta,
.button {
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 8px;
  font-weight: 850;
}

.nav-cta {
  padding: 10px 14px;
  background: rgba(37, 99, 235, 0.2);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 450px);
  align-items: center;
  gap: 44px;
  padding: 88px max(20px, calc((100vw - 1180px) / 2)) 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 88%);
  animation: gridMove 22s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.hero-content,
.hero-console,
.ops-scene {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: 4.6rem;
  line-height: 0.96;
}

h2 {
  font-size: 2.35rem;
  line-height: 1.08;
}

h3 {
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 730px;
  color: #c5d0e3;
  font-size: 1.2rem;
  line-height: 1.75;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
}

.button-primary {
  color: #03121c;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.24);
}

.button-secondary {
  color: var(--text);
  background: rgba(15, 23, 42, 0.68);
}

.ops-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene-node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 0 12px rgba(34, 211, 238, 0.08), 0 0 34px rgba(34, 211, 238, 0.42);
  animation: pulseNode 2.8s ease-in-out infinite;
}

.node-a { left: 17%; top: 32%; background: var(--green); }
.node-b { left: 56%; top: 24%; background: var(--yellow); animation-delay: 500ms; }
.node-c { left: 76%; top: 55%; background: var(--red); animation-delay: 900ms; }
.node-d { left: 42%; top: 70%; background: var(--orange); animation-delay: 1300ms; }

.risk-corridor {
  position: absolute;
  height: 3px;
  transform-origin: left center;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0), rgba(250, 204, 21, 0.75), rgba(239, 68, 68, 0.9));
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.65);
  animation: corridorGlow 3.2s ease-in-out infinite;
}

.corridor-a { width: 42%; left: 18%; top: 35%; transform: rotate(-8deg); }
.corridor-b { width: 34%; left: 43%; top: 66%; transform: rotate(-28deg); animation-delay: 700ms; }
.corridor-c { width: 26%; left: 56%; top: 29%; transform: rotate(39deg); animation-delay: 1200ms; }

.hero-console {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(4, 10, 24, 0.78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.console-header {
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.console-kicker,
.metric-card span,
.recommendation span,
.explain-top span,
.roadmap-grid span,
.accuracy-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.console-header strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-elevated {
  color: #fde68a;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.35);
}

.status-trained {
  color: #a7f3d0;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.38);
}

.status-fallback {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.38);
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}

.metric-card {
  min-height: 118px;
  padding: 18px;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.metric-card:nth-child(2n) {
  border-right: 0;
}

.metric-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.85rem;
}

.metric-card.severe strong { color: #fca5a5; }
.metric-card.high strong { color: #93c5fd; }
.metric-card.action strong { font-size: 1.2rem; line-height: 1.3; color: #a7f3d0; }

.signal-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 16px 18px 18px;
}

.signal-strip span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--orange), var(--red));
  opacity: 0.76;
  animation: signalPulse 1.8s ease-in-out infinite;
}

.signal-strip span:nth-child(2) { animation-delay: 150ms; }
.signal-strip span:nth-child(3) { animation-delay: 300ms; }
.signal-strip span:nth-child(4) { animation-delay: 450ms; }
.signal-strip span:nth-child(5) { animation-delay: 600ms; }

.section {
  padding: 90px max(20px, calc((100vw - 1180px) / 2));
}

.public-hero {
  padding: 92px max(20px, calc((100vw - 1180px) / 2)) 58px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(96, 165, 250, 0.06) 46%, rgba(249, 115, 22, 0.08)),
    rgba(5, 8, 22, 0.62);
}

.public-hero h1 {
  max-width: 920px;
  font-size: 4rem;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.keyword-row.compact {
  margin-top: 18px;
}

.keyword-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.14);
  font-size: 0.82rem;
  font-weight: 800;
}

.public-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.content-card h2 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.content-card a {
  color: var(--text);
}

.content-card a:hover {
  color: var(--cyan);
}

.faq-section {
  padding-top: 32px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.public-page .explain-card h3 {
  margin-bottom: 10px;
}

.public-page .explain-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.wide {
  max-width: 920px;
}

.section-heading.compact {
  max-width: 560px;
}

.section-heading p,
.feature-card p,
.workflow p,
.roadmap-grid p,
.stack-grid p,
.final-cta p,
.briefing-card p {
  color: var(--muted);
  line-height: 1.65;
}

.problem-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.question-grid,
.feature-grid,
.roadmap-grid,
.stack-grid,
.accuracy-grid {
  display: grid;
  gap: 14px;
}

.question-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.question-grid div,
.feature-card,
.roadmap-grid article,
.stack-grid article,
.briefing-card,
.explain-card,
.accuracy-grid div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(10, 18, 32, 0.68);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
}

.question-grid div {
  min-height: 84px;
  display: flex;
  align-items: center;
  padding: 18px;
  font-weight: 850;
}

.question-grid div:last-child {
  grid-column: 1 / -1;
  border-color: rgba(34, 211, 238, 0.32);
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  position: relative;
  min-height: 222px;
  padding: 22px;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: rgba(10, 18, 32, 0.86);
}

.feature-accent {
  display: block;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.accent-blue { background: var(--blue); }
.accent-cyan { background: var(--cyan); }
.accent-green { background: var(--green); }
.accent-yellow { background: var(--yellow); }
.accent-red { background: var(--red); }
.accent-violet { background: var(--violet); }

.workflow-section {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.26), rgba(15, 23, 42, 0));
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: workflow;
}

.workflow li {
  position: relative;
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.72);
}

.workflow li::after {
  content: "";
  position: absolute;
  top: 32px;
  right: -14px;
  width: 28px;
  height: 2px;
  background: rgba(34, 211, 238, 0.62);
}

.workflow li:last-child::after {
  display: none;
}

.workflow span {
  display: inline-flex;
  color: var(--cyan);
  font-weight: 900;
  margin-bottom: 18px;
}

.workflow strong {
  display: block;
  font-size: 1.08rem;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.explain-card,
.briefing-card {
  padding: 26px;
  background: rgba(4, 10, 24, 0.86);
  border-color: rgba(148, 163, 184, 0.28);
}

.explain-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.explain-top strong {
  display: block;
  margin-top: 6px;
  font-size: 1.55rem;
}

.severe-text { color: #fca5a5; }
.cyan-text { color: #67e8f9; }

.factor-list {
  display: grid;
  gap: 10px;
  padding: 18px 0 0;
  margin: 0;
  list-style: none;
}

.factor-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.factor-list li:last-child {
  border-bottom: 0;
}

.factor-list b {
  color: #fde68a;
  white-space: nowrap;
}

.briefing-section {
  padding-top: 50px;
}

.briefing-card {
  max-width: 940px;
  margin: 0 auto;
  border-color: rgba(34, 211, 238, 0.34);
  box-shadow: 0 22px 90px rgba(34, 211, 238, 0.08), var(--shadow);
}

.briefing-meta {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
}

.recommendation {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.recommendation strong {
  display: block;
  margin-top: 6px;
  color: #a7f3d0;
  font-size: 1.08rem;
}

.roadmap-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roadmap-grid article,
.stack-grid article {
  padding: 22px;
}

.roadmap-grid span {
  color: var(--cyan);
  font-weight: 900;
  margin-bottom: 12px;
}

.accuracy-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 36px;
  align-items: center;
}

.accuracy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accuracy-grid div {
  padding: 20px;
}

.accuracy-grid strong {
  display: block;
  font-size: 1.25rem;
}

.stack-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.final-cta {
  margin: 30px max(20px, calc((100vw - 1180px) / 2)) 70px;
  padding: 52px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(96, 165, 250, 0.08) 42%, rgba(239, 68, 68, 0.1)),
    rgba(7, 17, 31, 0.86);
  box-shadow: var(--shadow);
}

.final-cta h2 {
  max-width: 720px;
}

.final-cta p {
  max-width: 760px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 max(20px, calc((100vw - 1180px) / 2)) 34px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(226, 232, 240, 0.12);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer strong {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gridMove {
  from { transform: translateY(0); }
  to { transform: translateY(72px); }
}

@keyframes mapDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 620px 420px, -720px 500px; }
}

@keyframes pulseNode {
  0%, 100% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.08), 0 0 26px rgba(34, 211, 238, 0.36); }
  50% { box-shadow: 0 0 0 18px rgba(34, 211, 238, 0.02), 0 0 40px rgba(34, 211, 238, 0.6); }
}

@keyframes corridorGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.96; }
}

@keyframes signalPulse {
  0%, 100% { opacity: 0.38; }
  50% { opacity: 1; }
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .hero,
  .problem-section,
  .split-section,
  .accuracy-section,
  .public-content-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  h1 {
    font-size: 3.35rem;
  }

  .feature-grid,
  .workflow,
  .roadmap-grid,
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow li::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-cta {
    text-align: center;
  }

  .hero,
  .section,
  .public-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .public-hero h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .feature-grid,
  .workflow,
  .roadmap-grid,
  .stack-grid,
  .question-grid,
  .accuracy-grid,
  .console-grid,
  .explain-top {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 104px;
    border-right: 0;
  }

  .metric-card:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  }

  .metric-card:last-child {
    border-bottom: 0;
  }

  .factor-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .factor-list b {
    white-space: normal;
  }

  .final-cta {
    margin-left: 16px;
    margin-right: 16px;
    padding: 28px;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
