/* ============================================================
   EarnCrypto — self-custodial TRON staking
   Design system: deep aubergine ink + gold/violet/mint accents
   ============================================================ */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-400.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-500.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-700.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}

:root {
  --bg: #12091c;
  --bg-2: #140a1e;
  --surface: #1a0f2a;
  --surface-2: #241536;
  --surface-3: #2c1a42;
  --line: #37214e;
  --line-soft: #2a1a3e;

  --text: #f4eefb;
  --muted: #a693c2;
  --dim: #7b6795;

  --gold: #f5b841;
  --gold-soft: #ffd67a;
  --gold-ink: #2a1a05;
  --violet: #7c5cff;
  --violet-soft: #9d84ff;
  --mint: #22a587;
  --danger: #ff5c7a;
  --warning: #e0a83c;
  --info: #4dd6ff;

  --chart-gold: #c08a1d;
  --chart-violet: #7c5cff;
  --chart-teal: #22a587;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.6);
  --shadow-soft: 0 8px 30px -12px rgba(0,0,0,.5);
  --ring: 0 0 0 3px rgba(124,92,255,.28);

  --font: 'Vazirmatn', 'Tahoma', system-ui, -apple-system, sans-serif;
  --mono: 'Space Grotesk', 'Vazirmatn', ui-monospace, monospace;

  --nav-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(124,92,255,.16), transparent 60%),
    radial-gradient(800px 500px at -10% 15%, rgba(245,184,65,.08), transparent 55%),
    radial-gradient(700px 700px at 50% 120%, rgba(34,165,135,.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

h1,h2,h3,h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--violet-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; direction: ltr; unicode-bidi: embed; }

.container { width: min(1160px, 92%); margin-inline: auto; position: relative; z-index: 1; }
.section { padding: 84px 0; position: relative; }
.section--tight { padding: 48px 0; }

/* ---------- backdrop blobs ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; pointer-events: none; z-index: 0; }

/* ---------- navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(18,9,28,.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1160px, 92%); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--gold), #e08c20); display: grid; place-items: center; color: var(--gold-ink); flex: none; }
.brand__mark svg { width: 19px; height: 19px; }

/* default size for every UI.icon() SVG; context rules above/below override it */
.ic { width: 1em; height: 1em; flex: none; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link { color: var(--muted); padding: 8px 13px; border-radius: 10px; font-weight: 500; font-size: .95rem; }
.nav__link:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav__link.active { color: var(--text); background: var(--surface-2); }
.nav__cta { display: flex; align-items: center; gap: 8px; }
.nav__burger { display: none; background: none; border: 0; color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--surface-2); --b-fg: var(--text); --b-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg);
  padding: 11px 18px; border-radius: 13px;
  font-weight: 700; font-size: .95rem; line-height: 1;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn--gold { --b-bg: var(--gold); --b-fg: var(--gold-ink); --b-bd: var(--gold); }
.btn--gold:hover { box-shadow: 0 10px 30px -8px rgba(245,184,65,.5); }
.btn--violet { --b-bg: var(--violet); --b-fg: #fff; --b-bd: var(--violet); }
.btn--violet:hover { box-shadow: 0 10px 30px -8px rgba(124,92,255,.5); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--text); --b-bd: var(--line); }
.btn--ghost:hover { --b-bd: var(--violet); color: var(--violet-soft); }
.btn--danger { --b-bg: transparent; --b-fg: var(--danger); --b-bd: rgba(255,92,122,.4); }
.btn--danger:hover { background: rgba(255,92,122,.12); }
.btn--sm { padding: 8px 13px; font-size: .85rem; border-radius: 10px; }
.btn--lg { padding: 15px 26px; font-size: 1.05rem; border-radius: 15px; }
.btn--block { width: 100%; }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.card--glow { box-shadow: var(--shadow-soft); }
.card__pad { padding: 26px; }

/* ---------- stat tiles ---------- */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.stat__value { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; letter-spacing: -.01em; direction: ltr; }
.stat__sub { font-size: .8rem; color: var(--dim); }
.stat--accent .stat__value { color: var(--gold); }

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

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.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: .8rem; font-weight: 700; letter-spacing: .02em;
  color: var(--gold); text-transform: uppercase;
  padding: 6px 13px; border: 1px solid rgba(245,184,65,.3);
  border-radius: 999px; background: rgba(245,184,65,.06);
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(34,165,135,.2); animation: blink 1.8s infinite; }
.hero__title { margin: 20px 0 18px; }
.hero__title .accent { color: var(--gold); }
.hero__lead { color: var(--muted); font-size: 1.1rem; max-width: 52ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.trust { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--muted); padding: 7px 12px; border: 1px solid var(--line-soft); border-radius: 999px; background: rgba(26,15,42,.5); }
.trust svg { width: 14px; height: 14px; color: var(--mint); }

/* heartbeat visual */
.heartbeat {
  position: relative; aspect-ratio: 1 / 1; max-width: 460px; margin-inline: auto;
  display: grid; place-items: center;
}
.heartbeat__rings { position: absolute; inset: 0; }
.ring { position: absolute; inset: 0; border: 1px solid rgba(124,92,255,.25); border-radius: 50%; animation: ripple 4.5s ease-out infinite; }
.ring:nth-child(2) { animation-delay: 1.5s; }
.ring:nth-child(3) { animation-delay: 3s; }
.heartbeat__core {
  position: relative; z-index: 2;
  width: 68%; aspect-ratio: 1/1; border-radius: 24px;
  background: radial-gradient(circle at 30% 25%, var(--surface-3), var(--surface));
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
}
.heartbeat__label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.heartbeat__block { font-family: var(--mono); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--gold); direction: ltr; letter-spacing: .02em; }
.heartbeat__bar { display: flex; gap: 3px; align-items: flex-end; height: 34px; }
.heartbeat__bar i { width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--gold), var(--violet)); animation: equalize 1.2s ease-in-out infinite; }
.heartbeat__bar i:nth-child(1){height:40%;animation-delay:0s}
.heartbeat__bar i:nth-child(2){height:70%;animation-delay:.15s}
.heartbeat__bar i:nth-child(3){height:100%;animation-delay:.3s}
.heartbeat__bar i:nth-child(4){height:55%;animation-delay:.45s}
.heartbeat__bar i:nth-child(5){height:80%;animation-delay:.6s}
.heartbeat__bar i:nth-child(6){height:45%;animation-delay:.75s}
.heartbeat__bar i:nth-child(7){height:65%;animation-delay:.9s}
.heartbeat__meta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- section headers ---------- */
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head--left { margin: 0 0 36px; text-align: start; }
.section-head__eyebrow { color: var(--violet-soft); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.section-head__title { margin-top: 10px; }
.section-head__desc { color: var(--muted); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; }
.step__num { font-family: var(--mono); font-size: 2.4rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--violet); opacity: .9; }
.step__title { margin: 8px 0 6px; font-size: 1.1rem; }
.step__desc { color: var(--muted); font-size: .95rem; }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plan { display: flex; flex-direction: column; }
.plan--featured { border-color: var(--gold); background: linear-gradient(180deg, #2a1c12, var(--bg-2)); box-shadow: 0 20px 50px -20px rgba(245,184,65,.35); }
.plan__badge { position: absolute; top: -11px; inset-inline-start: 20px; background: var(--gold); color: var(--gold-ink); font-size: .72rem; font-weight: 800; padding: 3px 11px; border-radius: 999px; }
.plan__name { font-size: 1.1rem; font-weight: 800; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 2px; }
.plan__price .amount { font-family: var(--mono); font-size: 2.2rem; font-weight: 700; direction: ltr; }
.plan__price .per { color: var(--dim); font-size: .85rem; }
.plan__desc { color: var(--muted); font-size: .85rem; min-height: 2.6em; }
.plan__features { list-style: none; padding: 0; margin: 14px 0 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan__features li { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.plan__features svg { width: 16px; height: 16px; color: var(--mint); flex: none; margin-top: 3px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--muted); }
.input {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); padding: 12px 14px; font-size: .98rem; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,92,255,.18); }
.input--mono { font-family: var(--mono); direction: ltr; text-align: left; }
textarea.input { resize: vertical; min-height: 90px; }
.form-msg { font-size: .85rem; min-height: 1.3em; margin-bottom: 12px; }
.form-msg--err { color: var(--danger); }
.form-msg--ok { color: var(--mint); }
.auth-card { max-width: 440px; margin-inline: auto; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: start; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
th { color: var(--muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; background: var(--surface); position: sticky; top: 0; }
td { color: var(--text); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(124,92,255,.04); }
.mono-cell { font-family: var(--mono); direction: ltr; text-align: left; font-size: .85rem; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.badge--mint { background: rgba(34,165,135,.14); color: #4ce0bc; }
.badge--gold { background: rgba(245,184,65,.14); color: var(--gold-soft); }
.badge--violet { background: rgba(124,92,255,.16); color: var(--violet-soft); }
.badge--danger { background: rgba(255,92,122,.14); color: #ff8ba0; }
.badge--muted { background: rgba(123,103,149,.16); color: var(--muted); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-soft); margin-bottom: 20px; overflow-x: auto; }
.tab { background: none; border: 0; color: var(--muted); padding: 12px 16px; font-weight: 700; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- toast ---------- */
.toast-wrap { position: fixed; bottom: 20px; inset-inline-start: 50%; transform: translateX(50%); z-index: 100; display: flex; flex-direction: column; gap: 10px; width: min(420px, 92vw); }
.toast { background: var(--surface-3); border: 1px solid var(--line); border-radius: 13px; padding: 13px 16px; display: flex; align-items: flex-start; gap: 11px; box-shadow: var(--shadow); animation: slideUp .25s ease; }
.toast--ok { border-color: rgba(34,165,135,.5); }
.toast--err { border-color: rgba(255,92,122,.5); }
.toast__icon { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.toast--ok .toast__icon { color: #4ce0bc; }
.toast--err .toast__icon { color: #ff8ba0; }
.toast__msg { font-size: .9rem; line-height: 1.5; }

/* ---------- modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8,4,14,.7); backdrop-filter: blur(4px); z-index: 90; display: grid; place-items: center; padding: 20px; animation: fadeIn .2s ease; }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow); }

/* ---------- misc ---------- */
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .85rem; }
.mono { font-family: var(--mono); direction: ltr; }
.mt { margin-top: 18px; } .mt-lg { margin-top: 32px; }
.mb { margin-bottom: 18px; }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line-soft); margin: 24px 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); font-size: .92rem; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 700; text-align: end; }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--text); border-color: var(--violet); }
.copyable { display: inline-flex; align-items: center; gap: 8px; }
.pill-num { font-family: var(--mono); direction: ltr; background: var(--surface-2); border: 1px solid var(--line-soft); padding: 2px 9px; border-radius: 8px; font-size: .82rem; }
.empty { text-align: center; color: var(--dim); padding: 40px 20px; }
.empty svg { width: 40px; height: 40px; margin-bottom: 12px; color: var(--line); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 13px; font-size: .92rem; margin-bottom: 18px; }
.alert--info { background: rgba(77,214,255,.08); border: 1px solid rgba(77,214,255,.28); color: #bfeeff; }
.alert--warn { background: rgba(224,168,60,.08); border: 1px solid rgba(224,168,60,.3); color: #ffe1a1; }
.alert--ok { background: rgba(34,165,135,.08); border: 1px solid rgba(34,165,135,.3); color: #9cf0d8; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.spin { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; margin: 30px auto; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; min-height: 18px; }

.chart-box { position: relative; width: 100%; }
.chart-tooltip { position: absolute; pointer-events: none; background: var(--surface-3); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: .82rem; box-shadow: var(--shadow); opacity: 0; transition: opacity .12s; z-index: 5; direction: rtl; }
.chart-tooltip .tt-title { color: var(--muted); font-size: .75rem; margin-bottom: 3px; }
.chart-tooltip .tt-val { font-family: var(--mono); direction: ltr; font-weight: 700; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.legend__item { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--muted); }
.legend__swatch { width: 11px; height: 11px; border-radius: 3px; }

.footer { border-top: 1px solid var(--line-soft); padding: 48px 0 32px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.footer a { display: block; color: var(--dim); font-size: .9rem; padding: 4px 0; }
.footer a:hover { color: var(--text); }
.footer__bottom { border-top: 1px solid var(--line-soft); margin-top: 36px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--dim); font-size: .82rem; }

/* ---------- animations ---------- */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }
@keyframes ripple { 0%{transform:scale(.55);opacity:.7} 100%{transform:scale(1.25);opacity:0} }
@keyframes equalize { 0%,100%{transform:scaleY(.6)} 50%{transform:scaleY(1)} }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes slideUp { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.reveal { animation: fadeUp .6s ease both; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid--stats { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .heartbeat { max-width: 380px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; place-items: center; }
  .nav__cta .btn--ghost { display: none; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding-top: 44px; }
  .footer__grid { grid-template-columns: 1fr; }
}
.nav__links.open { display: flex; position: absolute; top: var(--nav-h); inset-inline: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line-soft); padding: 12px 20px 20px; }
