:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #5b6b7f;
  --line: #e2e8f0;
  --soft: #f6f8fb;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --hero: #0b1220;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: .04em; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, #4c8dff, #1d4ed8);
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 900;
}
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14.5px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--fg); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  background: var(--hero);
  color: #e9eef7;
  padding: 84px 0 92px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: -40% -20% auto auto;
  width: 720px; height: 720px;
  background: radial-gradient(circle at 50% 50%, rgba(37,99,235,.38), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #8fb4ff; border: 1px solid rgba(143,180,255,.34); border-radius: 999px;
  padding: 5px 13px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.12; margin: 0 0 18px; letter-spacing: -.025em; font-weight: 800;
}
.hero p.lead { font-size: 18px; color: #a9b8cd; max-width: 660px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 9px; font-weight: 650; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .16s ease;
}
.btn-primary { background: linear-gradient(180deg, #4c8dff, #2563eb); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.24); color: #e9eef7; }
.btn-ghost:hover { background: rgba(255,255,255,.08); text-decoration: none; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-soft { background: var(--soft); }
h2 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -.02em; margin: 0 0 10px; }
.sub { color: var(--muted); margin: 0 0 40px; max-width: 620px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 16.5px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .ico {
  width: 34px; height: 34px; border-radius: 9px; background: #eef4ff; color: var(--brand);
  display: grid; place-items: center; margin-bottom: 14px; font-size: 16px;
}

/* ---------- product card ---------- */
.product {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  border: 1px solid var(--line); border-radius: 18px; padding: 30px; background: #fff;
}
.product h3 { font-size: 22px; margin: 0 0 8px; }
.product p { color: var(--muted); margin: 0 0 18px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tag {
  font-size: 12.5px; color: #3f5876; background: #f1f5fb;
  border: 1px solid #e3ebf6; border-radius: 999px; padding: 4px 11px;
}

/* ---------- pricing ---------- */
.price-card {
  border: 1px solid var(--line); border-radius: 18px; background: #fff;
  padding: 32px; max-width: 420px;
}
.price-card .amount { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.price-card .amount span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 26px; }
.price-card li { display: flex; gap: 9px; font-size: 14.5px; color: #334155; margin-bottom: 10px; }
.price-card li::before { content: "✓"; color: var(--brand); font-weight: 800; }

/* ---------- checkout ---------- */
.checkout { max-width: 520px; margin: 0 auto; }
.checkout h1 { font-size: 28px; margin: 0 0 6px; }
.field { margin: 22px 0; }
.field label { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 7px; }
.field input {
  width: 100%; padding: 12px 15px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 15px; outline: none; font-family: inherit; background: #fff;
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.summary {
  background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.summary .name { font-weight: 650; }
.summary .note { font-size: 13px; color: var(--muted); }
.err {
  display: none; margin-top: 14px; padding: 11px 14px; border-radius: 9px;
  background: #fef3f2; border: 1px solid #fecdc9; color: #b42318; font-size: 14px;
}
.btn-block { width: 100%; justify-content: center; margin-top: 8px; }
.btn:disabled { opacity: .62; cursor: not-allowed; transform: none; }
.fine { font-size: 13px; color: var(--muted); margin-top: 16px; text-align: center; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .hero { padding: 62px 0 70px; }
  section { padding: 56px 0; }
}
