/* ARCHAI™ — Shared Stylesheet v2 */

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

:root {
  --black: #16151a;
  --dark: #1e1d24;
  --card: #252430;
  --card-border: #35334a;
  --gold: #f0b429;
  --gold-light: #ffd166;
  --gold-dim: #9a7a2a;
  --gold-glow: rgba(240,180,41,0.18);
  --white: #ffffff;
  --off-white: #f0ede6;
  --muted: #b0adc4;
  --nav-h: 60px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--off-white);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  min-height: 100vh;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-hero-1 { animation: fadeUp 0.7s ease both; }
.anim-hero-2 { animation: fadeUp 0.7s 0.15s ease both; }
.anim-hero-3 { animation: fadeUp 0.7s 0.28s ease both; }
.anim-hero-4 { animation: fadeUp 0.7s 0.4s ease both; }
.anim-hero-5 { animation: fadeUp 0.7s 0.52s ease both; }

.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAV ── */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22,21,26,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 8px;
  height: var(--nav-h);
}
.nav-inner::-webkit-scrollbar { display: none; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 0 8px;
  flex-shrink: 0;
  text-decoration: none;
  border-right: 1px solid var(--card-border);
  margin-right: 8px;
}

.nav-brand-icon {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--gold);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

.nav-brand-text {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--white);
}

.nav-brand-sub {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
  margin-top: 1px;
}

.nav-link {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 15px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.nav-link:hover { color: var(--white); }
.nav-link.active { color: var(--gold); border-bottom-color: var(--gold); }

.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0 16px;
  height: 36px;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: none;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 16px var(--gold-glow);
}
.nav-cta:hover { background: var(--gold-light); box-shadow: 0 0 24px rgba(240,180,41,0.35); }

/* ── LAYOUT ── */
.page { max-width: 820px; margin: 0 auto; padding: 0 22px; }

/* ── HERO ── */
.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--card-border);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(42px, 9vw, 72px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 10px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

.hero-title .accent { color: var(--gold); }

.hero-subtitle {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 300;
  color: var(--gold-light);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-body {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.75;
}

/* ── SECTIONS ── */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--card-border);
}
.section:last-child { border-bottom: none; }

.section-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.section-title .accent { color: var(--gold); }

.section-body {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 620px;
}

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1px;
  background: var(--card-border);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 32px;
}

.card {
  background: var(--card);
  padding: 22px;
  transition: background 0.2s;
}

.card:hover { background: #2e2c3e; }

.card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.card-body {
  font-size: 14px;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.65;
}

/* ── STACK DIAGRAM ── */
.stack-diagram {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 40px;
  background: var(--card);
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}

.stack-center {
  background: #222030;
  padding: 32px;
  text-align: center;
  border-bottom: 1px solid var(--card-border);
}

.stack-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}

.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--card-border);
}

.stack-cell {
  background: var(--card);
  padding: 20px 24px;
  transition: background 0.2s;
}

.stack-cell:hover { background: #2e2c3e; }

.stack-cell-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 4px;
}

.stack-cell-desc {
  font-size: 12px;
  color: var(--muted);
}

/* ── DOMAIN GRID ── */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: var(--card-border);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 28px;
}

.domain-cell {
  background: var(--card);
  padding: 18px;
  transition: background 0.2s;
}

.domain-cell:hover { background: #2e2c3e; }

.domain-num {
  font-size: 24px;
  font-weight: 900;
  color: #3a3850;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 7px;
}

.domain-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}

/* ── NOTICE BAR ── */
.notice {
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  background: rgba(240,180,41,0.07);
  border-radius: 0 6px 6px 0;
  font-size: 15px;
  color: var(--muted);
  margin-top: 28px;
  line-height: 1.7;
}

.notice strong { color: var(--white); }

/* ── PRICING ── */
.pricing-stack {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 32px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
}

.pricing-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 24px;
  border-bottom: 1px solid var(--card-border);
  background: var(--card);
  position: relative;
  transition: background 0.2s;
}

.pricing-row:hover { background: #2a2838; }
.pricing-row:last-child { border-bottom: none; }

.pricing-row.recommended { background: #222030; }
.pricing-row.recommended:hover { background: #2a2740; }

.recommended-tag {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}

.pricing-tier {
  flex-shrink: 0;
  min-width: 130px;
}

.pricing-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.pricing-cadence {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-desc {
  font-size: 14px;
  color: var(--muted);
  flex: 1;
  line-height: 1.65;
}

.pricing-price {
  flex-shrink: 0;
  text-align: right;
  min-width: 80px;
}

.pricing-amount {
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.pricing-action {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 5px;
}

/* ── REGULATORY BADGES ── */
.reg-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.reg-badge {
  padding: 7px 14px;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--card);
  transition: border-color 0.2s, color 0.2s;
}

.reg-badge:hover { border-color: var(--gold-dim); color: var(--white); }

/* ── BUTTONS ── */
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.btn-primary {
  padding: 14px 28px;
  background: var(--gold);
  color: var(--black);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 20px var(--gold-glow);
}
.btn-primary:hover { background: var(--gold-light); box-shadow: 0 0 32px rgba(240,180,41,0.35); }

.btn-secondary {
  padding: 14px 28px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.btn-secondary:hover { color: var(--white); border-color: var(--muted); }

/* ── FOOTER ── */
.footer {
  padding: 48px 22px;
  border-top: 1px solid var(--card-border);
  text-align: center;
  background: #131218;
}

.footer-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-link:hover { color: var(--gold); }

/* ── MECHANISM PAGE ── */
.mechanism-header {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--card-border);
}

.mechanism-name {
  font-size: clamp(48px, 11vw, 80px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
  margin-bottom: 6px;
  text-shadow: 0 2px 32px rgba(0,0,0,0.4);
}

.mechanism-name sup {
  font-size: 0.38em;
  vertical-align: super;
  color: var(--gold);
}

.mechanism-role {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 300;
  color: var(--gold-light);
  margin-bottom: 22px;
}

.mechanism-body {
  font-size: 17px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.8;
}

/* ── FUNCTION LIST ── */
.function-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
}

.function-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--card-border);
  background: var(--card);
  transition: background 0.2s;
}

.function-item:hover { background: #2e2c3e; }
.function-item:last-child { border-bottom: none; }

.function-index {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-dim);
  flex-shrink: 0;
  padding-top: 2px;
  min-width: 26px;
}

.function-text {
  font-size: 15px;
  color: var(--white);
  font-weight: 600;
  line-height: 1.5;
}

.function-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.6;
}

/* ── ENTER FRAMEWORK ── */
.gateway {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 22px;
}

.gateway-icon {
  width: 64px;
  height: 64px;
  border: 2px solid var(--gold);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--gold);
  margin: 0 auto 32px;
  box-shadow: 0 0 28px var(--gold-glow);
}

.gateway-title {
  font-size: clamp(36px, 9vw, 60px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 18px;
}

.gateway-title .accent { color: var(--gold); }

.gateway-body {
  font-size: 17px;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.75;
  margin: 0 auto 40px;
}

.gateway-modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--card-border);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 500px;
  width: 100%;
  margin: 0 auto 40px;
}

.gateway-module {
  background: var(--card);
  padding: 18px 20px;
  text-decoration: none;
  transition: background 0.2s;
}

.gateway-module:hover { background: #2e2c3e; }

.gateway-module-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 4px;
}

.gateway-module-desc {
  font-size: 11px;
  color: var(--muted);
}

/* ── SCROLL REVEAL SCRIPT HOOK ── */
