:root {
  --bg: #060c11;
  --bg-soft: rgba(8, 19, 28, 0.86);
  --surface: rgba(10, 24, 34, 0.78);
  --surface-strong: rgba(10, 30, 42, 0.92);
  --line: rgba(120, 255, 192, 0.18);
  --line-strong: rgba(120, 255, 192, 0.42);
  --text: #f3fbff;
  --muted: #8da6b8;
  --green: #81ff8b;
  --blue: #4db8ff;
  --amber: #ffce6b;
  --rose: #ff7da5;
  --blue-soft: rgba(77, 184, 255, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --shadow-hover: 0 30px 90px rgba(0, 0, 0, 0.48);
  --radius: 24px;
  --radius-sm: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1);
  --scroll-progress: 0;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(129, 255, 139, 0.42) rgba(255, 255, 255, 0.04);
}

section[id] {
  scroll-margin-top: 104px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  caret-color: transparent;
  background:
    radial-gradient(circle at top left, rgba(129, 255, 139, 0.18), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(77, 184, 255, 0.2), transparent 18%),
    linear-gradient(135deg, #02060a 0%, #07111b 48%, #03070b 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

input,
textarea,
[contenteditable="true"] {
  caret-color: auto;
}

::selection {
  color: #031108;
  background: rgba(129, 255, 139, 0.86);
}

body.is-loading {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(129, 255, 139, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 184, 255, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 88%);
  pointer-events: none;
}

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

button,
a.button {
  font: inherit;
}

.page-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 48px;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    filter 0.18s ease;
}

body.is-loading .page-shell {
  opacity: 0.5;
  transform: translateY(6px);
  filter: blur(1px);
}

body.is-ready .page-shell {
  opacity: 1;
  transform: none;
  filter: none;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(77, 184, 255, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(2, 6, 10, 0.98), rgba(6, 16, 23, 0.96));
  transition:
    opacity 0.12s ease,
    visibility 0.12s ease;
}

body.is-ready .page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-core {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(320px, calc(100% - 48px));
}

.loader-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  box-shadow:
    inset 0 0 24px rgba(129, 255, 139, 0.08),
    0 0 36px rgba(77, 184, 255, 0.08);
  animation: loaderPulse 1.8s ease-in-out infinite;
}

.loader-mark img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.loader-brand {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.loader-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

.loader-bar {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.loader-bar span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  animation: loaderSweep 1.4s ease-in-out infinite;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 12px 20px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(5, 14, 21, 0.7);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  transition:
    padding 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--amber));
  transform: scaleX(var(--scroll-progress));
  transform-origin: left;
  opacity: 0.8;
}

.topbar.is-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  border-color: rgba(129, 255, 139, 0.16);
  background: rgba(4, 12, 18, 0.88);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(129, 255, 139, 0.3);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: inset 0 0 18px rgba(129, 255, 139, 0.08);
  flex: 0 0 auto;
}

.brand-text,
.nav a,
.eyebrow,
.section-label,
.plan-name,
.step-no,
.modal-label {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.96rem;
}

.nav {
  display: inline-flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.nav a {
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

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

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--green);
}

.section {
  padding: 96px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 56px;
  align-items: start;
  min-height: auto;
  padding-bottom: 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 620px;
  padding-top: 18px;
}

.hero-copy h1,
.hero-copy h2,
.section-heading h2,
.feature-card h3,
.step-card h3,
.modal-panel h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
}

.eyebrow,
.section-label,
.modal-label {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.8rem;
}

.hero-copy h1 {
  font-size: 5.4rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy h2 {
  margin-top: 16px;
  font-size: 2.5rem;
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 700;
  white-space: normal;
}

.typewriter {
  display: inline-block;
  min-height: 1em;
}

.hero-title-two-line span {
  display: block;
}

.hero-copy h3 {
  margin: 24px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
  font-weight: 500;
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-signals span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #dceef9;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.hero-signals span:hover {
  transform: translateY(-2px);
  border-color: rgba(129, 255, 139, 0.24);
  background: rgba(129, 255, 139, 0.07);
}

.sig-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(129, 255, 139, 0.14);
  box-shadow: inset 0 0 0 1px rgba(129, 255, 139, 0.32);
  flex: 0 0 auto;
}

.sig-check::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg) translate(1px, -1px);
}

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

.hero-actions-section {
  display: flex;
  justify-content: center;
  margin-top: 2px;
  padding-bottom: 10px;
}

.hero-actions-centered {
  justify-content: center;
  width: 100%;
  max-width: 720px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.22s var(--ease-out),
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.26) 46%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.64s var(--ease-out);
  pointer-events: none;
}

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

.button:hover::after {
  transform: translateX(120%);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button:focus-visible,
.copy-button:focus-visible,
.faq-list summary:focus-visible,
.code-collapse summary:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid rgba(129, 255, 139, 0.78);
  outline-offset: 2px;
}

.button-primary {
  color: #00130a;
  font-weight: 700;
  background: linear-gradient(135deg, var(--green), #bcffc2 58%, var(--amber));
  box-shadow: 0 14px 40px rgba(129, 255, 139, 0.28);
}

.button-primary:hover {
  box-shadow: 0 18px 48px rgba(129, 255, 139, 0.36);
}

.button-secondary,
.button-ghost {
  color: var(--text);
  border-color: rgba(77, 184, 255, 0.32);
  background: rgba(77, 184, 255, 0.08);
}

.button-secondary:hover,
.button-ghost:hover,
.copy-button:hover,
.modal-close:hover {
  border-color: rgba(77, 184, 255, 0.58);
  background: rgba(77, 184, 255, 0.16);
}

.hero-gift {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 18px;
  width: fit-content;
  max-width: min(720px, 100%);
  border: 1px solid rgba(129, 255, 139, 0.12);
  border-radius: 18px;
  color: #d9ffe0;
  background:
    linear-gradient(135deg, rgba(129, 255, 139, 0.08), rgba(255, 206, 107, 0.08)),
    rgba(129, 255, 139, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-gift-section {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  padding-top: 4px;
  padding-bottom: 20px;
}

.hero-gift p {
  margin: 0;
  line-height: 1.55;
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 20px;
  align-content: start;
  max-width: 560px;
  width: 100%;
  justify-self: end;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 14% -8% 14%;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(77, 184, 255, 0.18), transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}

.terminal-card,
.pricing-card,
.feature-card,
.step-card,
.code-panel,
.faq-list details,
.modal-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 24, 35, 0.92), rgba(6, 16, 23, 0.86));
  box-shadow: var(--shadow);
}

.terminal-card,
.pricing-card,
.feature-card,
.code-panel,
.faq-list details,
.code-keyfact,
.status-grid article {
  isolation: isolate;
}

.terminal-card::before,
.pricing-card::before,
.feature-card::before,
.code-panel::before,
.modal-panel::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -10%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 184, 255, 0.2), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.terminal-card > *,
.pricing-card > *,
.feature-card > *,
.code-panel > *,
.faq-list details > *,
.code-keyfact > *,
.status-grid article > * {
  position: relative;
  z-index: 1;
}

.interactive-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      420px circle at var(--pointer-x, 50%) var(--pointer-y, 0%),
      rgba(129, 255, 139, 0.14),
      rgba(77, 184, 255, 0.08) 28%,
      transparent 58%
    );
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.interactive-surface:hover::after {
  opacity: 1;
}

.terminal-card {
  padding: 22px;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.terminal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 255, 139, 0.2);
  box-shadow: var(--shadow-hover);
}

.terminal-head {
  display: flex;
  gap: 8px;
}

.terminal-head span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.terminal-head span:first-child {
  background: #ff6363;
}

.terminal-head span:nth-child(2) {
  background: #ffd663;
}

.terminal-head span:last-child {
  background: var(--green);
}

.terminal-body {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #d6e9f4;
}

.typewriter.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 3px;
  border-right: 2px solid var(--green);
  transform: translateY(2px);
  animation: caretBlink 0.72s steps(2, jump-none) infinite;
}

.terminal-body p {
  margin: 0 0 14px;
  line-height: 1.7;
  word-break: break-word;
}

.terminal-type {
  white-space: pre-wrap;
}

.prompt {
  color: var(--green);
}

.success {
  color: #89ffb5;
}

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

.status-grid article {
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  background: rgba(7, 18, 27, 0.8);
}

.status-grid article:hover,
.pricing-card:hover,
.feature-card:hover,
.step-card:hover,
.faq-list details:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 255, 139, 0.2);
  box-shadow: var(--shadow-hover);
}

.status-grid strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0;
}

.status-grid span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  line-height: 1.55;
}

.status-grid svg {
  color: var(--green);
  filter: drop-shadow(0 0 8px rgba(129, 255, 139, 0.2));
  flex: 0 0 auto;
}

.status-grid span,
.section-heading p,
.pricing-note,
.feature-card p,
.step-card p,
.faq-list p,
.footer p,
.modal-text,
.modal-tip {
  color: var(--muted);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading p {
  margin: 16px 0 0;
  font-size: 1.05rem;
  line-height: 1.75;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.pricing-card:hover {
  box-shadow:
    var(--shadow-hover),
    0 0 0 1px rgba(129, 255, 139, 0.08);
}

.featured {
  border-color: rgba(129, 255, 139, 0.42);
  background:
    linear-gradient(180deg, rgba(11, 30, 35, 0.96), rgba(8, 23, 25, 0.9)),
    linear-gradient(135deg, rgba(129, 255, 139, 0.06), rgba(77, 184, 255, 0.12));
  transform: none;
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(129, 255, 139, 0.2),
    0 32px 80px rgba(129, 255, 139, 0.08);
}

.featured:hover {
  transform: translateY(-4px);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #06130a;
  font-size: 0.82rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--green), #d5ffd9);
}

.plan-head {
  margin-bottom: 22px;
}

.plan-name {
  margin: 0 0 12px;
  color: #d5eaf7;
  font-size: 0.92rem;
}

.plan-price {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
}

.plan-price span {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
}

.old-price {
  display: inline-block;
  margin-right: 8px;
  color: #678090;
  text-decoration: line-through;
}

.plan-list {
  flex: 1 1 auto;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.plan-list li {
  position: relative;
  padding: 0 0 0 18px;
  margin-bottom: 14px;
  color: #e8f4fa;
  line-height: 1.65;
}

.plan-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.pricing-note {
  margin: 20px 0 0;
  text-align: center;
}

.plan-stock-tip {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ff7b7b;
  letter-spacing: 0.02em;
  animation: stockPulse 2s ease-in-out infinite;
}

.plan-stock-tip-placeholder {
  visibility: hidden;
}

@keyframes stockPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.pricing-hook {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 36px;
  padding: 10px 24px;
  width: fit-content;
  border: 1px solid rgba(129, 255, 139, 0.22);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(129, 255, 139, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pricing-hook-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.7;
}

/* ── 套餐对比表 ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 32px;
  min-height: 240px;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.feature-index {
  margin: 0 0 24px;
  color: rgba(129, 255, 139, 0.75);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.feature-card h3,
.step-card h3 {
  font-size: 1.22rem;
  letter-spacing: 0;
}

.feature-card p:last-child,
.step-card p,
.faq-list p {
  margin: 14px 0 0;
  line-height: 1.75;
}

.access-section .section-heading {
  max-width: 840px;
  margin-bottom: 56px;
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

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

.step-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: 178px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(8, 21, 30, 0.84), rgba(5, 14, 21, 0.78));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.step-card:first-child {
  padding-top: 24px;
}

.step-card:last-child {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step-card > div {
  display: grid;
  align-content: start;
  gap: 6px;
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(129, 255, 139, 0.22);
  border-radius: 999px;
  color: var(--green);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0;
  background: rgba(129, 255, 139, 0.06);
  box-shadow: none;
  flex-shrink: 0;
}

.step-card h3 {
  font-size: 1.05rem;
}

.step-card p {
  margin-top: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.code-panel {
  position: relative;
  display: grid;
  align-content: start;
  gap: 20px;
  min-height: 0;
  padding: 30px;
  border-color: rgba(77, 184, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(11, 26, 38, 0.95), rgba(6, 17, 25, 0.9)),
    radial-gradient(circle at top right, rgba(77, 184, 255, 0.12), transparent 28%);
}

.code-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
}

.code-panel-title span,
.copy-button {
  font-family: var(--font-sans);
}

.code-panel-title span {
  display: inline-block;
  color: #e9f8ff;
  font-size: 0.95rem;
  font-weight: 600;
}

.code-panel-title p {
  margin: 10px 0 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.config-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.config-method {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(7, 17, 25, 0.92), rgba(5, 12, 19, 0.88));
}

.config-method-primary {
  border-color: rgba(129, 255, 139, 0.26);
  background:
    linear-gradient(180deg, rgba(9, 26, 30, 0.96), rgba(6, 18, 22, 0.9)),
    radial-gradient(circle at top right, rgba(129, 255, 139, 0.1), transparent 34%);
}

.config-method h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

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

.config-method .button {
  width: fit-content;
  min-height: 46px;
  padding: 0 18px;
}

.method-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(129, 255, 139, 0.1);
  box-shadow: inset 0 0 0 1px rgba(129, 255, 139, 0.22);
}

.method-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(129, 255, 139, 0.45);
}

.method-badge-soft {
  color: var(--text);
  border: 1px solid rgba(77, 184, 255, 0.22);
  background: rgba(77, 184, 255, 0.12);
  box-shadow: none;
}

.method-badge-soft::before {
  background: var(--blue);
  box-shadow: 0 0 12px rgba(77, 184, 255, 0.34);
}

.manual-file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.manual-file-card {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(77, 184, 255, 0.18);
  border-radius: 16px;
  background: rgba(4, 10, 15, 0.58);
}

.manual-file-label {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(129, 255, 139, 0.1);
}

.manual-file-card strong {
  color: #d7f8ff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  word-break: break-word;
}

.manual-file-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.copy-button,
.modal-close {
  position: relative;
  padding: 12px 16px;
  border: 1px solid rgba(129, 255, 139, 0.22);
  border-radius: 16px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(129, 255, 139, 0.12), rgba(77, 184, 255, 0.14)),
    rgba(6, 18, 24, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.copy-button:hover,
.modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.copy-button.is-success {
  color: #041308;
  border-color: rgba(129, 255, 139, 0.48);
  background: linear-gradient(135deg, var(--green), #d3ffd7);
}

.copy-button.is-error {
  border-color: rgba(255, 125, 165, 0.52);
  background: rgba(255, 125, 165, 0.12);
}

.code-panel pre {
  margin: 0;
  padding: 24px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(4, 10, 15, 0.86);
  color: #d7f8ff;
  font-family: var(--font-mono);
  line-height: 1.8;
  font-size: 0.88rem;
}

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

.code-keyfact {
  display: grid;
  gap: 8px;
  min-height: 102px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(7, 17, 25, 0.92), rgba(5, 12, 19, 0.88));
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.code-keyfact:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 255, 139, 0.2);
  background: linear-gradient(180deg, rgba(8, 22, 30, 0.96), rgba(5, 14, 20, 0.9));
}

.code-keyfact-label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.code-keyfact strong {
  color: #f2fbff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  word-break: break-word;
}

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

.code-modal-trigger {
  min-width: 220px;
}

.code-inline-tip {
  margin: -4px 0 0;
  color: #a8bfce;
  font-size: 0.92rem;
  line-height: 1.7;
}

.code-links {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

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

.code-reference-soft {
  color: #9db4c3;
}

.code-reference a {
  color: var(--green);
}

.code-reference a:hover {
  color: #bfffc5;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 22px 24px;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(77, 184, 255, 0.18);
  border-radius: 50%;
  color: var(--green);
  background: rgba(77, 184, 255, 0.08);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.faq-list details[open] summary {
  color: var(--green);
}

.faq-list details[open] summary::after {
  content: "-";
  transform: rotate(180deg);
  border-color: rgba(129, 255, 139, 0.28);
  background: rgba(129, 255, 139, 0.1);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
  margin: 0;
}

.dashboard-placeholder {
  max-width: 860px;
  margin: 48px auto 0;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(11, 24, 35, 0.92), rgba(6, 16, 23, 0.86));
  box-shadow: var(--shadow);
}

.dashboard-placeholder h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 3.6rem;
  letter-spacing: 0;
}

.dashboard-placeholder p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.dashboard-note {
  margin-top: 24px;
}

.models-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 36px;
  align-items: center;
  padding-bottom: 40px;
}

.models-hero-copy h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 4.8rem;
  line-height: 1;
  letter-spacing: 0;
}

.models-hero-copy p:last-child {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.models-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.models-hero-actions .button {
  min-height: 48px;
}

.token-unit-toggle {
  display: inline-flex;
  gap: 6px;
  margin-top: 20px;
  padding: 5px;
  border: 1px solid rgba(77, 184, 255, 0.18);
  border-radius: 999px;
  background: rgba(5, 14, 21, 0.68);
}

.token-unit-toggle button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.token-unit-toggle button.is-active {
  color: #06130a;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), #d5ffd9);
}

.models-hero-panel {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(11, 24, 35, 0.92), rgba(6, 16, 23, 0.86)),
    radial-gradient(circle at top right, rgba(129, 255, 139, 0.12), transparent 30%);
  box-shadow: var(--shadow);
}

.model-advice-card {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(5, 14, 21, 0.58);
}

.model-advice-card span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.model-advice-card strong {
  color: #f2fbff;
  font-size: 1.24rem;
}

.model-advice-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.model-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 24, 35, 0.92), rgba(6, 16, 23, 0.86));
  box-shadow: var(--shadow);
}

.model-card::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -12%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 184, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.model-card > * {
  position: relative;
  z-index: 1;
}

.model-card-primary {
  border-color: rgba(129, 255, 139, 0.34);
  background:
    linear-gradient(180deg, rgba(11, 30, 35, 0.96), rgba(8, 23, 25, 0.9)),
    linear-gradient(135deg, rgba(129, 255, 139, 0.06), rgba(77, 184, 255, 0.12));
}

.model-card-head {
  display: grid;
  gap: 10px;
}

.model-kicker {
  margin: 0;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.model-card h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.model-card-head span,
.model-note,
.model-source-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.model-price-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.model-price-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(5, 14, 21, 0.64);
}

.model-price-list dt {
  color: #d5eaf7;
  font-weight: 600;
}

.model-price-list dd {
  margin: 0;
  color: var(--green);
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 800;
  text-align: right;
}

.model-price-list dd .price-unit {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.model-note {
  margin: 0;
  font-size: 0.92rem;
}

.model-source-panel {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(129, 255, 139, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(129, 255, 139, 0.05);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.model-source-panel p {
  margin: 0;
}

.model-source-panel span {
  color: var(--green);
  font-weight: 700;
  word-break: break-word;
}

.model-source-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(129, 255, 139, 0.28);
  background: rgba(129, 255, 139, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.model-source-panel:hover span {
  color: #bfffc5;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 20;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.modal-panel {
  z-index: 1;
  width: min(520px, 100%);
  padding: 28px;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.28s var(--ease-out),
    opacity 0.28s ease;
}

.modal.is-open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-panel-wide {
  width: min(760px, 100%);
}

.config-modal-panel {
  display: flex;
  flex-direction: column;
  max-height: min(78vh, 820px);
  padding: 24px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  padding: 0;
}

.modal-panel h2 {
  font-size: 1.8rem;
  letter-spacing: 0;
}

.modal-panel pre {
  margin: 18px 0 0;
  padding: 24px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(4, 10, 15, 0.92);
  color: #d7f8ff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.8;
}

.config-file-blocks {
  display: grid;
  gap: 16px;
  min-height: 0;
  margin-top: 18px;
  overflow: auto;
  padding-right: 4px;
}

.config-file-block {
  display: grid;
  gap: 12px;
}

.config-file-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.config-file-head h3 {
  margin: 8px 0 6px;
  color: #f2fbff;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  line-height: 1.35;
  word-break: break-word;
}

.config-file-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.config-modal-code {
  margin-top: 0;
  padding: 18px 20px;
  font-size: 0.84rem;
  line-height: 1.7;
}

.modal-copy-button {
  width: fit-content;
  flex: 0 0 auto;
}

.qr-image {
  display: block;
  width: min(100%, 290px);
  margin: 24px auto 16px;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.modal-tip {
  margin: 0;
  text-align: center;
}

body.modal-open {
  overflow: hidden;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: min(360px, calc(100% - 48px));
  padding: 13px 16px;
  border: 1px solid rgba(129, 255, 139, 0.2);
  border-radius: 16px;
  color: #eaffee;
  background:
    linear-gradient(135deg, rgba(129, 255, 139, 0.12), rgba(77, 184, 255, 0.14)),
    rgba(4, 12, 18, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s var(--ease-out);
}

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

.toast.is-error {
  border-color: rgba(255, 125, 165, 0.36);
  color: #ffe4ed;
}

.reveal-item {
  --reveal-y: 34px;
  opacity: 0;
  filter: blur(10px);
  translate: 0 var(--reveal-y);
  transition:
    opacity 0.76s ease,
    filter 0.76s ease,
    translate 0.76s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, filter, translate;
}

.hero-copy > .reveal-item,
.section-heading.reveal-item {
  --reveal-y: 24px;
}

.pricing-card.reveal-item,
.feature-card.reveal-item,
.status-grid article.reveal-item {
  --reveal-y: 40px;
}

.step-card.reveal-item {
  --reveal-y: 34px;
  translate: 0 var(--reveal-y);
}

.reveal-item.is-visible {
  opacity: 1;
  filter: blur(0);
  translate: 0 0;
  will-change: auto;
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      inset 0 0 24px rgba(129, 255, 139, 0.08),
      0 0 36px rgba(77, 184, 255, 0.08);
  }

  50% {
    transform: scale(1.04);
    box-shadow:
      inset 0 0 32px rgba(129, 255, 139, 0.12),
      0 0 44px rgba(77, 184, 255, 0.18);
  }
}

@keyframes loaderSweep {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(320%);
  }
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  .hero,
  .pricing-grid,
  .feature-grid,
  .models-hero,
  .model-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel {
    max-width: none;
    width: 100%;
    justify-self: stretch;
    padding-top: 0;
  }

  .featured {
    transform: none;
  }

  .featured:hover {
    transform: translateY(-4px);
  }

  .code-panel {
    position: static;
  }

  .steps,
  .config-methods {
    grid-template-columns: 1fr;
  }

  .section-heading {
    text-align: left;
    margin: 0 0 36px;
  }

  .models-hero-panel {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  section[id] {
    scroll-margin-top: 152px;
  }

  .page-shell {
    width: min(100% - 28px, 1200px);
  }

  .topbar {
    top: 0;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 28px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: auto;
    gap: 36px;
    padding-bottom: 12px;
  }

  .hero-copy h1 {
    font-size: 3.4rem;
  }

  .models-hero-copy h1 {
    font-size: 3rem;
  }

  .hero-copy h2 {
    font-size: 1.85rem;
  }

  .section-heading h2 {
    font-size: 2.1rem;
  }

  .dashboard-placeholder h1 {
    font-size: 2.4rem;
  }

  .hero-actions,
  .footer,
  .dashboard-actions {
    flex-direction: column;
  }

  .button,
  .hero-actions .button {
    width: 100%;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .models-hero-panel {
    min-height: 0;
    padding: 22px;
  }

  .token-unit-toggle {
    width: 100%;
  }

  .token-unit-toggle button {
    flex: 1;
  }

  .model-card {
    padding: 22px;
  }

  .model-card h3 {
    font-size: 1.7rem;
  }

  .model-price-list div {
    align-items: flex-start;
    flex-direction: column;
  }

  .model-price-list dd {
    text-align: left;
  }

  .hero-gift-section {
    margin-top: 14px;
    padding-bottom: 8px;
  }

  .hero-actions-section {
    margin-top: 0;
    padding-bottom: 8px;
  }

  .hero-actions-centered {
    max-width: none;
  }

  .hero-gift {
    width: 100%;
    justify-content: flex-start;
  }

  .step-card {
    grid-template-columns: 1fr;
    min-height: unset;
    gap: 10px;
    padding: 18px;
  }

  .steps {
    gap: 10px;
  }

  .step-card:first-child {
    padding-top: 18px;
  }

  .step-card:last-child {
    padding-bottom: 18px;
  }

  .code-panel {
    padding: 22px;
  }

  .code-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .code-keyfacts {
    grid-template-columns: 1fr;
  }

  .faq-list summary {
    align-items: flex-start;
  }

  .code-panel-actions {
    flex-direction: column;
  }

  .config-method .button {
    width: 100%;
  }

  .manual-file-grid {
    grid-template-columns: 1fr;
  }

  .code-modal-trigger {
    width: 100%;
    min-width: 0;
  }

  .config-modal-panel {
    max-height: min(84vh, 760px);
    padding: 22px 18px 18px;
  }

  .config-modal-code {
    padding: 16px;
    font-size: 0.8rem;
  }

  .config-file-blocks {
    max-height: calc(84vh - 170px);
  }

  .config-file-head {
    flex-direction: column;
  }

  .modal-copy-button {
    width: 100%;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
