:root {
  --bg: #070912;
  --panel: rgba(14, 19, 34, .72);
  --panel-strong: rgba(10, 16, 30, .88);
  --line: rgba(116, 241, 229, .2);
  --text: #edf7ff;
  --muted: #9fb0c2;
  --cyan: #34f5e8;
  --mint: #11d8a2;
  --blue: #6da8ff;
  --pink: #ff5bbd;
  --amber: #ffd166;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(45, 139, 255, .22), transparent 32rem),
    radial-gradient(circle at 82% 18%, rgba(255, 91, 189, .18), transparent 30rem),
    radial-gradient(circle at 50% 82%, rgba(17, 216, 162, .14), transparent 34rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(100, 225, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 225, 255, .08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), rgba(0, 0, 0, .25));
}

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

#particle-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .025),
    rgba(255, 255, 255, .025) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: screen;
  opacity: .45;
}

.page-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(7, 9, 18, .72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #041316;
  font-weight: 950;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 0 28px rgba(52, 245, 232, .35);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
}

.top-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #c7d4e4;
  font-size: 14px;
}

.top-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-link,
.control-link,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
}

.ghost-link,
.secondary-button {
  border: 1px solid rgba(255, 255, 255, .14);
  color: #d8e6f4;
  background: rgba(255, 255, 255, .05);
}

.control-link,
.primary-button {
  color: #041316;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 18px 50px rgba(17, 216, 162, .26);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
  gap: 42px;
  align-items: center;
  min-height: 720px;
  padding: 88px 0 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 20px;
  padding: 8px 12px;
  border: 1px solid rgba(52, 245, 232, .22);
  border-radius: 999px;
  color: #bafdf6;
  background: rgba(52, 245, 232, .08);
  font-size: 13px;
  font-weight: 800;
}

.eyebrow.static {
  margin-bottom: 12px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(17, 216, 162, .75);
  animation: pulse 1.8s infinite;
}

.hero-title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(52px, 6.5vw, 88px);
  line-height: 1.03;
  letter-spacing: 0;
  font-weight: 900;
  text-wrap: balance;
}

.hero-title span {
  display: block;
}

.title-kicker {
  color: #f2f8ff;
  text-shadow: 0 10px 36px rgba(109, 168, 255, .16);
}

.title-main {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #7df9ee 0%, #dffcff 48%, #ffc2ef 100%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 12px 34px rgba(52, 245, 232, .12));
}

.hero-lead {
  width: min(650px, 100%);
  margin: 24px 0 0;
  color: #c6d4e2;
  font-size: 18px;
  line-height: 1.8;
}

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

.primary-button,
.secondary-button {
  min-height: 52px;
  padding: 0 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
}

.hero-stats strong {
  display: block;
  color: var(--cyan);
  font-size: 26px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.route-map {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 48%, rgba(52, 245, 232, .18), transparent 16rem),
    rgba(255, 255, 255, .035);
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(52, 245, 232, .08), 0 30px 90px rgba(0, 0, 0, .3);
}

.route-map::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px dashed rgba(52, 245, 232, .2);
  border-radius: 28px;
}

.route-map svg {
  position: absolute;
  inset: 7% 4%;
  width: 92%;
  height: 86%;
}

.route {
  fill: none;
  stroke: rgba(52, 245, 232, .34);
  stroke-width: 2;
  stroke-dasharray: 7 12;
  animation: dash 10s linear infinite;
}

.route-2 { stroke: rgba(255, 91, 189, .4); animation-duration: 12s; }
.route-3 { stroke: rgba(109, 168, 255, .4); animation-duration: 14s; }
.route-4 { stroke: rgba(255, 209, 102, .36); animation-duration: 9s; }

.node,
.center-core {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: rgba(8, 14, 28, .8);
  box-shadow: 0 0 34px rgba(52, 245, 232, .18);
  backdrop-filter: blur(12px);
}

.node {
  width: 86px;
  height: 50px;
  color: #dffcff;
  font-size: 13px;
  font-weight: 900;
  animation: floaty 5s ease-in-out infinite;
}

.node-a { top: 18%; left: 9%; }
.node-b { top: 16%; right: 9%; animation-delay: -.8s; }
.node-c { bottom: 17%; left: 10%; animation-delay: -1.6s; }
.node-d { bottom: 15%; right: 10%; animation-delay: -2.2s; }

.center-core {
  top: 50%;
  left: 50%;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -50%);
  border-radius: 35px;
  color: #051215;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 0 70px rgba(52, 245, 232, .45);
}

.orbital-ring {
  position: absolute;
  border: 1px solid rgba(52, 245, 232, .18);
  border-radius: 999px;
  pointer-events: none;
}

.ring-one {
  inset: 13% 10%;
  animation: rotate 20s linear infinite;
}

.ring-two {
  inset: 24% 20%;
  border-color: rgba(255, 91, 189, .18);
  animation: rotate 26s linear infinite reverse;
}

.terminal-card {
  position: absolute;
  right: -18px;
  bottom: 28px;
  z-index: 4;
  width: min(420px, 86%);
  border: 1px solid rgba(100, 225, 255, .22);
  border-radius: 22px;
  background: rgba(3, 8, 18, .88);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .48), 0 0 44px rgba(52, 245, 232, .12);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-top span:nth-child(1) { background: #ff5f57; }
.terminal-top span:nth-child(2) { background: #ffbd2e; }
.terminal-top span:nth-child(3) { background: #28c840; }
.terminal-top em {
  margin-left: auto;
  color: #6f8195;
  font-style: normal;
  font-size: 12px;
}

#terminal-log {
  min-height: 210px;
  margin: 0;
  padding: 18px;
  color: #bfe7ff;
  font: 14px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.quick-strip,
.model-grid,
.split-section {
  display: grid;
  gap: 18px;
}

.quick-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: -8px;
}

.quick-strip div,
.model-card,
.glass-panel,
.guide-section {
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .22);
  backdrop-filter: blur(16px);
}

.quick-strip div {
  padding: 22px;
}

.quick-strip span {
  color: var(--cyan);
  font-weight: 950;
}

.quick-strip strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}

.quick-strip p,
.model-card p,
.guide-copy p,
.pricing-lines span {
  color: var(--muted);
  line-height: 1.65;
}

.section-block {
  margin: 76px 0 0;
}

.section-heading {
  margin-bottom: 22px;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 18px;
  text-align: left;
}

.section-heading p {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.model-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.model-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  overflow: hidden;
}

.model-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 30%;
  height: 80%;
  background: radial-gradient(circle, rgba(52, 245, 232, .18), transparent 62%);
}

.model-card.active {
  border-color: rgba(52, 245, 232, .5);
}

.model-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: #051215;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  font-weight: 950;
}

.model-icon.amber { background: linear-gradient(135deg, #ffd166, #ff8a65); }
.model-icon.violet { background: linear-gradient(135deg, #b78cff, #7c5cff); color: #fff; }
.model-icon.cyan { background: linear-gradient(135deg, #6da8ff, #34f5e8); }

.model-card h3 {
  margin: 18px 0 4px;
}

.model-card strong {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #bffcf7;
  background: rgba(52, 245, 232, .1);
}

.split-section {
  grid-template-columns: 1.15fr .85fr;
}

.glass-panel {
  padding: 26px;
}

.channel-list,
.pricing-lines {
  display: grid;
  gap: 12px;
}

.channel-list div,
.pricing-lines div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
}

.channel-list span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.channel-list .ok {
  background: #20e29f;
  box-shadow: 0 0 16px rgba(32, 226, 159, .7);
}

.channel-list .warn {
  background: #ffbd2e;
  box-shadow: 0 0 16px rgba(255, 189, 46, .6);
}

.channel-list strong {
  margin-right: auto;
}

.channel-list em {
  color: var(--muted);
  font-style: normal;
}

.pricing-lines strong {
  color: var(--cyan);
}

.guide-section {
  display: grid;
  grid-template-columns: 1fr minmax(320px, .9fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 88px;
  padding: 28px;
}

.guide-copy h2 {
  margin: 0;
  font-size: 34px;
}

.code-panel {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(52, 245, 232, .25);
  border-radius: 20px;
  background: var(--panel-strong);
}

.code-panel code {
  display: block;
  color: #bbfff7;
  font: 18px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}

.code-panel button {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  color: #031316;
  background: var(--cyan);
  font-weight: 900;
  cursor: pointer;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(17, 216, 162, 0); }
  100% { box-shadow: 0 0 0 0 rgba(17, 216, 162, 0); }
}

@keyframes dash {
  to { stroke-dashoffset: -220; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .top-nav {
    display: none;
  }

  .hero-section,
  .guide-section,
  .split-section {
    grid-template-columns: 1fr;
  }

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

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

  .quick-strip,
  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 22px, 1180px);
  }

  .site-header {
    position: relative;
    top: 0;
    flex-wrap: wrap;
    border-radius: 16px;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ghost-link,
  .control-link {
    min-width: 0;
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero-title {
    max-width: 100%;
    font-size: 30px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .hero-title span {
    display: block;
  }

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

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

  .hero-stats,
  .quick-strip,
  .model-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 430px;
    overflow: hidden;
    border-radius: 24px;
  }

  .center-core {
    width: 104px;
    height: 104px;
    border-radius: 28px;
    font-size: 20px;
  }

  .node {
    width: 74px;
    height: 44px;
  }

  .terminal-card {
    right: 12px;
    bottom: 14px;
    width: calc(100% - 24px);
  }

  .guide-section {
    padding: 20px;
  }
}

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