/* ============================================================
   MEANINGSYSTEM.IO — GLOBAL DESIGN SYSTEM
   "Meaning must move."
   Restrained · disciplined · deep.
   Light: zen off-white with a prismatic touch.
   Dark : true black with shades of grey and vertical light.
   Accent (rare): #ff6600 critical · #A04000 secondary.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #f5f4f0;
  --bg-1: #faf9f6;
  --surface: #ffffff;
  --surface-2: #edece7;
  --line: #e3e1da;
  --line-strong: #c9c6bd;
  --text: #56534d;
  --text-bright: #171614;
  --text-dim: #8d897f;
  --heading: #21201d;
  --accent: #ff6600;
  --accent-2: #A04000;
  --field-bg: #161513;
  --field-text: #e9e7e2;
  --shadow: 0 24px 60px rgba(24, 21, 16, 0.08);
  --ring-glow: rgba(255, 255, 255, 0.85);
  --seam: linear-gradient(to bottom,
      transparent,
      rgba(23, 22, 20, 0.28) 12%,
      rgba(23, 22, 20, 0.28) 88%,
      transparent);
  --prism: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 90, 60, 0.35) 18%,
      rgba(255, 190, 60, 0.32) 34%,
      rgba(90, 200, 140, 0.30) 50%,
      rgba(80, 150, 255, 0.30) 66%,
      rgba(170, 100, 255, 0.28) 82%,
      transparent 100%);
  --font-body: "Montserrat", "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* legacy aliases (used by ledger chrome) */
  --bg-surface: var(--surface);
  --bg-surface-alt: var(--bg-1);
  --bg-surface-strap: var(--surface-2);
  --bg-surface-input: var(--surface);
  --bg-surface-hover: var(--surface-2);
  --text-heading: var(--heading);
  --text-muted: var(--text-dim);
  --text-mid: var(--text);
  --shadow-nav: 0 1px 0 rgba(24, 21, 16, 0.05);
}

html[data-theme="dark"] {
  --bg: #000000;
  --bg-1: #0a0a0b;
  --surface: #121214;
  --surface-2: #1a1a1d;
  --line: #222225;
  --line-strong: #35353a;
  --text: #bbbbba;
  --text-bright: #f2f1ee;
  --text-dim: #999794;
  --heading: #e8e7e3;
  --field-bg: #0b0b0c;
  --field-text: #d6d5d1;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  --ring-glow: rgba(255, 255, 255, 0.9);
  --seam: linear-gradient(to bottom,
      transparent,
      rgba(255, 255, 255, 0.22) 12%,
      rgba(255, 255, 255, 0.22) 88%,
      transparent);
  --prism: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.35) 50%,
      transparent 100%);
  --shadow-nav: 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #000; }

a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: color .2s ease, border-color .2s ease; }
a:hover { color: var(--text-bright); border-color: var(--text-bright); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--heading); font-weight: 400; }

p { margin: 0 0 2em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }

code, .mono { font-family: var(--font-mono); font-size: .86em; letter-spacing: .02em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 25px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 25px; }

/* ---------- Typographic voices ---------- */

/* h1 strap — SEO line, high on page, quiet voice */
.strap {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.kicker::before { content: "· "; color: var(--accent-2); }
.kicker::after { content: " ·"; color: var(--accent-2); }

.lede {
  font-size: 18px;
  line-height: 1.75;
  color: #cccccb;
  max-width: 62ch;
}

.serif-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(21px, 2.6vw, 29px);
  line-height: 1.45;
  color: var(--heading);
  max-width: 30em;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color:#ff6600;
}

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-head-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .06em;
  white-space: nowrap;
  border-bottom: 0;
  color: var(--text-bright);
}
.wordmark:hover { color: var(--text-bright); }
.wordmark .wm-a { color: var(--text-bright); }
.wordmark .wm-b { color: var(--text-dim); }
@supports (-webkit-text-stroke: 1px black) {
  .wordmark .wm-b { color: transparent; -webkit-text-stroke: 1px var(--text-dim); }
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 10px;
  border-bottom: 0;
  position: relative;
}
.site-nav a:hover { color: var(--text-bright); }
.site-nav a.active { color: var(--text-bright); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 2px;
  height: 1px;
  background: var(--accent);
}
.site-nav a.nav-robot { font-size: 14px; letter-spacing: 0; }

/* theme toggle */
.toggle {
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  overflow: hidden;
  flex: 0 0 auto;
  padding: 0;
  background: var(--surface);
  display: inline-block;
  transition: border-color .2s ease, transform .2s ease;
}
.toggle:hover { border-color: var(--text-bright); transform: rotate(180deg); }
.toggle img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0 !important; }

@media (max-width: 900px) {
  .site-head-inner { flex-wrap: wrap; gap: 12px; padding: 12px 18px; }
  .site-nav { margin-left: 0; width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .site-nav a { padding: 6px 8px; white-space: nowrap; }
}

/* ---------- Hero (shared rule across all pages) ---------- */
.hero {
  position: relative;
  padding: clamp(20px, 5vh, 30px) 0 clamp(30px, 5vh, 40px);
  overflow: hidden;
}

.hero .hero-inner { position: relative; z-index: 2; }

.hero h2 {
  margin: 10px 0 40px;
  font-weight: 300;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.12;
  letter-spacing: .005em;
  max-width: 22em;
}

.hero h2 .accent { color: var(--accent); }
.hero h2 .dim { color: var(--text-dim); }

.hero .lede { margin-bottom: 30px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-meta {
  margin-top: 44px;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.hero-meta div { border-left: 1px solid var(--line-strong); padding-left: 16px; }
.hero-meta .mono-label { display: block; margin-bottom: 4px; }
.hero-meta strong { font-family: var(--font-display); font-weight: 500; color: var(--heading); font-size: 14px; letter-spacing: .04em; }

/* faint eclipse ring behind hero (both modes) */
.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  width: 420px;
  height: 420px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  opacity: .5;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -110px;
  right: -110px;
  width: 360px;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}


/* ---------- Maenen Buttons ---------- */

.index-body .trust-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.index-body .trust-signals > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    border: 1px solid #414141;
    border-radius: 6px;
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.015em;
}

.index-body .trust-signals .trust-signal-icon { color: #ff6600; }


.index-body .agent-url > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    border: 1px solid #7D5805;
    border-radius: 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.015em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid var(--line-strong);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--text-bright); color: var(--bg); border-color: var(--text-bright); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

.btn-ghost { color: var(--text-dim); }
.btn-ghost:hover { color: var(--bg); }

.btn .arr { font-family: var(--font-mono); }

/* legacy purchase buttons (kept for old hooks) */
.buy_button, .buy_button_dark {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-bright);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
}
.buy_button_dark { background: var(--field-bg); color: var(--field-text); border-color: var(--field-bg); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(30px, 9vh, 30px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: clamp(30px, 5vh, 54px); }
.section-head h2 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
}
.section-head .section-sub { margin-top: 12px; color: var(--text-dim); max-width: 58ch; }

.section-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--accent-2);
  display: block;
  margin-bottom: 14px;
}

/* vertical light seam joining sections */
.seamed { position: relative; }
.seamed::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--seam);
  pointer-events: none;
}
@media (max-width: 900px) { .seamed::before { display: none; } }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-1);
  padding: 30px 28px 34px;
  position: relative;
  transition: background .25s ease;
}
.card:hover { background: var(--surface); }

.card .card-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
/*   color: var(--text-dim); */
  color: #A04000; 
  display: block;
  margin-bottom: 22px;
}
.card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 500; letter-spacing: .02em; }
.card p { font-size: 13.5px; margin: 0; color: var(--text); }
.card .card-meta {
  display: block;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--accent-2);
}
.card .card-symbol {
  position: absolute;
  top: 26px; right: 26px;
  width: 22px; height: 22px;
  stroke: var(--text-dim);
  fill: none;
  stroke-width: 1.2;
  opacity: .8;
}

@media (max-width: 980px) {
  .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .card-grid, .card-grid.cols-2, .card-grid.cols-4 { grid-template-columns: 1fr; }
}

/* ---------- Tables ---------- */
.table-wrap-scroll { overflow-x: auto; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--bg-1);
  font-size: 13.5px;
}
.data-table th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface-2);
}
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text);
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table td.mono-cell { font-family: var(--font-mono); font-size: 12px; color: var(--heading); }
.data-table td.fee { font-family: var(--font-mono); font-size: 12px; color: var(--heading); white-space: nowrap; }
.data-table td.fee-critical { color: var(--accent-2); }

/* ---------- Code / field blocks ---------- */
.field {
  background: var(--field-bg);
  color: var(--field-text);
  border: 1px solid var(--line);
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  overflow-x: auto;
  white-space: pre;
}
.field .f-accent { color: var(--accent); }
.field .f-dim { color: #8a8880; }

/* ---------- Receipt specimen ---------- */
.receipt {
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
  padding: 26px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2;
  color: var(--text);
  position: relative;
}
.receipt::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--line);
  pointer-events: none;
}
.receipt .r-head { color: var(--text-bright); letter-spacing: .18em; }
.receipt .r-dim { color: var(--text-dim); }
.receipt .r-ok { color: var(--accent-2); }

/* ---------- Prism hairline (light-mode spectral touch) ---------- */
.prism-line { height: 1px; border: 0; margin: 0; background: var(--prism); opacity: .8; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 54px 0 46px; margin-top: 0; }

.motto {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  margin: 0 0 26px;
}

.footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: .06em;
}
.footer a { color: var(--text-dim); border-bottom-color: var(--line); }
.footer a:hover { color: var(--text-bright); }

/* ---------- Legacy colour voices (restrained remap) ---------- */
.colour  { color: var(--accent-2); font-weight: 500; letter-spacing: .04em; }
.colour2 { color: var(--heading); font-weight: 600; letter-spacing: .03em; }
.colour3 { color: var(--accent); font-weight: 600; letter-spacing: .04em; }
.colour4 { color: var(--heading); letter-spacing: .03em; }
.colour5 { color: var(--text-dim); letter-spacing: .04em; }
.fire { color: #ff6600; }
.gold { color: #f1b606; }
.burnt { color: #A04000; font-weight: 600; }
.pale { color:#d4b878; }
.white { color: #eeeded; }
.black { color: #000000; }
.grey { color: var(--text-dim); letter-spacing: .04em; }
.light-grey { color: var(--text-dim); }
.twotone { color: var(--heading); font-weight: 500; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }
.reveal_shift { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; margin-left: 30px;}
.reveal-enabled .reveal { opacity: 0; transform: translateY(22px); }
.reveal-enabled .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-enabled .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- table grid ---------- */
.flow {
  border: 1px solid var(--line);
  background: var(--bg-1);
  padding: 26px 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 2.2;
  color: var(--heading);
  text-align: center;
}
.flow .f-strong { color: var(--heading); font-weight: 600; letter-spacing: .1em; }
.flow .f-accent { color: var(--accent-2); }
.flow .arrow { color: #A04000; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mode-cell { background: var(--bg-1); padding: 30px 28px; }
.mode-cell h3 { margin: 0 0 12px; font-size: 18px; font-weight: 500; }
.mode-cell p { font-size: 13.5px; }
@media (max-width: 860px) { .mode-grid { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.ix-lede { margin-top: 22px; max-width: 56ch; color: #bbbbba; font-size: 15px; }

.drift-chain {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: #f1b606;
  line-height: 2.4;
  overflow-wrap: anywhere;
}
.drift-chain b { color: #e8e7e3; font-weight: 500; }
.drift-chain .sep { color: var(--accent-2); padding: 0 6px; }

/* final cta */
.ix-cta { text-align: center; 
/*   padding: clamp(90px, 14vh, 160px) 0;  */
  position: relative;
  isolation: isolate;
}
.ix-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("./images/ocean.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}
.ix-cta .ring {
  width: 120px; height: 120px;
  margin: 0 auto 44px;
  border-radius: 50%;
  border: 1px solid #f2f1ee;
  box-shadow: 0 0 40px rgba(255,255,255,.18), inset 0 0 24px rgba(255,255,255,.06);
}

@media (max-width: 980px) {
  .ix-hero-grid, .ix-cols, .sw-panel.active, .ix-pyramid-wrap, .ix-receipt-grid { grid-template-columns: 1fr; }
  .ix-price-strip { grid-template-columns: 1fr; }
  .sw-facts { border-left: 0; padding-left: 0; border-top: 1px solid #232326; padding-top: 22px; }
  .ix-moon-column {
    overflow: clip;
    view-timeline-name: --ix-moon;
    view-timeline-axis: block;
  }
  .ix-moon { position: static; max-width: 260px; }

  @supports (animation-timeline: view()) {
    .ix-moon {
      animation: ix-moon-sink linear both;
      animation-timeline: --ix-moon;
      animation-range: entry 10% exit 50%;
    }
  }
}

@media (max-width: 980px) and (prefers-reduced-motion: reduce) {
  .ix-moon { animation: none; }
}

/* final cta 2 */
.ix-cta2 { text-align: center; 
/*   padding: clamp(90px, 14vh, 160px) 0;  */
  position: relative;
  isolation: isolate;
}
.ix-cta2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("./images/ocean.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}
.ix-cta2 .ring {
  width: 120px; height: 120px;
  margin: 0 auto 44px;
  border-radius: 50%;
  border: 1px solid #f2f1ee;
  box-shadow: 0 0 40px rgba(255,255,255,.18), inset 0 0 24px rgba(255,255,255,.06);
}
