:root {
  color-scheme: dark;
  --ink: #f4f0e8;
  --muted: #a7b2ad;
  --panel: rgba(16, 23, 25, 0.72);
  --line: rgba(244, 240, 232, 0.16);
  --cyan: #4ff5d2;
  --lime: #d7ff5f;
  --coral: #ff7a59;
  --steel: #8bb8ff;
  --dark: #071112;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--dark);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 12%, rgba(79, 245, 210, 0.14), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(255, 122, 89, 0.12), transparent 24%),
    linear-gradient(135deg, #071112 0%, #101716 54%, #151b17 100%);
  letter-spacing: 0;
}

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

button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
  font: inherit;
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 9px;
  color: #d9e2dd;
  font-size: 14px;
  font-weight: 800;
}

#skyline {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 10px -12px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 17, 18, 0.74);
  box-shadow: 0 14px 54px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(79, 245, 210, 0.72);
  border-radius: 6px;
  background:
    linear-gradient(135deg, transparent 42%, var(--cyan) 43% 57%, transparent 58%),
    radial-gradient(circle at 70% 25%, var(--lime), transparent 32%);
  box-shadow: 0 0 26px rgba(79, 245, 210, 0.42);
  animation: pulseMark 2.4s ease-in-out infinite;
}

nav {
  gap: 8px;
  justify-content: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

nav a {
  min-width: 64px;
  padding: 9px 14px;
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
  transition: color 0.2s ease, background 0.2s ease;
}

nav a.active,
nav a:hover {
  color: var(--ink);
  background: rgba(244, 240, 232, 0.1);
}

.icon-button {
  justify-self: end;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(79, 245, 210, 0.34);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(79, 245, 210, 0.08);
  cursor: pointer;
}

.icon-power {
  display: block;
  width: 18px;
  height: 18px;
  margin: 9px auto 0;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  position: relative;
}

.icon-power::before {
  content: "";
  position: absolute;
  left: 6px;
  top: -8px;
  width: 2px;
  height: 11px;
  background: currentColor;
  border-radius: 4px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-shell,
.pricing-hero,
.open-stage {
  min-height: calc(86vh - 86px);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(310px, 0.72fr);
  gap: 44px;
  align-items: center;
  padding: 42px 0 52px;
}

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

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

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-family: "Didot", "Songti SC", serif;
  font-size: clamp(46px, 7.2vw, 92px);
  line-height: 0.96;
  font-weight: 700;
}

h2 {
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.05;
}

.lead {
  max-width: 680px;
  color: #cbd5d1;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
}

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

.weekly-growth,
.compute-readout {
  display: grid;
  gap: 7px;
  width: min(420px, 100%);
  margin-top: 24px;
  border: 1px solid rgba(215, 255, 95, 0.32);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(215, 255, 95, 0.12), rgba(79, 245, 210, 0.06)),
    rgba(255, 255, 255, 0.035);
}

.weekly-growth span,
.compute-readout span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.weekly-growth strong,
.compute-readout strong {
  color: var(--lime);
  font-family: "Didot", "Songti SC", serif;
  font-size: clamp(48px, 7vw, 76px);
  line-height: 0.9;
  animation: priceBreathe 1.9s ease-in-out infinite;
}

.weekly-growth small,
.compute-readout small {
  color: #d8e3de;
  line-height: 1.5;
}

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 136px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 20px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-action {
  color: #071112;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  box-shadow: 0 14px 38px rgba(79, 245, 210, 0.25);
  font-weight: 800;
}

.ghost-action {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(244, 240, 232, 0.06);
}

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

.command-deck,
.capability,
.price-card,
.comparison,
.access-panel,
.workbench,
.provision-form,
.resource-console {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.command-deck {
  position: relative;
  min-height: 430px;
  padding: 22px;
  overflow: hidden;
}

.command-deck::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(79, 245, 210, 0.2);
  border-radius: 6px;
  animation: scanBorder 3s linear infinite;
}

.command-deck::after {
  content: "";
  position: absolute;
  inset: auto -12% 22% -12%;
  height: 140px;
  background: linear-gradient(90deg, transparent, rgba(79, 245, 210, 0.28), transparent);
  transform: rotate(-12deg);
  animation: sweep 4.8s ease-in-out infinite;
}

.deck-top,
.deck-grid {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  color: #dfe8e4;
}

.live-dot {
  color: var(--lime);
}

.gpu-meter {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 12px;
  height: 230px;
  padding: 34px 8px 0;
}

.gpu-meter span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(to top, var(--cyan), var(--lime));
  transform-origin: bottom;
  animation: meterBounce 1.7s ease-in-out infinite;
}

.gpu-meter span:nth-child(2) {
  animation-delay: -0.4s;
}

.gpu-meter span:nth-child(3) {
  animation-delay: -0.8s;
}

.gpu-meter span:nth-child(4) {
  animation-delay: -1.1s;
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.deck-grid div {
  padding: 16px;
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.deck-grid strong,
.deck-grid small {
  display: block;
}

.deck-grid strong {
  font-size: 28px;
}

.deck-grid small {
  color: var(--muted);
}

.capability-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px 0 42px;
}

.capability {
  position: relative;
  min-height: 260px;
  padding: 28px;
  overflow: hidden;
}

.mini-action {
  min-height: 38px;
  border: 1px solid rgba(79, 245, 210, 0.32);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--cyan);
  background: rgba(79, 245, 210, 0.08);
  cursor: pointer;
}

.capability p,
.price-card p {
  color: #c3cec9;
  line-height: 1.7;
}

.capability-orbit {
  display: block;
  width: 70px;
  height: 70px;
  margin-bottom: 42px;
  border: 1px solid rgba(79, 245, 210, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan) 0 8px, transparent 9px);
  animation: orbit 3.2s linear infinite;
}

.delay-one {
  animation-delay: -0.7s;
}

.delay-two {
  animation-delay: -1.4s;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 18px;
  margin: 0 0 34px;
  padding: 20px;
}

.workbench-controls,
.workbench-preview {
  display: grid;
  gap: 18px;
}

.mode-tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.mode-tab {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.mode-tab.active {
  color: #071112;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  font-weight: 900;
}

.compute-readout {
  width: 100%;
  margin-top: 0;
}

.compute-readout strong {
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 40px;
}

.control-grid,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

input[type="range"] {
  accent-color: var(--lime);
  padding: 0;
}

.preview-top,
.node-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.status-pill,
.node-list span {
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: 999px;
  padding: 8px 11px;
  color: #dce7e2;
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
}

.preview-screen {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 230px;
  border: 1px solid rgba(79, 245, 210, 0.18);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(79, 245, 210, 0.1), transparent 42%),
    rgba(0, 0, 0, 0.16);
}

.preview-art {
  aspect-ratio: 1;
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 35% 32%, var(--lime), transparent 24%),
    radial-gradient(circle at 70% 65%, var(--coral), transparent 28%),
    linear-gradient(135deg, #102320, #1a1d17);
  animation: floatIcon 3.4s ease-in-out infinite;
}

.preview-screen h3 {
  margin: 0 0 10px;
  font-size: 30px;
}

.preview-screen p {
  margin-bottom: 0;
  color: #c3cec9;
  line-height: 1.7;
}

.progress-shell {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(244, 240, 232, 0.09);
}

.progress-shell span {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--coral));
  transition: width 0.35s ease;
  animation: barPulse 1.8s ease-in-out infinite;
}

.workflow-strip {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 22px 0 58px;
}

.workflow-node {
  border: 1px solid rgba(79, 245, 210, 0.36);
  border-radius: 8px;
  padding: 13px 16px;
  background: rgba(79, 245, 210, 0.08);
  white-space: nowrap;
}

.workflow-line {
  height: 2px;
  overflow: hidden;
  background: rgba(244, 240, 232, 0.12);
}

.workflow-line::before {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: lineRun 1.8s linear infinite;
}

.pricing-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(62vh - 64px);
  padding: 56px 0 34px;
}

.pricing-hero h1 {
  max-width: 940px;
  color: var(--lime);
}

.price-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  margin-top: -34px;
}

.price-card {
  position: relative;
  min-height: 360px;
  padding: 30px;
  overflow: hidden;
}

.price-card.featured {
  border-color: rgba(215, 255, 95, 0.48);
  background: rgba(26, 34, 24, 0.78);
}

.plan-label {
  display: inline-flex;
  margin-bottom: 28px;
  border-radius: 6px;
  padding: 7px 10px;
  color: #071112;
  background: var(--lime);
  font-size: 13px;
  font-weight: 900;
}

.plan-label.muted {
  color: var(--ink);
  background: rgba(244, 240, 232, 0.14);
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 26px 0 18px;
}

.price-line small {
  font-size: 26px;
  color: var(--cyan);
}

.price-line strong {
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.8;
  animation: priceBreathe 1.8s ease-in-out infinite;
}

.price-line span {
  color: var(--muted);
}

.float-icon {
  position: absolute;
  right: 28px;
  top: 26px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: 8px;
  animation: floatIcon 2.8s ease-in-out infinite;
}

.coin {
  background: radial-gradient(circle at 35% 32%, #fff7b0, var(--lime) 45%, #81992a);
}

.bolt {
  top: 92px;
  right: 88px;
  background: linear-gradient(135deg, var(--coral), var(--steel));
  animation-delay: -0.9s;
}

.cube {
  background: conic-gradient(from 45deg, var(--steel), var(--cyan), var(--coral), var(--steel));
}

.comparison {
  margin: 18px 0 64px;
  padding: 28px;
}

.compare-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.compare-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.compare-row {
  display: grid;
  grid-template-columns: 130px 1fr 88px;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 240, 232, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.compare-row.us {
  border-color: rgba(79, 245, 210, 0.42);
}

.bar {
  height: 13px;
  border-radius: 99px;
  background: rgba(244, 240, 232, 0.08);
  overflow: hidden;
}

.bar i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  animation: barPulse 1.9s ease-in-out infinite;
}

.open-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: 38px;
  padding: 44px 0;
}

.access-panel {
  padding: 34px;
}

.rack-visual {
  display: grid;
  gap: 14px;
  perspective: 900px;
}

.rack-visual span {
  height: 68px;
  border: 1px solid rgba(79, 245, 210, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(79, 245, 210, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(244, 240, 232, 0.08), rgba(244, 240, 232, 0.02));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  transform: rotateY(-18deg) translateX(calc(var(--i, 0) * 8px));
  animation: rackGlow 2.2s ease-in-out infinite;
}

.rack-visual span:nth-child(1) {
  --i: 1;
}

.rack-visual span:nth-child(2) {
  --i: 2;
  animation-delay: -0.3s;
}

.rack-visual span:nth-child(3) {
  --i: 3;
  animation-delay: -0.6s;
}

.rack-visual span:nth-child(4) {
  --i: 4;
  animation-delay: -0.9s;
}

.rack-visual span:nth-child(5) {
  --i: 5;
  animation-delay: -1.2s;
}

.rack-visual span:nth-child(6) {
  --i: 6;
  animation-delay: -1.5s;
}

.provision-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin: 0 0 64px;
}

.provision-form {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.provision-status {
  margin-bottom: 0;
  color: var(--muted);
}

.resource-console {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px;
}

.console-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(244, 240, 232, 0.1);
  padding-bottom: 14px;
}

.console-row span {
  color: var(--muted);
}

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

.capacity-bars i {
  display: block;
  width: var(--w);
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  animation: barPulse 2s ease-in-out infinite;
}

dialog {
  width: min(430px, calc(100% - 32px));
  border: 1px solid rgba(79, 245, 210, 0.4);
  border-radius: 8px;
  padding: 32px;
  color: var(--ink);
  background: rgba(7, 17, 18, 0.94);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.66);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(8px);
}

dialog h2 {
  margin-bottom: 10px;
  color: var(--lime);
  font-size: 42px;
}

dialog .ghost-action {
  margin-top: 8px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

@keyframes pulseMark {
  50% {
    transform: rotate(8deg) scale(1.08);
  }
}

@keyframes scanBorder {
  50% {
    border-color: rgba(215, 255, 95, 0.42);
    transform: scale(0.985);
  }
}

@keyframes sweep {
  50% {
    transform: translateY(-140px) rotate(-12deg);
  }
}

@keyframes meterBounce {
  50% {
    transform: scaleY(0.72);
  }
}

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

@keyframes lineRun {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(260%);
  }
}

@keyframes floatIcon {
  50% {
    transform: translate3d(-8px, 10px, 0) rotate(12deg) scale(1.06);
  }
}

@keyframes priceBreathe {
  50% {
    color: var(--lime);
    text-shadow: 0 0 34px rgba(215, 255, 95, 0.28);
    transform: translateY(-3px);
  }
}

@keyframes barPulse {
  50% {
    filter: brightness(1.45);
    transform: scaleX(0.94);
  }
}

@keyframes rackGlow {
  50% {
    border-color: rgba(215, 255, 95, 0.58);
    transform: rotateY(-18deg) translateX(calc(var(--i, 0) * 8px)) translateY(-5px);
  }
}

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

  nav {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
  }

  nav a {
    flex: 1;
    min-width: 0;
  }

  .hero-shell,
  .price-stage,
  .open-stage,
  .capability-band,
  .workbench,
  .provision-section,
  .form-grid,
  .control-grid,
  .preview-screen {
    grid-template-columns: 1fr;
  }

  .hero-shell,
  .pricing-hero,
  .open-stage {
    min-height: auto;
    padding-top: 54px;
  }

  .command-deck {
    min-height: 360px;
  }

  .price-stage {
    margin-top: 0;
  }

  .workflow-strip {
    grid-template-columns: 1fr;
  }

  .workflow-line {
    height: 28px;
    width: 2px;
    justify-self: center;
  }

  .workflow-line::before {
    width: 100%;
    height: 40%;
    animation-name: lineRunVertical;
  }

  .compare-header,
  .compare-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(42px, 14vw, 72px);
  }
}

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

@keyframes lineRunVertical {
  from {
    transform: translateY(-120%);
  }
  to {
    transform: translateY(260%);
  }
}
