/* ANTONMAW article pages — Wave 1 (not linked from home) */
:root {
  --bg: #07080c;
  --bg-2: #0c0f16;
  --card: #12161f;
  --line: rgba(255,255,255,0.08);
  --text: #f2f4f8;
  --muted: #9aa3b5;
  --accent: #6ee7ff;
  --accent-2: #8b9cff;
  --warm: #ffb86b;
  --ok: #34d399;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --wa: #25d366;
  --nav-bg: rgba(7,8,12,0.55);
  --nav-bg-scrolled: rgba(7,8,12,0.82);
  --btn-primary-fg: #061018;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(780px, calc(100% - 2.5rem)); margin-inline: auto; }
.wrap-wide { width: min(1100px, calc(100% - 2.5rem)); margin-inline: auto; }

.bg-mesh {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 8% -8%, rgba(110,231,255,0.14), transparent 52%),
    radial-gradient(ellipse 70% 48% at 96% 8%, rgba(139,156,255,0.16), transparent 48%),
    radial-gradient(ellipse 55% 40% at 70% 70%, rgba(167,139,250,0.07), transparent 55%),
    var(--bg);
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.045;
  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");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

/* Nav — compact desktop + shrink on scroll (extended / article pages only) */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  background: var(--nav-bg, rgba(7,8,12,0.55));
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease-soft), border-color .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled {
  background: var(--nav-bg-scrolled, rgba(7,8,12,0.82));
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(0,0,0,0.32);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0; gap: 0.65rem;
  transition: padding .25s var(--ease-soft);
}
.brand {
  display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: inherit;
  flex: none;
  min-width: 0;
}
.brand img {
  width: 36px; height: 36px; border-radius: 9px;
  object-fit: cover; border: 1px solid var(--line);
  background: #0a0a0a; flex: none;
  transition: width .25s var(--ease-soft), height .25s var(--ease-soft), border-radius .25s ease;
}
.brand-text { display: flex; flex-direction: column; gap: 0.02rem; line-height: 1.1; }
.logo {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700; letter-spacing: 0.08em; font-size: 0.95rem;
  transition: font-size .25s var(--ease-soft);
}
.logo span { color: var(--accent); }
.logo-edit {
  font-size: 0.6rem; font-weight: 500; color: var(--muted);
  letter-spacing: 0; display: block; margin-top: 0.05rem;
  transition: opacity .2s ease, max-height .25s ease, margin .25s ease;
  max-height: 1.2rem; overflow: hidden;
}
.nav-links {
  display: flex; gap: 0.45rem; align-items: center;
  color: var(--muted); font-size: 0.82rem; flex-wrap: wrap; justify-content: flex-end;
  max-width: min(820px, 72vw);
  transition: font-size .25s var(--ease-soft), gap .25s ease;
}
.nav-links .btn-nav-wa { font-size: 0.74rem; padding: 0.38rem 0.72rem; }
.nav-links a:not(.btn) {
  position: relative; padding: 0.15rem 0;
  transition: color .2s ease, font-weight .15s ease;
  white-space: nowrap;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
  border-radius: 2px;
}
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).is-active {
  color: var(--text);
  font-weight: 700;
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).is-active::after { transform: scaleX(1); }

/* Desktop: one compact row — links hug the brand; theme+WA flush right */
@media (min-width: 901px) {
  .nav-inner {
    justify-content: flex-start;
    gap: 0.55rem;
    padding: 0.4rem 0;
  }
  /* Flatten nav-links so theme cluster can sit on the same flex row as the links */
  .nav-links {
    display: contents;
  }
  .nav-inner > a:not(.brand) {
    color: var(--muted);
    font-size: 0.82rem;
    position: relative;
    padding: 0.12rem 0;
    white-space: nowrap;
    flex: none;
  }
  .nav-inner > a:not(.brand):hover,
  .nav-inner > a:not(.brand).is-active {
    color: var(--text);
    font-weight: 700;
  }
  .nav-inner > a:not(.brand)::after {
    content: "";
    position: absolute; left: 0; bottom: -2px;
    width: 100%; height: 1.5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
    border-radius: 2px;
  }
  .nav-inner > a:not(.brand):hover::after,
  .nav-inner > a:not(.brand).is-active::after { transform: scaleX(1); }
  .nav-theme-wa {
    margin-left: auto;
    flex-wrap: nowrap !important;
    flex-shrink: 0;
    column-gap: 0.45rem !important;
    row-gap: 0 !important;
  }
  .nav-theme-wa .theme-switcher {
    padding: 0.18rem 0.24rem;
  }
  .nav-theme-wa .theme-switcher button {
    width: 1.15rem;
    height: 1.15rem;
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .nav-inner > a:not(.brand) { font-size: 0.76rem; }
  .nav-inner { gap: 0.4rem; }
}

@media (max-width: 900px) {
  .nav-links .hide-sm { display: none; }
  .nav-inner { padding: 0.5rem 0; }
}

/* Shrink as much as possible while scrolled (desktop + tablet) */
@media (min-width: 901px) {
  .nav.is-scrolled .nav-inner {
    padding: 0.22rem 0;
    gap: 0.4rem;
  }
  .nav.is-scrolled .brand {
    gap: 0.35rem;
  }
  .nav.is-scrolled .brand img {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }
  .nav.is-scrolled .logo {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
  }
  .nav.is-scrolled .logo-edit {
    max-height: 0;
    opacity: 0;
    margin: 0;
  }
  .nav.is-scrolled .nav-inner > a:not(.brand) {
    font-size: 0.74rem;
  }
  .nav.is-scrolled .btn-nav-wa {
    padding: 0.26rem 0.55rem !important;
    font-size: 0.68rem !important;
  }
  .nav.is-scrolled .nav-theme-wa {
    column-gap: 0.35rem !important;
  }
  .nav.is-scrolled .theme-switcher {
    padding: 0.1rem 0.14rem;
    gap: 0.18rem;
  }
  .nav.is-scrolled .theme-switcher button {
    width: 0.95rem;
    height: 0.95rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  border-radius: 999px; padding: 0.8rem 1.25rem;
  font-weight: 600; font-size: 0.92rem; border: 1px solid transparent;
  transition: transform .2s var(--ease-out), background .2s ease, border-color .2s ease, box-shadow .25s ease, filter .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4a9eff 50%, var(--accent-2));
  color: var(--btn-primary-fg, #061018);
  box-shadow: 0 8px 28px rgba(110,231,255,0.18);
}
.btn-ghost {
  background: transparent; border-color: var(--line); color: var(--text);
}
.btn-ghost:hover { border-color: var(--ghost-hover-border, rgba(255,255,255,0.28)); background: var(--ghost-hover-bg, rgba(255,255,255,0.03)); }
.btn-wa {
  background: var(--wa); color: #04140a; border: none;
}
.btn-wa:hover { filter: brightness(1.06); box-shadow: 0 10px 28px rgba(37,211,102,0.3); }
.btn-nav-wa {
  padding: 0.38rem 0.72rem;
  font-size: 0.74rem;
}
@media (min-width: 901px) {
  .btn-nav-wa {
    padding: 0.34rem 0.65rem;
    font-size: 0.72rem;
  }
}

/* Article */
.article-hero {
  padding: 3.25rem 0 2rem;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem;
}
.article-hero h1 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.lede {
  font-size: 1.08rem; color: var(--text); max-width: 42rem;
}
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
  font-size: 0.8rem; color: var(--muted); margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }

.article-body { padding: 2.5rem 0 3.5rem; }
.article-body h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.35rem; font-weight: 650; margin: 2.4rem 0 0.85rem;
  letter-spacing: -0.015em;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.05rem; font-weight: 600; margin: 1.6rem 0 0.55rem;
  color: var(--text);
}
.article-body p { margin: 0 0 1rem; color: var(--text); }
.article-body p strong { color: var(--text); font-weight: 600; }
.article-body ul, .article-body ol {
  margin: 0 0 1.15rem 1.15rem; color: var(--text);
}
.article-body li { margin-bottom: 0.45rem; color: var(--text); }
.article-body a:not(.btn) {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:not(.btn):hover { color: color-mix(in srgb, var(--accent) 70%, white); }

.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  color: var(--text); font-size: 0.92rem;
}
.note strong { color: var(--text); }

.compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 1.25rem 0 1.5rem;
}
@media (max-width: 720px) {
  .compare { grid-template-columns: 1fr; }
}
.compare-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}
.compare-card h3 {
  margin: 0 0 0.45rem !important;
  font-size: 0.98rem !important;
  color: var(--accent) !important;
}
.compare-card p { margin: 0; font-size: 0.9rem; color: var(--text); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1.25rem 0 1.5rem;
}
@media (max-width: 640px) {
  .split { grid-template-columns: 1fr; }
}
.split-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}
.split-card h3 {
  margin: 0 0 0.55rem !important;
  font-size: 0.98rem !important;
}
.split-card.yes h3 { color: var(--ok); }
.split-card.no h3 { color: var(--warm); }
.split-card ul { margin: 0 0 0 1rem; }
.split-card li { font-size: 0.9rem; color: var(--text); }

.faq-block details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 0.65rem;
  padding: 0.15rem 1rem;
}
.faq-block summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.9rem 0;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after {
  content: "+"; color: var(--accent); font-size: 1.2rem; font-weight: 500;
}
.faq-block details[open] summary::after { content: "−"; }
.faq-block details p {
  padding-bottom: 1rem;
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.92rem;
}
.market-table th, .market-table td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.market-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.market-table td { color: var(--text); }
.market-table td strong { color: var(--text); }

.cta-band {
  margin-top: 2.5rem;
  background: linear-gradient(160deg, rgba(110,231,255,0.08), rgba(139,156,255,0.06));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}
.cta-band h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.35rem;
  margin: 0 0 0.65rem !important;
}
.cta-band p { color: var(--text); margin-bottom: 1.15rem; }
.cta-actions {
  display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 1rem;
}
.cta-meta {
  font-size: 0.88rem; color: var(--text);
}
.cta-meta a { color: var(--accent); text-decoration: none; }
.cta-meta a:hover { text-decoration: underline; }

.related {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.related h2 {
  font-size: 1.05rem !important;
  margin: 0 0 0.75rem !important;
}
.related-links {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
}
.related-links a {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted) !important;
  text-decoration: none !important;
  background: var(--card);
}
.related-links a:hover {
  color: var(--text) !important;
  border-color: var(--ghost-hover-border, rgba(255,255,255,0.22));
}

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 5rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
}
.footer-inner .founder { color: var(--text); font-weight: 500; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

.wa-sticky {
  display: none;
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 55;
  background: var(--wa); color: #04140a;
  border-radius: 999px; padding: 0.75rem 1.35rem;
  font-weight: 700; font-size: 0.92rem;
  box-shadow: 0 10px 32px rgba(37,211,102,0.35);
  align-items: center; gap: 0.5rem;
  white-space: nowrap;
}
.wa-sticky:hover { filter: brightness(1.06); transform: translateX(-50%) translateY(-2px); }
@media (max-width: 720px) {
  .wa-sticky { display: inline-flex; }
  footer.site-footer { padding-bottom: 5.5rem; }
}
