/* GERZMO "emergent" layer: silvery carbon look + light motion. CSS only, no external assets.
   Loaded after styles.css. Motion is opt-in via html.em (set by emergent.js) and off under prefers-reduced-motion. */
:root {
  --bg: #0a0b0d; --bg-2: #0e1013; --card: #14171b; --card-2: #1a1e23; --line: #2c323a;
  --silver-1: #f1f4f7; --silver-2: #c9d0d8; --silver-3: #8e98a3;
  --edge: rgba(226, 232, 240, .16); --edge-hi: rgba(240, 244, 248, .38);
  --carbon:
    linear-gradient(27deg, #0d0f12 5px, transparent 5px) 0 5px,
    linear-gradient(207deg, #0d0f12 5px, transparent 5px) 10px 0,
    linear-gradient(27deg, #16191d 5px, transparent 5px) 0 10px,
    linear-gradient(207deg, #16191d 5px, transparent 5px) 10px 5px,
    linear-gradient(90deg, #121418 10px, transparent 10px),
    linear-gradient(#131619 25%, #101215 25%, #101215 50%, transparent 50%, transparent 75%, #17191d 75%, #17191d);
}
/* Matte carbon weave under everything, with a brushed-silver wash on top (static, subtle). */
body {
  background:
    radial-gradient(1200px 600px at var(--mx, 70%) -10%, rgba(203, 213, 225, .07), transparent 60%),
    linear-gradient(180deg, rgba(10, 11, 13, .15), rgba(10, 11, 13, .45) 60%, rgba(10, 11, 13, .6)),
    var(--carbon);
  background-color: #101215; background-size: auto, auto, 20px 20px, 20px 20px, 20px 20px, 20px 20px, 20px 20px, 20px 20px;
  background-attachment: fixed;
}
.section-alt { background: linear-gradient(180deg, rgba(20, 23, 27, .72), rgba(14, 16, 19, .82)); border-top: 1px solid var(--edge); border-bottom: 1px solid rgba(0,0,0,.6); }
.site-header { background: linear-gradient(180deg, rgba(22, 25, 29, .88), rgba(12, 14, 16, .82)); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); border-bottom: 1px solid var(--edge); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.site-footer { background: linear-gradient(180deg, #0e1013, #08090b); border-top: 1px solid var(--edge); }

/* Brushed-metal cards with a soft specular top edge. */
.card, .app-tile, .flow-card, .callout, .hero-note, .cta-box, .connect-box, .wallet-panel, .principle, .faq details, .policy aside {
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 40%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, rgba(0,0,0,.02) 1px 3px),
    linear-gradient(160deg, #1a1e23, #121518 70%);
  border: 1px solid var(--line); border-top-color: var(--edge-hi);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 10px 30px -12px rgba(0,0,0,.75);
}
/* Silver headings (solid fallback colour first; gradient text only where supported). */
h1, h2, .section-head h2 { color: var(--silver-1); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h2 { background: linear-gradient(180deg, #f6f8fa 20%, #c3cad2 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.hero h1 span, h2 span { -webkit-text-fill-color: var(--accent); color: var(--accent); text-shadow: 0 0 28px rgba(34, 211, 238, .28); }
.eyebrow { color: var(--silver-2); letter-spacing: .14em; }
/* Buttons: brand cyan stays the highlight; ghost buttons get a silver rim. */
.btn { position: relative; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 8px 24px -10px rgba(34, 211, 238, .55); }
.btn-ghost { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border-color: var(--silver-3); color: var(--silver-1); box-shadow: 0 1px 0 rgba(255,255,255,.1) inset; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.32) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }

/* Hero depth: silver horizon glow + pointer-following light + parallax layer. */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 320px at var(--px, 65%) var(--py, 30%), rgba(34, 211, 238, .16), transparent 70%),
    radial-gradient(800px 300px at 50% 0%, rgba(226, 232, 240, .10), transparent 70%),
    conic-gradient(from 200deg at 80% 20%, rgba(255,255,255,.05), transparent 25%, rgba(255,255,255,.04) 50%, transparent 75%);
  transform: translate3d(0, calc(var(--sy, 0) * .25px), 0); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(226,232,240,.45), transparent); }

/* ---------- Motion (only when JS opted in and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.em .em-reveal { opacity: 0; transform: translate3d(0, 18px, 0) scale(.985); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
  html.em .em-reveal.in { opacity: 1; transform: none; }
  html.em .hero .em-stage { opacity: 0; transform: translate3d(0, 14px, 0); animation: em-rise .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0ms); }
  @keyframes em-rise { to { opacity: 1; transform: none; } }
  .btn:hover::after, .btn:focus-visible::after { transform: translateX(120%); transition: transform .8s ease; }
  html.em .em-tilt { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; transform-style: preserve-3d; will-change: transform; }
  html.em .em-tilt:hover { border-color: rgba(226,232,240,.35); box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 18px 40px -14px rgba(0,0,0,.85), 0 0 0 1px rgba(34,211,238,.12); }
  html.em .em-tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); }
  /* Gentle ambient sheen across the hero heading's silver. */
  .hero h1 { background: linear-gradient(100deg, #e6ebf0 0%, #ffffff 18%, #c1c9d1 36%, #eef2f5 60%, #b9c2cb 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: em-sheen 9s ease-in-out infinite alternate; }
  @keyframes em-sheen { from { background-position: 0% 0; } to { background-position: 100% 0; } }
}
/* Specular light that follows the pointer on cards (pure decoration). */
.em-tilt { position: relative; }
.em-tilt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--cx, 50%) var(--cy, 0%), rgba(241, 245, 249, .10), transparent 60%); }
.em-tilt:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero::before { transform: none; }
  .em-tilt, .em-tilt:hover { transform: none !important; }
  .btn::after { display: none; }
}
@media (forced-colors: active) { body { background: Canvas; } h2, .hero h1 { color: CanvasText; background: none; } }
