:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-soft: #f1f5f9;
  --color-text: #475569;
  --color-heading: #0f172a;
  --color-muted: #64748b;
  --color-border: #e5e7eb;
  --color-blue: #2563eb;
  --color-blue-dark: #1d4ed8;
  --color-blue-soft: #eff6ff;
  --color-green: #16a34a;
  --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.045);
  --shadow-card-hover: 0 14px 34px rgba(15, 23, 42, 0.065);
  --radius-card: 16px;
  --radius-button: 12px;
  --radius-illustration: 20px;
  --container: 1280px;
  --space-section: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.78;
}

body,
button,
input,
textarea {
  font: inherit;
}

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

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

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-heading);
  font-size: 15px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  transition: color 180ms ease;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--color-heading);
  border-radius: var(--radius-button);
}

.site-nav .nav-cta:hover {
  color: #ffffff;
  background: #111827;
}

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

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: auto;
  background: var(--color-heading);
  content: "";
}

.nav-toggle-line::before {
  transform: translateY(-6px);
}

.nav-toggle-line::after {
  transform: translateY(4px);
}

.section {
  padding: var(--space-section) 0;
}

.section-compact {
  padding: var(--space-section) 0;
}

.section-muted {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.hero.section {
  padding-bottom: 36px;
}

.hero {
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 78%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 34%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(360px, 45fr);
  align-items: center;
  gap: 56px;
  min-height: 600px;
  padding: 28px 0 10px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--color-heading);
  line-height: 1.18;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--color-muted);
  font-size: 20px;
  line-height: 1.82;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

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

.button-primary,
.button-provider,
.button-missing-url {
  color: #ffffff;
  background: var(--color-blue);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
}

.button-primary:hover,
.button-provider:hover,
.button-missing-url:hover {
  background: var(--color-blue-dark);
}

.button-secondary {
  color: var(--color-heading);
  background: var(--color-surface);
  border-color: var(--color-border);
}

.button-secondary:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.button.is-disabled,
.button:disabled {
  color: #94a3b8;
  background: #f1f5f9;
  border-color: var(--color-border);
  box-shadow: none;
  cursor: not-allowed;
}

.button.is-disabled:hover,
.button:disabled:hover {
  transform: none;
}

.server-panel {
  max-width: 520px;
  justify-self: end;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-illustration);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.server-panel-top {
  display: flex;
  gap: 7px;
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
}

.server-panel-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.server-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
}

.server-row strong {
  color: var(--color-heading);
  font-size: 15px;
}

.terminal {
  margin: 20px;
  padding: 18px;
  border: 1px solid #172033;
  border-radius: var(--radius-button);
  background: #0f172a;
  color: #cbd5e1;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.terminal p {
  margin: 0 0 8px;
}

.terminal p:last-child {
  margin-bottom: 0;
}

.terminal-ok {
  color: #86efac;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.78;
}

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

#providers.section {
  padding-top: 44px;
  padding-bottom: 56px;
}

#why-us.section {
  padding-top: 56px;
}

.provider-card,
.feature-item,
.use-case,
.disclosure-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.provider-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.provider-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card-hover);
}

.provider-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.provider-head h3 {
  margin-bottom: 3px;
}

.provider-head p,
.offer-note,
.provider-description {
  color: var(--color-muted);
}

.provider-head p {
  margin-bottom: 0;
  font-size: 13px;
}

.provider-description {
  min-height: 64px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.72;
}

.provider-features {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0 0 16px;
  list-style: none;
}

.provider-features li {
  position: relative;
  padding-left: 24px;
  color: var(--color-heading);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.provider-features li::before {
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-blue);
  content: "";
}

.offer-note {
  min-height: 48px;
  margin: auto 0 10px;
  font-size: 14px;
  line-height: 1.62;
}

.terms-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  color: var(--color-blue);
  font-size: 13px;
  font-weight: 700;
}

.terms-link:hover {
  color: var(--color-blue-dark);
}

.button-provider {
  width: 100%;
}

.feature-grid,
.use-case-grid {
  display: grid;
  gap: 16px;
}

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

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

.feature-item,
.use-case {
  padding: 22px;
}

.feature-item img,
.use-case img {
  margin-bottom: 16px;
}

.feature-item p,
.use-case p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.7;
}

.disclosure-box {
  padding: 24px;
  background: var(--color-blue-soft);
  border-color: #bfdbfe;
}

.disclosure-box h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.disclosure-box p {
  max-width: 880px;
  margin-bottom: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.78;
}

.final-cta {
  text-align: center;
}

.final-cta-inner {
  display: grid;
  justify-items: center;
}

.final-cta h2 {
  max-width: 720px;
}

.final-cta p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 26px;
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.78;
}

.site-footer {
  padding: 30px 0;
  background: var(--color-heading);
  color: #cbd5e1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  font-size: 14px;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner a:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  :root {
    --space-section: 72px;
  }

  .hero-grid,
  .provider-grid,
  .feature-grid,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
    min-height: auto;
    padding-top: 36px;
    padding-bottom: 0;
  }

  .server-panel {
    max-width: none;
    justify-self: stretch;
  }

  .provider-description,
  .offer-note {
    min-height: 0;
  }

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .nav-cta {
    justify-content: center;
    min-height: 44px;
  }

  .section {
    padding: 56px 0;
  }

  .section-compact {
    padding: 56px 0;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-lede,
  .section-heading p:not(.eyebrow),
  .final-cta p:not(.eyebrow) {
    font-size: 17px;
  }

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

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

  .feature-grid,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .provider-card,
  .feature-item,
  .use-case,
  .disclosure-box {
    padding: 20px;
  }

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

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