:root {
  --purple: #533afd;
  --purple-hover: #4434d4;
  --purple-light: #b9b9f9;
  --purple-soft: #d6d9fc;
  --navy: #061b31;
  --navy-dark: #0d253d;
  --brand-dark: #1c1e54;
  --label: #273951;
  --body: #64748d;
  --border: #e5edf5;
  --white: #ffffff;
  --ruby: #ea2261;
  --magenta: #f96bee;
  --green: #108c3d;
  --green-bg: rgba(21, 190, 83, 0.2);
  --green-border: rgba(21, 190, 83, 0.4);
  --amber: #9b6829;
  --amber-bg: rgba(155, 104, 41, 0.12);
  --amber-border: rgba(155, 104, 41, 0.3);
  --shadow-1: rgba(23, 23, 23, 0.08) 0px 15px 35px 0px;
  --shadow-2: rgba(50, 50, 93, 0.25) 0px 30px 45px -30px, rgba(0, 0, 0, 0.1) 0px 18px 36px -18px;
  --radius: 6px;
  --font: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Source Code Pro', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-feature-settings: 'ss01';
  color: var(--navy);
  background: var(--white);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-weight: 300; color: var(--navy); margin: 0; }
h1 { font-size: 56px; line-height: 1.03; letter-spacing: -1.4px; }
h2 { font-size: 32px; line-height: 1.1; letter-spacing: -0.64px; }
h3 { font-size: 22px; line-height: 1.1; letter-spacing: -0.22px; }
p { color: var(--body); font-size: 16px; line-height: 1.4; margin: 0; }
.lead { font-size: 18px; line-height: 1.4; }
.mono { font-family: var(--mono); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { font-size: 18px; font-weight: 600; color: var(--navy); letter-spacing: -0.2px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { font-size: 14px; font-weight: 400; color: var(--navy); }
.nav-links a:hover { color: var(--purple); text-decoration: none; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-block; padding: 8px 16px; border-radius: 4px;
  font-size: 16px; font-weight: 400; font-family: var(--font);
  border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-hover); }
.btn-ghost { background: transparent; color: var(--purple); border-color: var(--purple-light); }
.btn-ghost:hover { background: rgba(83, 58, 253, 0.05); }
.btn-sm { padding: 6px 14px; font-size: 14px; }
.btn-lg { padding: 11px 22px; font-size: 17px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* --------------------------------------------------------------- hero */
.hero { padding: 88px 0 64px; text-align: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 640px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--purple); background: rgba(83,58,253,.07);
  border: 1px solid var(--purple-soft); border-radius: 4px; padding: 4px 10px; margin-bottom: 22px;
}

/* -------------------------------------------------------------- notice */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--amber-border); background: var(--amber-bg);
  border-radius: var(--radius); padding: 14px 16px; margin: 0 0 32px;
}
.notice .notice-icon { flex: 0 0 auto; color: var(--amber); font-size: 18px; line-height: 1.3; }
.notice p { color: var(--label); font-size: 15px; }
.notice strong { font-weight: 600; color: var(--navy); }

/* --------------------------------------------------------------- cards */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card-lg { border-radius: 8px; box-shadow: var(--shadow-1); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: #f6f9fc; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--brand-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.72); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head p { margin-top: 12px; }

.feature { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--white); }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 15px; }
.feature .feature-icon {
  width: 34px; height: 34px; border-radius: 5px; background: rgba(83,58,253,.09);
  color: var(--purple); display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 17px;
}

/* --------------------------------------------------------- sales panels */
.panel {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; background: var(--white);
}
.panel-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.panel-head .feature-icon { margin-bottom: 0; flex: none; }
.panel-head h3 { margin-bottom: 4px; font-size: 18px; }
.panel-sub { font-size: 14px; color: var(--body); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  font-size: 14.5px; line-height: 1.55; color: var(--label);
}
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--purple); font-weight: 700; font-size: 14px;
}
.check-list strong { font-weight: 600; }

/* ------------------------------------------------------------- pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.plan {
  border: 1px solid var(--border); border-radius: 8px; padding: 28px;
  background: var(--white); position: relative; display: flex; flex-direction: column;
}
.plan-featured { border-color: var(--purple); box-shadow: var(--shadow-2); }
.plan-tag {
  position: absolute; top: -11px; left: 28px; font-size: 11px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--purple);
  border-radius: 4px; padding: 2px 9px;
}
.plan-name { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--body); }
.plan-price { font-size: 44px; line-height: 1.05; letter-spacing: -1.2px; font-weight: 300; color: var(--navy); margin: 10px 0 2px; }
.plan-period { font-size: 15px; color: var(--body); margin-bottom: 18px; }
.plan-tagline { font-size: 16px; color: var(--label); font-weight: 400; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15px; color: var(--label); }
.plan li::before {
  content: ''; position: absolute; left: 4px; top: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--purple-light);
}
.plan .btn { width: 100%; }

.badge {
  display: inline-block; font-size: 11px; font-weight: 400; border-radius: 4px;
  padding: 1px 6px; background: var(--green-bg); color: var(--green);
  border: 1px solid var(--green-border);
}
.badge-plain { background: #fff; color: #000; border-color: #f6f9fc; }

/* --------------------------------------------------------------- code */
.code {
  background: #0d253d; color: #d7e3ff; border-radius: var(--radius);
  font-family: var(--mono); font-size: 12px; line-height: 2.0; font-weight: 500;
  padding: 16px 18px; overflow-x: auto; margin: 0;
}
.code-bar {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(215,227,255,.55); padding: 0 0 10px;
}
.code-label { color: rgba(215,227,255,.45); }
.code-copy {
  background: transparent; border: 1px solid rgba(215,227,255,.25); color: rgba(215,227,255,.75);
  font-family: var(--mono); font-size: 10px; border-radius: 4px; padding: 2px 8px; cursor: pointer;
}
.code-copy:hover { background: rgba(215,227,255,.1); }
.code .tok-key { color: #7ee2b8; }
.code .tok-str { color: #ffd7ef; }
.code .tok-url { color: #9bb8ff; }

/* -------------------------------------------------------------- tables */
table.params { width: 100%; border-collapse: collapse; margin: 14px 0 4px; }
table.params th {
  text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--body); padding: 8px 10px; border-bottom: 1px solid var(--border);
}
table.params td { padding: 10px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--label); vertical-align: top; }
table.params td:first-child { font-family: var(--mono); font-size: 13px; color: var(--navy); white-space: nowrap; }
.req {
  font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ruby); border: 1px solid rgba(234,34,97,.35); border-radius: 3px;
  padding: 0 5px; margin-left: 8px; vertical-align: 1px;
}
.method {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700;
  border-radius: 3px; padding: 1px 7px; margin-right: 10px;
}
.method-get { background: var(--purple-soft); color: var(--purple-deep, #2e2b8c); }
.method-post { background: var(--green-bg); color: var(--green); }

.endpoint {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--white);
  padding: 22px; margin-bottom: 18px;
}
.endpoint h3 { font-family: var(--mono); font-size: 16px; font-weight: 500; letter-spacing: 0; }
.endpoint p { margin-top: 8px; font-size: 15px; }

/* -------------------------------------------------------------- domain */
.domain-box {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; background: #fff; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.domain-main { font-family: var(--mono); font-size: 17px; font-weight: 500; color: var(--navy); }
.domain-meta { font-size: 13px; color: var(--body); }
.domain-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.domain-item {
  display: flex; align-items: center; gap: 12px; font-family: var(--mono);
  font-size: 13px; color: var(--body); padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 4px; background: #fff;
}
.domain-item.active { border-color: var(--purple); color: var(--navy); background: rgba(83,58,253,.04); }
.domain-item .pill {
  margin-left: auto; font-family: var(--font); font-size: 11px; color: var(--purple);
  border: 1px solid var(--purple-soft); border-radius: 4px; padding: 1px 7px;
}

/* --------------------------------------------------------------- pay */
.pay-grid { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
.qr-card { border: 1px solid var(--border); border-radius: 8px; padding: 22px; background: #fff; box-shadow: var(--shadow-1); text-align: center; }
.qr-frame { border: 1px solid var(--border); border-radius: 4px; padding: 12px; background: #fff; display: inline-block; }
.qr-frame svg { display: block; width: 216px; height: 216px; }
.addr {
  font-family: var(--mono); font-size: 13px; color: var(--navy); word-break: break-all;
  background: #f6f9fc; border: 1px solid var(--border); border-radius: 4px;
  padding: 10px 12px; margin: 14px 0 10px; text-align: left;
}
.countdown { font-size: 13px; color: var(--body); }
.countdown b { font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 600; }
.plan-switch { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.plan-switch button {
  font-family: var(--font); font-size: 14px; padding: 6px 14px; border-radius: 4px;
  border: 1px solid var(--border); background: #fff; color: var(--label); cursor: pointer;
}
.plan-switch button.active { border-color: var(--purple); color: var(--purple); background: rgba(83,58,253,.05); }

/* --------------------------------------------------------------- foot */
.foot { border-top: 1px solid var(--border); padding: 32px 0; margin-top: 40px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand { font-weight: 600; font-size: 15px; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { font-size: 14px; color: var(--body); }
.foot-links a:hover { color: var(--purple); }

/* ------------------------------------------------------------ helpers */
.stack { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.muted { color: var(--body); font-size: 14px; }
.small { font-size: 13px; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

@media (max-width: 860px) {
  h1 { font-size: 40px; letter-spacing: -0.8px; }
  h2 { font-size: 26px; letter-spacing: -0.4px; }
  .grid-3, .grid-2, .plans, .pay-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .nav-links { display: none; }
}
