:root {
  --ink: #0b1b2b;
  --ink-2: #1e3550;
  --muted: #5c7188;
  --line: #dce6f0;
  --line-strong: #c3d3e3;
  --bg: #f6f9fc;
  --card: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b5d57;
  --mint: #d9f7ef;
  --blue: #1d4ed8;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --red: #b91c1c;
  --red-bg: #fee2e2;
  --green: #15803d;
  --green-bg: #dcfce7;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(11, 27, 43, 0.08);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(15, 118, 110, 0.10), transparent 65%),
    radial-gradient(800px 400px at 10% -5%, rgba(29, 78, 216, 0.08), transparent 60%),
    var(--bg);
  line-height: 1.55;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
code, pre { font-family: var(--mono); }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(246, 249, 252, 0.82);
  border-bottom: 1px solid rgba(220, 230, 240, 0.8);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), #14b8a6); color: #fff; font-size: 15px; font-weight: 900;
}
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; }
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--teal); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 11px; padding: 11px 18px;
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0) scale(.99); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(15, 118, 110, .22); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-danger { background: #fff; color: var(--red); border-color: #fecaca; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Hero */
.hero { padding: 72px 0 44px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em; color: var(--teal);
  background: var(--mint); border: 1px solid #b7ebdd; border-radius: 999px; padding: 6px 11px;
}
.hero h1 { font-size: clamp(34px, 5vw, 58px); margin: 18px 0 16px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p { color: var(--muted); font-size: 18px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; font-size: 13px; color: var(--muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 22px; transform: rotate(-1deg);
}
.hero-panel h3 { font-size: 15px; margin-bottom: 12px; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.hero-row:first-of-type { border-top: 0; }
.hero-row code { font-size: 12px; background: #f1f5f9; padding: 4px 7px; border-radius: 6px; }

/* Sections */
.section { padding: 46px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); }
.section-head p { color: var(--muted); max-width: 620px; margin-top: 8px; }

/* Cards */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 8px 24px rgba(11, 27, 43, 0.04);
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }
.card .card-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

.product-card { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.product-badge { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--teal-dark); font-weight: 900; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: #eef4f9; border: 1px solid var(--line); font-weight: 600; }
.pill-green { background: var(--green-bg); border-color: #bbf7d0; color: var(--green); }
.pill-amber { background: var(--amber-bg); border-color: #fde68a; color: var(--amber); }
.pill-red { background: var(--red-bg); border-color: #fecaca; color: var(--red); }
.pill-blue { background: #dbeafe; border-color: #bfdbfe; color: var(--blue); }

/* Plans */
.plan-card { display: flex; flex-direction: column; height: 100%; position: relative; }
.plan-card.featured { border-color: #8ed9cd; box-shadow: 0 20px 50px rgba(15, 118, 110, .14); }
.plan-flag { position: absolute; top: -11px; left: 22px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; border-radius: 999px; }
.plan-price { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px; }
.plan-price small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.plan-list li { display: flex; gap: 8px; align-items: flex-start; }
.plan-list li::before { content: '✓'; color: var(--teal); font-weight: 900; }
.plan-card .card-actions { margin-top: auto; padding-top: 20px; }

/* Forms */
.form-card { max-width: 720px; margin: 0 auto; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 11px 13px; font: inherit; font-size: 14px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(15, 118, 110, .14); border-color: var(--teal); outline-offset: 0;
}
.field .hint { font-size: 12px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 16px; border: 1px solid; }
.alert-error { background: var(--red-bg); border-color: #fecaca; color: #7f1d1d; }
.alert-ok { background: var(--green-bg); border-color: #bbf7d0; color: #14532d; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.alert-warn { background: var(--amber-bg); border-color: #fde68a; color: #78350f; }

/* Payment instructions */
.pay-box { background: #0b1b2b; color: #e2e8f0; border-radius: 16px; padding: 22px; }
.pay-box h3 { color: #fff; font-size: 17px; }
.pay-box p { color: #a8bacd; font-size: 13.5px; }
.pay-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; }
.pay-row:first-of-type { border-top: 0; }
.pay-row span:first-child { color: #93a8bd; }
.pay-row strong, .pay-row code { color: #fff; text-align: right; word-break: break-all; }
.pay-row-light { border-top-color: var(--line); }
.pay-row-light span:first-child { color: var(--muted); }
.pay-row-light strong, .pay-row-light code { color: var(--ink); }
.copy-value { background: #16293d; padding: 5px 8px; border-radius: 7px; font-family: var(--mono); font-size: 12.5px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 12px 14px; background: #f1f6fa; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid #eef3f8; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td .sub { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat .label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.stat .value { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.stat .hint { font-size: 12px; color: var(--muted); }

/* Misc */
.kbd { font-family: var(--mono); font-size: 12px; background: #f1f5f9; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.stack { display: grid; gap: 14px; }
.divider { height: 1px; background: var(--line); margin: 26px 0; }
.license-token { background: #0b1b2b; color: #dbeafe; border-radius: 12px; padding: 14px; font-size: 11px; line-height: 1.5; word-break: break-all; white-space: pre-wrap; max-height: 180px; overflow: auto; }
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 34px 0; color: var(--muted); font-size: 13px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-panel { transform: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 28px); }
  .nav { gap: 12px; font-size: 13px; }
  .nav .nav-optional { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .hero { padding-top: 48px; }
}
