:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #0d1b2e;
  --muted: #5b6b82;
  --line: #e3e9f2;
  --brand: #0b7cff;
  --brand-2: #2563eb;
  --brand-soft: #eaf3ff;
  --yellow: #ffc629;
  --green: #0b9b6d;
  --shadow: 0 18px 50px rgba(13, 27, 46, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code, pre { font-family: "JetBrains Mono", ui-monospace, monospace; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 124, 255, .25);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(11, 124, 255, .32); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: #c8d5e6; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 14.5px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 252, .84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(227, 233, 242, .9);
}
.head-inner { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.head-nav { display: flex; gap: 4px; margin-left: 8px; }
.head-nav a {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.head-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .8); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.head-actions .btn { height: 38px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { padding: 78px 0 44px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -220px;
  top: -300px;
  background: radial-gradient(circle, rgba(11, 124, 255, .14), transparent 68%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 720;
}
.hero h1 .accent { color: var(--brand); }
.lead {
  margin: 0;
  max-width: 540px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.hero-cta { display: flex; gap: 10px; margin: 26px 0 18px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- code card ---------- */
.hero-card {
  border-radius: 20px;
  background: #0b1424;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 34px 80px rgba(8, 18, 36, .28);
  overflow: hidden;
  transform: rotate(.4deg);
}
.code-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #8fa3bf;
  font-size: 11.5px;
}
.code-dots { display: flex; gap: 5px; }
.code-dots i { width: 8px; height: 8px; border-radius: 50%; background: #33415a; }
.code-dots i:first-child { background: #ff6b6b; }
.code-dots i:nth-child(2) { background: #ffc629; }
.code-dots i:nth-child(3) { background: #35d07f; }
.code-tag { margin-left: auto; color: #35d07f; }
.hero-card pre {
  margin: 0;
  padding: 18px 18px 14px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.75;
  color: #cfe0f5;
}
.hero-card .c-key { color: #ffc629; }
.hero-card .c-str { color: #7dd3a7; }
.code-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #8fa3bf;
  font-size: 11.5px;
}
.code-foot b { color: #fff; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 0 4px rgba(53, 208, 127, .16); }

/* ---------- providers ---------- */
.providers { padding: 34px 0 10px; }
.providers-label {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  margin: 0 0 18px;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.provider {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 620;
  color: var(--text);
}
.provider img { width: 20px; height: 20px; object-fit: contain; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 38px;
}
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; max-width: 660px; margin: 0 auto 38px; }
.section-head h2 {
  margin: 14px 0 0;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 720;
}
.section-head p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 0 rgba(13, 27, 46, .02);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d5e3f5; }
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-2);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 21px; height: 21px; }
.feature h3 { margin: 0 0 7px; font-size: 15.5px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

/* ---------- how ---------- */
.how { background: linear-gradient(180deg, #eef4fe, rgba(246, 248, 252, 0)); border-top: 1px solid #e6eef9; border-bottom: 1px solid #e6eef9; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-n { display: inline-block; font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--brand); font-weight: 600; letter-spacing: .1em; margin-bottom: 18px; }
.steps h3 { margin: 0 0 8px; font-size: 16px; }
.steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.steps code { font-size: 11.5px; background: #f2f6fc; border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--brand); box-shadow: 0 22px 60px rgba(11, 124, 255, .14); }
.plan-badge {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
}
.plan-name { font-size: 13px; font-weight: 750; color: var(--brand-2); text-transform: uppercase; letter-spacing: .08em; }
.plan-price { font-size: 40px; font-weight: 720; letter-spacing: -.045em; margin: 10px 0 2px; }
.plan-price span { font-size: 13px; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.plan-desc { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; }
.plan li { position: relative; padding-left: 22px; font-size: 13px; color: var(--text); }
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 3px var(--brand);
}
.plan .btn { margin-top: auto; }

/* ---------- CTA ---------- */
.cta-band { padding: 20px 0 84px; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 40px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 198, 41, .28), transparent 42%),
    linear-gradient(135deg, #0a6be0, #0b7cff 55%, #2f6ff0);
  color: #fff;
  box-shadow: 0 30px 70px rgba(11, 124, 255, .25);
}
.cta-inner h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 14px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .26); color: #fff; }
.cta-band .btn-primary { background: #fff; color: #0a5fd0; box-shadow: none; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: #fff; }
.foot-inner { display: flex; align-items: center; gap: 28px; padding: 28px 0 34px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 34px; height: 34px; border-radius: 10px; }
.foot-brand b { display: block; font-size: 14px; }
.foot-brand span { display: block; font-size: 11px; color: var(--muted); }
.foot-links { display: flex; gap: 16px; margin-left: auto; flex-wrap: wrap; }
.foot-links a, .foot-legal a { color: var(--muted); font-size: 12px; }
.foot-links a:hover, .foot-legal a:hover { color: var(--text); }
.foot-legal { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { transform: none; }
  .provider-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .features, .steps, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .head-nav { display: none; }
  .head-inner { height: 62px; }
  .head-actions .btn-ghost { display: none; }
  .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features, .steps, .plans { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .hero h1 { font-size: 44px; }
  .cta-inner { padding: 28px 22px; }
  .foot-links { margin-left: 0; }
}
@media (max-width: 460px) {
  .head-inner { gap: 10px; }
  .brand { flex: 0 0 auto; }
  .brand span { display: none; }
  .head-actions { flex: 0 0 auto; }
  .wrap { width: calc(100% - 28px); }
  .hero-cta .btn { width: 100%; }
  .hero-meta { gap: 10px; }
  .provider { padding: 9px; font-size: 11px; }
}

/* ---------- legal pages ---------- */
.legal-main { width: min(780px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 90px; }
.legal-main h1 { font-size: clamp(34px, 4.4vw, 50px); letter-spacing: -.04em; margin: 0 0 6px; }
.legal-main h2 { font-size: 17px; margin: 30px 0 8px; letter-spacing: -.01em; }
.legal-main p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 10px 0; }
.legal-main a { color: var(--brand-2); }
.legal-meta { font-size: 12px !important; color: var(--text-3, #8a99ad) !important; margin-bottom: 30px !important; }

/* language switcher */
.lang-select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  padding: 0 8px;
  max-width: 120px;
}
@media (max-width: 760px) {
  .lang-select { max-width: 96px; font-size: 11px; }
}

/* ---------- estimator-style header controls ---------- */
:root[data-mode="dark"] {
  --bg: #0b1424;
  --surface: #111c2f;
  --text: #eaf2ff;
  --muted: #9fb0c8;
  --line: #22314a;
  --brand: #4da3ff;
  --brand-2: #6db2ff;
  --brand-soft: rgba(77, 163, 255, .14);
  --shadow: 0 20px 60px rgba(0, 0, 0, .42);
}
[data-mode="dark"] .site-head {
  background: rgba(11, 20, 36, .86);
  border-color: rgba(34, 49, 74, .95);
}
[data-mode="dark"] .head-nav a:hover { background: rgba(255, 255, 255, .06); }
[data-mode="dark"] .how {
  background: linear-gradient(180deg, #0e1a2c, rgba(11, 20, 36, 0));
  border-color: #1a2940;
}
[data-mode="dark"] .site-foot { background: #0d1728; }
[data-mode="dark"] .foot-brand span,
[data-mode="dark"] .foot-links a,
[data-mode="dark"] .foot-legal { color: var(--muted); }
[data-mode="dark"] .plan.featured { box-shadow: 0 22px 60px rgba(0, 0, 0, .4); }
[data-mode="dark"] .cta-band .btn-primary { background: #fff; color: #0a5fd0; }

.lang-drop { position: relative; }
.lang-btn,
.mode-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-2, var(--muted));
  cursor: pointer;
}
.lang-btn:hover,
.mode-btn:hover { color: var(--brand); border-color: var(--brand); }
.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 90;
  min-width: 168px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
}
.lang-menu a:hover { background: var(--brand-soft); }
.lang-menu a.on { color: var(--brand); font-weight: 700; }
.lang-menu .tick { color: var(--brand); font-weight: 700; }
@media (max-width: 760px) {
  .head-actions { gap: 6px; }
  .head-actions .btn-ghost { display: none; }
  .lang-btn, .mode-btn { width: 34px; height: 34px; }
}

/* wordmark domain badge */
.brand-word { display: inline-flex; align-items: flex-start; gap: 3px; }
.brand-email {
  display: inline-flex;
  align-items: center;
  height: 13px;
  padding: 0 4px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 8px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .02em;
  transform: translateY(-3px);
  white-space: nowrap;
}
