:root {
  color-scheme: dark;
  --bg: #040507;
  --bg-soft: #0b0f14;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --text: #f5f7fb;
  --muted: #9aa6b2;
  --line: rgba(255, 255, 255, 0.08);
  --blue: #3d73ff;
  --blue-soft: rgba(61, 115, 255, 0.18);
  --cyan: #5dd6ff;
  --green: #5df2a5;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(61, 115, 255, 0.15), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(93, 214, 255, 0.11), transparent 24%),
    linear-gradient(180deg, #05070a 0%, #040507 40%, #070b10 100%);
  color: var(--text);
}

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

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

.site-shell {
  min-height: 100vh;
}

.topbar,
.hero,
.section,
.ticker-band,
.closing-band {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  backdrop-filter: blur(18px);
  background: rgba(4, 5, 7, 0.62);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #4b7cff 0%, #2558e5 100%);
  color: white;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(61, 115, 255, 0.28);
}

.brand-text {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.topnav a:hover,
.ghost-link:hover {
  color: var(--text);
}

.ghost-link {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: 52px;
  padding: 26px 0 20px;
  align-items: center;
  min-height: min(860px, calc(82vh - 84px));
}

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

.hero h1,
.section h2,
.closing-copy h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.96;
}

.hero h1 {
  font-size: clamp(3.6rem, 7vw, 6.6rem);
  max-width: 8ch;
}

.hero-text {
  max-width: 36rem;
  margin: 22px 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #d5ddea;
}

.hero-actions,
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
}

.primary-button {
  background: linear-gradient(180deg, #4d7dff 0%, #275be6 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(61, 115, 255, 0.28);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.hero-metrics {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 34px 0 0;
}

.hero-metrics li {
  padding: 16px 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.metric-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  inset: 8% 12% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 115, 255, 0.34), rgba(61, 115, 255, 0.06) 44%, transparent 70%);
  filter: blur(30px);
}

.device-stack {
  position: relative;
  width: min(100%, 740px);
  min-height: 540px;
}

.device-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.device-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-card-main {
  right: 0;
  width: min(88%, 620px);
  aspect-ratio: 1.35;
  border-radius: 28px;
  transform: rotate(-5deg);
}

.device-card-side {
  left: 14px;
  bottom: 26px;
  width: min(33%, 230px);
  aspect-ratio: 0.47;
  border-radius: 34px;
  transform: rotate(6deg);
}

.ticker-band {
  overflow: hidden;
  padding: 8px 0 18px;
}

.ticker-track {
  display: flex;
  gap: 20px;
  white-space: nowrap;
  color: rgba(245, 247, 251, 0.74);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.ticker-track span::after {
  content: "•";
  color: rgba(93, 214, 255, 0.85);
  margin-left: 20px;
}

.section,
.closing-band {
  padding: 96px 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 34px;
}

.section-heading h2,
.closing-copy h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  max-width: 13ch;
}

.section-heading.narrow h2 {
  max-width: 11ch;
}

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

.intro-columns p,
.feature-block p,
.system-card p,
.signal-item span,
.screen-copy p,
.closing-copy p {
  margin: 0;
  color: #c4cedd;
  line-height: 1.74;
  font-size: 1rem;
}

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

.feature-block,
.system-card,
.signal-item {
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.028));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-block h3,
.system-card h3,
.screen-copy h3 {
  margin: 0 0 14px;
  font-size: 1.42rem;
  line-height: 1.15;
  letter-spacing: 0;
}

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

.system-index {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

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

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

.team-card {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.028));
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 132px;
  display: flex;
  align-items: end;
}

.team-card h3 {
  margin: 0;
  font-size: 1.64rem;
  line-height: 1.12;
}

.signal-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 160px;
}

.signal-item strong {
  font-size: 1.2rem;
}

.screen-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.screen-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 11px 16px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.screen-tab.active {
  background: rgba(61, 115, 255, 0.2);
  color: white;
}

.screen-stage {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.screen-kicker {
  margin-bottom: 10px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

.screen-figure {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.screen-figure img {
  aspect-ratio: 1.42;
  object-fit: cover;
}

.closing-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1080px) {
  .hero,
  .screen-stage,
  .closing-band,
  .intro-columns,
  .feature-rail,
  .system-grid,
  .signals-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    min-height: 520px;
  }

  .device-stack {
    min-height: 520px;
  }

  .device-card-main {
    width: min(100%, 640px);
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(-4deg);
  }

  .device-card-side {
    left: auto;
    right: 8%;
    bottom: 8px;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .topnav {
    order: 3;
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 24px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .device-stack {
    min-height: 420px;
  }

  .device-card-main {
    width: 100%;
    border-radius: 22px;
  }

  .device-card-side {
    width: 34%;
    border-radius: 24px;
  }

  .section,
  .closing-band {
    padding: 74px 0;
  }

  .feature-block,
  .system-card,
  .signal-item {
    padding: 22px;
  }
}
