/* SMOTASS — next-era design system
   Dark terminal + purple/void heritage. Gold = ASSets.
   Not a generic fintech dashboard. */

:root {
  --ink: #07040d;
  --void: #12061f;
  --navy: #1a1028;
  --panel: #241833;
  --panel-2: #2c1d3e;
  --line: #3d2a55;
  --line-hot: #6a4a8a;
  --violet: #c4a0ff;
  --violet-hot: #e0c8ff;
  --gold: #e8c15a;
  --gold-dim: #b8923a;
  --cream: #f4efe6;
  --muted: #c4b6d4;
  --quiet: #8d7a9e;
  --green: #7ddba3;
  --danger: #ffb4a8;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1180px;
  --header-h: 72px;
  --font-display: "Syne", "Trebuchet MS", sans-serif;
  --font-ui: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(180, 140, 255, 0.12), transparent 55%),
    radial-gradient(800px 400px at 90% 0%, rgba(232, 193, 90, 0.06), transparent 50%),
    var(--void);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  background:
    radial-gradient(2px 2px at 12% 30%, rgba(232,193,90,.55), transparent),
    radial-gradient(1.5px 1.5px at 28% 70%, rgba(196,160,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 63% 25%, rgba(244,239,230,.35), transparent),
    radial-gradient(2px 2px at 81% 60%, rgba(232,193,90,.4), transparent),
    radial-gradient(1px 1px at 93% 20%, rgba(196,160,255,.45), transparent),
    linear-gradient(180deg, rgba(18,6,31,.94), rgba(18,6,31,.88));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.35rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 40%;
  box-shadow: 0 0 0 2px var(--gold-dim);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
}
.wordmark span { color: var(--gold); }

.nav-toggle {
  margin-left: auto;
  background: var(--panel);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  cursor: pointer;
}
.site-nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.15rem;
}
.site-nav a, .site-nav summary {
  color: var(--cream);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.95rem;
  list-style: none;
  cursor: pointer;
}
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::marker { content: ""; }
.site-nav a:hover, .site-nav summary:hover { background: var(--panel); color: var(--gold); }
.site-nav details { position: relative; }
.site-nav details[open] summary { background: var(--panel); color: var(--gold); }
.mega {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(640px, 90vw);
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.85rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  z-index: 60;
}
.mega a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
}
.mega img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.search-mini {
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.35rem 0.2rem 0.75rem;
}
.search-mini input {
  background: transparent;
  border: 0;
  color: var(--cream);
  width: 9rem;
  font: inherit;
}
.search-mini button {
  background: var(--gold);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-weight: 700;
  cursor: pointer;
}
.search-mini button:hover {
  color: var(--ink);
  filter: brightness(1.08);
}
.nav-email { color: var(--gold) !important; font-weight: 700; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; }
}
@media (min-width: 1024px) and (max-width: 1239px) {
  .search-mini { display: none; }
  .site-nav a, .site-nav summary { padding: 0.4rem 0.5rem; font-size: 0.88rem; }
}
@media (max-width: 1023px) {
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0; right: 0; top: var(--header-h);
    background: var(--navy);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem;
    gap: 0.25rem;
  }
  .mega {
    position: static;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }
  .search-mini { width: 100%; }
  .search-mini input { width: 100%; }
}

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.1rem 3rem; overflow-wrap: break-word; }
.hero {
  padding: 1.5rem 0 2rem;
}
.hero-stage {
  position: relative;
  width: 100%;
  height: clamp(260px, 36vw, 440px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #05060e;
}
.hero-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 42% 50%;
  border-radius: 0;
}
.hero-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  top: auto;
  z-index: 3;
  width: min(48%, 30rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3.5rem 1.6rem 1.5rem 0.6rem;
}
.hero-overlay .lede {
  max-width: none;
  font-size: 1.05rem;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
}
.hero-overlay .chips { margin: 0.55rem 0 0.7rem; }
.hero-overlay .hero-search { max-width: 100%; margin: 0; }
.pulse-moon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: 11rem;
  transform: translate(-50%, -50%);
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  pointer-events: auto;
}
.pulse-moon-chip {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 160, 255, 0.5);
  background: rgba(12, 6, 24, 0.55);
  color: #dcc8ff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.pulse-moon-line {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.78rem;
  line-height: 1.3;
  color: #c4b6d4;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.85);
}
.pulse-moon:hover .pulse-moon-chip {
  border-color: #e0c8ff;
  color: #f4efe6;
}
.pulse-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  margin: 0 0 1.6rem;
}
.pulse-cta p { margin: 0; color: var(--muted); flex: 1 1 16rem; }
@media (max-width: 767px) {
  .hero-overlay {
    position: static;
    width: 100%;
    padding: 1.15rem 0 0;
  }
  .hero-overlay .lede { text-shadow: none; }
  .pulse-moon {
    max-width: 42%;
  }
}
.kicker {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.7rem;
  color: var(--cream);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: 0.04em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.acronym {
  font-size: clamp(0.62rem, 0.38rem + 1.5vw, 1.15rem);
  color: var(--muted);
  margin: 0.45rem 0 1.25rem;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
}
.acronym b {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.12em;
  font-weight: 800;
}
.wallpaper-dl { margin: 0.75rem 0 0; }
.wallpaper-dl a {
  color: var(--gold);
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
}
.wallpaper-dl a:hover { color: var(--cream); border-bottom-color: var(--cream); }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0 1.4rem; }
.chip {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
}
a.chip { color: var(--cream); }
.chip:hover, .chip.is-on, a.chip:hover { border-color: var(--gold); color: var(--gold); }

.hero-search {
  display: flex;
  gap: 0.5rem;
  max-width: 34rem;
  margin: 1rem 0 0.5rem;
}
.hero-search input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
}
.hero-search button, .btn {
  background: var(--gold);
  color: var(--ink);
  border: 0;
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
}
.hero-search button:hover,
.search-mini button:hover,
a.btn:hover,
.btn:hover {
  color: var(--ink);
  filter: brightness(1.08);
}
a.btn-ghost:hover,
.btn-ghost:hover {
  color: var(--cream);
  border-color: var(--gold);
  filter: none;
}

/* Sections */
.section { margin: 2.4rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-head p { color: var(--muted); margin: 0; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) { .hub-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .hub-grid { grid-template-columns: repeat(6, 1fr); }
  .hub-grid .hub-card span { display: none; }
}

.hub-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.75rem 1rem;
  text-decoration: none;
  color: var(--cream);
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-dim);
  box-shadow: var(--shadow);
  color: var(--cream);
}
.hub-card img {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.55rem;
  border-radius: 16px;
  object-fit: cover;
}
.hub-card strong { display: block; font-family: var(--font-display); }
.hub-card span { display: block; color: var(--quiet); font-size: 0.8rem; margin-top: 0.2rem; }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 768px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .card-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }

.resource {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 6.5rem;
}
.resource[hidden] { display: none !important; }
.filter-empty {
  color: var(--muted);
  padding: 1.2rem 0;
}
.resource a.title {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
}
.resource a.title:hover { color: var(--gold); }
.resource .meta {
  color: var(--quiet);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.badges { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.badge {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge.aff { border-color: var(--gold-dim); color: var(--gold); }
.badge.classic { border-color: var(--violet); color: var(--violet); }
.badge.vault { border-color: var(--danger); color: var(--danger); }

.feature-pulse {
  margin: 0.4rem 0 2.2rem;
}
.feature-pulse-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #07040d;
  text-decoration: none;
  color: var(--cream);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.feature-pulse-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
  object-position: center;
}
.feature-pulse-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.4rem 26%;
  background: radial-gradient(ellipse at center, rgba(7, 4, 13, 0.42) 0%, transparent 62%);
}
.feature-pulse-copy .label {
  color: var(--gold);
  margin-bottom: 0.15rem;
}
.feature-pulse-copy strong {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.55rem);
  letter-spacing: 0.05em;
  line-height: 1.05;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.8);
}
.feature-pulse-copy .tag {
  color: var(--muted);
  font-size: clamp(0.88rem, 1.5vw, 1.05rem);
  max-width: 22rem;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.85);
}
.feature-pulse-copy .btn {
  margin-top: 0.65rem;
  pointer-events: none;
}
.feature-pulse .ad-note {
  margin: 0.55rem 0 0;
  text-align: center;
}
@media (max-width: 767px) {
  .feature-pulse-copy {
    position: relative;
    padding: 1rem 1.1rem 1.2rem;
    background: linear-gradient(180deg, rgba(7, 4, 13, 0), var(--ink) 22%);
    margin-top: -1.6rem;
  }
  .feature-pulse-card img {
    min-height: 150px;
    object-position: left center;
  }
}

.ad-slot {
  border: 1px dashed var(--line-hot);
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1rem;
  min-height: 120px;
  display: grid;
  gap: 0.6rem;
  align-items: center;
}
.ad-slot .label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--quiet);
  font-family: var(--font-mono);
}
.ad-slot img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 180px;
  border-radius: 10px;
  object-fit: contain;
}
.ad-slot p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.ad-note { font-size: 0.8rem; color: var(--quiet); }

.paths { display: grid; gap: 0.75rem; }
@media (min-width: 768px) { .paths { grid-template-columns: 1fr 1fr; } }
.path {
  background: linear-gradient(180deg, var(--panel), var(--navy));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-decoration: none;
  color: var(--cream);
}
.path:hover { border-color: var(--gold-dim); color: var(--cream); }
.path strong { color: var(--gold); display: block; margin-bottom: 0.3rem; }

.teaser {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 768px) { .teaser { grid-template-columns: 1fr 1fr; } }
.teaser article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.teaser h2, .teaser h3 { color: var(--gold); font-size: 1.25rem; }

.breadcrumbs {
  font-size: 0.88rem;
  color: var(--quiet);
  margin: 0.4rem 0 1.2rem;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }

.prose { max-width: 46rem; }
.prose p { color: var(--muted); }
.prose strong { color: var(--cream); }

.disclaimer-box {
  display: grid;
  gap: 1rem;
  align-items: center;
  background: var(--navy);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-top: 2rem;
}
@media (min-width: 768px) { .disclaimer-box { grid-template-columns: 140px 1fr; } }
.disclaimer-box img {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: cover;
}
.disclaimer-box p { margin: 0.3rem 0; }
.disclaimer-box .big {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  padding: 2rem 1.1rem 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 1.2rem; }
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer a { color: var(--violet-hot); }
.site-footer nav { display: grid; gap: 0.25rem; }
.acronym-foot { color: var(--cream); }
.acronym-foot b { color: var(--gold); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
}
.count { color: var(--quiet); font-size: 0.9rem; }

.human-sitemap ul { columns: 1; }
@media (min-width: 768px) { .human-sitemap ul { columns: 2; } }
.human-sitemap li { break-inside: avoid; margin: 0.25rem 0; }

.vault-list .resource { border-left-color: var(--danger); }

/* Legacy easter-egg theme */
html[data-theme="legacy"] body {
  background: #140028 url("/starcloudwall.jpg") repeat;
  color: #7dffb0;
}
html[data-theme="legacy"] .site-header {
  background: rgba(40, 0, 70, 0.9);
}
html[data-theme="legacy"] .hub-card,
html[data-theme="legacy"] .resource,
html[data-theme="legacy"] .path,
html[data-theme="legacy"] .teaser article {
  background: rgba(20, 0, 40, 0.75);
  border-color: #8080ff;
}
html[data-theme="legacy"] a { color: #b0b0ff; }

.legacy-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--quiet);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
}

@media print {
  .site-header, .site-footer, .ad-slot, .nav-toggle, .legacy-toggle { display: none !important; }
  body { background: #fff; color: #111; }
  a { color: #111; }
  .resource { break-inside: avoid; border-color: #ccc; }
}
