:root {
  --brand: #e60012;
  --brand-dark: #b8000e;
  --brand-soft: #fff1f2;
  --ink: #101828;
  --text: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --shadow: 0 20px 48px rgba(16, 24, 40, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(228, 231, 236, .85);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-logo { flex: 0 0 auto; width: 164px; }
.primary-nav { display: flex; align-items: center; gap: 8px; }
.primary-nav a,
.text-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #475467;
  border-radius: 10px;
  font-weight: 600;
}
.primary-nav a:hover,
.primary-nav a.active,
.text-action:hover { color: var(--brand); background: var(--brand-soft); }
.auth-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(230, 0, 18, .18);
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { background: var(--brand-dark); box-shadow: 0 14px 30px rgba(230, 0, 18, .24); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-small { min-height: 42px; padding-inline: 18px; border-radius: 10px; }
.button-secondary { color: var(--brand); background: #fff; border-color: #f2b8be; box-shadow: none; }
.button-secondary:hover { color: var(--brand-dark); background: var(--brand-soft); box-shadow: none; }
a:focus-visible { outline: 3px solid rgba(230, 0, 18, .28); outline-offset: 3px; }

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(230, 0, 18, .09), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}
.hero-grid {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  align-items: center;
  gap: 72px;
  padding-block: 86px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 720px;
  margin: 14px 0 20px;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.hero-copy > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-copy .risk-note { margin-top: 18px; color: #7b8492; font-size: 13px; }
.hero-visual { position: relative; min-height: 390px; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 48%;
  background: linear-gradient(135deg, rgba(230, 0, 18, .12), rgba(230, 0, 18, .02));
  filter: blur(2px);
}
.signal-card {
  position: absolute;
  display: grid;
  gap: 4px;
  padding: 18px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(228, 231, 236, .9);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.signal-card-main { inset: 76px 32px 72px 28px; align-content: center; padding: 34px; }
.signal-card-main span { color: var(--brand); font-size: 13px; font-weight: 800; }
.signal-card-main strong { color: var(--ink); font-size: 25px; }
.signal-line {
  height: 110px;
  margin-top: 24px;
  background:
    linear-gradient(150deg, transparent 0 20%, rgba(230, 0, 18, .18) 20.5% 21.5%, transparent 22% 39%, rgba(230, 0, 18, .38) 39.5% 41%, transparent 41.5% 55%, rgba(230, 0, 18, .75) 55.5% 57%, transparent 57.5%),
    repeating-linear-gradient(0deg, #fff 0 26px, #eef1f5 27px);
}
.signal-card-top { top: 18px; right: 0; width: 150px; }
.signal-card-bottom { bottom: 12px; left: 0; width: 170px; }
.signal-card b { color: var(--brand); font-size: 20px; }
.signal-card span { color: var(--muted); font-size: 13px; }

.section { padding: 96px 0; }
.section-heading { max-width: 680px; margin-bottom: 40px; }
.section-heading h2,
.cta-card h2 {
  margin: 10px 0 12px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.section-heading p { margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature-card {
  min-height: 286px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.feature-card:hover { border-color: #efb8be; box-shadow: 0 18px 40px rgba(16, 24, 40, .08); transform: translateY(-3px); }
.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
}
.feature-card h3 { margin: 24px 0 8px; color: var(--ink); font-size: 21px; }
.feature-card p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.feature-card b { margin-top: auto; color: var(--brand); font-size: 14px; }

.membership-section { background: var(--surface-soft); }
.membership-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.membership-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.membership-card-featured { border-color: #efb8be; box-shadow: 0 24px 54px rgba(230, 0, 18, .10); }
.plan-label { color: var(--brand); font-size: 14px; font-weight: 800; }
.membership-card h3 { margin: 8px 0 20px; color: var(--ink); font-size: 24px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.plan-price strong { color: var(--ink); font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--muted); font-size: 14px; }
.membership-card ul { flex: 1; display: grid; align-content: start; gap: 12px; margin: 32px 0; padding: 0; list-style: none; }
.membership-card li { position: relative; padding-left: 28px; color: #475467; }
.membership-card li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 2px;
  width: 9px;
  height: 5px;
  border-bottom: 2px solid var(--brand);
  border-left: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.cta-section { padding: 72px 0; }
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 42px 48px;
  border: 1px solid #f0c9cd;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff7f8, #fff);
}
.cta-card h2 { margin-bottom: 0; font-size: clamp(28px, 4vw, 38px); }

.site-footer { padding: 54px 0 24px; color: #d0d5dd; background: #101828; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.footer-brand img { width: 160px; filter: brightness(0) invert(1); }
.footer-brand p { margin: 14px 0 0; color: #98a2b3; font-size: 14px; }
.footer-brand a { min-height: 40px; display: inline-flex; align-items: center; margin-top: 4px; color: #d0d5dd; font-size: 14px; }
.footer-brand a:hover { color: #fff; }
.footer-links { max-width: 620px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #344054;
  color: #98a2b3;
  font-size: 13px;
}

.legal-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface-soft); }
.legal-main { flex: 1; max-width: 820px; padding-block: 72px 96px; }
.legal-main h1 { margin: 10px 0 16px; color: var(--ink); font-size: clamp(34px, 5vw, 48px); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.legal-intro { margin: 0 0 34px; color: var(--muted); font-size: 18px; }
.legal-section { margin-top: 16px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.legal-section h2 { margin: 0 0 8px; color: var(--ink); font-size: 19px; }
.legal-section p { margin: 0; color: #475467; }
.legal-section ol { display: grid; gap: 10px; margin: 0; padding-left: 1.45rem; color: #475467; }
.legal-section li { padding-left: 4px; }
.legal-updated { margin-top: 28px; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 24px; padding-block: 64px; }
  .hero-visual { min-height: 340px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 32px, 1180px); }
  .header-inner { min-height: 64px; gap: 10px; }
  .site-logo { width: 128px; }
  .primary-nav { display: none; }
  .auth-actions { gap: 2px; }
  .text-action { padding-inline: 11px; }
  .button-small { min-height: 44px; padding-inline: 14px; }
  .hero-grid { padding-block: 54px 46px; }
  .hero h1 { font-size: clamp(38px, 13vw, 52px); }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; margin-top: 8px; }
  .signal-card-main { inset: 54px 16px 54px 16px; padding: 24px; }
  .signal-card-top { width: 132px; }
  .signal-card-bottom { width: 148px; }
  .signal-card-main strong { font-size: 21px; }
  .section { padding: 72px 0; }
  .section-heading { margin-bottom: 28px; }
  .feature-grid,
  .membership-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 240px; }
  .membership-card { min-height: 0; padding: 26px; }
  .cta-section { padding: 48px 0; }
  .cta-card { align-items: stretch; flex-direction: column; padding: 30px 24px; }
  .footer-inner,
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; gap: 4px 18px; }
  .legal-main { padding-block: 52px 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
