:root {
  color-scheme: light;
  --blue: #1769ff;
  --blue-dark: #0b45b7;
  --cyan: #18c7d4;
  --green: #18b66a;
  --orange: #ff8a1c;
  --text: #17233d;
  --muted: #65748b;
  --soft: #f4f8ff;
  --line: #e2eaf6;
  --dark: #07172f;
  --shadow: 0 18px 50px rgba(36, 88, 160, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--text);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(226, 234, 246, 0.85);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.hero-actions,
.solution-tags,
.terminal-bar {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #ffffff;
}

.nav-links {
  gap: clamp(14px, 2.4vw, 28px);
  color: #4a5b73;
  font-size: 0.94rem;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  padding: 0 18px;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(23, 105, 255, 0.22);
}

.nav-links .nav-cta:hover {
  color: #ffffff;
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  overflow: hidden;
  padding: clamp(70px, 9vw, 112px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 78% 18%, rgba(24, 199, 212, 0.22), transparent 25%),
    linear-gradient(135deg, #eef6ff 0%, #ffffff 52%, #edf8ff 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(23, 105, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 105, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  pointer-events: none;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 6.5vw, 6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.1vw, 3.8rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.hero-copy > p:not(.eyebrow),
.section-heading p,
.solution-copy p,
.hardware-copy p,
.deploy-copy p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(23, 105, 255, 0.28);
}

.button.secondary {
  border: 1px solid #c8d6ea;
  background: #ffffff;
  color: var(--blue);
}

.hero-points {
  display: grid;
  max-width: 820px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.hero-points div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
  box-shadow: var(--shadow);
}

.hero-points dt {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-points dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.hero-visual {
  min-height: 500px;
  border-radius: 24px;
  background: linear-gradient(145deg, #0d4bc7, #081d4b);
  box-shadow: 0 28px 80px rgba(11, 69, 183, 0.28);
}

.cloud-node,
.site {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  text-align: center;
}

.cloud-node {
  top: 50%;
  left: 50%;
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.4rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.cloud-node span,
.site span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
}

.site {
  width: 188px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  padding: 16px;
  font-weight: 900;
}

.site-hq {
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
}

.site-branch {
  bottom: 64px;
  left: 42px;
}

.site-user {
  right: 42px;
  bottom: 64px;
}

.visual-line {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform-origin: left center;
}

.line-a {
  transform: rotate(-90deg);
}

.line-b {
  transform: rotate(145deg);
}

.line-c {
  transform: rotate(35deg);
}

.section {
  scroll-margin-top: 80px;
  padding: clamp(70px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 930px;
  margin-bottom: 38px;
}

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading.center p {
  margin-right: auto;
  margin-left: auto;
}

.pain-section,
.features-section,
.english-section {
  background: #ffffff;
}

.pain-grid,
.access-grid,
.router-grid,
.feature-list,
.plan-grid,
.english-grid {
  display: grid;
  gap: 18px;
}

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

.pain-grid article,
.access-card,
.router-grid article,
.feature-list article,
.plan-card,
.english-grid article,
.solution-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 24px;
  box-shadow: var(--shadow);
}

.pain-grid span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--orange);
  font-weight: 900;
}

.pain-grid p,
.access-card p,
.router-grid p,
.feature-list p,
.plan-card p,
.english-grid p,
.solution-card li {
  color: var(--muted);
}

.solution-section,
.hardware-section,
.deploy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  background: var(--soft);
}

.solution-tags {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.solution-tags span,
.router-grid span {
  display: inline-flex;
  border-radius: 999px;
  background: #e9f2ff;
  padding: 8px 12px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
}

.hardware-note {
  border-left: 4px solid var(--blue);
  background: #ffffff;
  padding: 14px 16px;
}

.solution-card {
  border-top: 5px solid var(--blue);
}

.solution-card ol {
  margin: 0;
  padding-left: 22px;
}

.solution-card li + li {
  margin-top: 12px;
}

.access-section,
.plans-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

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

.access-card.highlight {
  border-color: rgba(23, 105, 255, 0.28);
  background: linear-gradient(180deg, #ffffff, #eef6ff);
}

.access-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #ffffff;
  font-weight: 900;
}

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

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

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

.plan-card {
  position: relative;
  overflow: hidden;
}

.plan-card.free {
  border-color: rgba(24, 182, 106, 0.36);
}

.plan-label {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #eafaf2;
  padding: 6px 10px;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 900;
}

.plan-card strong {
  display: block;
  margin: 6px 0 12px;
  color: var(--blue);
  font-size: 1.35rem;
}

.plan-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.start-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 20%, rgba(24, 199, 212, 0.28), transparent 28%),
    linear-gradient(135deg, #0e50d8, #071f58);
  padding: clamp(24px, 4vw, 38px);
  color: #ffffff;
  box-shadow: 0 22px 58px rgba(11, 69, 183, 0.24);
}

.start-banner .eyebrow {
  color: #a8f6ff;
}

.start-banner h3 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.start-banner p:not(.eyebrow) {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.start-banner .button.primary {
  min-width: 210px;
  background: #ffffff;
  color: var(--blue);
  box-shadow: none;
}

.terminal-window {
  overflow: hidden;
  border-radius: 16px;
  background: var(--dark);
  box-shadow: 0 24px 70px rgba(7, 23, 47, 0.22);
}

.terminal-bar {
  gap: 8px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.08);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #ff6b6b;
}

.terminal-bar span:nth-child(2) {
  background: #ffd166;
}

.terminal-bar span:nth-child(3) {
  background: #4ade80;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 24px;
  color: #d9f8ff;
  font: 0.92rem/1.65 Consolas, "SFMono-Regular", Menlo, monospace;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
}

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

  .hero {
    min-height: auto;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    position: relative;
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: 2.35rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-copy > p:not(.eyebrow) {
    max-width: 100%;
    font-size: 1rem;
    word-break: break-all;
  }

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

  .button {
    width: 100%;
  }

  .start-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-points,
  .pain-grid,
  .access-grid,
  .router-grid,
  .feature-list,
  .plan-grid,
  .english-grid {
    grid-template-columns: 1fr;
  }

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

  .cloud-node,
  .site {
    left: 24px;
    right: auto;
    width: calc(100% - 48px);
    transform: none;
  }

  .cloud-node {
    top: 190px;
    height: 130px;
    border-radius: 18px;
  }

  .site-hq {
    top: 24px;
  }

  .site-branch {
    top: 348px;
    bottom: auto;
  }

  .site-user {
    top: 438px;
    bottom: auto;
  }

  .visual-line {
    display: none;
  }

  .section-heading.center {
    text-align: left;
  }

  pre {
    font-size: 0.78rem;
  }

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