/* =========================================================
   Shared styles — linked by every page
   ========================================================= */

/* Colour theme: matched to the reference site's palette (light default, dark via the toggle) */
:root {
  --paper: #fffdf3;
  --paper-2: #fbf7e6;
  --gutter: #fffcf0;
  --ink: #16140e;
  --ink-2: #57534a;
  --muted: #8b8577;
  --line: rgba(22, 20, 14, .16);
  --rule: rgba(22, 20, 14, .05);
  --card: #fffdf3;
  --accent: #f3b44a;
  --accent-ink: #16140e;
  --accent-text: #c77e0a;
  --accent-soft: #fbe9be;
  --green: #5f8f4e;
  --shadow: 0 24px 48px -28px rgba(22, 20, 14, .38);

  /* illustration palette */
  --wall: #f2ecdc; --wall-2: #dcd5c6; --roof: #b98a55; --roof-2: #9a7045;
  --door: #f3b44a; --door-2: #c77e0a; --leaf: #b9cca6; --leaf-2: #a9be95;
  --trunk: #8a8272; --window: #dce7ec; --glow: #fbe9be; --ground: #e6dfcf;
  --skin: #e8be9b; --shirt: #a9be95;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
  --pad: 72px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #13120d;
  --paper-2: #17160e;
  --gutter: #13120d;
  --ink: #f1eee6;
  --ink-2: #a4a097;
  --muted: #928c7e;
  --line: rgba(241, 238, 230, .24);
  --rule: rgba(241, 238, 230, .075);
  --card: #13120d;
  --accent-text: #dd922f;
  --accent-soft: #2e2514;
  --green: #8db573;
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, .8);
  --wall: #3f3a30; --wall-2: #302c23; --roof: #b38e6e; --roof-2: #8c6d52;
  --door: #f3b44a; --door-2: #dd922f; --leaf: #3c4b2c; --leaf-2: #323e25;
  --trunk: #615a4a; --window: #282f33; --glow: #fbe9be; --ground: #231f16;
  --skin: #c0a183; --shirt: #5c6e48;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  font-family: "Figtree", "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
svg { display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.muted { color: var(--muted); }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); position: relative; }

/* lined-paper margins */
.gutter {
  position: fixed; top: 0; bottom: 0; width: 32px; z-index: 60; pointer-events: none;
  background: repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 5px), var(--gutter);
  transition: background-color .5s;
}
.gutter.l { left: 0; border-right: 1px solid var(--line); }
.gutter.r { right: 0; border-left: 1px solid var(--line); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%;
  animation: dropIn .9s var(--ease) .25s both;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 26px; letter-spacing: -.045em; }
.brand i { font-style: normal; color: var(--accent); display: inline-block; transition: transform .5s var(--ease); }
.brand:hover i { transform: translateY(-6px); }
.nav {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--paper) 70%, transparent);
  box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.45);
  font-size: 14px; font-weight: 500;
}
.nav .link {
  position: relative; padding: 9px 12px; border-radius: 999px; color: var(--ink-2);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.nav .link:hover,
.nav .link[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink);
  transform: translateY(-1px);
}
.nav .link::after { display: none; }
.nav-social, .mobile-social { display: inline-grid; width: 30px; height: 30px; place-items: center; border-radius: 7px; color: var(--ink); transition: background-color .3s, color .3s, transform .3s var(--ease); }
.nav-social:hover, .mobile-social:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.x-mark { width: 16px; height: 16px; fill: currentColor; }
.wallet-btn, .mobile-wallet {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 999px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 72%, white));
  color: var(--accent-ink); box-shadow: 0 10px 24px -16px var(--accent);
  font: inherit; font-size: 12px; font-weight: 700; transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease);
}
.wallet-btn:hover, .mobile-wallet:hover { transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 14px 28px -18px var(--accent); }
.phantom-mark { width: 18px; height: 18px; flex: none; }
.phantom-shape { fill: rgba(255,255,255,.94); }
.phantom-eye { fill: var(--accent-ink); }
.mobile-social, .mobile-wallet { display: none; }
.theme-btn {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.5);
}
.theme-btn svg { transition: transform .7s var(--ease); }
:root[data-theme="dark"] .theme-btn svg { transform: rotate(180deg); }

.menu-btn { display: none; position: relative; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-btn span:first-child { top: 14px; }
.menu-btn span:last-child { top: 22px; }
.menu-open .menu-btn span:first-child { top: 18px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 18px; transform: rotate(-45deg); }
.menu-open { overflow: hidden; }
.mobile-menu {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 45;
  background: var(--paper); padding: 32px 40px; display: flex; flex-direction: column; gap: 2px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility 0s .7s;
}
.menu-open .mobile-menu { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease-out); }
.mobile-menu > a {
  font-size: clamp(40px, 12vw, 64px); font-weight: 600; letter-spacing: -.05em; line-height: 1.12;
  opacity: 0; transform: translateY(24px); transition: opacity .4s, transform .6s var(--ease-out);
}
.menu-open .mobile-menu > a { opacity: 1; transform: none; }
.mobile-menu > a[aria-current="page"] { color: var(--accent-text); }
.mobile-menu p { margin-top: auto; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 6px; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s, background-color .35s;
}
.btn:hover { border-color: var(--muted); box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .4); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { box-shadow: 0 12px 28px -12px var(--accent); }
.btn.sm { padding: 10px 16px; }
.btn .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn:hover .arr.down { transform: translateY(3px); }
.btn:hover .arr.right { transform: translateX(4px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- type ---------- */
.eyebrow {
  display: block; margin-bottom: 26px;
  font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow .ch { display: inline-block; opacity: 0; transform: translateY(6px); animation: fadeUp .5s forwards; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: 1px; border-radius: 50%; background: var(--green); animation: live 2s infinite; }
.display { font-size: clamp(44px, 5.6vw, 88px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.title { font-size: clamp(36px, 4.4vw, 66px); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; }
.huge { font-size: clamp(52px, 8.4vw, 136px); font-weight: 600; letter-spacing: -.055em; line-height: .96; }
.display em, .title em, .huge em { font-style: normal; color: var(--muted); }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 540px; }
.center { text-align: center; justify-content: center; margin-left: auto; margin-right: auto; }
.tag {
  display: inline-block; font-family: "JetBrains Mono", monospace; font-size: 10.5px; line-height: 1;
  letter-spacing: .14em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink);
  padding: 6px 9px; border-radius: 3px;
}
/* brand logos are single-colour SVG masks, tinted with --brand */
.logo {
  display: block; width: 30px; height: 30px; background-color: var(--brand, var(--ink));
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 5px 9px; border-radius: 20px; background: var(--card);
}

/* ---------- layout ---------- */
.hero { position: relative; padding: clamp(80px, 9vw, 130px) 0 clamp(60px, 7vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: end; }
.hero-side .lede { margin-bottom: 28px; }
.section { position: relative; padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.section > .pin {
  position: absolute; top: 0; z-index: 2; transform: translateY(-50%);
  left: max(var(--pad), calc((100% - 1440px) / 2 + var(--pad)));
}
.section-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- motion utilities ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .03em .14em; margin: 0 -.03em -.14em; }
.split .w > span {
  display: inline-block; transform: translateY(105%) rotate(5deg); transform-origin: 0 100%; opacity: 0; filter: blur(6px);
  transition: transform 1.1s var(--ease-out), opacity .9s var(--ease-out), filter .9s var(--ease-out);
}
.split.in .w > span { transform: none; opacity: 1; filter: none; }
.split .w > span.m { color: var(--muted); }

.js .reveal:not(.in) { opacity: 0; }
.reveal.in { animation: revealUp 1s var(--ease) both; }
.reveal.in.done { animation: none; }

.marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee .track { display: flex; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.marquee.rev .track { animation-direction: reverse; }
.marquee:hover .track { animation-play-state: paused; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding: clamp(100px, 12vw, 170px) 0; border-top: 1px solid var(--line); text-align: center; overflow: hidden; isolation: isolate; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(560px circle at var(--x, 50%) var(--y, 45%), var(--accent-soft), transparent 70%);
}
.cta-band .lede { margin: 26px auto 34px; }

/* ---------- footer ---------- */
.site-footer {
  position: relative; border-top: 1px solid var(--line); padding-top: 64px; overflow: hidden;
  background: repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 5px), var(--paper);
}
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 56px; }
.fgrid h4 {
  font-family: "JetBrains Mono", monospace; font-weight: 400; font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.fgrid ul { display: grid; gap: 10px; font-size: 14px; }
.fgrid li a { display: inline-flex; gap: 6px; color: var(--ink-2); transition: color .3s, transform .35s var(--ease); }
.fgrid li a:hover { color: var(--accent-text); transform: translateX(3px); }
.fbig {
  display: inline-block; margin-bottom: 12px; font-size: 16px; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease);
}
.fbig:hover { background-size: 100% 1px; }
.fsmall { font-size: 14px; color: var(--muted); line-height: 1.8; }
.fbar {
  display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.fbar a:hover { color: var(--ink); }
.fmark {
  font-size: min(19vw, 290px); font-weight: 700; letter-spacing: -.07em; line-height: .8; text-align: center;
  white-space: nowrap; user-select: none; margin: 24px 0 -.1em; color: var(--ink);
}
.fmark span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.fmark.in span { transform: none; }
.fmark i { font-style: normal; color: var(--accent); }

/* ---------- page curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 300; background: var(--paper); pointer-events: none;
  display: grid; place-items: center; animation: curtainOut .8s var(--ease-out) .05s both;
}
.curtain::before, .curtain::after { content: ""; position: absolute; left: 0; right: 0; height: 4px; background: var(--accent); }
.curtain::before { top: 0; }
.curtain::after { bottom: 0; }
.curtain span {
  font-size: clamp(40px, 7vw, 96px); font-weight: 600; letter-spacing: -.05em;
  opacity: 0; transform: translateY(20px); transition: opacity .3s .15s, transform .5s var(--ease-out) .15s;
}
.curtain.leave { animation: curtainIn .55s var(--ease) both; }
.curtain.leave span { opacity: 1; transform: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 250; transform: translate(-50%, 30px); opacity: 0;
  background: var(--ink); color: var(--paper); padding: 11px 16px; border-radius: 6px; font-size: 13px;
  transition: transform .4s var(--ease), opacity .4s; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- keyframes ---------- */
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes revealUp { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
@keyframes dropIn { from { transform: translateY(-110%); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes live {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); }
  100% { box-shadow: 0 0 0 10px transparent; }
}
@keyframes curtainOut { from { transform: translateY(0); } to { transform: translateY(-100%); visibility: hidden; } }
@keyframes curtainIn { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .section-head { grid-template-columns: 1fr; gap: 28px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --pad: 48px; }
  .nav .link, .nav .btn, .nav-social, .wallet-btn { display: none; }
  .menu-btn { display: block; }
  .nav { gap: 10px; }
  .mobile-social, .mobile-wallet { display: inline-flex; }
  .mobile-social { margin-top: 16px; }
  .mobile-wallet { align-self: flex-start; margin-top: 12px; padding: 10px 14px; font-size: 15px; }
}
@media (max-width: 520px) {
  :root { --pad: 28px; }
  .gutter { width: 12px; }
  .fgrid { grid-template-columns: 1fr; }
  .fbar { flex-direction: column; }
  .lede { font-size: 17px; }
  .mobile-menu { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important;
  }
}
.brand-logo { height: 56px; width: auto; display: block; }
