:root {
  color-scheme: dark;
  --bg: #050814;
  --panel: rgba(7, 13, 28, 0.82);
  --panel-strong: rgba(9, 18, 38, 0.94);
  --ink: #f7fbff;
  --muted: #a9b8ca;
  --line: rgba(190, 217, 255, 0.18);
  --red: #ff3048;
  --blue: #18a4ff;
  --green: #38e49b;
  --amber: #f4be45;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  --radius: 8px;
  font-family:
    Exo,
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(125deg, rgba(5, 8, 20, 0.96), rgba(8, 10, 19, 0.99) 52%, rgba(16, 5, 9, 0.98)),
    var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  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: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 88%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 48, 72, 0.16), transparent 22%, transparent 78%, rgba(24, 164, 255, 0.16)),
    repeating-linear-gradient(120deg, transparent 0 28px, rgba(255, 255, 255, 0.02) 29px 30px);
}

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

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

section {
  scroll-margin-top: 90px;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
}

code {
  color: #d8efff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 12px clamp(16px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 8, 18, 0.76);
  backdrop-filter: blur(20px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
}

.brand-mark img {
  width: 128px;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(24, 164, 255, 0.42));
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-nav a,
.header-action,
.primary-action,
.secondary-action {
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.top-nav a:hover {
  color: var(--ink);
}

.header-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius);
  font-weight: 850;
}

.header-action {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #dfefff;
  white-space: nowrap;
}

.header-action:hover,
.secondary-action:hover {
  border-color: rgba(24, 164, 255, 0.58);
  background: rgba(24, 164, 255, 0.12);
}

.hero-section {
  position: relative;
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
  padding: 116px clamp(18px, 6vw, 84px) 72px;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("/assets/brand/public-hero.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 5, 12, 0.94), rgba(3, 6, 14, 0.78) 45%, rgba(3, 5, 12, 0.88)),
    linear-gradient(180deg, rgba(5, 8, 20, 0.34), rgba(5, 8, 20, 0.92));
}

.hero-content,
.hero-device {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: #9bdcff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 0 22px rgba(24, 164, 255, 0.28),
    0 0 24px rgba(255, 48, 72, 0.2);
}

.hero-copy {
  width: min(680px, 100%);
  margin: 26px 0 0;
  color: #d9e6f2;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

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

.primary-action,
.secondary-action {
  padding: 0 20px;
}

.primary-action {
  background: linear-gradient(135deg, var(--red), #b81833 48%, var(--blue));
  box-shadow: 0 12px 40px rgba(255, 48, 72, 0.28);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(760px, 100%);
  margin: 42px 0 0;
}

.hero-stats div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(5, 10, 22, 0.58);
  backdrop-filter: blur(14px);
}

.hero-stats dt {
  font-size: 2rem;
  font-weight: 950;
}

.hero-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-device {
  align-self: end;
  margin: 0;
  border: 1px solid rgba(210, 231, 255, 0.2);
  border-radius: 10px;
  padding: 10px;
  background: rgba(4, 8, 18, 0.7);
  box-shadow: var(--shadow);
}

.hero-device img {
  aspect-ratio: 1280 / 900;
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  object-position: left top;
}

.tour-section,
.ecosystem-section,
.value-section,
.deploy-section {
  padding: clamp(62px, 8vw, 112px) clamp(18px, 6vw, 84px);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.tour-shell {
  display: grid;
  grid-template-columns: minmax(230px, 330px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-width: 0;
}

.tour-rail {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.tour-step {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  cursor: pointer;
}

.tour-step span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
}

.tour-step strong {
  font-size: 1rem;
}

.tour-step small {
  color: var(--muted);
  line-height: 1.45;
}

.tour-step.is-active {
  border-color: rgba(24, 164, 255, 0.7);
  background: linear-gradient(135deg, rgba(24, 164, 255, 0.18), rgba(255, 48, 72, 0.12));
  box-shadow: 0 18px 50px rgba(24, 164, 255, 0.13);
}

.tour-stage {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1fr);
  min-height: 560px;
  min-width: 0;
  border: 1px solid rgba(210, 231, 255, 0.2);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stage-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(22px, 4vw, 42px);
}

.stage-copy h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.stage-copy p:not(.eyebrow) {
  color: #dce9f5;
  line-height: 1.65;
}

.stage-points {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.stage-points li {
  border-left: 3px solid var(--blue);
  padding: 10px 0 10px 14px;
  color: var(--muted);
  background: linear-gradient(90deg, rgba(24, 164, 255, 0.09), transparent);
}

.stage-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 26px;
}

.icon-action {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.icon-action:hover {
  border-color: rgba(24, 164, 255, 0.62);
  background: rgba(24, 164, 255, 0.12);
}

.stage-visual {
  position: relative;
  min-width: 0;
  min-height: 420px;
  border-left: 1px solid var(--line);
  background: #030711;
}

.stage-visual img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center top;
}

.visual-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(5, 8, 20, 0.82);
  color: #dce9f5;
  backdrop-filter: blur(16px);
}

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

.ecosystem-item,
.value-grid article,
.deploy-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2);
}

.ecosystem-item {
  overflow: hidden;
}

.ecosystem-item img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
}

.ecosystem-item h3,
.value-grid h3 {
  margin: 18px 18px 0;
  font-size: 1.18rem;
}

.ecosystem-item p,
.value-grid p {
  margin: 10px 18px 20px;
  color: var(--muted);
  line-height: 1.6;
}

.value-grid article {
  padding: 22px 4px 4px;
}

.value-grid span {
  display: inline-flex;
  margin-left: 18px;
  color: var(--amber);
  font-weight: 950;
}

.deploy-section {
  padding-bottom: 72px;
}

.deploy-panel {
  max-width: 920px;
  padding: 22px;
  color: var(--muted);
}

.deploy-panel p {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 850;
}

.deploy-panel ul {
  margin: 0;
  padding-left: 20px;
}

.deploy-panel li + li {
  margin-top: 9px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 24px clamp(18px, 6vw, 84px);
  color: var(--muted);
  background: rgba(3, 7, 16, 0.84);
}

.site-footer img {
  width: 118px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1080px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-device {
    width: min(720px, 100%);
  }

  .tour-shell,
  .tour-stage {
    grid-template-columns: 1fr;
  }

  .tour-rail {
    display: flex;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 6px;
    contain: paint;
  }

  .tour-step {
    flex: 0 0 min(260px, 36vw);
  }

  .stage-visual {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 66px;
  }

  .brand-mark img {
    width: 104px;
  }

  .top-nav {
    display: none;
  }

  .header-action {
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.82rem;
  }

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

  .hero-stats,
  .ecosystem-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .tour-rail {
    gap: 8px;
  }

  .tour-step {
    flex-basis: min(220px, 78vw);
  }

  .hero-content h1 {
    font-size: 2.56rem;
  }

  .tour-stage {
    min-height: auto;
  }

  .stage-copy {
    padding: 22px;
  }

  .stage-visual img {
    min-height: 360px;
  }

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