/* ConnectChi website — same design tokens as the desktop app
   (client/desktop/frontend/src/style.css). RTL first: logical properties only. */
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap; src: url("fonts/Vazirmatn-Regular.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-display: swap; src: url("fonts/Vazirmatn-Medium.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-display: swap; src: url("fonts/Vazirmatn-Bold.woff2") format("woff2"); }

:root {
  --bg: #0a0d13;
  --surface: #11161f;
  --surface-2: #171e2a;
  --surface-3: #1e2736;
  --border: #232d3f;
  --border-strong: #2f3b52;
  --text: #e8eef7;
  --muted: #8794aa;
  --faint: #5d6a80;
  --accent: #2de2a6;
  --accent-ink: #04231a;
  --accent-soft: rgba(45, 226, 166, 0.12);
  --blue: #5b8cff;
  --warn: #f5b942;
  --danger: #ff5d6c;
  --radius: 14px;
  --font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --mono: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.9 var(--font); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
html, body { overflow-x: clip; }
.hero .wrap > *, .grid3 > *, .steps > *, .uses > * { min-width: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; font-family: var(--mono); }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 20; background: rgba(10, 13, 19, .8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand svg { width: 28px; height: 28px; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav .btn { margin-inline-start: 8px; }
.peer .name.off { color: var(--muted); }
.nav a { padding: 6px 14px; border-radius: 8px; color: var(--muted); font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px;
  border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-3); color: var(--text);
  font: 500 15px var(--font); cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: #263247; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn.primary:hover { background: #55f0bd; }
.btn.lg { height: 50px; padding: 0 28px; font-size: 16px; }
.btn.sm { height: 36px; padding: 0 16px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px;
  background: radial-gradient(700px 360px at 80% 0%, rgba(45, 226, 166, .12), transparent 70%),
              radial-gradient(500px 300px at 10% 30%, rgba(91, 140, 255, .08), transparent 70%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 500; margin-bottom: 20px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.35; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--faint); }

/* app mock */
.mock { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(45, 226, 166, .06); overflow: hidden; direction: rtl; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.mock-bar span { margin-inline-start: auto; font-size: 12px; color: var(--muted); }
.mock-body { padding: 18px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mock-head b { font-size: 17px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--accent-soft); color: var(--accent); }
.badge.blue { background: rgba(91, 140, 255, .14); color: var(--blue); }
.peer { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--border); font-size: 14px; }
.peer .name { flex: 1; }
.peer .ip { color: var(--muted); font-size: 12.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.on { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.mock-foot { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.power { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent); box-shadow: 0 0 14px rgba(45, 226, 166, .35); }
.power svg { width: 17px; height: 17px; }
.mock-foot small { color: var(--muted); display: block; line-height: 1.5; }

/* ---------- sections ---------- */
section { padding: 80px 0; }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 700; line-height: 1.5; }
.sec-head p { color: var(--muted); margin-top: 8px; max-width: 620px; margin-inline: auto; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.alt { background: linear-gradient(var(--surface), var(--bg)); border-block: 1px solid var(--border); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.step::before { counter-increment: s; content: counter(s, persian); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15px; }

.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.use { padding: 20px; border-radius: var(--radius); border: 1px dashed var(--border-strong); }
.use b { display: block; margin-bottom: 4px; }
.use span { color: var(--muted); font-size: 14px; }

.final { text-align: center; }
.final .box { padding: 56px 24px; border-radius: 20px; border: 1px solid var(--border-strong);
  background: radial-gradient(500px 220px at 50% 0%, rgba(45, 226, 166, .14), transparent 70%), var(--surface); }
.final h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 8px; }
.final p { color: var(--muted); margin-bottom: 24px; }
.final .cta { justify-content: center; margin-top: 0; }

/* ---------- pricing ---------- */
.page-title { padding: 72px 0 8px; text-align: center; }
.page-title h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 700; }
.page-title p { color: var(--muted); margin-top: 8px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; padding: 40px 0 8px; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.plan.free { border-color: rgba(45, 226, 166, .45); box-shadow: 0 0 40px rgba(45, 226, 166, .08); }
.plan.enterprise { border-color: rgba(91, 140, 255, .55); box-shadow: 0 0 40px rgba(91, 140, 255, .12); background: linear-gradient(180deg, rgba(91, 140, 255, .08), transparent 40%), var(--surface); }
.plan h3 { font-size: 20px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: 38px; line-height: 1.3; font-weight: 700; }
.price small { color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; color: var(--muted); font-size: 15px; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 6px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232de2a6' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center/12px no-repeat; }
.plan .btn { width: 100%; }
/* Features a plan does not include (the free plan's premium rows): dimmed, with a neutral dot instead of a check. */
.plan li.off { opacity: .5; }
.plan li.off::before { background: var(--surface-3); }
.plans-note { text-align: center; color: var(--muted); font-size: 14px; margin: 18px auto 0; max-width: 720px; }
/* Free vs paid comparison on /pricing */
.compare-wrap { overflow-x: auto; max-width: 820px; margin: 0 auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--border); }
.compare thead th { color: var(--muted); font-weight: 600; font-size: 13px; background: var(--bg); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td:nth-child(n+2), .compare th:nth-child(n+2) { text-align: center; white-space: nowrap; }
.compare .yes { color: var(--accent); font-weight: 700; }
.compare .no { color: var(--faint); }
.trial-box { display: grid; gap: 6px; max-width: 820px; margin: 24px auto 0; padding: 18px 22px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(45, 226, 166, .35); color: var(--muted); }
.trial-box b { color: var(--accent); font-size: 16px; }
.skeleton { min-height: 300px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: sh 1.4s infinite; border: 1px solid var(--border); border-radius: 18px; }
@keyframes sh { to { background-position: -200% 0; } }
.state { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--muted); }
.state .btn { margin-top: 14px; }
.notice { margin: 24px 0 0; padding: 14px 18px; border-radius: 12px; background: rgba(245, 185, 66, .1); color: var(--warn); font-size: 14px; }
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; }
summary { cursor: pointer; padding: 14px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1.4; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding-bottom: 16px; }
summary::-webkit-details-marker { display: none; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--faint); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer nav { display: flex; gap: 18px; }
/* Row 1: text, links, eNAMAD seal (last = left edge in RTL). Row 2: social links. */
.footer .enamad { order: 1; }
.footer .social { order: 2; flex-basis: 100%; }
.footer .enamad img { height: 80px; width: auto; display: block; cursor: pointer; }
.footer a:hover { color: var(--text); }
/* Social links (templates/fragments/layout.html): pills with an icon and the Persian name. */
.footer .social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer .social a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--muted); }
.footer .social a:hover { border-color: var(--border-strong); color: var(--accent); }
.footer .social svg { width: 16px; height: 16px; flex-shrink: 0; }
/* Brand logo used instead of the generic glyph + name (Eitaa's logo is white and already contains its name). */
.footer .social .social-logo { height: 20px; width: auto; display: block; opacity: .75; }
.footer .social a:hover .social-logo { opacity: 1; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid3, .steps { grid-template-columns: 1fr 1fr; }
  .uses { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  .grid3, .steps, .uses { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- auth forms (login / register / verify) ---------- */
.auth { padding: 72px 0; }
.form-card { max-width: 420px; margin-inline: auto; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.form-card h1 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.form-card .topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.form-card .topbar h1 { margin-bottom: 0; }
.account-info p { margin-bottom: 8px; }
.form-card-stacked { margin-top: 24px; }
.form-card > .muted { margin-bottom: 24px; }
.form-card form { display: grid; gap: 18px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.field input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); box-sizing: border-box;
}
.field textarea {
  width: 100%; min-height: 140px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--text); font: 15px/1.7 var(--font); box-sizing: border-box; resize: vertical;
}
.field textarea:focus { outline: none; border-color: var(--accent); }
.field.has-error textarea { border-color: var(--danger); }
.field input:focus { outline: none; border-color: var(--accent); }
/* Contact page (templates/contact.html) */
.contact-card { max-width: 560px; }
.contact-primary { display: grid; gap: 6px; margin: 4px 0 26px; padding: 18px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); text-align: center; }
.contact-email { font-size: 22px; font-weight: 700; color: var(--accent); word-break: break-all; }
.notice.ok { background: var(--accent-soft); color: var(--accent); }
.error-box a { color: inherit; text-decoration: underline; font-weight: 600; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot: off-screen, not display:none (bots skip those less often) */
.field.has-error input { border-color: var(--danger); }
.field .error { margin-top: 6px; font-size: 13px; color: var(--danger); }
.field.has-error .error { display: block; }
.code-input { letter-spacing: 6px; text-align: center; font: 600 20px/1.5 var(--mono); }
.error-box { padding: 12px 16px; border-radius: 12px; background: rgba(255, 93, 108, .12); color: var(--danger); font-size: 14px; margin-bottom: 18px; }
.error-box p { margin: 0; }
.error-box p + p { margin-top: 4px; }
.notice a { color: inherit; text-decoration: underline; font-weight: 600; }
.form-card .btn { width: 100%; }
.btn.link { background: none; border: none; height: auto; padding: 0; color: var(--muted); font-size: 14px; text-decoration: underline; }
.btn.link:hover { background: none; color: var(--text); }
.inline-form { margin-top: 18px; text-align: center; }
.auth-switch { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--accent); font-weight: 600; }

/* "How direct connection works" diagram (templates/index.html #how-it-works). Colours via classes, since the
   page CSP blocks inline style attributes; SVG presentation is entirely CSS-driven. */
.diagram { margin: 0 auto 36px; max-width: 760px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram text { font-family: inherit; }
.d-node { fill: var(--bg); stroke: var(--border-strong); stroke-width: 1.5; }
.d-device { stroke: var(--accent); }
.d-relay-node { stroke: #f5b942; }
.d-label { fill: var(--text); font-size: 15px; font-weight: 600; }
.d-sub { fill: var(--muted); font-size: 12px; }
.d-line { fill: none; stroke-width: 2; stroke-linecap: round; }
.d-stun { stroke: var(--muted); stroke-dasharray: 4 5; }
.d-direct { stroke: var(--accent); stroke-width: 4; }
.d-relay { stroke: #f5b942; stroke-dasharray: 8 6; }
.d-tag { font-size: 13px; font-weight: 600; }
.d-tag-direct { fill: var(--accent); }
.d-tag-relay { fill: #f5b942; }
#how-it-works .steps { margin-bottom: 24px; }
/* The shared teaser (templates/fragments/how-it-works.html): a short paragraph and one centred button. */
.teaser-cta { justify-content: center; margin-top: -16px; }

/* Landing pages (hamachi-alternative, radmin-vpn-alternative): a hero without the mock-up column. */
.hero.single .wrap { grid-template-columns: 1fr; }
.hero.single p.lead { max-width: 720px; }
.hero-note.center { text-align: center; margin-top: 24px; }
.hero-note a { color: var(--accent); text-decoration: underline; }

/* FAQ on the home page (templates/index.html): native <details>, no script needed. */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] { border-color: var(--border-strong); }
.faq details p { color: var(--muted); margin: 0 0 16px; line-height: 1.9; }

.plan li.dns { color: var(--text); }
.plan li.dns::before { background-color: rgba(91, 140, 255, .16); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b8cff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>"); }
.plan.enterprise .btn { border-color: var(--blue); color: var(--blue); }

/* Long-form guides (counter-strike-server-guide): a readable column with a table of contents. */
.article { max-width: 760px; margin-inline: auto; }
.article h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; line-height: 1.6; margin: 40px 0 12px; scroll-margin-top: 80px; }
.article h3 { font-size: 18px; margin: 24px 0 6px; }
.article p { color: var(--muted); margin-bottom: 14px; }
.article p strong { color: var(--text); }
.article ul, .article ol { color: var(--muted); padding-inline-start: 22px; margin: 0 0 14px; }
.article li { margin-bottom: 6px; }
.article a { color: var(--accent); text-decoration: underline; }
.article .toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 8px; }
.article .toc ol { margin: 8px 0 0; }
.article .toc a { text-decoration: none; }
.article pre.ltr-block { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin: 0 0 14px; overflow-x: auto; text-align: left; font-family: var(--mono); font-size: 15px; }
.article .callout { background: var(--accent-soft); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; }
.article .callout p { margin: 4px 0 0; }
.uses.two { grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
@media (max-width: 600px) { .uses.two { grid-template-columns: 1fr; } }

/* ---------- site menu: dropdown on wide screens, hamburger panel on narrow ones (CSS only, no script) ---------- */
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-burger { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin-inline-start: auto; border: 1px solid var(--border); border-radius: 10px; color: var(--text); cursor: pointer; }
.nav-burger svg { width: 22px; height: 22px; }
.nav-burger .ic-close, .nav-toggle:checked + .nav-burger .ic-open { display: none; }
.nav-toggle:checked + .nav-burger .ic-close { display: block; }
.nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-dd { position: relative; }
.nav-dd-btn { display: flex; align-items: center; gap: 4px; padding: 6px 14px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; }
.nav-dd-btn svg { width: 16px; height: 16px; }
.nav-dd:hover .nav-dd-btn, .nav-dd:focus-within .nav-dd-btn { color: var(--text); background: var(--surface-2); }
.nav-dd-panel { display: none; position: absolute; top: 100%; inset-inline-end: 0; z-index: 30; width: 660px; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.nav-dd:hover .nav-dd-panel, .nav-dd:focus-within .nav-dd-panel { display: grid; }
.nav-col { display: flex; flex-direction: column; gap: 2px; }
.nav-col b { padding: 4px 14px; color: var(--faint); font-size: 12px; font-weight: 500; }
.nav .nav-col a { padding: 6px 14px; font-size: 14px; }
@media (max-width: 960px) {
  .nav-burger { display: flex; }
  .nav { display: none; position: absolute; top: 64px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 2px; max-height: calc(100vh - 64px); overflow-y: auto; padding: 12px 20px 20px; background: var(--surface); border-bottom: 1px solid var(--border-strong); }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a, .nav-dd-btn { padding: 10px 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .nav-dd-btn { pointer-events: none; color: var(--text); font-weight: 700; }
  .nav-dd-btn svg { display: none; }
  .nav-dd-panel { display: grid; position: static; width: auto; grid-template-columns: 1fr; padding: 0 0 8px; border: 0; box-shadow: none; background: none; }
}
