:root {
  --bg: #0b0f17;
  --bg-2: #0f1520;
  --panel: #131b28;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e9eef4;
  --muted: #9aa6b5;
  --mint: #66e68c;
  --cyan: #4faefa;
  --radius: 18px;
  --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 15, 23, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: 0.06em; font-size: 15px; }
.brand img { width: 30px; height: 30px; }
.brand span { color: var(--mint); font-weight: 600; letter-spacing: 0.22em; font-size: 12px; }
nav.links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
nav.links a { text-decoration: none; color: var(--muted); }
nav.links a:hover, nav.links a[aria-current] { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn.primary { background: var(--mint); color: #06140c; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { border-color: var(--line); background: rgba(255,255,255,0.03); }
.btn.ghost:hover { border-color: rgba(255,255,255,0.2); }
.btn.small { padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto 30%; height: 640px;
  background: radial-gradient(closest-side, rgba(102, 230, 140, 0.16), transparent 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; }
.eyebrow { color: var(--mint); font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -0.02em; margin: 14px 0 20px; font-weight: 750; }
h1 em { font-style: normal; color: var(--mint); }
.lead { color: var(--muted); font-size: 19px; max-width: 34em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.platforms { margin-top: 22px; color: var(--muted); font-size: 14px; }
.phones { display: flex; justify-content: center; gap: 18px; }
.phone {
  width: 220px; border-radius: 34px; padding: 8px; background: #05070b;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,0,0,0.6);
}
.phone img { border-radius: 27px; }
.phone.back { transform: translateY(40px); opacity: 0.92; }

/* Sections */
section { padding: 88px 0; border-top: 1px solid var(--line); scroll-margin-top: 48px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.015em; margin: 10px 0 14px; font-weight: 720; }
.section-lead { color: var(--muted); max-width: 40em; margin: 0 0 44px; font-size: 18px; }
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin: 14px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(102, 230, 140, 0.1); color: var(--mint);
}
.icon.cyan { background: rgba(79, 174, 250, 0.1); color: var(--cyan); }
.icon svg { width: 22px; height: 22px; }

/* How it works */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.flow .arrow { align-self: center; color: var(--muted); font-size: 22px; }
.flow .card { text-align: left; }
.flow .tag { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); font-weight: 600; }

/* Use cases */
.uses { display: flex; flex-wrap: wrap; gap: 10px; }
.uses span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--muted); font-size: 15px; }

/* Licensing */
.plan { display: flex; flex-direction: column; gap: 14px; }
.plan .price { font-size: 30px; font-weight: 720; }
.plan ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; }
.plan.featured { border-color: rgba(102, 230, 140, 0.4); }

/* Pricing */
.promo {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  background: rgba(102, 230, 140, 0.12); border: 1px solid rgba(102, 230, 140, 0.35);
  color: var(--mint); font-weight: 600; font-size: 14px;
}
.billing { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); margin: 8px 0 28px; }
.billing button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 9px; cursor: pointer; }
.billing button[aria-pressed="true"] { background: rgba(255,255,255,0.08); color: var(--text); }
.price-card { display: flex; flex-direction: column; gap: 10px; }
.price-card .seats { color: var(--muted); font-size: 15px; }
.price-card .was { color: var(--muted); text-decoration: line-through; font-size: 15px; }
.price-card .now { font-size: 34px; font-weight: 750; letter-spacing: -0.01em; }
.price-card .now small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-card .tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: #06140c; background: var(--mint); border-radius: 6px; padding: 2px 8px; }
.price-card ul { margin: 6px 0 10px; padding-left: 18px; color: var(--muted); font-size: 15px; }
.price-card .btn { margin-top: auto; }
table.examples { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.examples th, table.examples td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
table.examples th { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
table.examples td.num { white-space: nowrap; }
table.examples s { color: var(--muted); margin-right: 6px; }
.table-wrap { overflow-x: auto; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.four { grid-template-columns: 1fr; } }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Downloads page */
.page-head { padding: 72px 0 24px; }
.dl { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; }
.dl img { width: 56px; height: 56px; }
.dl .meta { color: var(--muted); font-size: 14px; }
.dl h3 { margin: 0 0 2px; }
.hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); word-break: break-all; margin-top: 6px; }
.note { border-left: 3px solid var(--cyan); padding: 4px 0 4px 16px; color: var(--muted); font-size: 15px; }

/* Text pages */
.prose { max-width: 720px; }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose p { color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .hero .wrap, .grid.three, .grid.two { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); justify-self: center; }
  .phone { width: 44%; max-width: 200px; }
  .phone.back { transform: translateY(24px); }
  nav.links a.hide-sm { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  header.top .wrap { gap: 12px; }
  nav.links { gap: 14px; font-size: 14px; }
  header.top .btn { display: none; }
  .hero { padding: 56px 0 48px; }
  section { padding: 64px 0; }
  .dl { grid-template-columns: 44px 1fr; }
  .dl img { width: 44px; height: 44px; }
  .dl .btn { grid-column: 1 / -1; }
}
