:root {
  --bg: #090b10;
  --bg-elevated: #10141c;
  --bg-soft: #151b24;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f3f6fb;
  --muted: #98a3b5;
  --muted-strong: #c1c9d6;
  --red: #ff4558;
  --cyan: #44d7c9;
  --lime: #b8f05f;
  --gold: #f6c85f;
  --ink: #06070a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 69, 88, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(68, 215, 201, 0.14), transparent 26rem),
    linear-gradient(145deg, #07080c 0%, #11151d 50%, #080b10 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  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: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(135deg, var(--red), var(--gold));
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(255, 69, 88, 0.35);
}

.brand-mark::after {
  width: 12px;
  height: 12px;
  content: "";
  border: 3px solid currentColor;
  border-top-color: transparent;
  transform: rotate(45deg);
}

.topbar nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 13, 18, 0.65);
}

.nav-pill,
.icon-button,
.primary-button,
.ghost-button,
.chip,
.option-card,
.timeline-item,
.match-row,
.command-result,
.scenario-card,
.toggle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  color: var(--muted-strong);
  cursor: pointer;
  border-radius: 999px;
}

.nav-pill[aria-current="true"] {
  color: var(--ink);
  background: var(--text);
}

.top-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.icon-button,
.primary-button,
.ghost-button {
  min-height: 42px;
  cursor: pointer;
  border-radius: 8px;
}

.icon-button {
  display: grid;
  width: 42px;
  place-items: center;
}

.icon-button svg,
.primary-button svg,
.ghost-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-weight: 700;
}

.primary-button {
  color: var(--ink);
  border-color: transparent;
  background: linear-gradient(135deg, var(--red), var(--gold));
}

.ghost-button {
  color: var(--muted-strong);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 96px);
  padding: 26px 0 34px;
}

.hero-copy {
  align-self: center;
  max-width: 670px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  content: "";
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 22px currentColor;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(4rem, 9vw, 8.8rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.lead {
  max-width: 55ch;
  margin-bottom: 26px;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
}

.proof-metric {
  padding: 16px;
  border-top: 1px solid var(--line);
}

.proof-metric strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.45rem;
}

.proof-metric span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.ops-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(11, 14, 20, 0.78);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  font-weight: 800;
}

.pulse {
  width: 10px;
  height: 10px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 24px var(--lime);
}

.panel-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1px;
  background: var(--line);
}

.control-stack,
.map-stack {
  padding: 16px;
  background: rgba(10, 13, 18, 0.92);
}

.field-group {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.field-group label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.option-card {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
}

.option-card strong {
  font-size: 0.95rem;
}

.option-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.option-card[data-active="true"] {
  color: var(--ink);
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
}

.option-card[data-active="true"] span {
  color: rgba(6, 7, 10, 0.72);
}

.range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--red);
}

.range-value {
  width: 52px;
  padding: 8px 10px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.toggle-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.toggle {
  position: relative;
  width: 52px;
  height: 30px;
  cursor: pointer;
  border-radius: 999px;
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: var(--muted);
  border-radius: 50%;
  transition: 180ms ease;
}

.toggle input:checked + span {
  left: 26px;
  background: var(--lime);
}

.score-ring {
  --score: 72;
  display: grid;
  width: min(280px, 100%);
  aspect-ratio: 1;
  margin: 4px auto 18px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0b0f15 0 57%, transparent 58%),
    conic-gradient(var(--red) calc(var(--score) * 1%), rgba(255, 255, 255, 0.08) 0);
}

.score-ring strong {
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 1;
}

.score-ring span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.canvas-wrap {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1218;
}

.tactical-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
}

.map-badges {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
}

.chip {
  padding: 7px 9px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.insight-card {
  min-height: 138px;
  padding: 16px;
  background: rgba(10, 13, 18, 0.92);
}

.insight-card small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.insight-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.22rem;
}

.insight-card p {
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: 0.9rem;
  line-height: 1.45;
}

.section {
  padding: 54px 0 20px;
}

.page-hero {
  display: grid;
  align-content: center;
  min-height: 52vh;
  padding: 70px 0 42px;
}

.page-hero h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  line-height: 0.9;
}

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

.text-panel,
.contact-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent),
    rgba(255, 255, 255, 0.035);
}

.text-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.page-card-stack,
.legal-stack,
.contact-form {
  display: grid;
  gap: 10px;
}

.legal-stack {
  max-width: 900px;
}

.page-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.page-card strong {
  display: block;
  margin-bottom: 8px;
}

.page-card p {
  margin-bottom: 0;
  color: var(--muted-strong);
  line-height: 1.5;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.input {
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.05);
  resize: vertical;
}

.input:focus {
  border-color: rgba(68, 215, 201, 0.72);
  box-shadow: 0 0 0 3px rgba(68, 215, 201, 0.12);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted-strong);
  line-height: 1.55;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.scenario-card {
  display: grid;
  gap: 18px;
  min-height: 260px;
  padding: 18px;
  cursor: pointer;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(255, 255, 255, 0.035);
}

.scenario-card[data-active="true"] {
  border-color: rgba(68, 215, 201, 0.62);
  box-shadow: inset 0 0 0 1px rgba(68, 215, 201, 0.26);
}

.scenario-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--ink);
  background: var(--accent, var(--cyan));
  border-radius: 8px;
}

.scenario-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.scenario-card p {
  margin-bottom: 0;
  color: var(--muted-strong);
  line-height: 1.5;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.timeline-item time {
  color: var(--cyan);
  font-weight: 900;
}

.timeline-item strong {
  display: block;
  margin-bottom: 4px;
}

.timeline-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.match-board {
  display: grid;
  gap: 8px;
}

.match-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 86px 86px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.match-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.bar {
  overflow: hidden;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.bar i {
  display: block;
  width: var(--w);
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--cyan));
  border-radius: inherit;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.price-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.price-card[data-featured="true"] {
  border-color: rgba(255, 69, 88, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 69, 88, 0.18), transparent),
    rgba(255, 255, 255, 0.04);
}

.price-card h3 {
  margin-bottom: 6px;
}

.price {
  margin: 20px 0;
  font-size: 2.6rem;
  font-weight: 900;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
}

.price-card ul {
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 0;
  margin: 0 0 18px;
  color: var(--muted-strong);
  list-style: none;
}

.price-card li::before {
  margin-right: 8px;
  color: var(--lime);
  content: "+";
}

.command-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: start center;
  padding: 12vh 18px 18px;
  background: rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(16px);
}

.command-layer[data-open="true"] {
  display: grid;
}

.command-box {
  width: min(760px, 100%);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0d1118;
  box-shadow: var(--shadow);
}

.command-input {
  width: 100%;
  min-height: 62px;
  padding: 0 18px;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: 0;
  background: transparent;
}

.command-results {
  display: grid;
  gap: 8px;
  max-height: 380px;
  padding: 12px;
  overflow: auto;
}

.command-result {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
}

.command-result kbd {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 8px;
}

.command-result strong,
.command-result span {
  display: block;
}

.command-result span {
  color: var(--muted);
  font-size: 0.86rem;
}

.footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .hero,
  .workbench,
  .section-heading,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 760px) {
  .app-shell {
    padding: 14px;
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr auto;
  }

  .topbar nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .top-actions .ghost-button {
    display: none;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .proof-row,
  .insight-grid,
  .scenario-grid,
  .pricing,
  .segment-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item,
  .match-row {
    grid-template-columns: 1fr;
  }

  .match-row {
    gap: 8px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
