/* TRONSEC — Premium marketing site */

@property --bg { syntax: '<color>'; inherits: true; initial-value: #000000; }
@property --bg-subtle { syntax: '<color>'; inherits: true; initial-value: #0a0a0b; }
@property --bg-raised { syntax: '<color>'; inherits: true; initial-value: #111113; }
@property --bg-overlay { syntax: '<color>'; inherits: true; initial-value: #18181b; }
@property --text { syntax: '<color>'; inherits: true; initial-value: #f5f5f7; }
@property --text-2 { syntax: '<color>'; inherits: true; initial-value: #a1a1aa; }
@property --text-3 { syntax: '<color>'; inherits: true; initial-value: #71717a; }
@property --text-4 { syntax: '<color>'; inherits: true; initial-value: #52525b; }
@property --line { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, 0.06); }
@property --line-strong { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, 0.1); }
@property --info { syntax: '<color>'; inherits: true; initial-value: #c8ced8; }
@property --green { syntax: '<color>'; inherits: true; initial-value: #34d399; }
@property --amber { syntax: '<color>'; inherits: true; initial-value: #fbbf24; }
@property --red { syntax: '<color>'; inherits: true; initial-value: #fb7185; }

:root {
  --bg:          #000000;
  --bg-subtle:   #0a0a0b;
  --bg-raised:   #111113;
  --bg-overlay:  #18181b;
  --line:        rgba(255,255,255,.06);
  --line-strong: rgba(255,255,255,.10);
  --line-focus:  rgba(255,255,255,.16);
  --text:        #f5f5f7;
  --text-2:      #a1a1aa;
  --text-3:      #71717a;
  --text-4:      #52525b;
  --info:        #c8ced8;
  --info-soft:   rgba(200,206,216,.1);
  --info-border: rgba(200,206,216,.16);
  --accent:      var(--text);
  --accent-soft: rgba(255,255,255,.08);
  --green:       #34d399;
  --amber:       #fbbf24;
  --red:         #fb7185;
  --red-soft:    rgba(251,113,133,.08);
  --border:      var(--line);
  --bg-card:     var(--bg-raised);
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --font:        'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:        'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  --max:         1080px;
  --max-wide:    1200px;
  --nav-h:       60px;
  --radius:      12px;
  --radius-xl:   20px;
  --hero-accent-gradient: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.72) 100%);
  --surface-muted: rgba(255,255,255,.03);
  --surface-glass: rgba(255,255,255,.045);
  --surface-chip: rgba(255,255,255,.02);
  --shadow-elevated: 0 12px 40px rgba(0,0,0,.28);
  --shadow-inset-top: inset 0 1px 0 rgba(255,255,255,.07);
  --btn-primary-bg: #fff;
  --btn-primary-fg: #09090b;
  --btn-primary-hover-bg: #f4f4f5;
  --btn-primary-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 28px rgba(0,0,0,.35);
  --kbd-bg: rgba(0,0,0,.35);
  --showcase-border: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04) 40%, rgba(255,255,255,.02));
  --showcase-glow-bg: radial-gradient(ellipse, rgba(255,255,255,.06), transparent 68%);
  --card-gradient: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  --cta-gradient: radial-gradient(ellipse 70% 80% at 50% 120%, rgba(255,255,255,.04), transparent 55%), linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  --focus-ring: rgba(255,255,255,.04);
}

html.light-theme,
body.light-theme {
  color-scheme: light;
  --bg:          #f4f4f5;
  --bg-subtle:   #fafafa;
  --bg-raised:   #ffffff;
  --bg-overlay:  #f4f4f5;
  --line:        rgba(0,0,0,.06);
  --line-strong: rgba(0,0,0,.10);
  --line-focus:  rgba(0,0,0,.16);
  --text:        #18181b;
  --text-2:      #52525b;
  --text-3:      #71717a;
  --text-4:      #a1a1aa;
  --info:        #64748b;
  --info-soft:   rgba(100,116,139,.1);
  --info-border: rgba(100,116,139,.16);
  --accent-soft: rgba(0,0,0,.06);
  --green:       #059669;
  --amber:       #d97706;
  --red:         #dc2626;
  --red-soft:    rgba(220,38,38,.08);
  --hero-accent-gradient: linear-gradient(180deg, #18181b 0%, #71717a 100%);
  --surface-muted: rgba(0,0,0,.025);
  --surface-glass: rgba(0,0,0,.04);
  --surface-chip: rgba(0,0,0,.02);
  --shadow-elevated: 0 12px 40px rgba(0,0,0,.08);
  --shadow-inset-top: inset 0 1px 0 rgba(255,255,255,.7);
  --btn-primary-bg: #18181b;
  --btn-primary-fg: #fff;
  --btn-primary-hover-bg: #27272a;
  --btn-primary-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 8px 24px rgba(0,0,0,.12);
  --kbd-bg: rgba(0,0,0,.05);
  --showcase-border: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.04) 40%, rgba(0,0,0,.02));
  --showcase-glow-bg: radial-gradient(ellipse, rgba(0,0,0,.05), transparent 68%);
  --card-gradient: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.008));
  --cta-gradient: radial-gradient(ellipse 70% 80% at 50% 120%, rgba(0,0,0,.03), transparent 55%), linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.008));
  --focus-ring: rgba(0,0,0,.04);
}

html:not(.light-theme) body { color-scheme: dark; }
html.theme-transition {
  transition:
    --bg .32s ease,
    --bg-subtle .32s ease,
    --bg-raised .32s ease,
    --bg-overlay .32s ease,
    --text .32s ease,
    --text-2 .32s ease,
    --text-3 .32s ease,
    --text-4 .32s ease,
    --line .32s ease,
    --line-strong .32s ease,
    --info .32s ease,
    --green .32s ease,
    --amber .32s ease,
    --red .32s ease;
}
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition:
    background-color .32s ease,
    color .32s ease,
    border-color .32s ease,
    box-shadow .32s ease,
    fill .32s ease,
    stroke .32s ease,
    opacity .32s ease !important;
}
html.theme-transition .bg-mesh,
html.theme-transition .bg-floor,
html.theme-transition .bg-noise,
html.theme-transition .nav,
html.theme-transition .mobile-menu-inner,
html.theme-transition .mobile-menu-foot,
html.theme-transition .footer {
  transition:
    background .32s ease,
    background-color .32s ease,
    border-color .32s ease,
    box-shadow .32s ease,
    opacity .32s ease !important;
}
@media (prefers-reduced-motion: reduce) {
  html.theme-transition,
  html.theme-transition *,
  html.theme-transition *::before,
  html.theme-transition *::after {
    transition: none !important;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(255,255,255,.14); color: #fff; }
html.light-theme ::selection { background: rgba(0,0,0,.12); color: #000; }

/* ── ATMOSPHERE ── */
.bg-mesh {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(ellipse 72% 42% at 50% 0%, rgba(255,255,255,.045) 0%, transparent 50%),
    linear-gradient(180deg, #030303 0%, #000 100%);
}
.bg-floor {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.bg-floor-grid {
  position: absolute;
  left: 50%;
  bottom: -8%;
  width: 220%;
  height: 62%;
  transform: translateX(-50%) perspective(620px) rotateX(68deg);
  transform-origin: center top;
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to top, #000 8%, rgba(0,0,0,.55) 42%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 8%, rgba(0,0,0,.55) 42%, transparent 100%);
  opacity: .85;
}
.bg-grid { display: none; }
.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.light-theme .bg-mesh {
  background:
    radial-gradient(ellipse 72% 42% at 50% 0%, rgba(0,0,0,.04) 0%, transparent 50%),
    linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
}
html.light-theme .bg-floor-grid {
  background-image:
    linear-gradient(rgba(0,0,0,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.08) 1px, transparent 1px);
  opacity: .55;
}
html.light-theme .bg-noise { opacity: .015; }
html.light-theme .nav-logo .brand-logo,
html.light-theme .footer-brand .brand-logo { filter: invert(1) brightness(0.18); }

/* ── LAYOUT ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 20px;
}
.section-eyebrow::before {
  content: ''; width: 16px; height: 1px; background: var(--line-strong);
}
.section-head.center .section-eyebrow::before { display: none; }
.section-title {
  font-size: clamp(32px, 4.2vw, 44px); font-weight: 500;
  letter-spacing: -.032em; line-height: 1.08; color: var(--text);
  margin-bottom: 18px;
}
.section-desc { font-size: 17px; line-height: 1.65; color: var(--text-2); font-weight: 400; }

/* ── NAV ── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .4s var(--ease-out), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--line);
}
html.light-theme .nav.scrolled {
  background: rgba(255,255,255,.82);
  box-shadow: 0 1px 0 var(--line);
}
html.light-theme .nav.menu-open {
  background: rgba(255,255,255,.94);
}
html.light-theme .nav-mega-grid,
html.light-theme .nav-lang-dd,
html.light-theme .mobile-menu-inner {
  background: var(--bg);
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
}
html.light-theme .mobile-menu-foot { background: rgba(0,0,0,.02); }
html.light-theme .mobile-cta-btn {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-color: var(--btn-primary-bg);
  box-shadow: var(--btn-primary-shadow);
}
html.light-theme .mobile-cta-btn:hover { background: var(--btn-primary-hover-bg); }
html.light-theme .nav-launch-btn {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-color: var(--btn-primary-bg);
}
html.light-theme .nav-launch-btn:hover {
  background: var(--btn-primary-hover-bg);
  color: var(--btn-primary-fg);
}
html.light-theme .nav-link:hover,
html.light-theme .nav-link.active,
html.light-theme .nav-mega-trigger[aria-expanded="true"],
html.light-theme .nav-mega.is-open .nav-mega-trigger {
  background: rgba(0,0,0,.05);
}
html.light-theme .nav-lang-btn:hover,
html.light-theme .nav-toggle:hover,
html.light-theme .mobile-nav-row:hover,
html.light-theme .mobile-tool-link:hover {
  background: rgba(0,0,0,.04);
}
html.light-theme .lang-opt:hover {
  color: var(--text) !important;
  background: rgba(0,0,0,.04);
}
html.light-theme .lang-opt-active {
  background: rgba(0,0,0,.06);
}
html.light-theme .hero-command-inner:focus-within {
  box-shadow: var(--shadow-inset-top), 0 0 0 4px rgba(0,0,0,.04), var(--shadow-elevated);
}
html.light-theme .showcase-frame {
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 24px 64px rgba(0,0,0,.12);
}
html.light-theme .showcase-inner { background: #09090b; }
html.light-theme .blog-card { background: var(--card-gradient); }
html.light-theme .metric-item,
html.light-theme .stat-cell { background: rgba(0,0,0,.02); }
html.light-theme .docs-nav a.active { background: rgba(0,0,0,.04); }
.nav-inner {
  height: var(--nav-h);
  width: 100%; max-width: var(--max-wide); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
}
.brand-logo {
  display: block; flex-shrink: 0; object-fit: contain;
}
.nav-logo .brand-logo { width: 22px; height: 22px; opacity: .92; }
.nav-logo-text {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text);
}
.nav-badge {
  font-size: 10px; font-weight: 500; color: var(--text-4);
  letter-spacing: .04em; margin-left: 2px;
}
.footer-brand .brand-logo { width: 22px; height: 22px; opacity: .92; }
.footer-brand .nav-logo-text {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-logo-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.nav-logo-mark .brand-logo { width: 15px; height: 15px; }
.nav-links {
  display: flex; align-items: center; gap: 2px;
  padding: 4px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.nav-link {
  padding: 7px 14px; font-size: 13px; font-weight: 500;
  color: var(--text-3); border-radius: 7px; transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text-2); }
.nav-link.active { color: var(--text); background: rgba(255,255,255,.06); }
.nav-link-compact { padding: 7px 10px; font-size: 12px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-lang { position: relative; }
.nav-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, color .2s, border-color .2s;
}
.nav-lang-btn:hover {
  background: rgba(255,255,255,.05);
  color: var(--text-2);
  border-color: var(--line);
}
.nav-lang-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.nav-lang-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
}
.nav-lang-dd {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 8, 10, .96);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .45);
  z-index: 120;
}
.nav-lang-dd[hidden] { display: none; }
.nav-lang-dd:not([hidden]) {
  animation: nav-lang-dd-in .18s var(--ease-out) both;
}
@keyframes nav-lang-dd-in {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.lang-opt {
  display: block;
  padding: 8px 10px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--text-3);
  text-decoration: none;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.lang-opt:hover {
  color: var(--text) !important;
  background: rgba(255,255,255,.05);
}
.lang-opt-active {
  color: var(--text);
  background: rgba(255,255,255,.06);
}
.lang-opt-soon {
  opacity: .55;
  cursor: default;
}
.nav-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, color .2s, border-color .2s;
}
.nav-theme-btn:hover {
  background: rgba(255,255,255,.05);
  color: var(--text-2);
  border-color: var(--line);
}
html.light-theme .nav-theme-btn:hover { background: rgba(0,0,0,.04); }
.nav-theme-icon { width: 15px; height: 15px; }
.nav-theme-btn.is-theme-switching svg,
.nav-theme-btn.is-theme-switching .nav-theme-icon {
  animation: theme-icon-spin .45s var(--ease-out) both;
}
@keyframes theme-icon-spin {
  from { transform: rotate(-40deg) scale(.82); opacity: .35; }
  to { transform: rotate(0deg) scale(1); opacity: 1; }
}
.nav-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 46px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: background .2s, border-color .2s, box-shadow .2s, color .2s;
  box-shadow: var(--btn-primary-shadow);
}
.nav-launch-btn:hover {
  background: var(--btn-primary-hover-bg);
  border-color: var(--line-focus);
  color: var(--btn-primary-fg);
}
/* ── MOBILE MENU (Linear-style drawer) ── */
.mobile-menu-backdrop,
.mobile-menu { display: none; }
.mobile-menu-backdrop {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(0, 0, 0, .52);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .38s var(--ease-out);
}
.mobile-menu-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-backdrop[hidden] { display: block; opacity: 0; pointer-events: none; }
.mobile-menu-backdrop.is-visible[hidden] { display: block; }

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity .38s var(--ease-out),
    transform .42s var(--ease-out),
    visibility .38s;
}
.mobile-menu.open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.mobile-menu-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 8px;
}
.mobile-menu-group { margin-bottom: 8px; }
.mobile-menu-group + .mobile-menu-group {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.mobile-menu-label {
  display: block;
  padding: 0 12px 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-4);
}
.mobile-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
  cursor: pointer;
  text-align: left;
  transition: background .18s, color .18s;
}
a.mobile-nav-row { text-decoration: none; }
.mobile-nav-row:hover,
.mobile-nav-row:active,
.mobile-nav-row.active {
  background: rgba(255, 255, 255, .05);
}
.mobile-nav-row-text { flex: 1; min-width: 0; }
.mobile-nav-chevron {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--text-4);
  transition: transform .28s var(--ease-out), color .18s;
}
.mobile-accordion-toggle[aria-expanded="true"] .mobile-nav-chevron {
  transform: rotate(180deg);
  color: var(--text-3);
}
.mobile-accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .34s var(--ease-out);
}
.mobile-accordion-panel.is-open { grid-template-rows: 1fr; }
.mobile-accordion-panel-inner {
  min-height: 0;
  overflow: hidden;
}
.mobile-tools-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 6px;
}
.mobile-tool-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--text-2);
  transition: background .18s, color .18s;
}
.mobile-tool-link:hover {
  background: rgba(255, 255, 255, .05);
  color: var(--text);
}
.mobile-tools-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 4px 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  border-radius: 8px;
  transition: color .18s, background .18s;
}
.mobile-tools-all:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}
.mobile-tools-all svg { width: 13px; height: 13px; }
.mobile-menu-foot {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: var(--text);
  color: #09090b;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: background .2s, transform .2s var(--ease-out), box-shadow .2s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 24px rgba(0, 0, 0, .28);
}
.mobile-cta-btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 32px rgba(0, 0, 0, .32);
}
.mobile-cta-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .03);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: background .2s, border-color .2s, color .2s;
}
.mobile-cta-ghost:hover {
  background: rgba(255, 255, 255, .06);
  border-color: var(--line-focus);
  color: var(--text);
}
body.menu-open { overflow: hidden; }
body.menu-open main,
body.menu-open .page-header,
body.menu-open .footer {
  visibility: hidden;
}
.nav.menu-open {
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(24px) saturate(1.5);
  border-bottom-color: var(--line);
}
.nav-toggle {
  display: none;
  position: relative;
  width: 36px; height: 36px;
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.nav-toggle-icon {
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  transform: translate(-50%, -50%);
  transition: opacity .22s var(--ease-out), transform .28s var(--ease-out);
}
.nav-toggle-icon--close { opacity: 0; transform: translate(-50%, -50%) rotate(-90deg) scale(.75); }
.nav.menu-open .nav-toggle-icon--open { opacity: 0; transform: translate(-50%, -50%) rotate(90deg) scale(.75); }
.nav.menu-open .nav-toggle-icon--close { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); }
.mobile-menu.open .mobile-menu-group {
  animation: mobile-group-in .42s var(--ease-out) both;
}
.mobile-menu.open .mobile-menu-group:nth-child(2) { animation-delay: .04s; }
.mobile-menu.open .mobile-menu-foot {
  animation: mobile-group-in .42s var(--ease-out) .08s both;
}
@keyframes mobile-group-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu-backdrop, .mobile-accordion-panel, .nav-toggle-icon { transition: none; }
  .mobile-menu.open .mobile-menu-group, .mobile-menu.open .mobile-menu-foot { animation: none; }
}

/* ── MEGA MENU ── */
.nav-mega { position: relative; }
.nav-mega-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.nav-mega-chevron {
  width: 14px; height: 14px; opacity: .55;
  transition: transform .2s var(--ease-out);
}
.nav-mega-trigger[aria-expanded="true"] .nav-mega-chevron {
  transform: rotate(180deg);
}
.nav-mega-trigger[aria-expanded="true"],
.nav-mega.is-open .nav-mega-trigger {
  color: var(--text);
  background: rgba(255,255,255,.06);
}
.nav-mega-panel {
  position: absolute;
  left: 0; right: 0; top: var(--nav-h);
  z-index: 110;
}
.nav-mega-panel[hidden] { display: none; }
.nav-mega-panel-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 12px 32px 20px;
}
.nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 8, 10, .96);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255,255,255,.04);
}
.nav-mega-grid--docs {
  grid-template-columns: repeat(3, 1fr);
  max-width: 780px;
}
.nav-mega-panel--docs .nav-mega-panel-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.nav-mega-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 14px;
  border-radius: 10px;
  transition: background .18s, border-color .18s;
  border: 1px solid transparent;
}
.nav-mega-item:hover {
  background: rgba(255,255,255,.04);
  border-color: var(--line);
}
.nav-mega-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text-2);
}
.nav-mega-icon svg { width: 16px; height: 16px; }
.nav-mega-item:hover .nav-mega-icon { color: var(--text); border-color: var(--line-strong); }
.nav-mega-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nav-mega-title {
  font-size: 13px; font-weight: 500; color: var(--text);
  letter-spacing: -.01em; line-height: 1.3;
}
.nav-mega-desc {
  font-size: 12px; line-height: 1.45; color: var(--text-3);
}
.nav-mega-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 12px; padding: 0 8px;
}
.nav-mega-footer a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--text-3);
  transition: color .18s;
}
.nav-mega-footer a:hover { color: var(--text); }
.nav-mega-footer a svg { width: 13px; height: 13px; }
.nav-mega-backdrop {
  position: fixed; inset: var(--nav-h) 0 0;
  z-index: 90;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(2px);
}
.nav-mega-backdrop[hidden] { display: none; }

/* ── BLOG ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.blog-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card-gradient);
  transition: border-color .25s, transform .25s var(--ease-out);
}
.blog-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.blog-card-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  font-size: 12px; color: var(--text-4);
}
.blog-tag {
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-3);
}
.blog-card h2 {
  font-size: 20px; font-weight: 500;
  letter-spacing: -.025em; line-height: 1.25;
  margin-bottom: 12px;
}
.blog-card h2 a { color: var(--text); transition: color .18s; }
.blog-card h2 a:hover { color: var(--text-2); }
.blog-card p {
  font-size: 14px; line-height: 1.65;
  color: var(--text-2); margin-bottom: 18px;
}
.blog-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--text-3);
  transition: color .18s, gap .18s;
}
.blog-card-link:hover { color: var(--text); gap: 8px; }
.blog-card-link svg { width: 14px; height: 14px; }

/* ── TOOL PAGES ── */
.tool-page-header .container { max-width: var(--max); }
.page-header:has(+ main > .tool-preview-section) { border-bottom: none; }
.tool-page-breadcrumb {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-4); margin-bottom: 18px;
}
.tool-page-breadcrumb a { color: var(--text-3); transition: color .18s; }
.tool-page-breadcrumb a:hover { color: var(--text); }

.built-on-tron {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 36px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
}
.built-on-tron-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.built-on-tron-logo img {
  width: 96px;
  height: 96px;
  display: block;
}
.built-on-tron-copy .footer-trademark {
  margin-top: 16px;
  max-width: 480px;
}
@media (max-width: 768px) {
  .built-on-tron {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
    text-align: center;
  }
  .built-on-tron-logo {
    display: flex;
    justify-content: center;
  }
  .built-on-tron-copy .footer-trademark {
    margin-left: auto;
    margin-right: auto;
  }
}

.tool-page-lead {
  font-size: 18px; line-height: 1.65; color: var(--text-2);
  max-width: 620px; margin: 16px 0 24px;
}
.tool-page-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-preview-section {
  padding: 0 0 72px;
  margin-top: -8px;
}
.tool-preview-section .container-wide {
  position: relative;
}
.tool-preview-section .showcase-glow { opacity: .85; }
.tool-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: start;
}
.tool-steps { display: flex; flex-direction: column; gap: 18px; }
.tool-step {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.015);
}
.tool-step-num {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; color: var(--text-3);
  padding-top: 2px; flex-shrink: 0;
}
.tool-step p { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.tool-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.tool-related-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(255,255,255,.015);
  transition: border-color .22s, transform .22s var(--ease-out);
}
.tool-related-card:hover {
  border-color: var(--line-strong); transform: translateY(-2px);
}
.tool-related-icon {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 9px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: var(--text-2);
}
.tool-related-icon svg { width: 16px; height: 16px; }
.tool-related-title { font-size: 15px; font-weight: 500; color: var(--text); }
.tool-related-desc { font-size: 13px; line-height: 1.55; color: var(--text-3); }

/* ── TOOLS CATALOG (features page) ── */
.tools-catalog {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.tools-catalog-section { min-width: 0; }
.tools-catalog-label {
  position: relative;
  padding-left: 26px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-4);
}
.tools-catalog-label::before {
  content: '//';
  position: absolute;
  left: 0;
  color: var(--text-4);
}
.tools-catalog-grid {
  display: grid;
  gap: 14px;
}
.tools-catalog-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tools-catalog-grid--4 { grid-template-columns: repeat(2, 1fr); }
.tool-catalog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  transition: border-color .22s, transform .22s var(--ease-out), background .22s;
}
.tool-catalog-card:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,.025);
  transform: translateY(-2px);
}
.tool-catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tool-catalog-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text-2);
  flex-shrink: 0;
}
.tool-catalog-icon svg { width: 17px; height: 17px; }
.tool-catalog-file {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  color: var(--text-4);
  text-transform: lowercase;
}
.tool-catalog-card h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.025em;
  color: var(--text);
}
.tool-catalog-card p {
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-2);
  flex: 1;
}
.tool-catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.tools-traits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tools-trait {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
}
.tools-trait-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text-2);
  margin-bottom: 16px;
}
.tools-trait-icon svg { width: 16px; height: 16px; }
.tools-trait h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.tools-trait p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ── SECURITY PAGE ── */
.security-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.security-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255,255,255,.015);
  border-right: 1px solid var(--line);
}
.security-trust-item:last-child { border-right: none; }
.security-trust-item svg { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; }
.security-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.security-principle {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  transition: border-color .22s, transform .22s var(--ease-out);
}
.security-principle:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.security-principle-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text-2);
  margin-bottom: 16px;
}
.security-principle-icon svg { width: 17px; height: 17px; }
.security-principle h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.security-principle p {
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-2);
}
.security-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.security-flow-step {
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
}
.security-flow-num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-4);
  margin-bottom: 14px;
}
.security-flow-step h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.security-flow-step p {
  font-size: 13px;
  line-height: 1.58;
  color: var(--text-2);
}
.security-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.security-sources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.security-source {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
}
.security-source-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.security-source p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}
.security-never-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.security-never-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(251,113,133,.12);
  background: rgba(251,113,133,.04);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}
.security-never-item svg {
  width: 15px;
  height: 15px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}
.security-limits-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.015);
  overflow: hidden;
}
.security-limits-head {
  padding: 28px 28px 0;
}
.security-limits-list {
  list-style: none;
  padding: 20px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.security-limit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.58;
  color: var(--text-2);
}
.security-limit-item svg {
  width: 15px;
  height: 15px;
  color: var(--text-3);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── PLATFORM PAGES (methodology, use cases, watchlist) ── */
.methodology-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.methodology-module {
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  transition: border-color .22s;
}
.methodology-module:hover { border-color: var(--line-strong); }
.methodology-module-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.methodology-module-head .security-principle-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}
.methodology-module-head h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.02em;
  margin-top: 2px;
}
.methodology-module-file {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-4);
  margin-bottom: 2px;
}
.methodology-score-type {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-4);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.methodology-signals {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.methodology-signals li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}
.methodology-signals li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-4);
}
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.use-case-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  transition: border-color .22s, transform .22s var(--ease-out);
}
.use-case-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.use-case-card h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.use-case-card p {
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-2);
}
.use-case-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.use-case-tag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-3);
  background: rgba(255,255,255,.02);
}
.watchlist-signals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.watchlist-signal {
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
}
.watchlist-signal-badge {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-4);
  margin-bottom: 10px;
}
.watchlist-signal h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.watchlist-signal p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ── DOCS PAGE ── */
.docs-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  padding: 18px 0;
}
.docs-sidebar-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 12px;
  padding: 0 12px;
}
.docs-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.docs-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.docs-nav a:hover {
  color: var(--text-2);
  background: rgba(255,255,255,.04);
}
.docs-nav a.active {
  color: var(--text);
  background: rgba(255,255,255,.06);
}
.docs-content { min-width: 0; }
.docs-section {
  scroll-margin-top: calc(var(--nav-h) + 20px);
  padding-top: 48px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.docs-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}
.docs-section-title {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.03em;
  margin-bottom: 12px;
}
.docs-subtitle {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.02em;
  margin: 28px 0 14px;
  color: var(--text);
}
.docs-lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 62ch;
}
.docs-lead a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}
.docs-flow { margin-top: 24px; }
.docs-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}
.docs-note svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-3);
}
.docs-note a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.docs-steps-list,
.docs-prose-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 68ch;
}
.docs-steps-list li,
.docs-prose-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-2);
}
.docs-steps-list li::before,
.docs-prose-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-4);
}
.docs-steps-list strong,
.docs-prose-list strong { color: var(--text); font-weight: 500; }
.docs-table-wrap {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
  background: rgba(255,255,255,.015);
}
.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.docs-table th,
.docs-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.docs-table th {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-4);
  background: rgba(255,255,255,.02);
}
.docs-table tr:last-child td { border-bottom: none; }
.docs-table td { color: var(--text-2); line-height: 1.55; }
.docs-table td strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-top: 2px;
}
.docs-module-file {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-4);
  margin-bottom: 2px;
}
.docs-module-links {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
}
.docs-module-links a {
  color: var(--text-3);
  margin-right: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.docs-module-links a:hover { color: var(--text); }
.docs-sources { margin-top: 8px; }
.docs-use-cases { margin-top: 20px; }
.docs-use-cases .use-case-card .security-principle-icon { margin-bottom: 14px; }
.docs-security-grid { margin-top: 16px; }
.docs-never-list li::before { background: var(--red); opacity: .6; }

/* ── ABOUT PAGE ── */
.about-mission {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.about-text {
  font-size: 16px;
  line-height: 1.68;
  color: var(--text-2);
  margin-bottom: 14px;
}
.about-text:last-child { margin-bottom: 0; }
.about-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  text-align: center;
}
.about-brand-card .brand-logo {
  width: 52px;
  height: 52px;
  opacity: .92;
}
.about-brand-name {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
}
.about-brand-meta {
  font-size: 12px;
  color: var(--text-4);
  letter-spacing: .02em;
}
.about-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.about-roadmap-col {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
}
.about-roadmap-head { margin-bottom: 18px; }
.about-roadmap-status {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.about-roadmap-status.is-active {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.06);
}
.about-roadmap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}
.about-roadmap-item svg {
  width: 14px;
  height: 14px;
  color: var(--text-3);
  flex-shrink: 0;
  margin-top: 3px;
}
.about-changelog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.015);
}
.about-changelog-entry {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 28px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.about-changelog-entry:last-child { border-bottom: none; }
.about-changelog-version {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text);
}
.about-changelog-date {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-4);
}
.about-changelog-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-changelog-items li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}
.about-changelog-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-4);
}
.about-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.about-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  transition: border-color .22s, transform .22s var(--ease-out), background .22s;
}
.about-link-card:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,.025);
  transform: translateY(-2px);
}
.about-link-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text-2);
}
.about-link-icon svg { width: 17px; height: 17px; }
.about-link-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.about-link-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.about-link-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-3);
}
.about-link-arrow {
  width: 15px;
  height: 15px;
  color: var(--text-4);
  flex-shrink: 0;
  transition: color .18s, transform .18s;
}
.about-link-card:hover .about-link-arrow {
  color: var(--text-2);
  transform: translate(2px, -2px);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 13px; font-weight: 500;
  padding: 0 16px; height: 36px; border-radius: 9px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease-out), background .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap; letter-spacing: -.01em;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--btn-primary-bg); color: var(--btn-primary-fg);
  border-color: var(--line-strong);
  box-shadow: var(--btn-primary-shadow);
}
.btn-primary:hover {
  background: var(--btn-primary-hover-bg);
  box-shadow: var(--btn-primary-shadow);
}
.btn-secondary {
  background: rgba(255,255,255,.04); color: var(--text);
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.07); border-color: var(--line-focus);
}
.btn-ghost {
  background: transparent; color: var(--text-2); border-color: transparent;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.04); }
.btn-accent {
  background: rgba(255,255,255,.04); color: var(--text);
  border-color: var(--line-strong);
}
.btn-accent:hover { background: rgba(255,255,255,.07); border-color: var(--line-focus); }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14px; border-radius: 11px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; }

/* ── HERO ── */
.hero {
  padding: calc(var(--nav-h) + 72px) 0 0;
  text-align: center; position: relative;
}
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 28px; padding: 6px 12px 6px 8px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-muted);
  font-size: 13px; font-weight: 500; color: var(--text-2);
  animation: rise .9s var(--ease-out) both;
}
.hero-eyebrow-icon {
  width: 18px; height: 18px; flex-shrink: 0; display: block;
}
.hero h1 {
  font-size: clamp(44px, 6.8vw, 76px); font-weight: 500;
  letter-spacing: -.045em; line-height: 1.02;
  margin-bottom: 24px;
  animation: rise .9s var(--ease-out) .06s both;
}
.hero h1 em {
  font-style: normal;
  background: var(--hero-accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  font-size: clamp(17px, 2vw, 19px); line-height: 1.65;
  color: var(--text-2); font-weight: 400;
  max-width: 560px; margin: 0 auto 32px;
  animation: rise .9s var(--ease-out) .12s both;
}

/* Command bar */
.hero-command {
  max-width: 540px; margin: 0 auto 32px;
  animation: rise .9s var(--ease-out) .16s both;
}
.hero-command-form { width: 100%; }
.hero-command-wrap { display: flex; flex-direction: column; gap: 0; }
.hero-command-inner {
  display: flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 8px 0 16px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: var(--surface-glass);
  box-shadow: var(--shadow-inset-top), var(--shadow-elevated);
  transition: border-color .25s var(--ease-out), box-shadow .25s;
}
.hero-command-inner:focus-within {
  border-color: var(--line-focus);
  box-shadow: var(--shadow-inset-top), 0 0 0 4px var(--focus-ring), var(--shadow-elevated);
}
.hero-command-icon { color: var(--text-4); flex-shrink: 0; }
.hero-command-icon svg { width: 16px; height: 16px; display: block; }
.hero-command-inner input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  font-family: var(--font); font-size: 14px; color: var(--text); letter-spacing: -.01em;
}
.hero-command-inner input::placeholder { color: var(--text-4); }
.hero-command-kbd {
  flex-shrink: 0; font-size: 11px; color: var(--text-4); padding: 4px 8px;
  border-radius: 6px; border: 1px solid var(--line);
  background: var(--kbd-bg); font-family: var(--mono);
}
.hero-command-submit {
  flex-shrink: 0; height: 36px; padding: 0 18px; border-radius: 9px;
  background: var(--btn-primary-bg); color: var(--btn-primary-fg); border: none;
  font-family: var(--font); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background .2s, transform .15s;
}
.hero-command-submit:hover { background: var(--btn-primary-hover-bg); }
.hero-command-submit:active { transform: scale(.97); }
.hero-command-hint {
  margin-top: 12px; font-size: 12px; color: var(--text-4); font-weight: 400;
}
.hero-command-example {
  background: none; border: none; padding: 0; margin-left: 4px;
  color: var(--text-3); font-size: 12px; font-family: var(--mono);
  cursor: pointer; transition: color .2s;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong);
}
.hero-command-example:hover { color: var(--text-2); }
.hero-command-badge {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 3px 7px;
  border-radius: 4px;
  font-family: var(--mono);
  display: none;
}
.hero-command-badge.is-visible { display: inline-block; }
.hero-command-badge.t-address { background: rgba(255,255,255,.08); color: var(--text-2); }
.hero-command-badge.t-tx { background: rgba(168,85,247,.14); color: #c084fc; }
.hero-command-badge.t-url,
.hero-command-badge.t-domain { background: rgba(34,197,94,.12); color: #4ade80; }
html.light-theme .hero-command-badge.t-address { background: rgba(0,0,0,.06); color: var(--text-2); }
html.light-theme .hero-command-badge.t-tx { background: rgba(147,51,234,.1); color: #9333ea; }
html.light-theme .hero-command-badge.t-url,
html.light-theme .hero-command-badge.t-domain { background: rgba(22,163,74,.1); color: #16a34a; }
.hero-command-menu {
  margin-top: 8px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 8, 10, .97);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  animation: nav-lang-dd-in .18s var(--ease-out) both;
}
html.light-theme .hero-command-menu {
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .12);
}
.hero-command-menu[hidden] { display: none; }
.hero-command-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
}
.hero-command-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background .12s;
}
.hero-command-item:hover,
.hero-command-item.is-selected {
  background: rgba(255, 255, 255, .06);
}
html.light-theme .hero-command-item:hover,
html.light-theme .hero-command-item.is-selected {
  background: rgba(0, 0, 0, .05);
}
.hero-command-item-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-3);
}
.hero-command-item-icon svg { width: 16px; height: 16px; display: block; }
.hero-command-item-body { flex: 1; min-width: 0; }
.hero-command-item-name {
  display: block;
  font-weight: 500;
  letter-spacing: -.01em;
}
.hero-command-item-desc {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-command-inner.is-error {
  border-color: rgba(251,113,133,.45);
  animation: cmdShake .45s ease;
}
@keyframes cmdShake {
  0%,100%{ transform:translateX(0) }
  20%,60%{ transform:translateX(-4px) }
  40%,80%{ transform:translateX(4px) }
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  animation: rise .9s var(--ease-out) .18s both;
}
.hero-note {
  margin-top: 18px; font-size: 13px; color: var(--text-4);
  animation: rise .9s var(--ease-out) .24s both;
}
.hero-assets {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 14px;
  animation: rise .9s var(--ease-out) .26s both;
}
.hero-asset-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-chip);
  font-size: 12px; color: var(--text-3);
}
.hero-asset-chip img {
  width: 16px; height: 16px; flex-shrink: 0; display: block;
}
.hero-asset-chip strong {
  color: var(--text-2); font-weight: 500;
}
.hero-asset-chip span {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .04em; color: var(--text-4);
}

/* ── PRODUCT FRAME ── */
.hero-showcase {
  margin-top: 72px; position: relative;
  animation: rise 1.1s var(--ease-out) .28s both;
}
.showcase-glow {
  position: absolute; left: 50%; top: 45%;
  transform: translate(-50%,-50%);
  width: min(900px, 90%); height: 280px;
  background: var(--showcase-glow-bg); filter: blur(48px); pointer-events: none;
}
.showcase-frame {
  position: relative; border-radius: var(--radius-xl);
  padding: 1px;
  overflow: hidden;
  background: var(--showcase-border);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.5),
    0 32px 80px rgba(0,0,0,.55);
}
.showcase-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, .22) 46%,
    rgba(255, 255, 255, .95) 50%,
    rgba(255, 255, 255, .22) 54%,
    transparent 62%,
    transparent 100%
  );
  background-size: 32% 100%;
  background-repeat: no-repeat;
  background-position: -20% 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  animation: showcaseBorderSweep 6.2s linear infinite;
}
@keyframes showcaseBorderSweep {
  0%, 14% {
    background-position: -20% 0;
    opacity: 0;
  }
  20% {
    background-position: 0% 0;
    opacity: 1;
  }
  62% {
    background-position: 100% 0;
    opacity: 1;
  }
  68%, 100% {
    background-position: 120% 0;
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-frame::before { animation: none; opacity: 0; }
}
.showcase-frame::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  pointer-events: none;
}
.showcase-inner {
  border-radius: calc(var(--radius-xl) - 1px);
  overflow: hidden; background: var(--bg);
  position: relative; z-index: 1;
}

/* ── HERO APP PREVIEW (static, cropped) ── */
#hero-demo.hero-demo-static {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
}
#hero-demo.hero-demo-static .hero-demo-viewport {
  position: relative;
  height: 388px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  flex-shrink: 0;
}
#hero-demo.hero-demo-static .hero-demo-viewport::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 112px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, .72) 52%,
    #000 100%
  );
}
#hero-demo.hero-demo-static .hero-demo-layout {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible;
}
#hero-demo.hero-demo-static .app-header {
  position: relative;
  top: auto;
  flex-shrink: 0;
  height: 56px;
  padding: 0 16px 0 18px !important;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line) !important;
  background: rgba(0, 0, 0, .72) !important;
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .03);
}
#hero-demo.hero-demo-static .app-header-left {
  display: flex;
  align-items: center;
  min-width: 0;
}
#hero-demo.hero-demo-static .app-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  pointer-events: none;
}
#hero-demo.hero-demo-static .app-brand img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: .92;
}
#hero-demo.hero-demo-static .app-brand-name {
  display: inline !important;
  font-family: var(--mono) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text);
}

/* Sidebar — labels aligned with nav text column */
#hero-demo.hero-demo-static .app-sidebar {
  padding: 14px 10px !important;
  overflow: hidden !important;
}
#hero-demo.hero-demo-static .space-y-4 > * + * {
  margin-top: 18px !important;
}
#hero-demo.hero-demo-static .space-y-1 > * + * {
  margin-top: 2px !important;
}
#hero-demo.hero-demo-static .sidebar-label {
  position: relative;
  display: block;
  padding: 0 10px 0 36px !important;
  margin: 0 0 8px !important;
  text-align: left;
}
#hero-demo.hero-demo-static .sidebar-label::before {
  position: absolute;
  left: 10px;
  top: 0;
  margin-right: 0;
}
#hero-demo.hero-demo-static .sidebar-nav-btn {
  padding: 8px 10px !important;
  gap: 10px !important;
}

/* Main panel — consistent 22px rhythm */
#hero-demo.hero-demo-static .app-main {
  padding: 0 !important;
  overflow: hidden !important;
}
#hero-demo.hero-demo-static .module-panel {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
#hero-demo.hero-demo-static .module-panel-head {
  padding: 18px 22px 0 !important;
  border-bottom: none !important;
  margin: 0 !important;
  text-align: left;
}
#hero-demo.hero-demo-static .module-head-top {
  justify-content: flex-start;
  margin-bottom: 0;
}
#hero-demo.hero-demo-static .module-head-top h2 {
  margin: 0 0 10px !important;
}
#hero-demo.hero-demo-static .module-desc {
  margin-top: 0 !important;
}
#hero-demo.hero-demo-static .module-desc-lead {
  margin: 0 0 12px !important;
  text-align: left;
  line-height: 1.55 !important;
}
#hero-demo.hero-demo-static .module-desc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 0 !important;
  justify-content: flex-start;
}
#hero-demo.hero-demo-static .search-bar {
  padding: 16px 22px !important;
  margin: 0 !important;
  gap: 0 !important;
}
#hero-demo.hero-demo-static .demo-result {
  padding: 0 22px 20px !important;
  margin: 0 !important;
}
#hero-demo.hero-demo-static .wallet-scan {
  gap: 0;
  margin: 0;
}
#hero-demo.hero-demo-static .wallet-hero-grid {
  gap: 12px;
  margin: 0;
}
#hero-demo.hero-demo-static .wallet-portfolio-card,
#hero-demo.hero-demo-static .wallet-meters-card {
  padding: 16px 18px;
}
#hero-demo.hero-demo-static .wallet-portfolio-value {
  font-size: clamp(22px, 3vw, 28px);
  margin-top: 4px;
}
#hero-demo.hero-demo-static .showcase-bar {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  pointer-events: auto;
  margin-top: 0;
  border-top: 1px solid var(--line);
  background: #000;
}
#hero-demo.hero-demo-static .sidebar-nav-btn {
  cursor: default;
}
#hero-demo.hero-demo-static .field-input {
  cursor: default;
}
@media (max-width: 960px) {
  #hero-demo.hero-demo-static .hero-demo-viewport {
    height: 420px;
  }
  #hero-demo.hero-demo-static .hero-demo-viewport::after {
    height: 80px;
  }
  #hero-demo.hero-demo-static .app-sidebar {
    display: none !important;
  }
}
@media (max-width: 480px) {
  #hero-demo.hero-demo-static .hero-demo-viewport {
    height: min(460px, 56vh);
  }
}

/* ── APP SHELL (legacy — unused) ── */
.app-shell {
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-2);
  position: relative;
  z-index: 2;
}
.app-brand-link {
  display: flex; align-items: center; gap: 8px;
  color: var(--text); font-weight: 500; font-size: 13px;
  letter-spacing: -.02em;
  cursor: pointer; transition: opacity .2s;
}
.app-brand-link:hover { opacity: .88; }
.app-brand-link .brand-logo { width: 18px; height: 18px; opacity: .92; }
.app-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: 48px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(20px);
}
.app-brand-badge {
  font-size: 10px; color: var(--text-4);
  border: 1px solid var(--line); padding: 2px 6px;
  border-radius: 999px; font-family: var(--mono); font-weight: 500;
}
.app-topbar-right {
  display: flex; gap: 10px; align-items: center;
  font-size: 10px; color: var(--text-3); font-family: var(--mono);
  letter-spacing: .04em; text-transform: uppercase;
}
.app-live { display: flex; align-items: center; gap: 5px; color: var(--green); font-weight: 500; }
.app-live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(52,211,153,.45); }
.app-body { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; }
.app-sidebar {
  border-right: 1px solid var(--line); padding: 14px 10px;
  background: rgba(255,255,255,.012);
  display: flex; flex-direction: column; gap: 16px;
}
.app-sidebar-label {
  font-size: 11px; font-weight: 500; color: var(--text-4);
  letter-spacing: .04em; text-transform: uppercase;
  padding: 0 10px; margin-bottom: 4px;
  font-family: var(--mono);
}
.app-sidebar-label::before { content: '//'; margin-right: 6px; }
.app-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  color: var(--text-3); font-weight: 500; font-size: 13px;
  cursor: pointer; width: 100%; text-align: left;
  background: none; font-family: var(--font);
  transition: color .15s, background .15s, border-color .15s;
}
.app-nav-item:hover:not(.active) { color: var(--text-2); background: rgba(255,255,255,.04); }
.app-nav-item.active {
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-color: var(--line-strong);
}
.app-nav-item svg { width: 14px; height: 14px; opacity: .75; flex-shrink: 0; }
.app-nav-item .module-file { font-family: var(--mono); font-size: 12px; }
.app-module-tabs {
  display: none; gap: 6px; padding: 10px 12px; overflow-x: auto;
  border-bottom: 1px solid var(--line); background: rgba(0,0,0,.5);
  -webkit-overflow-scrolling: touch;
}
.app-module-tab {
  flex-shrink: 0; padding: 6px 10px; border-radius: 7px;
  border: 1px solid var(--line); background: transparent;
  color: var(--text-3); font-family: var(--mono); font-size: 10px; font-weight: 500;
  cursor: pointer; transition: all .15s;
}
.app-module-tab.active {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.06);
}
.app-main { padding: 18px; background: transparent; min-height: 340px; }
.demo-panel { display: none; }
.demo-panel.active { display: block; animation: demoFade .35s var(--ease-out); }
@keyframes demoFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.app-input-row { display: flex; gap: 8px; margin-bottom: 14px; }
.app-input {
  flex: 1; min-width: 0; padding: 10px 12px;
  background: rgba(255,255,255,.02); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--mono); font-size: 11px; outline: none;
  transition: border-color .2s;
}
.app-input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(255,255,255,.04); }
.app-scan-btn {
  padding: 0 14px; height: 38px;
  background: #fff; border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm); color: #000;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: background .15s;
}
.app-scan-btn:hover { background: #f4f4f5; }
.showcase-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 16px; border-top: 1px solid var(--line);
  background: rgba(0,0,0,.45); font-size: 11px; color: var(--text-3);
  position: relative; z-index: 2;
}
.showcase-bar-label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.showcase-bar-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(52,211,153,.4); }
.showcase-bar-link {
  color: var(--text-2); font-weight: 500; font-family: var(--mono); font-size: 10px;
  display: inline-flex; align-items: center; gap: 6px; transition: gap .2s, color .2s;
}
.showcase-bar-link:hover { color: var(--text); gap: 10px; }
.app-panel {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
  padding: 16px; height: 100%;
}
.app-panel-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px;
}
.app-panel-title {
  color: var(--text); font-weight: 700; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase; font-family: var(--mono);
}
.app-panel-sub { color: var(--text-3); font-size: 11px; margin-top: 4px; line-height: 1.5; font-family: var(--font); }
.app-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px; }
.app-metric {
  padding: 10px; background: rgba(255,255,255,.02);
  border: 1px solid var(--line); border-radius: 8px;
}
.app-metric-label {
  font-size: 10px; color: var(--text-4); font-weight: 500;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px;
  font-family: var(--font);
}
.app-metric-val { font-size: 16px; font-weight: 600; color: var(--text); letter-spacing: -.02em; font-family: var(--mono); }
.app-metric-val.warn { color: var(--amber); }
.app-metric-val.bad { color: var(--red); }
.app-metric-val.good { color: var(--green); }
.app-alert {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border: 1px solid rgba(251,191,36,.2); background: var(--amber-soft);
  border-radius: 8px; color: var(--amber); font-size: 10px; font-weight: 500;
  font-family: var(--mono);
}
.app-alert.is-danger {
  border-color: rgba(251,113,133,.2); background: var(--red-soft); color: var(--red);
}
.app-tokens { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.app-token-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 10px;
  font-family: var(--mono);
}
.app-token-row:last-child { border-bottom: none; }
.app-token-sym { color: var(--text-2); font-weight: 500; }
.app-token-val { color: var(--text); font-weight: 600; }
.app-token-val.bad { color: var(--red); }
.app-token-val.info { color: var(--info); }

/* ── SURFACE CARDS ── */
.surface-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.surface-card {
  position: relative; border-radius: var(--radius);
  padding: 28px 26px 26px; min-height: 220px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--line);
  transition: border-color .35s, background .35s, transform .45s var(--ease-out);
  overflow: hidden;
}
.surface-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,.05), transparent 42%);
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.surface-card:hover::before { opacity: 1; }
.surface-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
}
.surface-card h3 {
  font-size: 16px; font-weight: 500; letter-spacing: -.02em;
  margin-bottom: 10px; color: var(--text);
}
.surface-card p { font-size: 14px; line-height: 1.62; color: var(--text-2); font-weight: 400; }
.surface-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 22px; font-size: 13px; font-weight: 500; color: var(--text-3);
  transition: color .2s, gap .25s var(--ease-out);
}
.surface-card:hover .surface-card-link { color: var(--text); gap: 10px; }
.surface-icon {
  width: 32px; height: 32px; border-radius: 8px; margin-bottom: 22px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: var(--text-2);
}
.surface-icon svg { width: 16px; height: 16px; }

.surface-grid-2 { grid-template-columns: repeat(2, 1fr); }
.surface-card-wide { grid-column: span 1; min-height: 180px; }

/* ── METRICS STRIP ── */
.metrics-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.metric-item {
  padding: 36px 24px; text-align: center;
  border-right: 1px solid var(--line);
}
.metric-item:last-child { border-right: none; }
.metric-value {
  font-size: clamp(28px, 3vw, 36px); font-weight: 500;
  letter-spacing: -.04em; color: var(--text); margin-bottom: 6px;
}
.metric-label { font-size: 13px; color: var(--text-3); font-weight: 400; }

/* ── WORKFLOW ── */
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.workflow-step {
  padding: 32px 28px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
}
.workflow-num {
  font-size: 12px; font-weight: 500; color: var(--text-4);
  letter-spacing: .06em; margin-bottom: 18px;
}
.workflow-step h3 { font-size: 17px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 10px; }
.workflow-step p { font-size: 14px; color: var(--text-2); line-height: 1.62; font-weight: 400; }

/* ── QUOTE / TRUST ── */
.trust-line {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 28px; padding: 28px 0;
  font-size: 13px; color: var(--text-4); font-weight: 400;
}
.trust-line span { color: var(--text-3); }

/* ── BENTO (legacy pages) ── */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.bento-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card-gradient);
  padding: 28px; transition: border-color .3s, transform .4s var(--ease-out);
  position: relative; overflow: hidden;
}
.bento-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.04), transparent 40%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.bento-card:hover::before { opacity: 1; }
.bento-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.bento-card-icon {
  width: 32px; height: 32px; border-radius: 8px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text-2);
}
.bento-card-icon svg { width: 16px; height: 16px; }
.bento-card h3 { font-size: 16px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 8px; }
.bento-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; font-weight: 400; }
.bento-card-tag { display: none; }
.bento-span-3 { grid-column: span 3; }
.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }
.bento-span-8 { grid-column: span 8; }
.bento-span-12 { grid-column: span 12; }

/* ── FEATURE BLOCKS ── */
.feature-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px;
  align-items: center; padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
.feature-block:last-child { border-bottom: none; }
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feature-num { font-size: 12px; font-weight: 500; color: var(--text-4); letter-spacing: .06em; margin-bottom: 14px; }
.feature-block h2 {
  font-size: clamp(26px, 3vw, 34px); font-weight: 500;
  letter-spacing: -.03em; line-height: 1.12; margin-bottom: 16px;
}
.feature-block p { color: var(--text-2); font-size: 16px; line-height: 1.65; margin-bottom: 22px; font-weight: 400; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; }
.feature-list li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); font-weight: 400; }
.feature-list li svg { width: 15px; height: 15px; color: var(--text-3); flex-shrink: 0; margin-top: 3px; }
.feature-visual {
  border-radius: var(--radius); padding: 24px; min-height: 280px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.ui-stat-row { display: grid; gap: 8px; }
.ui-stat {
  padding: 12px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(255,255,255,.02);
}
.ui-stat-label { font-size: 10px; color: var(--text-4); margin-bottom: 4px; font-family: var(--font); }
.ui-stat-val { font-size: 18px; font-weight: 600; color: var(--text); font-family: var(--mono); letter-spacing: -.02em; }
.ui-stat-val.green { color: var(--green); }
.ui-stat-val.bad { color: var(--red); }
.ui-panel-title {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
}
.ui-alert-danger {
  padding: 10px 12px; border-radius: 8px; font-size: 10px; font-weight: 500;
  font-family: var(--mono); border: 1px solid rgba(251,113,133,.2);
  background: var(--red-soft); color: var(--red);
}
.ui-row {
  display: flex; justify-content: space-between; font-size: 10px;
  color: var(--text-3); padding: 6px 0; border-bottom: 1px solid var(--line);
  font-family: var(--mono);
}
.ui-row:last-child { border-bottom: none; }
.ui-row .bad { color: var(--red); font-weight: 600; }

/* ── CTA ── */
.cta-section {
  position: relative; overflow: hidden; text-align: center;
  padding: 88px 48px; border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--cta-gradient);
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 38px); font-weight: 500;
  letter-spacing: -.03em; margin-bottom: 14px;
}
.cta-section p {
  font-size: 16px; color: var(--text-2); max-width: 440px;
  margin: 0 auto 28px; font-weight: 400;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── PRICING ── */
.pricing-card {
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: var(--card-gradient);
  padding: 40px; max-width: 420px; position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.pricing-card.featured { border-color: var(--line-strong); }
.pricing-badge {
  position: absolute; top: 22px; right: 22px;
  font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.pricing-price { font-size: 52px; font-weight: 500; letter-spacing: -.04em; margin: 14px 0 8px; }
.pricing-price span { font-size: 16px; color: var(--text-3); font-weight: 400; }
.pricing-features { list-style: none; margin: 28px 0; display: flex; flex-direction: column; gap: 11px; }
.pricing-features li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); font-weight: 400; }
.pricing-features li svg { width: 15px; height: 15px; color: var(--text-3); flex-shrink: 0; }

/* ── PROSE / PAGE HEADER ── */
.prose { max-width: 640px; }
.prose h1 { font-size: 34px; font-weight: 500; letter-spacing: -.03em; margin-bottom: 10px; }
.prose .meta { color: var(--text-4); font-size: 13px; margin-bottom: 40px; }
.prose h2 { font-size: 20px; font-weight: 500; margin: 36px 0 10px; letter-spacing: -.02em; }
.prose p, .prose li { color: var(--text-2); font-size: 15px; line-height: 1.7; margin-bottom: 14px; font-weight: 400; }
.prose ul { padding-left: 18px; margin-bottom: 14px; }
.prose a {
  color: var(--text); text-decoration: underline;
  text-decoration-color: var(--line-strong); text-underline-offset: 3px;
}
.prose a:hover { color: var(--text-2); }
.page-main {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 96px;
}
.page-header {
  padding: calc(var(--nav-h) + 72px) 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-header h1 {
  font-size: clamp(36px, 5vw, 52px); font-weight: 500;
  letter-spacing: -.04em; line-height: 1.06; margin-bottom: 16px;
}
.page-header p { font-size: 18px; color: var(--text-2); max-width: 540px; font-weight: 400; }

/* stats (inner pages) */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat-cell { padding: 32px 20px; text-align: center; background: rgba(255,255,255,.015); border-right: 1px solid var(--line); }
.stat-cell:last-child { border-right: none; }
.stat-num { font-size: 36px; font-weight: 500; letter-spacing: -.04em; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: var(--text-3); }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--line); padding: 72px 0 36px; margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 48px;
  margin-bottom: 52px;
}
.footer-brand p {
  font-size: 14px; color: var(--text-3); line-height: 1.65;
  margin-top: 18px; max-width: 260px; font-weight: 400;
}
.footer-chain-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  font-size: 12px; color: var(--text-3); line-height: 1.4;
}
.footer-chain-badge img {
  width: 16px; height: 16px; flex-shrink: 0; display: block;
}
.footer-trademark {
  margin-top: 12px; font-size: 11px; line-height: 1.55;
  color: var(--text-4); max-width: 320px;
}
.footer-col h4 {
  font-size: 12px; font-weight: 500; color: var(--text-4);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--text-3);
  padding: 5px 0; transition: color .2s; font-weight: 400;
}
.footer-col--tools a { padding: 4px 0; font-size: 13px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-4); font-weight: 400;
}

.section-head .section-label,
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 20px;
}
.section-label::before {
  content: '//'; font-family: var(--mono); color: var(--text-4); margin-right: 4px;
}
.section-divider { border-top: 1px solid var(--line); }
.step-label {
  font-size: 12px; font-weight: 500; color: var(--text-3);
  font-family: var(--mono); letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 8px;
}
.donate-code {
  display: block; padding: 12px 16px;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: 8px; font-size: 12px; font-family: var(--mono);
  color: var(--text-2); letter-spacing: .02em; word-break: break-all;
}
.finding-item {
  padding: 8px 12px; border-radius: 6px; font-size: 12px;
}
.finding-item.danger {
  border: 1px solid rgba(251,113,133,.25);
  background: var(--red-soft); color: var(--red);
}
.finding-item.warn {
  border: 1px solid rgba(251,191,36,.25);
  background: rgba(251,191,36,.08); color: var(--amber);
}
.finding-item.ok {
  border: 1px solid rgba(52,211,153,.25);
  background: rgba(52,211,153,.08); color: var(--green);
}

/* ── ANIMATIONS ── */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .surface-grid, .surface-grid-2, .workflow { grid-template-columns: 1fr; }
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-item:nth-child(2) { border-right: none; }
  .metric-item:nth-child(1), .metric-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .app-body { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-module-tabs { display: flex; }
  .bento-span-3, .bento-span-4, .bento-span-6, .bento-span-8 { grid-column: span 12; }
  .feature-block, .feature-block.reverse { grid-template-columns: 1fr; direction: ltr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .docs-layout { grid-template-columns: 1fr; gap: 32px; }
  .docs-sidebar { position: static; }
  .docs-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .docs-nav a { padding: 6px 10px; font-size: 12px; border: 1px solid var(--line); }
  .docs-nav a.active { border-color: var(--line-strong); background: rgba(255,255,255,.06); }
}
@media (max-width: 768px) {
  .container, .container-wide, .nav-inner { padding: 0 20px; }
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-actions .nav-launch-btn { display: none; }
  .nav-actions { gap: 2px; }
  .nav-actions .nav-lang-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }
  .nav-actions .nav-lang-code { display: none; }
  .nav-actions .nav-lang-btn svg { width: 16px; height: 16px; }
  .nav-actions .nav-lang-dd { right: 0; min-width: 156px; }
  .nav-mega-panel { display: none !important; }
  .nav-mega-backdrop { display: none !important; }
  .nav-toggle { display: flex; }
  .mobile-menu-backdrop { display: block; }
  .mobile-menu { display: flex; }
  .section { padding: 80px 0; }
  .hero-showcase { margin-top: 48px; }
  .showcase-frame { border-radius: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .cta-section { padding: 56px 24px; border-radius: 16px; }
  .app-metrics { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .tool-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .tool-related-grid { grid-template-columns: 1fr; }
  .tools-catalog-grid--2,
  .tools-catalog-grid--4 { grid-template-columns: 1fr; }
  .page-main {
    padding-top: calc(var(--nav-h) + 48px);
  }
  .prose h1 {
    font-size: clamp(1.625rem, 7vw, 2.125rem);
    line-height: 1.15;
    scroll-margin-top: calc(var(--nav-h) + 16px);
  }
  .mobile-nav-row-text,
  .mobile-tool-link {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .tools-traits { grid-template-columns: 1fr; }
  .security-trust-strip { grid-template-columns: repeat(2, 1fr); }
  .security-trust-item:nth-child(2) { border-right: none; }
  .security-trust-item:nth-child(1),
  .security-trust-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .security-principles-grid { grid-template-columns: 1fr; }
  .security-flow { grid-template-columns: 1fr; }
  .methodology-modules-grid { grid-template-columns: 1fr; }
  .use-case-grid { grid-template-columns: 1fr; }
  .watchlist-signals-grid { grid-template-columns: 1fr; }
  .security-split { grid-template-columns: 1fr; gap: 32px; }
  .security-sources-grid { grid-template-columns: 1fr; }
  .about-mission { grid-template-columns: 1fr; }
  .about-roadmap-grid { grid-template-columns: 1fr; }
  .about-changelog-entry { grid-template-columns: 1fr; gap: 12px; }
  .about-links { grid-template-columns: 1fr; }
}

/* Article pages */
.article-hero { padding-bottom: 0; }
.article-hero h1 {
  font-size: clamp(2.125rem, 4.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-top: 1rem;
}
.article-hero-meta {
  margin-top: 1.25rem;
  gap: 12px;
}
.article-read-time {
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--mono);
}
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}
.article-breadcrumb a { color: var(--text-2); transition: color .15s; }
.article-breadcrumb a:hover { color: var(--text); }
.article-lead {
  max-width: 46rem;
  font-size: 1.2rem;
  line-height: 1.7;
  margin-top: 1rem;
}
.article-section { padding-top: 2.5rem; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
}
.article-prose {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-2);
}
.article-prose-section + .article-prose-section { margin-top: 2.25rem; }
.article-prose h2 {
  font-size: 1.5rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.85rem;
  scroll-margin-top: 96px;
}
.article-prose p { margin: 0; }
.article-aside { position: sticky; top: 88px; }
.article-aside-card,
.article-toc {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.article-toc { margin-bottom: 14px; }
.article-toc-title,
.article-aside-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.article-toc ol {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 8px;
}
.article-toc a {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
}
.article-toc a:hover { color: var(--text); }
.article-takeaways {
  margin: 0 0 14px;
  padding-left: 1.1rem;
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}
.btn-block { display: flex; width: 100%; justify-content: center; }

/* Cookie notice — compact */
.cookie-banner {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 9999;
  max-width: min(380px, calc(100vw - 24px));
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  background: rgba(10, 10, 12, 0.92);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}
html.light-theme .cookie-banner-inner { background: rgba(255,255,255,.95); }
.cookie-banner-text {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-3);
  flex: 1;
}
.cookie-banner-link { color: var(--text-2); text-decoration: underline; }
.cookie-banner-btn {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-banner-btn:hover { opacity: .92; }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; order: -1; }
}
@media (max-width: 640px) {
  .cookie-banner { left: 12px; right: 12px; max-width: none; }
}
@media (max-width: 1100px) {
  .nav-mega-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-mega-grid--docs { max-width: none; }
}
