:root {
  color-scheme: light;
  --bg: #f4faf8;
  --panel: rgba(255, 255, 255, 0.94);
  --ink: #16302a;
  --muted: #5f766e;
  --line: rgba(22, 48, 42, 0.1);
  --accent: #18b7a7;
  --accent-deep: #0d7e74;
  --shadow: 0 24px 72px rgba(27, 74, 67, 0.12);
  --r-2xl: 32px;
  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 14px;
  --font-display: "Bahnschrift", "DIN Alternate", "Segoe UI Variable Display", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --font-body: "Segoe UI Variable Text", "PingFang SC", "Microsoft YaHei UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(93, 219, 197, 0.24), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(103, 197, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #fcfffe 0%, var(--bg) 100%);
}

a, button { color: inherit; text-decoration: none; font: inherit; }
button { border: none; background: none; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(24, 183, 167, 0.26); outline-offset: 3px; }
.hidden { display: none !important; }

.page { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.page-root { min-height: 100vh; }

.home-loading, .home-error {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.loading-badge, .eyebrow, .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(24, 183, 167, 0.1);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel, .mini-card, .provider-card, .plan-card, .metric-card {
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 0;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(244, 250, 248, 0.92), rgba(244, 250, 248, 0.74));
  border-bottom: 1px solid rgba(22, 48, 42, 0.05);
}

.home-header-inner,
.section-head,
.home-footer-inner,
.header-actions,
.hero-actions,
.brand,
.status-item,
.plan-line {
  display: flex;
  align-items: center;
}

.home-header-inner,
.section-head,
.home-footer-inner,
.status-item,
.plan-line {
  justify-content: space-between;
}

.home-header-inner,
.section-head,
.home-footer-inner { gap: 20px; }
.header-actions, .hero-actions { gap: 12px; flex-wrap: wrap; }

.brand { gap: 14px; min-width: 0; }
.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #15bca8 0%, #5ad7c4 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(24, 183, 167, 0.22);
}

.brand-copy { min-width: 0; display: grid; gap: 4px; }
.brand-name { font-family: var(--font-display); font-size: 20px; line-height: 1.1; }
.brand-tagline { color: var(--muted); font-size: 13px; line-height: 1.45; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: linear-gradient(135deg, var(--accent) 0%, #33c4b6 100%); color: #fff; box-shadow: 0 14px 30px rgba(24, 183, 167, 0.24); }
.button.secondary { background: rgba(255,255,255,0.76); border-color: rgba(24,183,167,0.18); color: var(--accent-deep); }
.button.ghost { background: transparent; border-color: rgba(22,48,42,0.1); }

.hero, .section, .home-footer { padding-top: 26px; }
.hero-grid, .metrics-grid, .provider-grid, .features-grid, .quick-links-grid, .plans-grid, .steps-grid, .faq-grid {
  display: grid;
  gap: 20px;
}

.hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(360px, 420px); align-items: stretch; }
.metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.provider-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-links-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plans-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hero-main, .hero-side, .section-card { padding: 28px; }
.hero-main, .hero-side, .section-card, .mini-card, .provider-card, .plan-card, .metric-card {
  display: grid;
  gap: 16px;
}
.section-head .eyebrow { margin-bottom: 10px; }
.section-head { margin-bottom: 8px; }

.hero-main {
  background:
    radial-gradient(circle at right top, rgba(73, 202, 184, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,0.97), rgba(242,251,247,0.92));
}

.hero-title, .side-title, .section-title, .provider-title, .mini-card h3, .plan-card h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
}

.hero-title { font-size: clamp(40px, 5vw, 66px); letter-spacing: -0.04em; }
.side-title { font-size: 28px; }
.section-title { font-size: clamp(28px, 3vw, 40px); }

.hero-lead, .side-copy, .section-copy, .mini-card p, .model-pill span, .plan-copy, .empty-state, .metric-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-meta { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-chip, .model-pill, .plan-line, .status-item {
  border-radius: var(--r-lg);
  border: 1px solid rgba(24, 183, 167, 0.12);
  background: rgba(255,255,255,0.78);
}
.metric-chip { padding: 16px 18px; display: grid; gap: 8px; }
.metric-chip span, .model-pill span, .metric-card p { font-size: 13px; }
.metric-chip strong, .metric-card strong, .plan-price { font-family: var(--font-display); }
.metric-chip strong { font-size: 22px; }

.code-shell {
  margin: 0;
  padding: 18px;
  border-radius: var(--r-lg);
  background: #112620;
  color: #def8f3;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow: auto;
}

.status-list { display: grid; gap: 10px; }
.status-item { gap: 12px; padding: 14px 16px; }
.status-copy { display: grid; gap: 4px; }

.metric-card, .mini-card, .provider-card, .plan-card {
  padding: 22px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(242,251,247,0.9));
}

.metric-card strong { font-size: 34px; line-height: 1; }
.provider-title, .mini-card h3, .plan-card h3 { font-size: 22px; }
.provider-models, .plan-points { display: grid; gap: 10px; }
.provider-models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.model-pill { padding: 12px 14px; }
.model-pill strong { display: block; font-size: 15px; line-height: 1.35; }
.provider-card-simple {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(239,250,246,0.92));
}
.provider-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.provider-icon svg {
  width: 30px;
  height: 30px;
}
.provider-card-simple .provider-title { font-size: 28px; }
.provider-card-simple.family-gpt {
  background: linear-gradient(180deg, #e9fbf5, #d8f5ec);
  border-color: rgba(24, 183, 167, 0.22);
  color: #0c8b7a;
}
.provider-card-simple.family-claude {
  background: linear-gradient(180deg, #fff5e9, #ffe7c9);
  border-color: rgba(230, 154, 64, 0.22);
  color: #c9781a;
}
.provider-card-simple.family-deepseek {
  background: linear-gradient(180deg, #edf4ff, #dbe9ff);
  border-color: rgba(71, 118, 255, 0.22);
  color: #3565e3;
}
.provider-card-simple.family-qwen {
  background: linear-gradient(180deg, #fff0ea, #ffdcd0);
  border-color: rgba(244, 120, 74, 0.22);
  color: #e56734;
}
.provider-card-simple.family-gemini {
  background: linear-gradient(180deg, #f0edff, #e2dcff);
  border-color: rgba(117, 98, 255, 0.22);
  color: #6b59eb;
}
.provider-card-simple.family-default {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(239,250,246,0.92));
  color: var(--accent-deep);
}
.plan-price { font-size: 34px; line-height: 1; }
.plan-sub { font-size: 13px; color: var(--muted); }
.plan-line { padding: 10px 12px; gap: 12px; }

.step-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(24, 183, 167, 0.12);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.empty-state {
  padding: 28px;
  text-align: center;
  border-radius: var(--r-xl);
  border: 1px dashed rgba(22, 48, 42, 0.14);
}

.home-footer { padding-bottom: 44px; }
.home-footer-inner { padding: 22px 24px; }

@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; }
  .metrics-grid, .features-grid, .quick-links-grid, .plans-grid, .steps-grid, .faq-grid, .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .page { width: min(100%, calc(100% - 24px)); }
  .home-header { padding: 14px 0; }
  .home-header-inner, .section-head, .home-footer-inner { flex-direction: column; align-items: stretch; }
  .hero-main, .hero-side, .section-card { padding: 22px; border-radius: var(--r-xl); }
  .hero-meta, .metrics-grid, .features-grid, .quick-links-grid, .plans-grid, .steps-grid, .faq-grid, .provider-grid, .provider-models { grid-template-columns: 1fr; }
  .brand-mark { width: 46px; height: 46px; font-size: 22px; }
  .hero-title { font-size: 38px; }
}
