:root {
  --color-primary: #0f172a;
  --color-primary-2: #12385c;
  --color-secondary: #334155;
  --color-accent: #0369a1;
  --color-accent-2: #0ea5e9;
  --color-success: #0f766e;
  --color-gold: #b7791f;
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --color-foreground: #020617;
  --color-muted: #e8ecf1;
  --color-muted-foreground: #64748b;
  --color-border: #e2e8f0;
  --color-ring: #0f172a;
  --shadow-sm: 0 10px 28px rgba(15, 23, 42, .08);
  --shadow-md: 0 18px 48px rgba(15, 23, 42, .12);
  --radius: 8px;
  --max-width: 1180px;
  --nav-height: 78px;
  --font-sans: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(3, 105, 161, .32);
  outline-offset: 3px;
}

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

.container {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  border-bottom: 1px solid rgba(226, 232, 240, .86);
  background: rgba(248, 250, 252, .92);
  backdrop-filter: blur(18px);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.brand-logo {
  width: 188px;
  height: auto;
  max-height: 32px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(28px, 5vw, 88px);
  color: var(--color-secondary);
  font-weight: 700;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  transition: color .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--color-accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-primary);
  transition: transform .2s ease, opacity .2s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: clamp(520px, 72vh, 760px);
  color: #fff;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(15, 23, 42, .98) 0%, rgba(15, 23, 42, .86) 42%, rgba(3, 105, 161, .56) 100%),
    url("../img/hero-infrastructure.svg") center / cover no-repeat;
}

.hero.compact {
  min-height: 430px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  background: linear-gradient(transparent, var(--color-background));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
  padding: 72px 0 110px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: #bae6fd;
  font-size: 14px;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--color-accent-2);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 6.3vw, 82px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 .accent {
  color: #7dd3fc;
}

.hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(248, 250, 252, .82);
  font-size: clamp(16px, 1.8vw, 21px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(3, 105, 161, .28);
}

.btn-primary:hover {
  background: #075985;
}

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, .14);
}

.btn-light {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 900px;
  margin-top: 58px;
  border: 1px solid rgba(226, 232, 240, .14);
  background: rgba(226, 232, 240, .12);
}

.metric {
  min-height: 112px;
  padding: 22px;
  background: rgba(15, 23, 42, .54);
}

.metric strong {
  display: block;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 9px;
  color: rgba(248, 250, 252, .72);
  font-size: 14px;
}

.section {
  padding: clamp(74px, 9vw, 118px) 0;
}

.section.tight {
  padding: clamp(52px, 7vw, 86px) 0;
}

.section.dark {
  color: #fff;
  background:
    linear-gradient(140deg, rgba(15, 23, 42, .98), rgba(18, 56, 92, .96)),
    url("../img/hero-infrastructure.svg") center / cover no-repeat;
}

.section.muted {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, .95), rgba(232, 236, 241, .78));
}

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

.section-head.align-left {
  margin-left: 0;
  text-align: left;
}

.section-label {
  margin: 0 0 12px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 800;
}

.section h2,
.section-title {
  margin: 0;
  color: var(--color-primary);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section.dark h2,
.section.dark .section-title,
.section.dark .section-label {
  color: #fff;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--color-muted-foreground);
  font-size: 17px;
}

.section.dark .section-head p {
  color: rgba(248, 250, 252, .78);
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(3, 105, 161, .42);
  box-shadow: var(--shadow-md);
}

.service-card {
  padding: 28px;
  min-height: 292px;
}

.icon-box {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(3, 105, 161, .2);
  border-radius: var(--radius);
  background: #eff6ff;
  color: var(--color-accent);
}

.icon-box svg {
  width: 28px;
  height: 28px;
}

.service-card h3,
.gpu-card h3,
.capability h3,
.contact-card h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: 21px;
  line-height: 1.3;
}

.service-card p,
.gpu-card p,
.capability p,
.contact-card p {
  margin: 13px 0 0;
  color: var(--color-muted-foreground);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--color-accent);
  font-weight: 800;
}

.card-link::after {
  content: ">";
  transition: transform .2s ease;
}

.card-link:hover::after {
  transform: translateX(3px);
}

.system-map {
  min-height: 330px;
  display: grid;
  place-items: center;
}

.system-orbit {
  width: min(1010px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 280px);
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.system-node {
  width: 280px;
  height: 280px;
  padding: 28px 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.system-node.primary {
  order: 2;
  background: var(--color-primary);
  color: #fff;
}

.system-node.left {
  order: 1;
}

.system-node.right {
  order: 3;
}

.system-node h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.system-node ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.system-node li {
  display: inline-flex;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--color-secondary);
  font-size: 12px;
  font-weight: 700;
}

.system-node.primary li {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
}

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

.partner {
  min-height: 84px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-secondary);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.cta-band {
  padding: clamp(52px, 7vw, 80px);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(15, 23, 42, .96), rgba(3, 105, 161, .88)),
    url("../img/hero-infrastructure.svg") center / cover no-repeat;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
}

.cta-band p {
  max-width: 680px;
  margin: 14px 0 0;
  color: rgba(248, 250, 252, .78);
}

.product-hero-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.visual-frame {
  border: 1px solid rgba(226, 232, 240, .72);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.visual-frame.dark-frame {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
}

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

.gpu-card {
  padding: 24px;
  min-height: 230px;
}

.gpu-card h3 {
  font-size: 23px;
  color: var(--color-accent);
}

.pricing-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.pricing-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 22px 18px;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  white-space: nowrap;
}

.pricing-table th {
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 800;
  background: #fff;
}

.pricing-table td {
  color: var(--color-secondary);
}

.pricing-table tr:last-child td {
  border-bottom: 0;
}

.feature-row {
  display: grid;
  gap: 22px;
}

.feature-panel {
  padding: 34px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.feature-panel h3 {
  margin: 0 0 12px;
  color: var(--color-accent);
  font-size: 24px;
}

.capability {
  padding: 26px;
  text-align: center;
}

.capability .icon-box {
  margin-left: auto;
  margin-right: auto;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: process;
}

.process-step {
  position: relative;
  min-height: 170px;
  padding: 24px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  background: #eff6ff;
  counter-increment: process;
}

.process-step::before {
  content: counter(process, decimal-leading-zero);
  display: block;
  margin-bottom: 24px;
  color: var(--color-accent);
  font-weight: 800;
}

.process-step h3 {
  margin: 0;
  font-size: 18px;
}

.process-step p {
  margin: 10px 0 0;
  color: var(--color-muted-foreground);
  font-size: 14px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  padding: 40px 0 10px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 76px;
  height: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-top: 58px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 0;
  width: 16px;
  height: 16px;
  border: 4px solid var(--color-accent);
  border-radius: 50%;
  background: #fff;
}

.timeline-item strong {
  display: block;
  color: var(--color-primary);
  font-size: 18px;
}

.timeline-item span {
  display: block;
  margin-top: 8px;
  color: var(--color-muted-foreground);
  font-size: 14px;
}

.credential-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 24px;
  align-items: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.contact-layout .section-head h2 {
  font-size: clamp(30px, 2.1vw, 36px);
  line-height: 1.08;
  white-space: nowrap;
}

.contact-stack {
  display: grid;
  gap: 18px;
}

.contact-map-frame {
  margin-top: 207px;
}

.contact-card {
  padding: 24px;
}

.contact-card strong {
  display: block;
  margin-top: 10px;
  color: var(--color-primary);
  font-size: 21px;
}

.qr-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.qr-row img {
  width: 112px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.footer {
  background: #eef2f7;
  border-top: 1px solid var(--color-border);
  padding: 54px 0 38px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr .7fr 1.1fr;
  gap: 48px;
}

.footer h3 {
  margin: 0 0 20px;
  color: var(--color-primary);
  font-size: 15px;
}

.footer p,
.footer a,
.footer li {
  color: var(--color-secondary);
  font-size: 14px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-line {
  width: 180px;
  height: 1px;
  margin: 18px 0;
  background: #94a3b8;
}

.footer-contact {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted-foreground);
  font-size: 13px;
}

.footer-bottom a {
  color: var(--color-muted-foreground);
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

.floating-help {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: var(--shadow-md);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .42s ease, transform .42s ease;
}

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

@media (max-width: 980px) {
  :root {
    --nav-height: 70px;
  }

  .container,
  .hero-content {
    width: min(100% - 32px, var(--max-width));
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-height));
    display: grid;
    align-content: start;
    gap: 0;
    padding: 18px 24px;
    background: rgba(248, 250, 252, .98);
    border-top: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform .24s ease;
  }

  .nav-open .nav-links {
    transform: translateX(0);
  }

  .nav-link {
    min-height: 58px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link.active::after {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 76px 0 92px;
  }

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

  .grid-3,
  .gpu-grid,
  .process,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2,
  .product-hero-grid,
  .split,
  .credential-grid,
  .contact-layout,
  .footer-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .contact-map-frame {
    margin-top: 0;
  }

  .system-map {
    min-height: auto;
  }

  .system-orbit {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
  }

  .system-node,
  .system-node.primary,
  .system-node.left,
  .system-node.right {
    position: static;
    width: 100%;
    height: auto;
    min-height: auto;
    border-radius: var(--radius);
    transform: none;
  }

  .system-line {
    display: none;
  }

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

  .timeline::before {
    display: none;
  }

  .timeline-item {
    padding-top: 0;
    padding-left: 28px;
  }

  .timeline-item::before {
    top: 7px;
    left: 0;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: 150px;
    max-height: 28px;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .hero-actions,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-metrics,
  .grid-3,
  .grid-4,
  .gpu-grid,
  .process,
  .timeline,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .feature-panel,
  .capability,
  .contact-card {
    padding: 22px;
  }

  .cta-band {
    padding: 34px 22px;
  }

  .footer-contact {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .contact-layout .section-head h2 {
    white-space: normal;
  }
}

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

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