:root {
  --bg-ink: #0b1220;
  --bg-0: #0d1424;
  --bg-1: #121d35;
  --bg-2: #0f1f3d;
  --panel: #ffffff;
  --ink: #e9eefb;
  --muted: #9ba8c0;
  --line: #263655;
  --brand: #58a6ff;
  --brand-soft: #9dccff;
  --accent: #66df9a;
  --card: #101b31;
  --shadow: 0 18px 40px rgb(3 12 30 / 36%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-0);
  color: var(--ink);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

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

.ambient-surface {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.grain-layer {
  position: absolute;
  inset: -20%;
  background-image: radial-gradient(circle at 2% 20%, rgb(88 166 255 / 25%), transparent 34%),
    radial-gradient(circle at 90% 80%, rgb(102 223 154 / 18%), transparent 30%);
  filter: blur(0);
  opacity: 0.8;
}

.glow {
  position: absolute;
  width: 42vmax;
  height: 42vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}

.glow-one {
  top: -20vmax;
  right: -18vmax;
  background: #3f5db8;
}

.glow-two {
  bottom: -16vmax;
  left: -14vmax;
  background: #2f7b50;
}

.container {
  width: min(1120px, calc(100% - 42px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgb(11 18 32 / 78%);
  backdrop-filter: blur(9px);
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  transform: rotate(14deg);
  background: linear-gradient(135deg, var(--brand) 0%, #9dccff 90%);
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

nav a {
  position: relative;
  padding: 4px 0;
}

nav a.active::after,
nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-soft), transparent);
}

.button {
	  color: #0c1730;
	  background: linear-gradient(90deg, var(--brand), #9dccff);
	  font-weight: 700;
	  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: var(--shadow);
  display: inline-flex;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
	  transform: translateY(-1px);
	}

.nav-cta {
	  margin-left: auto;
}

.button-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}

.button-large {
  padding: 12px 22px;
}

.section {
  padding: 72px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 26px;
  align-items: center;
}

.hero {
  padding-top: 96px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-soft);
  font-weight: 700;
  font-size: 12px;
}

h1 {
  margin: 14px 0 16px;
  max-width: 640px;
  font-family: "Sora", "Manrope", sans-serif;
  line-height: 1.1;
  font-size: clamp(2rem, 4.1vw, 3.7rem);
}

.lead {
  margin: 0 0 22px;
  max-width: 56ch;
  color: #c5d0e5;
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-panel {
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgb(143 170 255 / 30%);
  border-radius: 20px;
  transform: rotate(2.1deg);
}

.code-frame {
  position: relative;
  z-index: 1;
  border: 1px solid #2e4572;
  background: linear-gradient(175deg, #0d1830, #0f213f);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  min-height: 290px;
}

.frame-head {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.frame-head span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3f4e72;
}

.code-frame ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.code-frame li {
  padding: 14px;
  border-radius: 12px;
  background: #0a1b34;
  border: 1px solid #21426f;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.code-frame li strong {
  color: var(--accent);
}

.code-frame li span {
  color: var(--muted);
  font-size: 13px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.features {
  background: linear-gradient(180deg, transparent 0%, rgb(11 18 32 / 70%) 100%);
}

.cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cards article {
  background: var(--card);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.cards h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.cards p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.split .timeline {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.timeline div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 12px;
}

.timeline strong {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: var(--bg-0);
  font-weight: 700;
  background: linear-gradient(150deg, var(--brand), var(--accent));
}

.faq {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.faq .section-head {
  text-align: center;
}

.faq details {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 auto 12px;
  max-width: 860px;
  text-align: center;
}

.faq details summary {
  cursor: pointer;
  font-weight: 700;
}

.faq details p {
  margin: 10px 0 2px;
  color: var(--muted);
  line-height: 1.65;
}

.lang-switch {
	  display: flex;
	  gap: 10px;
	  align-items: center;
	  justify-content: center;
	  margin: 0;
}

.site-header .lang-switch {
	  margin-left: 14px;
}

.pill-button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
}

.pill-button.is-active {
  color: #081224;
  background: linear-gradient(90deg, var(--brand), #9dccff);
  border-color: transparent;
}

.site-header .lang-switch {
	  margin-left: 14px;
}

.cta {
  text-align: center;
  padding-bottom: 90px;
}

.cta p {
  margin: 8px 0 22px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

@media (max-width: 920px) {
  .hero-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 78px;
  }

  .nav-inner {
    gap: 18px;
  }

  nav {
    display: none;
  }

  .button {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(640px, calc(100% - 24px));
  }

  .section {
    padding: 56px 0;
  }

  .hero-actions {
    width: 100%;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    flex-direction: column;
  }
}
