/* ============================================================
   Honeycomb Web3 Solutions LLC — Substrate Design System v2
   Darkness is substance. Gold reveals structure.
   80% dark substrate · 15% structural gold · 5% active illumination
   ============================================================ */

:root {
  /* Surfaces */
  --ink-0: #06080e;
  --ink-1: #0a0d16;
  --ink-2: #10141f;
  --ink-3: #151a28;
  --ink-4: #1b2133;

  /* Structural gold */
  --gold: #f5b942;
  --gold-soft: #d4a574;
  --gold-deep: #b8860b;
  --cream: #f5e6cc;
  --seam: rgba(212, 165, 116, 0.16);
  --seam-mid: rgba(212, 165, 116, 0.30);
  --seam-strong: rgba(245, 185, 66, 0.48);
  --gold-glow: rgba(245, 185, 66, 0.14);

  /* Text */
  --text-1: #ece9e1;
  --text-2: #b4b0a6;
  --text-3: #7b766b;
  --text-4: #534e44;

  /* Functional accents (used sparingly) */
  --signal-blue: #5e8fc4;
  --verified: #8ab193;
  --warn: #e8945a;
  --alert: #c96a5a;

  /* Gradients */
  --field-hero: radial-gradient(ellipse 120% 70% at 50% -12%, rgba(245,185,66,0.13), transparent 56%),
                radial-gradient(ellipse 90% 60% at 0% 35%, rgba(94,143,196,0.06), transparent 50%),
                radial-gradient(ellipse 70% 50% at 100% 85%, rgba(212,165,116,0.05), transparent 50%);
  --gradient-gold: linear-gradient(135deg, #f5b942 0%, #d4a574 55%, #b8860b 100%);
  --seam-h: linear-gradient(90deg, transparent, var(--seam-strong), transparent);

  /* Depth */
  --shadow-panel: 0 1px 0 rgba(245,185,66,0.05) inset, 0 24px 70px -34px rgba(0,0,0,0.9);
  --shadow-raised: 0 1px 0 rgba(245,185,66,0.09) inset, 0 32px 90px -42px rgba(245,185,66,0.13), 0 24px 70px -34px rgba(0,0,0,0.9);

  /* Type */
  --display: 'Fraunces', Georgia, serif;
  --body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-slow: 900ms;
  --dur-mid: 520ms;
  --dur-fast: 240ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--ink-0);
  color: var(--text-1);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.66;
  font-size: 16px;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Atmospheric depth field (fixed strata) ── */
.substrate-field {
  position: fixed; inset: -12% 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 18% 6%, rgba(245,185,66,0.030) 0%, transparent 30%),
    radial-gradient(circle at 84% 80%, rgba(94,143,196,0.022) 0%, transparent 34%);
  will-change: transform;
}
.substrate-lattice {
  position: fixed; inset: -12% 0; pointer-events: none; z-index: 1; opacity: 0.030;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'><path d='M30 1l25 14.5v29L30 59 5 44.5v-29z' fill='none' stroke='%23f5b942' stroke-width='0.5'/></svg>");
  background-size: 92px 80px;
  will-change: transform;
}

main { flex: 1; position: relative; z-index: 2; }
::selection { background: var(--gold-glow); color: var(--cream); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 36px; position: relative; z-index: 2; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 36px; position: relative; z-index: 2; }
@media (max-width: 640px) { .container, .container-narrow { padding: 0 22px; } }

/* ── Focus visibility (keyboard) ── */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink-3); color: var(--cream); padding: 10px 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  border: 1px solid var(--seam-strong);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ── Typography ── */
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--text-1); }
h1 { font-size: clamp(42px, 6.2vw, 80px); line-height: 1.03; letter-spacing: -0.028em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.018em; }
h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; }
.accent { font-style: italic; font-weight: 300; color: var(--gold-soft); }
.lead {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(17px, 2vw, 21px); line-height: 1.55; color: var(--text-2);
}
p { color: var(--text-2); }

.register {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.30em;
  text-transform: uppercase; color: var(--gold-soft);
}

/* ── Seams: structure revealing itself ── */
html.js .seam-h { transform: scaleX(0); }
.seam-h {
  height: 1px; background: var(--seam-h); border: 0;
  transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease-out);
}
html.js .seam-h.is-drawn { transform: scaleX(1); }
.seam-static { height: 1px; background: var(--seam-h); border: 0; }

/* ── Navigation ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 8, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--seam);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 36px;
  display: flex; align-items: center; gap: 28px; height: 68px;
}
.nav-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-brand .hex { width: 24px; height: 22px; display: block; flex-shrink: 0; }
.nav-brand .hex svg { width: 100%; height: 100%; display: block; }
.brand-text {
  font-family: var(--mono); font-weight: 600; font-size: 13px;
  letter-spacing: 0.22em; color: var(--cream); line-height: 1.15;
  display: flex; flex-direction: column;
}
.brand-text small {
  font-weight: 400; font-size: 8.5px; letter-spacing: 0.34em; color: var(--text-3);
}
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.03em;
  color: var(--text-2); text-decoration: none; padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.nav-links a:hover { color: var(--cream); border-bottom-color: var(--seam-strong); }
.nav-links a[aria-current="page"] { color: var(--gold-soft); border-bottom-color: var(--seam-mid); }
.nav-cta {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-0); text-decoration: none;
  background: var(--gradient-gold);
  padding: 9px 18px; border-radius: 3px; white-space: nowrap;
  transition: filter var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.nav-cta:hover { filter: brightness(1.08); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--seam-mid);
  border-radius: 3px; color: var(--text-2); width: 40px; height: 40px;
  cursor: pointer; margin-left: auto; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(6, 8, 14, 0.97); border-bottom: 1px solid var(--seam-mid);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0 16px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 36px; border-bottom: 1px solid var(--seam); font-size: 15px; }
  .nav-links .nav-cta-mobile {
    display: block; margin: 14px 36px 0; text-align: center;
    background: var(--gradient-gold); color: var(--ink-0);
    border-radius: 3px; padding: 12px; font-weight: 600; border-bottom: 0;
  }
}
@media (min-width: 921px) { .nav-cta-mobile { display: none; } }

/* ── Panels: architectural, pointer-lit ── */
.panel {
  position: relative;
  background: linear-gradient(150deg, var(--ink-2), var(--ink-1));
  border: 1px solid var(--seam);
  border-radius: 5px;
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}
.panel::before {
  /* pointer-aware illumination — coordinates set by substrate.js, pointer:fine only */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, -40%),
              rgba(245,185,66,0.07), transparent 62%);
  opacity: 0; transition: opacity var(--dur-mid) ease;
}
.panel:hover::before { opacity: 1; }
.panel-link { display: block; text-decoration: none; color: inherit; transition: border-color var(--dur-fast) ease, transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) ease; }
.panel-link:hover { border-color: var(--seam-mid); transform: translateY(-3px); box-shadow: var(--shadow-raised); }

/* ── Reveal on scroll ── */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
html.js .reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 90ms; }
.reveal-d2 { transition-delay: 180ms; }
.reveal-d3 { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, html.js .seam-h { transform: scaleX(0); }
.seam-h { opacity: 1 !important; transform: none !important; transition: none !important; }
  .panel::before { display: none; }
  .panel-link:hover { transform: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--body); font-size: 14.5px; font-weight: 600; letter-spacing: 0.03em;
  padding: 13px 26px; border-radius: 3px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: filter var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.btn-gold { background: var(--gradient-gold); color: var(--ink-0); }
.btn-gold:hover { filter: brightness(1.08); }
.btn-line { background: transparent; color: var(--text-1); border-color: var(--seam-mid); }
.btn-line:hover { border-color: var(--seam-strong); color: var(--cream); }
.btn-quiet { background: transparent; color: var(--text-2); border-color: transparent; padding-left: 8px; padding-right: 8px; }
.btn-quiet:hover { color: var(--gold-soft); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; filter: none; }

/* ── Sections ── */
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head .register { display: block; margin-bottom: 18px; }
.section-head h2 { margin-bottom: 18px; }
@media (max-width: 640px) { .section { padding: 64px 0; } .section-tight { padding: 44px 0; } }

/* ── Forms ── */
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
input[type="email"], input[type="text"], textarea, select {
  font-family: var(--body); font-size: 15px; color: var(--text-1);
  background: var(--ink-1); border: 1px solid var(--seam-mid);
  border-radius: 3px; padding: 13px 16px; min-width: 0; flex: 1 1 260px;
  transition: border-color var(--dur-fast) ease;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, textarea:focus, select:focus { border-color: var(--seam-strong); outline: none; }
.form-note { font-size: 12.5px; color: var(--text-3); margin-top: 12px; }
.form-fallback {
  border: 1px solid var(--seam-mid); border-radius: 4px;
  background: var(--ink-1); padding: 18px 20px; font-size: 14.5px; color: var(--text-2);
}
.form-fallback a { color: var(--gold-soft); }

/* ── Status chips ── */
.chip {
  display: inline-block; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px; border: 1px solid var(--seam-mid);
  color: var(--gold-soft); background: rgba(245,185,66,0.05);
}
.chip-live { color: var(--verified); border-color: rgba(138,177,147,0.4); background: rgba(138,177,147,0.06); }
.chip-review { color: var(--warn); border-color: rgba(232,148,90,0.4); background: rgba(232,148,90,0.06); }
.chip-soon { color: var(--text-3); border-color: var(--seam); background: transparent; }

/* ── Footer ── */
.site-footer {
  position: relative; z-index: 2; margin-top: auto;
  border-top: 1px solid var(--seam);
  background: linear-gradient(180deg, var(--ink-1), var(--ink-0));
  padding: 64px 0 36px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .name { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; color: var(--cream); margin-bottom: 14px; }
.footer-brand .hex { width: 20px; height: 18px; }
.footer-brand .hex svg { width: 100%; height: 100%; display: block; }
.footer-brand p { font-size: 13.5px; color: var(--text-3); line-height: 1.7; }
.footer-brand a { color: var(--gold-soft); text-decoration: none; }
.footer-col h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 13.5px; color: var(--text-2); text-decoration: none; transition: color var(--dur-fast) ease; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-col .soon { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; color: var(--text-4); margin-left: 7px; border: 1px solid var(--seam); padding: 1px 6px; border-radius: 2px; vertical-align: middle; }
.footer-disclaimer {
  font-size: 12.5px; color: var(--text-3); line-height: 1.7;
  border: 1px solid var(--seam); border-radius: 4px;
  background: var(--ink-1); padding: 16px 20px; margin-bottom: 28px;
}
.footer-disclaimer strong { color: var(--text-2); font-weight: 600; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--seam);
  font-size: 12.5px; color: var(--text-4);
}
.footer-bottom a { color: var(--text-3); text-decoration: none; margin-left: 18px; }
.footer-bottom a:first-child { margin-left: 0; }
.footer-bottom a:hover { color: var(--gold-soft); }

/* ── Prose (legal & long-form) ── */
.prose h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 44px 0 16px; }
.prose h3 { font-size: 19px; margin: 30px 0 12px; font-family: var(--body); font-weight: 600; }
.prose p, .prose li { font-size: 15.5px; color: var(--text-2); margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; }
.prose a { color: var(--gold-soft); }
.prose .updated { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--text-3); }

/* ── Page hero (interior pages) ── */
.page-hero { padding: 84px 0 56px; background: var(--field-hero); border-bottom: 1px solid var(--seam); }
.page-hero .register { display: block; margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 62px); margin-bottom: 20px; max-width: 820px; }
.page-hero .lead { max-width: 620px; }
