:root {
  --graphite-950: #050608;
  --graphite-900: #0b0d10;
  --graphite-800: #11161a;
  --graphite-700: #1a2025;
  --graphite-500: #5e6870;
  --paper: #f4f7f8;
  --muted: #a8b2b8;
  --cyan: #45e3ff;
  --cyan-soft: rgba(69, 227, 255, 0.18);
  --amber: #ffb84c;
  --green: #7bffcb;
  --line: rgba(255, 255, 255, 0.13);
  --glass: rgba(13, 17, 20, 0.7);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--graphite-950);
  color: var(--paper);
  font-family: Inter, Arial, sans-serif;
}

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

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--graphite-950);
  background-size: 72px 72px;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: clamp(14px, 4vw, 48px);
  right: clamp(14px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
  padding: 0 12px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 7, 9, 0.68);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.brand,
.header-action,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 6px;
  font-weight: 700;
}

.brand {
  flex: 0 0 auto;
  font-size: 18px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(69, 227, 255, 0.55);
  border-radius: 6px;
  color: var(--cyan);
  font-size: 13px;
  box-shadow: inset 0 0 22px rgba(69, 227, 255, 0.16);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  transition: color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--paper);
}

.header-action {
  flex: 0 0 auto;
  padding: 0 16px;
  color: var(--graphite-950);
  background: var(--paper);
  font-size: 14px;
}

.header-action svg,
.primary-button svg,
.ghost-button svg {
  width: 18px;
  height: 18px;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 70px);
  padding: 138px clamp(20px, 6vw, 88px) 84px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 50%;
  filter: saturate(0.86) contrast(1.08) brightness(0.78);
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.98) 0%, rgba(5, 6, 8, 0.82) 34%, rgba(5, 6, 8, 0.34) 66%, rgba(5, 6, 8, 0.74) 100%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.25), var(--graphite-950) 96%);
}

.hero-content,
.signal-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(46px, 7.5vw, 108px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 28px 0 0;
  color: #cdd5d9;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

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

.primary-button,
.ghost-button {
  min-width: 178px;
  padding: 0 20px;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.primary-button {
  color: #031013;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 16px 46px rgba(69, 227, 255, 0.22);
}

.ghost-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.signal-panel {
  display: grid;
  gap: 10px;
  align-self: end;
}

.signal-panel div,
.direction-card,
.console,
.process-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.signal-panel div {
  padding: 18px;
}

.signal-panel span,
.process-step span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

.signal-panel strong,
.process-step strong {
  display: block;
  margin-top: 8px;
  font-size: 17px;
}

.signal-panel p,
.process-step p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.ticker {
  display: flex;
  gap: clamp(24px, 5vw, 84px);
  padding: 18px clamp(20px, 6vw, 88px);
  border-block: 1px solid var(--line);
  color: rgba(244, 247, 248, 0.62);
  background: #080a0d;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  animation: ticker-slide 22s linear infinite;
}

.section,
.process-section,
.console-section,
.info-footer {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 88px);
}

.section-heading,
.process-copy,
.console-copy {
  max-width: 780px;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.direction-card {
  position: relative;
  min-height: 420px;
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.direction-card::after {
  content: "";
  position: absolute;
  inset: auto 20px 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: scaleX(0.34);
  transform-origin: left;
  transition: transform 220ms ease;
}

.direction-card:hover,
.direction-card.active {
  transform: translateY(-6px);
  border-color: rgba(69, 227, 255, 0.55);
  background: rgba(15, 23, 27, 0.84);
}

.direction-card:hover::after,
.direction-card.active::after {
  transform: scaleX(1);
}

.direction-card svg {
  width: 34px;
  height: 34px;
  color: var(--cyan);
}

h3 {
  margin: 28px 0 14px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.08;
}

.direction-card p,
.process-copy p,
.console-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.direction-card ul {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: #d7dee2;
}

.direction-card li {
  position: relative;
  padding-left: 20px;
}

.direction-card li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.process-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 6vw, 90px);
  background:
    radial-gradient(circle at 84% 12%, rgba(69, 227, 255, 0.1), transparent 30%),
    #080a0d;
}

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

.process-step {
  min-height: 210px;
  padding: 22px;
}

.console-section {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 90px);
}

.console {
  padding: 14px;
  background: rgba(7, 10, 12, 0.82);
}

.console-header {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.console-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--graphite-500);
}

.console-header span:nth-child(1) {
  background: var(--amber);
}

.console-header span:nth-child(2) {
  background: var(--green);
}

.console-header span:nth-child(3) {
  background: var(--cyan);
}

.console-header strong {
  margin-left: auto;
  font-size: 13px;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 14px;
}

.metric {
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.metric small,
.metric span {
  color: var(--muted);
}

.metric strong {
  display: block;
  margin: 18px 0 8px;
  font-size: clamp(34px, 6vw, 58px);
}

.metric.wide {
  grid-column: 1 / -1;
}

.bars {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.bars span {
  position: relative;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.bars span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  animation: pulse-bar 2.8s ease-in-out infinite;
}

.info-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, #0a0d10, #11171b);
}

.info-footer h2 {
  max-width: 780px;
  font-size: clamp(28px, 4vw, 52px);
}

.info-footer p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.65;
}

.legal-footer {
  flex: 0 0 min(420px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.legal-footer p {
  margin: 0;
  color: var(--paper);
  font-weight: 700;
}

.legal-footer p + p {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 600;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 680ms ease,
    transform 680ms ease;
}

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

@keyframes ticker-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-120px);
  }
}

@keyframes pulse-bar {
  0%,
  100% {
    filter: brightness(0.92);
  }
  50% {
    filter: brightness(1.35);
  }
}

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

  .hero,
  .process-section,
  .console-section {
    grid-template-columns: 1fr;
  }

  .signal-panel {
    align-self: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .directions-grid {
    grid-template-columns: 1fr;
  }

  .direction-card {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .topbar {
    top: 10px;
    height: 58px;
  }

  .brand {
    font-size: 16px;
  }

  .header-action {
    display: none;
  }

  .hero {
    padding-top: 104px;
    padding-bottom: 52px;
    overflow: hidden;
  }

  .hero-image {
    object-position: 71% 50%;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5, 6, 8, 0.98), rgba(5, 6, 8, 0.72)),
      linear-gradient(180deg, rgba(5, 6, 8, 0.12), var(--graphite-950));
  }

  .signal-panel,
  .process-line,
  .console-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(38px, 11vw, 43px);
    line-height: 1.02;
  }

  .hero-copy {
    max-width: 31ch;
    font-size: 16px;
  }

  .hero-actions {
    max-width: 330px;
  }

  .console-section,
  .info-footer {
    display: block;
  }

  .console,
  .legal-footer {
    margin-top: 24px;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }
}

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