/* HOREYEUS Website — High-Contrast Eye of Horus Design System (by roman a. s. arco) */
:root {
  --bg: #090B10;
  --panel: #11141C;
  --panel-alt: #0D1017;
  --fg: #FFFFFF;
  --muted: #B6BFCC;
  --accent: #FFD400;
  --accent-fg: #000000;
  --ok: #00E5A8;
  --warn: #FF5555;
  --border: #30384A;
  --strong: #FFFFFF;
}

body.theme-oled {
  --bg: #000000;
  --panel: #080808;
  --panel-alt: #040404;
  --fg: #FFFFFF;
  --muted: #BBBBBB;
  --accent: #FFD400;
  --accent-fg: #000000;
  --ok: #00FFAA;
  --warn: #FF4444;
  --border: #444444;
  --strong: #FFFFFF;
}

body.theme-light {
  --bg: #F8F9FA;
  --panel: #FFFFFF;
  --panel-alt: #EEF1F5;
  --fg: #0A0A0A;
  --muted: #444B59;
  --accent: #B86B00;
  --accent-fg: #FFFFFF;
  --ok: #006B4B;
  --warn: #B80000;
  --border: #1A1A1A;
  --strong: #000000;
}

body.theme-cyberpunk {
  --bg: #07040F;
  --panel: #120924;
  --panel-alt: #0C0618;
  --fg: #F5E6FF;
  --muted: #C299E0;
  --accent: #00F0FF;
  --accent-fg: #07040F;
  --ok: #FF2A85;
  --warn: #FF3355;
  --border: #4A1C7C;
  --strong: #00F0FF;
}

body.theme-solarized {
  --bg: #002B36;
  --panel: #073642;
  --panel-alt: #042F3A;
  --fg: #FDF6E3;
  --muted: #93A1A1;
  --accent: #B58900;
  --accent-fg: #002B36;
  --ok: #2AA198;
  --warn: #DC322F;
  --border: #586E75;
  --strong: #EEE8D5;
}

body.theme-emerald {
  --bg: #040A06;
  --panel: #09160E;
  --panel-alt: #06100A;
  --fg: #D8FFE4;
  --muted: #82C99B;
  --accent: #00FF66;
  --accent-fg: #040A06;
  --ok: #A6FF00;
  --warn: #FF4444;
  --border: #1A472A;
  --strong: #00FF66;
}

body.theme-crimson {
  --bg: #0D0507;
  --panel: #180A0E;
  --panel-alt: #12070A;
  --fg: #FFF5F5;
  --muted: #D4A3AD;
  --accent: #FF3355;
  --accent-fg: #0D0507;
  --ok: #FFD400;
  --warn: #FF6677;
  --border: #5C1A26;
  --strong: #FFD400;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "JetBrains Mono", "DejaVu Sans Mono", "Cascadia Mono", Consolas, monospace;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.topbar {
  border-bottom: 3px solid var(--strong);
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
}
.nav-brand img.eye-mini {
  width: 38px;
  height: 38px;
  border: 2px solid var(--strong);
  background: #000;
  display: block;
}
.nav-title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-links a, .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  color: var(--fg);
  border: 2px solid var(--border);
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.nav-links a:hover, .btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  text-decoration: none;
}
.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn-ok {
  border-color: var(--ok);
  color: var(--ok);
}
.btn-ok:hover {
  background: var(--ok);
  color: #000;
}
.btn-warn {
  border-color: var(--warn);
  color: var(--warn);
}
.btn-warn:hover {
  background: var(--warn);
  color: #fff;
}

/* ==================== OCCULT / ANCIENT EGYPT & MESOPOTAMIAN UI POLISH ==================== */
.sacred-emblem-frame {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 212, 0, 0.22), 0 8px 24px rgba(0, 0, 0, 0.45);
}
.sacred-sigil-sub {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  margin-bottom: 6px;
}
.sacred-panel {
  border-top: 3px solid var(--accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.btn-download {
  background: linear-gradient(135deg, #1b5c8a 0%, #0f3654 100%);
  color: #f8f2d8;
  border: 2px solid #d4af37;
  box-shadow: 0 3px 12px rgba(212, 175, 55, 0.22);
}
.btn-download:hover {
  background: #d4af37;
  color: #0b0d12;
  border-color: #f8f2d8;
}
.btn-relief {
  background: linear-gradient(135deg, #143628 0%, #0c2219 100%);
  color: #8cf5c8;
  border: 2px solid var(--ok);
}
.btn-relief:hover {
  background: var(--ok);
  color: #09100c;
  border-color: var(--ok);
}
.relief-centerpiece {
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08), transparent 65%);
}
.charity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.charity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  flex-wrap: wrap;
}
.charity-item:hover {
  border-color: var(--ok);
  text-decoration: none;
}
.charity-item strong {
  display: block;
  font-size: 13px;
  color: var(--accent);
}
.charity-item span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.doc-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0;
}
.doc-search-row input {
  flex: 1;
  min-width: 240px;
  background: var(--bg);
  color: var(--fg);
  border: 2px solid var(--strong);
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
}
.topbar-preview-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--bg);
  border: 2px solid var(--strong);
  padding: 10px 12px;
  margin-bottom: 10px;
}
.tb-icon-btn {
  background: var(--panel);
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.tb-icon-btn:hover,
.tb-icon-btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--panel-alt);
}
.tb-url-pill {
  flex: 1;
  min-width: 180px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
}

.creator-arch-img {
  display: block;
  height: 34px;
  width: auto;
  image-rendering: pixelated;
}
.creator-arch-img.hero-arch {
  height: 44px;
}

/* Section header with persistent creator arch label */
.section {
  padding: 44px 0;
  border-bottom: 2px solid var(--border);
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--strong);
  padding-bottom: 10px;
  margin-bottom: 22px;
}
.sec-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.sec-tag {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
  display: block;
}

/* Hero */
.hero {
  padding: 46px 0 38px 0;
  border-bottom: 3px solid var(--strong);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-logo {
  width: 104px;
  height: 104px;
  border: 3px solid var(--strong);
  background: #000;
  display: block;
}
.hero h1 {
  font-size: 40px;
  letter-spacing: 4px;
  margin: 0;
  line-height: 1;
}
.hero-sub {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin: 8px 0 0 0;
  letter-spacing: 1px;
}
.hero-lead {
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 22px 0;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-card {
  background: var(--panel);
  border: 2px solid var(--strong);
  padding: 18px;
}
.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.badge {
  border: 1px solid var(--ok);
  color: var(--ok);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}
.badge-gold {
  border-color: var(--accent);
  color: var(--accent);
}
.badge-warn {
  border-color: var(--warn);
  color: var(--warn);
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--panel);
  border: 2px solid var(--border);
  border-top: 4px solid var(--strong);
  padding: 18px;
}
.card.featured {
  border-color: var(--accent);
  border-top-width: 5px;
}
.card h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.dl-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.dl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  font-size: 12px;
}
.dl-row:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  text-decoration: none;
}
.dl-row.os-match {
  border: 2px solid var(--ok);
}

/* Code / One-liner blocks */
.codebox {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 12px;
  overflow-x: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.codebox code {
  color: var(--ok);
  white-space: pre;
}

/* Interactive Demo */
textarea.demo-input {
  width: 100%;
  min-height: 128px;
  background: var(--bg);
  color: var(--fg);
  border: 2px solid var(--strong);
  padding: 12px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
}
textarea.demo-input:focus {
  outline: none;
  border-color: var(--accent);
}
.demo-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.demo-output {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}
.finding-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 12px;
  font-size: 12px;
}
.finding-card.sev-HIGH { border-left-color: var(--warn); }
.finding-card.sev-LOW { border-left-color: var(--ok); }
.conclusion-box {
  background: var(--panel-alt);
  border: 2px solid var(--warn);
  padding: 14px;
  font-size: 12px;
}
.fc-box {
  background: var(--panel-alt);
  border: 1px solid var(--ok);
  padding: 10px;
  margin-top: 8px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: var(--panel);
}
th, td {
  border: 1px solid var(--border);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--panel-alt);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Store Pricing & Cart Drawer */
.price-tag {
  font-size: 32px;
  font-weight: 800;
  color: var(--fg);
  margin: 10px 0 4px 0;
  line-height: 1;
}
.price-sub {
  font-size: 11px;
  color: var(--ok);
  margin-bottom: 12px;
}
.feat-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px 0;
  font-size: 12px;
  color: var(--muted);
}
.feat-list li {
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}
.feat-list li::before {
  content: "+ ";
  color: var(--ok);
  font-weight: 700;
}
.cart-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: min(370px, calc(100vw - 32px));
  background: var(--panel);
  border: 3px solid var(--accent);
  padding: 14px;
  display: none;
}
.cart-bar.open { display: block; }
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

/* Footer */
footer {
  padding: 28px 0 40px 0;
  background: var(--panel);
  font-size: 12px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Mobile Coming Soon Notice Banner — Hidden on Desktop, Shown Only on Phone/Mobile */
.mobile-notice-banner {
  display: none;
  background: var(--panel-alt);
  border-bottom: 3px solid var(--accent);
  padding: 10px 0;
}
.mobile-notice-banner.is-mobile-device {
  display: block;
  background: var(--panel);
  border-bottom: 3px solid var(--ok);
}
.mobile-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.mobile-notice-text {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--fg);
  flex: 1;
  min-width: 240px;
}
.mobile-notice-cta {
  white-space: nowrap;
}

/* Responsive Table Wrapper */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
}
.table-scroll table {
  min-width: 560px;
}

/* Mobile-Scaled UI (Phone-Only View <= 768px — Desktop untouched) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    font-size: 13px;
    line-height: 1.45;
  }
  .wrap {
    padding: 0 12px;
  }

  /* Sleek App-Like Sticky Mobile Topbar + Swipeable Pill Nav */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 2px solid var(--strong);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
  }
  .topbar-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0 6px 0;
  }
  .nav-brand {
    gap: 8px;
  }
  .nav-brand img.eye-mini {
    width: 30px;
    height: 30px;
  }
  .nav-title {
    font-size: 15px;
    letter-spacing: 2px;
  }
  .topbar-inner > .creator-arch-img {
    height: 22px;
    margin-left: auto;
  }
  /* Horizontal swipeable pill strip on phone instead of giant 7-row button wall */
  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    width: calc(100% + 24px);
    margin: 0 -12px;
    padding: 4px 12px 6px 12px;
    border-top: 1px solid var(--border);
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links a,
  .nav-links .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 34px;
    padding: 5px 11px;
    font-size: 11px;
    border-radius: 3px;
  }

  /* Compact, high-impact Mobile Coming Soon card (shown on phone viewports) */
  .mobile-notice-banner {
    display: block;
    padding: 10px 0;
    border-bottom: 2px solid var(--ok);
  }
  .mobile-notice-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .mobile-notice-text {
    font-size: 12px;
    line-height: 1.4;
    gap: 6px;
  }
  .mobile-notice-cta {
    width: 100%;
    justify-content: center;
    min-height: 40px;
    font-size: 12px;
    border-radius: 4px;
  }

  /* Hide duplicate section-header arch SVGs on narrow phone screens to declutter (kept in Hero + Topbar + Footer) */
  .sec-head > .creator-arch-img,
  .hero-card .creator-arch-img {
    display: none;
  }

  /* Clean Phone Hero */
  .hero {
    padding: 18px 0 20px 0;
  }
  .hero-grid {
    gap: 16px;
  }
  .hero-lockup {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    margin-bottom: 12px;
  }
  .hero-logo {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    border-width: 2px;
  }
  .hero h1 {
    font-size: 24px;
    letter-spacing: 2px;
  }
  .hero-sub {
    font-size: 10px;
    line-height: 1.3;
    margin-top: 4px;
    letter-spacing: 0.5px;
  }
  .creator-arch-img.hero-arch {
    height: 26px;
    margin-top: 4px !important;
  }
  .hero-lead {
    font-size: 12.5px;
    line-height: 1.5;
    margin: 10px 0 14px 0;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hero-actions .btn:first-child {
    grid-column: 1 / -1;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 11px;
    border-radius: 4px;
  }
  .pill-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 12px;
  }
  .pill-row .badge {
    text-align: center;
    padding: 5px 6px;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero-card {
    padding: 12px;
    border-width: 1px;
    border-top: 3px solid var(--accent);
    border-radius: 4px;
  }

  /* Compact Sections & Cards on Phone */
  .section {
    padding: 22px 0;
  }
  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-bottom: 8px;
    margin-bottom: 14px;
    border-bottom-width: 2px;
  }
  .sec-tag {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .sec-head h2 {
    font-size: 17px;
    letter-spacing: 1px;
    line-height: 1.25;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card {
    padding: 14px;
    border-width: 1px;
    border-top: 4px solid var(--strong);
    border-radius: 4px;
  }
  .card.featured {
    border-top: 4px solid var(--accent);
  }
  .card h3 {
    font-size: 14px;
    line-height: 1.3;
  }
  .price-tag {
    font-size: 22px !important;
    margin: 8px 0 2px 0;
  }
  .feat-list {
    margin: 10px 0 12px 0;
    font-size: 11.5px;
  }
  /* Make product card buy buttons neat 2+1 grid on phone */
  #shop-grid .card > div:last-child {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 6px !important;
  }
  #shop-grid .card > div:last-child .btn {
    justify-content: center;
    min-height: 40px;
    font-size: 11px;
    border-radius: 4px;
  }
  #shop-grid .card > div:last-child .btn:last-child {
    grid-column: 1 / -1;
  }

  /* Interactive Demo on Phone: Horizontal swipe chips for sample scenarios & presets */
  .demo-controls {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    margin: 10px 0;
    padding-bottom: 2px;
  }
  .demo-controls::-webkit-scrollbar {
    display: none;
  }
  .demo-controls .btn {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 7px 12px;
    font-size: 11px;
    border-radius: 4px;
  }
  /* Scan / Fact-Check primary buttons side-by-side */
  #demo-scan-btn,
  #demo-fc-btn {
    flex: 1 1 48%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
    min-height: 44px;
  }
  /* Preset AI question chips swipeable */
  [data-ai-preset] {
    font-size: 10.5px !important;
    padding: 5px 9px !important;
    border-radius: 3px;
  }

  /* 16px inputs on mobile prevent iOS Safari forced page zoom on focus */
  textarea.demo-input,
  input[type="text"] {
    font-size: 16px !important;
    min-height: 44px;
    border-radius: 4px;
    border-width: 1px;
  }
  textarea.demo-input {
    min-height: 110px;
    padding: 10px;
  }
  #demo-ask-form,
  #license-portal-form {
    flex-direction: column;
    gap: 8px !important;
  }
  #demo-ask-form .btn,
  #license-portal-form .btn {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    border-radius: 4px;
  }

  /* Finding cards on phone */
  .finding-card {
    padding: 10px;
    border-radius: 4px;
  }
  .finding-card > div:first-child {
    flex-direction: column;
    align-items: stretch !important;
    gap: 6px !important;
  }
  .finding-card [data-fc-idx] {
    width: 100%;
    justify-content: center;
    min-height: 36px;
  }

  /* Mobile Bottom Sheet Cart & Solana Checkout Modal */
  .cart-bar {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    max-height: 82vh;
    overflow-y: auto;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.75);
  }
  #solana-modal {
    padding: 0 !important;
    align-items: flex-end !important;
  }
  #solana-modal > .card {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 12px 12px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 16px 14px 22px 14px;
  }
  #solana-modal .btn {
    min-height: 40px;
    justify-content: center;
    border-radius: 4px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-inner > div:last-child {
    align-items: flex-start !important;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 21px;
  }
  .hero-actions {
    grid-template-columns: 1fr;
  }
  .pill-row {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   HOREYEUS — Legibility & polish layer (by roman a. s. arco)
   Keeps every theme variable; only improves type, spacing, contrast,
   focus states and structure. Placed last so it wins over earlier rules.
   ===================================================================== */
:root {
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "DejaVu Sans Mono", "Cascadia Mono", Consolas, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

html { font-size: 16px; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
code, pre, kbd, .badge, .sec-tag, .codebox, .nav-title, .hero h1, .price-tag {
  font-family: var(--mono);
}
code {
  background: color-mix(in srgb, var(--fg) 10%, transparent);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
a { text-underline-offset: 3px; }
strong { font-weight: 700; }
::selection { background: var(--accent); color: var(--accent-fg); }

/* Inline-styled small text from older markup and JS-rendered cards: make it readable */
[style*="font-size:10px"], [style*="font-size:10.5px"], [style*="font-size:11px"], [style*="font-size:11.5px"] { font-size: 13px !important; }
[style*="font-size:12px"], [style*="font-size:12.5px"] { font-size: 14px !important; }
[style*="font-size:13px"] { font-size: 15px !important; }
[style*="color:var(--muted)"] { line-height: 1.65; }
pre[style], pre { font-size: 13px !important; line-height: 1.6; }

/* Accessibility */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-fg);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Announcement banner */
.announce {
  background: color-mix(in srgb, var(--ok) 10%, var(--panel-alt));
  border-bottom: 1px solid color-mix(in srgb, var(--ok) 55%, transparent);
  padding: 12px 0;
}
.announce-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.announce-text { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; flex: 1; min-width: 280px; font-size: 14px; line-height: 1.6; }
.announce-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Top bar */
.topbar {
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}
.nav-brand img.eye-mini { border-radius: var(--radius-sm); border-width: 1px; }
.nav-title { font-size: 1.1rem; }
.nav-links { gap: 4px; }
.nav-links a {
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.nav-links a:hover { background: color-mix(in srgb, var(--fg) 12%, transparent); color: var(--fg); border-color: transparent; }
.nav-links .btn { margin-left: 4px; }

/* Buttons */
.btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  padding: 10px 16px;
  border-width: 1.5px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { font-size: 15px; padding: 13px 22px; }
.btn-accent { box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent); }

/* Headings & sections */
.section { padding: 72px 0; border-bottom: 1px solid var(--border); }
.sec-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 28px;
  align-items: flex-end;
}
.sec-head h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: none;
  max-width: 28ch;
}
.sec-tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 78ch; margin: 0 0 22px 0; }
.spaced { margin-bottom: 28px; }
.accent-text { color: var(--accent); }

/* Hero */
.hero {
  padding: 64px 0 56px 0;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 380px at 12% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(700px 320px at 95% 10%, color-mix(in srgb, var(--ok) 12%, transparent), transparent 70%);
}
.hero-grid { gap: 40px; }
.hero-logo { border-radius: 16px; border-width: 2px; width: 112px; height: 112px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); letter-spacing: 0.08em; line-height: 1.05; }
.hero-sub { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; line-height: 1.5; margin-top: 12px; max-width: 46ch; }
.hero-lead { font-size: 1.05rem; line-height: 1.75; color: var(--muted); max-width: 62ch; margin: 18px 0 26px 0; }
.hero-lead strong { color: var(--fg); }
.hero-actions { gap: 10px; }
.pill-row { gap: 8px; margin-top: 18px; }
.badge {
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.hero-card {
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.hero-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; color: var(--accent); font-size: 1.05rem; }
.hero-card-actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; }
.check-list { list-style: none; margin: 0; padding: 0; font-size: 14.5px; color: var(--muted); }
.check-list li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px dashed var(--border); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: "\2713"; position: absolute; left: 2px; top: 8px; color: var(--ok); font-weight: 800; }
.check-list strong { color: var(--fg); }

/* Cards */
.card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--strong);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card.featured { border-color: var(--accent); border-top-width: 4px; }
.card h3 { font-size: 1.1rem; line-height: 1.35; text-transform: none; letter-spacing: 0; margin-bottom: 12px; }
.card p, .card li { color: var(--muted); font-size: 15px; }
.card p strong, .card li strong { color: var(--fg); }
.card p { margin: 0 0 12px 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; }
.grid-2 { gap: 22px; }
.grid-3 { gap: 20px; }
.feat-list { font-size: 14.5px; margin: 14px 0 18px 0; }
.feat-list li { padding: 7px 0; }
.price-tag { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.price-sub { font-size: 13px; }

/* Notices, code, tables */
.notice-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.notice-ok { font-size: 14.5px; color: var(--ok); }
.callout {
  background: color-mix(in srgb, var(--accent) 9%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--border));
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14.5px;
  color: var(--fg);
  margin: 0 0 8px 0;
}
.code-block {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0;
  overflow-x: auto;
  color: var(--fg);
  white-space: pre;
}
.table-scroll { border-radius: var(--radius-sm); border: 1px solid var(--border); }
table { font-size: 14.5px; }
th, td { padding: 11px 14px; border-color: var(--border); }
th { font-size: 12.5px; letter-spacing: 0.06em; }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.doc-table td:first-child { white-space: nowrap; }

/* Documentation layout */
.doc-nav {
  position: sticky; top: 72px; z-index: 20;
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 10px 12px; margin: 0 0 22px 0;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.doc-nav a { padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--fg); background: color-mix(in srgb, var(--fg) 8%, transparent); }
.doc-nav a:hover { background: var(--accent); color: var(--accent-fg); text-decoration: none; }
.doc-block { margin: 40px 0 0 0; scroll-margin-top: 150px; }
.doc-title { margin: 0 0 8px 0; font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--fg); }
.doc-title code { font-size: 0.85em; }
.doc-lead { margin: 0 0 16px 0; color: var(--muted); max-width: 78ch; }
.doc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.doc-footer-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); }
.plain-list { margin: 0; padding-left: 20px; }
.plain-list li { margin: 8px 0; color: var(--muted); }
.plain-list strong { color: var(--fg); }
.steps { list-style: none; padding: 0; margin: 0 0 22px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; counter-reset: step; }
.steps .card h3 { color: var(--accent); }
.wallet-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.portal-box { border-top: 1px solid var(--border); padding-top: 14px; }
.portal-label { font-size: 14px; color: var(--muted); margin-bottom: 8px; }

/* Forms & demo */
input[type="text"], input[type="number"], textarea.demo-input { border-radius: var(--radius-sm); }
input[type="text"], input[type="number"] { font-size: 15px !important; }
textarea.demo-input { font-size: 15px; line-height: 1.6; border-width: 1.5px; }
.finding-card { border-radius: var(--radius-sm); font-size: 14px; }
.conclusion-box, .fc-box { border-radius: var(--radius-sm); font-size: 14px; }
.dl-row { border-radius: var(--radius-sm); font-size: 14px; padding: 11px 12px; }
.codebox { border-radius: var(--radius-sm); font-size: 13.5px; }

/* Footer */
footer { font-size: 14px; line-height: 1.7; padding: 36px 0 48px 0; border-top: 1px solid var(--border); }

/* Tablet & phone */
@media (max-width: 860px) {
  .doc-split { grid-template-columns: 1fr; }
  .doc-nav { position: static; }
}
@media (max-width: 768px) {
  html, body { font-size: 16px; line-height: 1.65; }
  .section { padding: 44px 0; }
  .hero { padding: 28px 0 32px 0; }
  .hero-logo { width: 68px; height: 68px; border-radius: 12px; }
  .hero h1 { font-size: 2rem; letter-spacing: 0.05em; }
  .hero-sub { font-size: 0.95rem; line-height: 1.45; margin-top: 6px; }
  .hero-lead { font-size: 1rem; line-height: 1.65; }
  .hero-card { padding: 18px; border-radius: var(--radius); }
  .sec-head h2 { font-size: 1.35rem; max-width: none; }
  .sec-tag { font-size: 11px; letter-spacing: 0.06em; }
  .card { padding: 18px; border-radius: var(--radius); }
  .btn, .nav-links a, .nav-links .btn, .hero-actions .btn, .demo-controls .btn, .mobile-notice-cta,
  #shop-grid .card > div:last-child .btn, #solana-modal .btn, #demo-ask-form .btn, #license-portal-form .btn {
    font-size: 14px;
    border-radius: var(--radius-sm);
  }
  .nav-links a { padding: 8px 12px; }
  .pill-row .badge { font-size: 11px; white-space: normal; text-align: center; }
  [data-ai-preset] { font-size: 13px !important; }
  .announce-actions { width: 100%; }
  .announce-actions .btn { flex: 1 1 auto; justify-content: center; }
  .doc-nav { padding: 8px; }
  .doc-nav a { font-size: 13px; padding: 6px 10px; }
  .doc-table td:first-child { white-space: normal; }
  .table-scroll table { min-width: 480px; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 1.7rem; }
}
