:root {
  --bg: #f4f2ee;
  --panel: #ffffff;
  --panel-2: #faf9f6;
  --border: #e6e2da;
  --text: #1c1c1c;
  --headline: #16202c;
  --muted: #6f6b63;
  --accent: #fb4f1f;
  --accent-2: #d9450f;
  --success: #1f7a4c;
  --danger: #c23b2e;
  --warn: #b5790a;
  --dark: #14171c;
  --dark-panel: #1c2028;
  --dark-border: #2f3540;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0d; --panel: #141416; --panel-2: #18181b; --border: #262629;
    --text: #f1efe9; --headline: #f6f3ec; --muted: #9b968c;
    --accent: #ff8a3d; --accent-2: #ffa666;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0d; --panel: #141416; --panel-2: #18181b; --border: #262629;
  --text: #f1efe9; --headline: #f6f3ec; --muted: #9b968c;
  --accent: #ff8a3d; --accent-2: #ffa666;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  overflow-x: hidden;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  transition: background 0.2s ease, color 0.2s ease;
}

h1, h2, h3, .logo { font-family: "Bricolage Grotesque", "Work Sans", sans-serif; letter-spacing: -0.015em; color: var(--headline); font-weight: 700; }
code, .mono, input { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
a { color: inherit; }
img, svg { display: block; }

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

/* ---------- header / nav ---------- */

body { padding-top: 88px; }
.site-header {
  position: fixed; top: 16px; left: 0; right: 0; margin: 0 auto; z-index: 30;
  width: calc(100% - 32px); max-width: 1120px;
  border: 1px solid var(--border); border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px -14px rgba(0,0,0,0.16);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; text-decoration: none; color: var(--text) !important; flex-shrink: 0; }
.logo span { color: var(--accent); }
.logo svg { width: 24px; height: 24px; color: var(--accent); }
.nav-divider { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }
.nav-tron { display: flex; align-items: center; gap: 7px; flex-shrink: 0; font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); white-space: nowrap; font-family: "Work Sans", sans-serif; }
.nav-tron img { border-radius: 50%; flex-shrink: 0; opacity: 0.85; }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; font-family: "Work Sans", sans-serif; }
.nav-link {
  color: var(--muted); text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 6px;
  background: none; border: none; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 5px;
}
.nav-link:hover { color: var(--text); }
.nav-link svg:not(.chev) { width: 14px; height: 14px; flex-shrink: 0; color: var(--accent); }
.nav-item { position: relative; }
.nav-item .chev { width: 10px; height: 10px; transition: transform 0.15s; }
.nav-item.open .chev { transform: rotate(180deg); }

.dropdown-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px 28px; display: grid; grid-template-columns: repeat(3, 210px); gap: 22px 32px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.18);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
}
.nav-item.open .dropdown-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-col { min-width: 0; }
.dd-eyebrow { display: flex; align-items: center; gap: 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 12px; font-family: "Work Sans", sans-serif; }
.dd-eyebrow svg { width: 13px; height: 13px; color: var(--accent); flex-shrink: 0; }
.dd-item { display: flex; flex-direction: column; gap: 2px; text-decoration: none; margin-bottom: 14px; min-width: 0; }
.dd-item .t { color: var(--text); font-size: 14px; font-weight: 600; font-family: "Work Sans", sans-serif; }
.dd-item .d { color: var(--muted); font-size: 12.5px; line-height: 1.4; font-family: "Work Sans", sans-serif; }
.dd-item:hover .t { color: var(--accent); }
.dd-viewall { display: block; color: var(--accent); text-decoration: none; font-size: 12.5px; font-weight: 600; font-family: "Work Sans", sans-serif; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-live { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); flex-shrink: 0; cursor: default; font-family: "Work Sans", sans-serif; }
.nav-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.nav-live-dot.pulse { animation: nav-live-pulse 0.6s ease-out; }
@keyframes nav-live-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 55%, transparent); } 100% { box-shadow: 0 0 0 6px transparent; } }
.nav-utils { display: flex; align-items: center; gap: 2px; border: 1px solid var(--border); background: var(--panel-2); border-radius: 999px; padding: 3px; }
.nav-utils-divider { width: 1px; height: 16px; background: var(--border); flex-shrink: 0; }
.lang-switch { border: none; background: none; padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 13px; font-family: "Work Sans", sans-serif; }
.lang-switch:hover { color: var(--accent); }
.nav-cta { background: var(--accent); color: #fff; text-decoration: none; padding: 9px 17px; border-radius: 999px; font-size: 13.5px; font-weight: 600; font-family: "Work Sans", sans-serif; transition: background 0.15s var(--ease-out), transform 0.15s var(--ease-out); display: inline-block; }
.nav-cta:hover { background: var(--accent-2); }
.nav-cta:active { transform: scale(0.95); }

.nav-mobile-actions { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 8px; cursor: pointer; position: relative; z-index: 26; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
body.nav-open { overflow: hidden; }

.theme-toggle { width: 28px; height: 28px; border-radius: 999px; border: none; background: none; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.theme-toggle:hover { color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
}

.hero-live-strip { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; position: relative; z-index: 1; }
.network-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: 12.5px; color: var(--muted); font-family: "Work Sans", sans-serif; font-variant-numeric: tabular-nums; }
.network-badge img { width: 18px; height: 18px; border-radius: 50%; }
.network-badge img.pulse { animation: badge-pulse 0.6s ease-out; }
.network-badge svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.price-change.up { color: var(--success); font-weight: 600; }
.price-change.down { color: var(--danger); font-weight: 600; }
@keyframes badge-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 55%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }


.hero { position: relative; z-index: 0; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); z-index: -1; opacity: 0.22; pointer-events: none; }
.hero::before { width: 380px; height: 380px; background: var(--accent); top: -100px; left: -80px; }
.hero::after { width: 320px; height: 320px; background: var(--accent-2); top: 60px; right: -100px; }
.float-icon { position: absolute; border-radius: 16px; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 28px -10px rgba(22,32,44,0.28); background: var(--panel); border: 1px solid var(--border); }
.float-icon svg { width: 50%; height: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .float-icon { animation: float-bob 5s ease-in-out infinite; }
}
@keyframes float-bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--r, 0deg)); } }

/* ---------- hero ---------- */

.hero { padding: 72px 0 44px; text-align: center; max-width: 1180px; margin: 0 auto; }
.hero h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.14; margin: 0 0 18px; font-weight: 700; }
.hero h1 .accent-word { color: var(--accent); }
.hero-copy p { color: var(--muted); margin: 0 0 32px; font-size: 17px; max-width: 48ch; font-family: "Work Sans", sans-serif; }

/* ---------- hero grid (copy + live demo panel) ---------- */

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; text-align: left; margin-top: 10px; }
.hero-copy { max-width: 540px; }
.hero-copy .check-form { margin: 0; }
.hero-copy .trust-row { justify-content: flex-start; margin-left: 0; }
.hero-grid .hero-demo { box-shadow: 0 28px 64px -22px rgba(0,0,0,0.4); }
.hero-result { max-width: none; margin-top: 24px; text-align: left; animation: hero-result-in 0.3s var(--ease-out); }
@keyframes hero-result-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-result { animation: none; }
}

.check-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.check-form input {
  flex: 1; color: var(--text);
  padding: 13px 16px; border-radius: 7px; font-size: 14px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    conic-gradient(from var(--border-angle), var(--border), var(--border) 78%, var(--accent) 87%, var(--border) 96%) border-box;
  transition: box-shadow 0.2s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .check-form input { animation: border-spin 5s linear infinite; }
}
@keyframes border-spin { to { --border-angle: 360deg; } }
.check-form input:focus { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.check-form button {
  background: var(--accent); color: #fff; border: none; padding: 13px 24px; border-radius: 7px;
  font-weight: 600; cursor: pointer; font-size: 14.5px; font-family: "Work Sans", sans-serif;
  transition: background 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}
.check-form button:hover { background: var(--accent-2); }
.check-form button:active { transform: scale(0.96); }
.check-form button:disabled { opacity: 0.5; cursor: not-allowed; }

.loading:not([hidden]) { margin-top: 18px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 14px; font-family: "Work Sans", sans-serif; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: spin 0.7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.error {
  margin: 18px auto 0; background: #fdeeec; border: 1px solid var(--danger); color: #7a2419;
  padding: 13px 15px; border-radius: 7px; max-width: 480px; font-size: 13.5px; text-align: left; font-family: "Work Sans", sans-serif;
}

.trust-row { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.trust-badge { font-size: 12.5px; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 7px 13px; font-family: "Work Sans", sans-serif; }
.trust-badge svg { width: 13px; height: 13px; color: var(--success); flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
  .trust-badge svg { animation: badge-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
  .trust-badge:nth-child(2) svg { animation-delay: 0.08s; }
  .trust-badge:nth-child(3) svg { animation-delay: 0.16s; }
}
@keyframes badge-pop { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

#result.result, #error.error { text-align: left; margin-left: auto; margin-right: auto; }

/* ---------- stat row ---------- */

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 52px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: 0 16px 40px -24px rgba(0,0,0,0.18); }
.stat { position: relative; padding: 22px 16px; text-align: center; }
.stat-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; color: var(--accent); }
.stat-icon svg { width: 16px; height: 16px; }
.stat:not(:first-child)::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: linear-gradient(to bottom, transparent, var(--border), transparent); }
.stat .n { font-size: 26px; font-weight: 700; color: var(--headline); font-family: "Bricolage Grotesque", sans-serif; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12.5px; color: var(--muted); margin-top: 4px; font-family: "Work Sans", sans-serif; }

/* ---------- diagram section ---------- */

.diagram-section { padding: 64px 0; }
.diagram-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.diagram-eyebrow { color: var(--accent); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-family: "IBM Plex Mono", monospace; margin-bottom: 10px; }
.diagram-copy h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.2; margin: 0 0 16px; font-weight: 700; }
.diagram-copy p { color: var(--muted); font-size: 15.5px; max-width: 42ch; font-family: "Work Sans", sans-serif; }

.diagram { position: relative; height: 320px; }
.diagram svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.diagram-pill { position: absolute; display: flex; align-items: center; gap: 7px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-family: "IBM Plex Mono", monospace; color: var(--text); box-shadow: 0 6px 16px -8px rgba(22,32,44,0.15); }
.diagram-pill svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.diagram-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; background: var(--panel); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.diagram-center svg { width: 30px; height: 30px; color: var(--accent); }

.diagram svg.lines path { opacity: 0.6; }
@media (prefers-reduced-motion: no-preference) {
  .diagram-center { animation: pulse-ring 2.2s ease-in-out infinite; }
  .diagram-pill { animation: pill-bob 4s ease-in-out infinite; }
  .diagram-pill:nth-child(3) { animation-delay: 0.3s; }
  .diagram-pill:nth-child(4) { animation-delay: 0.9s; }
  .diagram-pill:nth-child(5) { animation-delay: 0.6s; }
}
@media (prefers-reduced-motion: reduce) {
  .diagram svg.lines circle { display: none; }
}
@keyframes pulse-ring { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 30%, transparent); } 50% { box-shadow: 0 0 0 12px transparent; } }
@keyframes pill-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }

/* ---------- hero demo panel (follows the page theme — light on light, dark on dark) ---------- */

.hero-demo { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; position: relative; color: var(--text); box-shadow: 0 24px 60px -28px rgba(0,0,0,0.28); }
.hero-demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--panel-2); position: relative; }
.hero-demo-bar span { width: 9px; height: 9px; border-radius: 50%; }
.hero-demo-bar span:nth-child(1) { background: #ff5f57; }
.hero-demo-bar span:nth-child(2) { background: #febc2e; }
.hero-demo-bar span:nth-child(3) { background: #28c840; }
.hero-demo-bar .path { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); line-height: 1; font-family: "IBM Plex Mono", monospace; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.hero-demo-body { padding: 18px; }
.hero-demo-input { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 9px 11px; margin-bottom: 14px; word-break: break-all; }

.hero-demo .result { background: none; border: none; padding: 0; margin: 0; max-width: none; }

.result { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 22px 24px; max-width: 640px; margin-top: 18px; }
.result h3 { margin-top: 0; font-size: 16px; font-family: "Work Sans", sans-serif; font-weight: 600; }

.result.hero-result {
  max-width: 900px; width: 100%; padding: 40px 44px; border-radius: 20px; position: relative;
  box-shadow: 0 36px 90px -32px rgba(0,0,0,0.4);
}
.hero-result::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--border);
  border-radius: 20px 20px 0 0;
}
.hero-result::after {
  content: ""; position: absolute; z-index: -1; top: -70px; left: 50%; transform: translateX(-50%);
  width: 60%; height: 160px; background: var(--result-glow, transparent); filter: blur(70px); opacity: 0.7; pointer-events: none;
}
.hero-result.ok { --result-glow: rgba(52, 199, 129, 0.35); }
.hero-result.ok::before { background: var(--success); }
.hero-result.warn { --result-glow: rgba(240, 194, 86, 0.35); }
.hero-result.warn::before { background: var(--warn); }
.hero-result.danger { --result-glow: rgba(255, 110, 90, 0.38); }
.hero-result.danger::before { background: var(--danger); }

.verdict-banner { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 14px; font-size: 15px; font-weight: 700; margin-bottom: 22px; font-family: "Work Sans", sans-serif; }
.verdict-banner svg { width: 20px; height: 20px; flex-shrink: 0; }
.verdict-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,0.06); flex-shrink: 0; }
.verdict-banner.ok { background: #e6f5ec; color: var(--success); }
.verdict-banner.warn { background: #fbf0da; color: var(--warn); }
.verdict-banner.danger { background: #fbeae7; color: var(--danger); }
.verdict-banner.ok .verdict-icon { background: rgba(52, 199, 129, 0.16); }
.verdict-banner.warn .verdict-icon { background: rgba(240, 194, 86, 0.2); }
.verdict-banner.danger .verdict-icon { background: rgba(255, 110, 90, 0.16); }
:root[data-theme="dark"] .verdict-banner.ok { background: #16311f; color: #52d68f; }
:root[data-theme="dark"] .verdict-banner.warn { background: #392c10; color: #f0c256; }
:root[data-theme="dark"] .verdict-banner.danger { background: #391710; color: #ff9686; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .verdict-banner.ok { background: #16311f; color: #52d68f; }
  :root:not([data-theme="light"]) .verdict-banner.warn { background: #392c10; color: #f0c256; }
  :root:not([data-theme="light"]) .verdict-banner.danger { background: #391710; color: #ff9686; }
}
.result-detail p { margin: 0 0 20px; color: var(--text); font-size: 15px; line-height: 1.6; font-family: "Work Sans", sans-serif; }

.perm-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 20px; }
.perm-card { border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 12px; }
.perm-cards-grid .perm-card { margin-bottom: 0; }
.perm-card:last-child { margin-bottom: 0; }
.perm-card.flagged { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.perm-card-head { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.perm-card-head svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.perm-card-head h4 { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--text); flex: 1; font-family: "Work Sans", sans-serif; }
.threshold-badge { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; font-family: "IBM Plex Mono", monospace; white-space: nowrap; }
.key-row { display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: var(--panel-2); border-radius: 7px; margin-bottom: 6px; font-size: 12.5px; }
.key-row:last-child { margin-bottom: 0; }
.key-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.key-row.flagged .key-dot { background: var(--danger); }
.key-addr { font-family: "IBM Plex Mono", monospace; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key-tag { font-size: 10.5px; font-weight: 600; color: var(--muted); flex-shrink: 0; }
.key-row.flagged .key-tag { color: var(--danger); }
.weight-pill { font-size: 10.5px; font-weight: 600; color: var(--muted); background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; font-family: "IBM Plex Mono", monospace; flex-shrink: 0; }
.result-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 13px 24px;
  background: var(--accent); color: #fff; text-decoration: none; border: none; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  font-family: "Work Sans", sans-serif; cursor: pointer; transition: background 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}
.result-cta:hover { background: var(--accent-2); }
.result-cta:active { transform: scale(0.97); }
:root[data-theme="dark"] .perm-card.flagged { border-color: color-mix(in srgb, #ff9686 40%, var(--border)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .perm-card.flagged { border-color: color-mix(in srgb, #ff9686 40%, var(--border)); }
}

/* ---------- info blocks ---------- */

.info-block { padding: 40px 0; border-top: 1px solid var(--border); }
.info-block h2 { font-size: 24px; font-weight: 700; }
.info-block p { color: var(--muted); font-family: "Work Sans", sans-serif; }
.info-block code { background: var(--panel-2); border: 1px solid var(--border); padding: 2px 6px; border-radius: 4px; font-size: 13px; color: var(--text); }

.status-list { color: var(--muted); padding-left: 0; list-style: none; font-family: "Work Sans", sans-serif; }
.status-list li { margin-bottom: 12px; padding-left: 16px; border-left: 2px solid var(--border); }
.status-list strong { color: var(--text); }

/* ---------- featured-on backlink carousel ---------- */

.featured-strip { padding: 28px 0; border-top: 1px solid var(--border); overflow: hidden; }
.featured-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); text-align: center; margin-bottom: 16px; font-family: "Work Sans", sans-serif; }
.featured-track-wrap { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.featured-track { display: flex; width: max-content; gap: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .featured-track { animation: featured-marquee 22s linear infinite; }
  .featured-track-wrap:hover .featured-track { animation-play-state: paused; }
}
@keyframes featured-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.featured-item { display: flex; align-items: center; gap: 7px; flex-shrink: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; filter: grayscale(1); opacity: 0.7; transition: filter 0.2s, opacity 0.2s, color 0.2s, border-color 0.2s; font-family: "Work Sans", sans-serif; }
.featured-item:hover { filter: grayscale(0); opacity: 1; color: var(--accent); border-color: var(--accent); }
.featured-item svg { width: 13px; height: 13px; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) {
  .featured-track-wrap { overflow-x: auto; }
  .featured-track { width: auto; }
}

/* ---------- CTA modal (connect wallet) ---------- */

body.modal-open { overflow: hidden; }
.modal-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(10,8,6,0.55); backdrop-filter: blur(3px); padding: 20px; opacity: 0; transition: opacity 0.22s var(--ease-out); }
.modal-overlay:not([hidden]) { display: flex; align-items: center; justify-content: center; }
.modal-overlay.is-open { opacity: 1; }
.modal-box { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 28px 26px 26px; box-shadow: 0 40px 80px -24px rgba(0,0,0,0.45); font-family: "Work Sans", sans-serif; transform: translateY(14px) scale(0.96); opacity: 0; transition: transform 0.3s var(--ease-out), opacity 0.22s var(--ease-out); }
.modal-overlay.is-open .modal-box { transform: translateY(0) scale(1); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-box { transition: none; }
}
.modal-close { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.modal-close:hover { color: var(--text); }
.modal-close svg { width: 15px; height: 15px; }
.modal-box h3 { margin: 0 0 6px; font-size: 19px; padding-right: 28px; }
.modal-lede { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.modal-input-row input {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  padding: 13px 16px; border-radius: 8px; font-size: 14px; font-family: inherit;
}
.modal-input-row input:focus { outline: none; border-color: var(--accent); }
.modal-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.modal-divider::before, .modal-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.wallet-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px;
  font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; text-align: center;
  font-family: inherit; transition: border-color 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}
.wallet-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.wallet-btn:active { transform: scale(0.97); }
.wallet-btn:disabled, .wallet-btn[disabled] { opacity: 1; cursor: pointer; pointer-events: auto; }
.wallet-icon, .wallet-icon svg { width: 22px; height: 22px; flex-shrink: 0; display: block; }

/* ---------- footer ---------- */

.site-footer { position: relative; overflow: hidden; padding: 56px 0 0; background: #0a0a0a; color: #cfc9be; }
.site-footer .logo { color: #f2f2f2 !important; }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr repeat(5, 1fr); gap: 28px; margin-bottom: 44px; }
.footer-brand { border-right: 1px solid #232323; padding-right: 28px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: #7a7a7a; font-size: 13px; max-width: 210px; font-family: "Work Sans", sans-serif; }
.footer-tron { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 12px; color: #7a7a7a; font-family: "Work Sans", sans-serif; }
.footer-tron img { border-radius: 50%; }
.footer-col h4 { font-size: 13px; text-transform: none; letter-spacing: 0; color: #7a7a7a; margin: 0 0 14px; font-family: "Work Sans", sans-serif; font-weight: 400; }
.footer-col ul { list-style: none; padding: 0; margin: 0; font-family: "Work Sans", sans-serif; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #d8d8d8; text-decoration: none; font-size: 13.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { position: relative; z-index: 1; padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #6a6a6a; font-size: 12.5px; font-family: "Work Sans", sans-serif; }
.footer-bottom a { color: #6a6a6a; }
.footer-watermark { font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: clamp(60px, 12vw, 160px); line-height: 1; color: #161616; text-align: center; letter-spacing: -0.01em; padding-bottom: 10px; user-select: none; white-space: nowrap; overflow: hidden; }

/* ---------- hub pages ---------- */

.hub { padding: 56px 0; max-width: 820px; margin: 0 auto; }
.hub .breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 14px; font-family: "IBM Plex Mono", monospace; }
.hub .breadcrumb a { color: var(--muted); }
.hub h1 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 10px; font-weight: 700; }
.hub .lede { color: var(--muted); font-size: 16px; margin-bottom: 32px; max-width: 60ch; font-family: "Work Sans", sans-serif; }
.hub-list { display: grid; gap: 10px; }
.hub-item { display: block; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; text-decoration: none; color: var(--text); transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out); }
.hub-item:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0,0,0,0.25); }
.hub-item:active { transform: translateY(-1px); }
.hub-item .t { font-weight: 600; font-size: 15px; margin-bottom: 4px; font-family: "Work Sans", sans-serif; color: var(--headline); }
.hub-item .d { color: var(--muted); font-size: 13.5px; font-family: "Work Sans", sans-serif; }

/* ---------- article pages ---------- */

.article { padding: 48px 0; max-width: 680px; margin: 0 auto; }
.article .breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 14px; font-family: "IBM Plex Mono", monospace; }
.article .breadcrumb a { color: var(--muted); }
.article h1 { font-size: clamp(24px, 4vw, 30px); margin-bottom: 8px; font-weight: 700; }
.article .lede { color: var(--muted); font-size: 16px; margin-bottom: 26px; font-family: "Work Sans", sans-serif; }
.article section { margin-bottom: 24px; }
.article h2 { font-size: 19px; font-weight: 700; }
.article p { color: var(--text); max-width: 65ch; font-family: "Work Sans", sans-serif; }
.article .cta-box { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 4px; padding: 18px 20px; margin: 28px 0; }
.article .cta-box a { color: var(--accent-2); font-weight: 700; text-decoration: none; font-family: "Work Sans", sans-serif; }

.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
  .hub-item.reveal:nth-child(1) { transition-delay: 0.03s; }
  .hub-item.reveal:nth-child(2) { transition-delay: 0.06s; }
  .hub-item.reveal:nth-child(3) { transition-delay: 0.09s; }
  .hub-item.reveal:nth-child(4) { transition-delay: 0.12s; }
  .hub-item.reveal:nth-child(5) { transition-delay: 0.15s; }
  .hub-item.reveal:nth-child(6) { transition-delay: 0.18s; }
}

.sticky-cta { display: none; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .diagram-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero-copy { max-width: 560px; margin: 0 auto; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-copy .check-form { margin: 0 auto; }
  .hero-copy .trust-row { justify-content: center; }
  .hero-grid .hero-demo { display: none; }
  .result.hero-result { max-width: 560px; margin-left: auto; margin-right: auto; padding: 26px 24px; }
  .perm-cards-grid { grid-template-columns: 1fr; }

  body { padding-bottom: 78px; }
  .sticky-cta {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 17px 20px calc(17px + env(safe-area-inset-bottom));
    border-radius: 0; font-size: 15px; text-align: center;
    box-shadow: 0 -10px 28px -10px rgba(0,0,0,0.45);
  }
  body.modal-open .sticky-cta { display: none; }
}

@media (max-width: 640px) {
  /* .site-header uses backdrop-filter, which (like transform) creates a new containing block for any
     position:fixed descendant — a nested "fixed" mobile-nav panel would be trapped inside the small pill
     instead of the viewport. Instead, the header itself just grows into a rounded card (still anchored at
     top:16px, same as closed) and .main-nav becomes a normal flex child inside it — no fixed positioning
     needed anywhere below .site-header, and no full-screen takeover either. */
  body.nav-open .site-header { border-radius: 20px; max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: 0 20px 50px -20px rgba(0,0,0,0.4); }
  body.nav-open .nav-inner {
    display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; padding: 8px 8px 20px 20px;
  }
  body.nav-open .logo { grid-column: 1; grid-row: 1; }
  body.nav-open .nav-actions { grid-column: 2; grid-row: 1; }
  .main-nav { display: none; }
  body.nav-open .main-nav { display: flex; grid-column: 1 / -1; grid-row: 2; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; text-align: left; padding: 16px 0 8px; margin-top: 12px; border-top: 1px solid var(--border); opacity: 0; animation: mobile-nav-in 0.18s ease forwards; }
  @keyframes mobile-nav-in { from { opacity: 0; } to { opacity: 1; } }
  .nav-link { justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--border); border-radius: 0; font-size: 18px; }
  .nav-link svg:not(.chev) { width: 18px; height: 18px; }
  .dropdown-panel { position: static; opacity: 1; visibility: visible; transform: none; display: none; grid-template-columns: 1fr; box-shadow: none; border: none; padding: 0 0 8px 12px; }
  .nav-item.open .dropdown-panel { display: grid; transform: none; left: 0; }
  .nav-toggle { display: flex; }
  .nav-actions .nav-utils, .nav-actions .nav-cta, .nav-tron, .nav-divider, .nav-live { display: none; }
  .nav-mobile-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
  .nav-mobile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .nav-mobile-row .lang-switch { border: 1px solid var(--border); text-align: center; padding: 10px; border-radius: 8px; }
  .nav-mobile-row .theme-toggle { display: flex; align-items: center; justify-content: center; gap: 7px; width: auto; height: auto; border: 1px solid var(--border); border-radius: 8px; padding: 10px; color: var(--text); font-size: 13px; font-family: inherit; }
  .nav-mobile-row .theme-toggle svg { width: 16px; height: 16px; }
  .check-form { flex-direction: column; }
  .hero h1 { font-size: 28px; }
  .float-icon { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: 1fr; }
  .stat:not(:first-child)::before { display: none; }
  .stat:not(:first-child) { border-top: 1px solid var(--border); }
}
