:root {
  --bg: #060606;
  --bg-soft: #0d0d0f;
  --panel: rgba(17, 17, 18, 0.76);
  --panel-strong: rgba(22, 22, 23, 0.92);
  --line: rgba(212, 171, 92, 0.14);
  --line-strong: rgba(212, 171, 92, 0.28);
  --text: #f6efdf;
  --muted: #b4a78e;
  --gold: #d4ab5c;
  --gold-soft: #f3d493;
  --gold-dim: #8f6b31;
  --shadow-xl: 0 36px 90px rgba(0, 0, 0, 0.48);
  --shadow-lg: 0 18px 42px rgba(0, 0, 0, 0.32);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(212, 171, 92, 0.13), transparent 24%),
    radial-gradient(circle at 86% 12%, rgba(212, 171, 92, 0.1), transparent 18%),
    linear-gradient(180deg, #040404 0%, #090909 44%, #060606 100%);
}

body {
  overflow-x: hidden;
}

button {
  font: inherit;
}

.ambient,
.cursor-halo {
  position: fixed;
  pointer-events: none;
}

.ambient {
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.72;
  z-index: 0;
}

.ambient-a {
  left: -120px;
  top: 90px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(212, 171, 92, 0.2) 0%, rgba(212, 171, 92, 0) 72%);
}

.ambient-b {
  right: -100px;
  top: 40px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(212, 171, 92, 0.14) 0%, rgba(212, 171, 92, 0) 72%);
}

.cursor-halo {
  left: 0;
  top: 0;
  width: 420px;
  height: 420px;
  margin-left: -210px;
  margin-top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 171, 92, 0.12) 0%, rgba(212, 171, 92, 0.06) 34%, rgba(212, 171, 92, 0) 72%);
  filter: blur(14px);
  transition: transform 0.08s linear;
  z-index: 0;
}

.immersive-page {
  position: relative;
  z-index: 1;
}

.surface {
  background:
    linear-gradient(180deg, rgba(28, 27, 25, 0.92), rgba(16, 16, 16, 0.82)),
    linear-gradient(90deg, rgba(212, 171, 92, 0.04), rgba(212, 171, 92, 0));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 231, 184, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@media (max-width: 820px) {
  .surface {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

.hero-section,
.metrics-ribbon,
.mosaic-section {
  padding-left: 4vw;
  padding-right: 4vw;
}

.hero-section {
  padding-top: 4vw;
  padding-bottom: 2vw;
}

.hero-copy {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold-soft);
  font-family: "Sora", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-head h2,
.mosaic-card strong,
.stage-float strong,
.core-heart,
.core-topline b {
  font-family: "Sora", "Noto Sans SC", sans-serif;
}

.hero-copy h1,
.section-head h2 {
  margin: 0;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.96;
  color: #fff4da;
}

.hero-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.7;
}

.endpoint-dock {
  max-width: 980px;
  margin: 28px auto 0;
  padding: 18px 20px;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
}

.dock-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dock-meta span {
  font-weight: 700;
  color: #f8e8c2;
}

.dock-meta small,
.dock-status,
.metric-tile span,
.mosaic-card span,
.stage-float span,
.panel-row span,
.core-topline span {
  color: var(--muted);
}

.dock-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.dock-code {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(212, 171, 92, 0.16);
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.68);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(14px, 1.2vw, 18px);
}

.dock-base {
  color: #fff6e2;
  white-space: nowrap;
}

.dock-path {
  color: var(--gold-soft);
  font-weight: 700;
  white-space: nowrap;
}

.dock-button {
  padding: 14px 18px;
  border: 1px solid rgba(212, 171, 92, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(42, 34, 18, 0.95), rgba(19, 16, 10, 0.95));
  color: #f8e1ab;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 231, 184, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.dock-button:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 171, 92, 0.42);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
}

.dock-status {
  display: inline-block;
  min-height: 20px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}

.compute-stage {
  position: relative;
  max-width: 1220px;
  min-height: 700px;
  margin: 38px auto 0;
}

.compute-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 680px;
  height: 680px;
  margin-left: -340px;
  margin-top: -340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 171, 92, 0.14) 0%, rgba(212, 171, 92, 0.03) 40%, rgba(212, 171, 92, 0) 72%);
  filter: blur(10px);
}

.core-stack {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(580px, 84vw);
  height: 430px;
  transform: translate(-50%, -50%) perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
}

.core-layer,
.core-shell {
  position: absolute;
  inset: 0;
  border-radius: 34px;
}

.core-layer {
  border: 1px solid rgba(212, 171, 92, 0.12);
  background: linear-gradient(180deg, rgba(33, 29, 22, 0.44), rgba(10, 10, 10, 0.2));
  box-shadow: var(--shadow-sm);
}

.layer-back {
  transform: translate3d(0, 28px, -72px) scale(0.92);
}

.layer-mid {
  transform: translate3d(0, 14px, -34px) scale(0.96);
}

.core-shell {
  padding: 22px;
  overflow: hidden;
}

.core-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(212, 171, 92, 0.12), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(212, 171, 92, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 213, 136, 0.04), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.core-topline,
.core-center,
.model-band,
.pulse-lanes {
  position: relative;
  z-index: 1;
}

.core-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.core-topline span {
  font-size: 13px;
}

.core-topline b {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 29, 19, 0.9);
  border: 1px solid rgba(212, 171, 92, 0.16);
  color: var(--gold-soft);
  font-size: 12px;
}

.core-center {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 34px auto 0;
}

.core-ring,
.core-heart {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.core-ring {
  border: 1px solid rgba(212, 171, 92, 0.18);
  box-shadow: inset 0 0 24px rgba(212, 171, 92, 0.04);
}

.ring-a {
  width: 220px;
  height: 220px;
}

.ring-b {
  width: 152px;
  height: 152px;
}

.core-heart {
  width: 112px;
  height: 112px;
  background: radial-gradient(circle at 30% 30%, #302714 0%, #15120c 72%);
  border: 1px solid rgba(212, 171, 92, 0.28);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.34), inset 0 0 24px rgba(212, 171, 92, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-soft);
}

.model-band {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.band-top {
  margin-top: 22px;
}

.band-bottom {
  margin-top: 14px;
}

.model-band span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.84);
  border: 1px solid rgba(212, 171, 92, 0.16);
  color: #f0dfb7;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.pulse-lanes {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.pulse-lanes i,
.row-track i,
.route-grid b,
.flow-line i {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(112, 82, 25, 0.15) 0%, rgba(212, 171, 92, 0.88) 52%, rgba(255, 226, 162, 0.28) 100%);
  box-shadow: 0 0 24px rgba(212, 171, 92, 0.12);
}

.pulse-lanes i {
  height: 10px;
}

.pulse-lanes i:nth-child(1) { width: 82%; }
.pulse-lanes i:nth-child(2) { width: 96%; }
.pulse-lanes i:nth-child(3) { width: 74%; }

.stage-float,
.stage-panel {
  position: absolute;
  border-radius: 24px;
}

.stage-float {
  width: 230px;
  padding: 18px 20px;
}

.float-left {
  left: 3%;
  top: 16%;
}

.float-right {
  right: 3%;
  top: 16%;
}

.stage-float strong,
.panel-row strong,
.metric-tile strong {
  display: block;
  margin-top: 8px;
  font-family: "JetBrains Mono", monospace;
}

.stage-float strong {
  font-size: 28px;
  color: #ffe8b2;
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  align-items: end;
  height: 72px;
  margin-top: 14px;
}

.mini-bars i,
.sparkline i {
  display: block;
  height: var(--h);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 224, 152, 0.95), rgba(159, 113, 26, 0.36));
  box-shadow: 0 10px 18px rgba(212, 171, 92, 0.12);
}

.dot-mesh {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.dot-mesh i,
.signal-dots i {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd98d 0%, rgba(212, 171, 92, 0.22) 44%, rgba(212, 171, 92, 0.06) 72%);
  box-shadow: 0 0 16px rgba(212, 171, 92, 0.14);
}

.stage-panel {
  left: 50%;
  bottom: 2%;
  width: 450px;
  padding: 20px;
  transform: translateX(-50%) perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 8px;
}

.panel-row strong {
  font-size: 26px;
  color: #ffe6ab;
}

.row-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(212, 171, 92, 0.08);
  overflow: hidden;
}

.row-track i {
  height: 100%;
}

.metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
  padding-bottom: 4vw;
}

.metric-tile {
  padding: 24px;
  border-radius: 22px;
}

.metric-tile strong {
  font-size: 34px;
  color: #ffe6ab;
}

.sparkline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: end;
  height: 74px;
  margin-top: 16px;
}

.sparkline-low i {
  background: linear-gradient(180deg, rgba(255, 214, 122, 0.82), rgba(115, 83, 22, 0.28));
}

.metric-ring {
  width: 92px;
  height: 92px;
  margin: 14px auto 0;
  padding: 10px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(212, 171, 92, 0.1), rgba(212, 171, 92, 0.88) 78%, rgba(212, 171, 92, 0.1) 100%);
}

.metric-ring-core {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #0f0f10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffe7b0;
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  font-weight: 700;
}

.mosaic-section {
  padding-top: 2vw;
  padding-bottom: 5vw;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.06;
  color: #fff1cf;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 16px;
}

.mosaic-card {
  min-height: 190px;
  padding: 26px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 86% 16%, rgba(212, 171, 92, 0.09), transparent 22%),
    linear-gradient(180deg, rgba(29, 28, 26, 0.92), rgba(16, 16, 16, 0.82));
}

.mosaic-card span {
  margin-bottom: 8px;
}

.mosaic-card strong {
  font-size: 24px;
  line-height: 1.22;
  color: #fff0c7;
}

.mosaic-card-large {
  min-height: 280px;
  grid-row: span 2;
}

.mosaic-card-wide {
  grid-column: span 2;
}

.lane-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.lane-grid i {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(94, 71, 24, 0.2), rgba(212, 171, 92, 0.92));
  box-shadow: 0 0 18px rgba(212, 171, 92, 0.12);
}

.large-card-head {
  margin-bottom: 20px;
}

.model-matrix {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.model-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.model-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(18, 18, 18, 0.6);
  border: 1px solid rgba(212, 171, 92, 0.1);
}

.model-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd98d, #d4ab5c);
  box-shadow: 0 0 10px rgba(212, 171, 92, 0.4);
}

.model-badge b {
  font-size: 13px;
  font-weight: 600;
  color: #f0dfb7;
}

.traffic-chart {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.chart-line {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  align-items: center;
  gap: 12px;
}

.chart-line span {
  font-size: 12px;
  color: var(--muted);
}

.chart-line b {
  font-size: 13px;
  color: #ffe8b2;
  text-align: right;
}

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

.chart-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(112, 82, 25, 0.3), rgba(212, 171, 92, 0.95));
  box-shadow: 0 0 12px rgba(212, 171, 92, 0.2);
}

.route-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.route-grid b {
  height: 10px;
}

.signal-dots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.flow-line {
  width: 100%;
  height: 14px;
  margin-top: 24px;
  border-radius: 999px;
  background: rgba(212, 171, 92, 0.08);
  overflow: hidden;
}

.flow-line i {
  width: 88%;
  height: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s cubic-bezier(.22, 1, .36, 1), transform 0.85s cubic-bezier(.22, 1, .36, 1);
}

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

.tilt-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}

.tilt-card:hover {
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.38);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tilt-card,
  .cursor-halo,
  .dock-button {
    transition: none;
  }
}

@media (max-width: 1080px) {
  .metrics-ribbon,
  .mosaic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mosaic-card-large,
  .mosaic-card-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .compute-stage {
    min-height: 780px;
  }
}

@media (max-width: 820px) {
  .hero-section,
  .metrics-ribbon,
  .mosaic-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-section {
    padding-top: 26px;
  }

  .dock-main,
  .metrics-ribbon,
  .mosaic-grid {
    grid-template-columns: 1fr;
  }

  .compute-stage {
    min-height: auto;
    display: grid;
    gap: 16px;
  }

  .stage-float,
  .core-stack,
  .stage-panel {
    position: static;
    width: 100%;
    transform: none;
  }

  .core-stack {
    height: 430px;
  }

  .stage-panel {
    left: auto;
    bottom: auto;
  }

  .dock-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .ambient,
  .cursor-halo {
    display: none;
  }

  .hero-copy h1,
  .section-head h2 {
    font-size: 28px;
    line-height: 1.1;
  }

  .hero-lead {
    font-size: 14px;
  }

  .endpoint-dock,
  .metric-tile,
  .mosaic-card,
  .stage-float,
  .stage-panel,
  .core-shell {
    padding: 18px;
    border-radius: 18px;
  }

  .dock-code {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    line-height: 1.4;
    padding: 14px 16px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .dock-code::-webkit-scrollbar {
    display: none;
  }

  .dock-base,
  .dock-path {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .dock-button {
    padding: 12px 16px;
  }

  .core-stack {
    height: 320px;
  }

  .core-center {
    width: 160px;
    height: 160px;
    margin-top: 20px;
  }

  .ring-a {
    width: 160px;
    height: 160px;
  }

  .ring-b {
    width: 110px;
    height: 110px;
  }

  .core-heart {
    width: 80px;
    height: 80px;
    font-size: 13px;
  }

  .model-band {
    gap: 6px;
  }

  .model-band span {
    padding: 6px 10px;
    font-size: 10px;
  }

  .stage-float strong,
  .panel-row strong,
  .metric-tile strong {
    font-size: 22px;
  }

  .mosaic-card {
    min-height: 140px;
  }

  .mosaic-card strong {
    font-size: 18px;
  }

  .mosaic-card-large {
    min-height: auto;
    padding: 20px;
  }

  .large-card-head {
    margin-bottom: 16px;
  }

  .model-matrix {
    gap: 8px;
    margin-bottom: 18px;
  }

  .model-row {
    gap: 8px;
  }

  .model-badge {
    padding: 8px 10px;
  }

  .model-badge i {
    width: 6px;
    height: 6px;
  }

  .model-badge b {
    font-size: 11px;
  }

  .traffic-chart {
    gap: 10px;
    margin-bottom: 16px;
  }

  .chart-line {
    grid-template-columns: 50px 1fr 36px;
    gap: 8px;
  }

  .chart-line span {
    font-size: 11px;
  }

  .chart-line b {
    font-size: 12px;
  }

  .sparkline,
  .mini-bars {
    height: 50px;
  }

  .metric-ring {
    width: 70px;
    height: 70px;
    padding: 6px;
  }

  .metric-ring-core {
    font-size: 12px;
  }

  .tilt-card {
    transform: none !important;
    transition: none;
  }

  .pulse-lanes i,
  .lane-grid i,
  .route-grid b {
    box-shadow: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
