/* KOIHOOD look ("the lacquer pond"), loaded last on every page.
   A koi pond at night: deep pond teal and lacquer black, a faint seigaiha wave pattern in gold, vermilion as the one action colour,
   gold for highlights and hairlines, jade for "up", silk white text. Shippori Mincho (OFL) for titles, Geist for text.
   Square lacquer panels with a gold hairline and small corner ticks, flat rectangular buttons, a full-width bar nav,
   a full-bleed pond hero where the koi swims behind the words. */
@font-face { font-family: 'Shippori Mincho'; src: url('/assets/fonts/shippori-mincho-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Shippori Mincho'; src: url('/assets/fonts/shippori-mincho-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
:root {
  --night: #041A1C; --night-2: #062426; --night-3: #092E30; --night-4: #0D393A; --night-5: #144546;
  --ember: #FF4A1C; --ember-hi: #FF7A52; --ember-deep: #D63A0F; --ember-ink: #FFF6EA;
  --amber: #FFB627; --amber-hi: #FFCF66; --amber-deep: #D9900B;
  --cream: #FFF6EA; --muted-c: #9CBDB7; --up-c: #2FD6A0; --down-c: #FF6A45;
  --line: rgba(255, 214, 150, .09); --line-2: rgba(255, 214, 150, .15); --line-3: rgba(255, 214, 150, .26);
  --glass: rgba(4, 26, 28, .84); --glass-2: rgba(6, 36, 38, .9);
  --on: var(--cream); --on-2: rgba(255, 246, 234, .74); --on-3: #9CBDB7;
  --paper: #FFF6EA; --paper-2: #F6EAD6; --mist-2: #EBDDC4; --ink: #062426; --ink-3: #47615D; --gold-ink: #B5780A; --violet-ink: #B5780A;
  --kj: #2FD6A0; --kg: #FFB627; --kr: #FF4A1C; --lacquer: #030F10;
  --display: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif;
  --r-sm: 3px; --r-md: 4px; --r-lg: 6px; --r-xl: 8px; --r-2xl: 10px;
  --ember-grad: #FF4A1C; --gold-grad: #FFB627; --hl-grad: none;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48' viewBox='0 0 96 48'%3E%3Cg fill='none' stroke='%23FFB627' stroke-width='1'%3E%3Cpath d='M0 48a48 48 0 0 1 96 0M12 48a36 36 0 0 1 72 0M24 48a24 24 0 0 1 48 0M36 48a12 12 0 0 1 24 0'/%3E%3Cpath d='M-48 24a48 48 0 0 1 96 0M-36 24a36 36 0 0 1 72 0M-24 24a24 24 0 0 1 48 0M-12 24a12 12 0 0 1 24 0M48 24a48 48 0 0 1 96 0M60 24a36 36 0 0 1 72 0M72 24a24 24 0 0 1 48 0M84 24a12 12 0 0 1 24 0'/%3E%3C/g%3E%3C/svg%3E");
}
html, body { background: var(--night); }
::selection { background: var(--ember); color: var(--cream); }
:focus-visible { outline-color: var(--amber); border-radius: 2px; }

/* the pond behind every page (replaces the night desk canvas): deep water, a faint wave pattern, light from the upper left */
.sky { background: radial-gradient(90% 70% at 18% 0%, rgba(47, 214, 160, .10), transparent 60%), radial-gradient(70% 60% at 100% 100%, rgba(255, 182, 39, .06), transparent 65%), linear-gradient(180deg, #052022 0%, #031416 100%) !important; }
.sky::after { content: ''; position: absolute; inset: 0; background-image: var(--wave); background-size: 96px 48px; opacity: .055; }
.sky canvas, .sky__grid { display: none !important; }
.sky__still { background: none !important; }

/* type */
h1, h2, h3, .h2 { font-family: var(--display); }
.h2 { font-weight: 800; letter-spacing: -.02em; line-height: 1.04; font-size: clamp(36px, 5.6vw, 62px); }
.section .h2 .rl:last-child > span, .h2 em { color: var(--amber); background: none; -webkit-text-fill-color: currentColor; }
.section:nth-of-type(even) .h2 .rl:last-child > span { color: var(--ember-hi); }
.eyebrow, .pill-mono { font-family: var(--mono); }

/* brand: the koi-in-enso seal + the name in Mincho */
.brand { gap: 10px; }
.brand__mark { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.brand__word { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .01em; text-transform: none; color: var(--cream); }

/* navigation: a full-width lacquer bar with a gold hairline, no pill */
.nav { top: 0 !important; background: rgba(3, 15, 16, .78) !important; backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); border-bottom: 1px solid rgba(255, 182, 39, .22) !important; box-shadow: none !important; }
.nav__bar { height: 68px; border-radius: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; }
.nav__links a { font-size: 14.5px; letter-spacing: .01em; position: relative; }
.nav__links a::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; border-radius: 50%; background: var(--ember); transform: translateX(-50%) scale(0); transition: transform .25s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: translateX(-50%) scale(1); }
.nav-new { background: var(--ember) !important; color: var(--cream) !important; border-radius: 2px !important; }
.menu { margin-top: 0; border-radius: 0 0 8px 8px; background: rgba(3, 15, 16, .96); border: 1px solid rgba(255, 182, 39, .2); border-top: 0; }

/* buttons: flat lacquer rectangles; the main one vermilion like a seal */
.btn { border-radius: 3px !important; letter-spacing: .01em; }
.btn--ember, .btn--gold, .btn--green, .btn--amber { background: var(--ember) !important; color: var(--cream) !important; box-shadow: 0 0 0 1px rgba(255, 182, 39, .35) inset, 0 14px 30px -16px rgba(255, 74, 28, .9) !important; }
.btn--ember:hover, .btn--gold:hover, .btn--green:hover, .btn--amber:hover { background: #FF5D33 !important; box-shadow: 0 0 0 1px rgba(255, 207, 102, .6) inset, 0 18px 40px -14px rgba(255, 74, 28, 1) !important; }
.btn--ghost { border-radius: 3px !important; box-shadow: inset 0 0 0 1px rgba(255, 182, 39, .45) !important; color: var(--cream) !important; background: rgba(3, 15, 16, .35) !important; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--amber) !important; background: rgba(255, 182, 39, .08) !important; }
.icon-btn { border-radius: 3px !important; }

/* the intro gate: the koi in the dark pond, one seal-red button */
.intro { background: radial-gradient(60% 55% at 50% 45%, rgba(47, 214, 160, .10), transparent 70%), #031416; }
.intro::after { content: ''; position: absolute; inset: 0; background-image: var(--wave); background-size: 96px 48px; opacity: .05; pointer-events: none; }
.intro__line { color: rgba(255, 246, 234, .9); font-family: var(--display); font-weight: 600; }

/* hero: the pond is the whole hero; the koi swims behind the words, which sit in the lower left */
.hero { min-height: min(100svh, 940px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; padding-top: calc(var(--nav-h) + 40px) !important; }
.hero__pond { position: absolute; inset: 0; z-index: -1; }
.hero__pond::before { content: ''; position: absolute; inset: 0; background: radial-gradient(55% 60% at 70% 42%, rgba(47, 214, 160, .13), transparent 70%), radial-gradient(40% 40% at 72% 45%, rgba(255, 182, 39, .06), transparent 70%); }
.hero__pond::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 20, 22, .86) 0%, rgba(3, 20, 22, .55) 38%, transparent 62%), linear-gradient(0deg, rgba(3, 20, 22, .9) 0%, transparent 30%); pointer-events: none; }
.hero__grid { grid-template-columns: minmax(0, 1fr) !important; }
.hero__copy { max-width: 640px; }
.hero__art, .emblem { display: none !important; }
.hero .hero__title { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; line-height: 1.02; font-size: clamp(46px, 6.3vw, 92px); }
.hero__title em { font-style: normal; color: var(--ember); background: none; -webkit-text-fill-color: currentColor; font-family: var(--display); }
.hero__lead { color: var(--on-2); }
.hero .pill-mono { border-radius: 2px; background: rgba(3, 15, 16, .6); box-shadow: inset 0 0 0 1px rgba(255, 182, 39, .3); color: var(--amber-hi); }
.hero .pill-mono .dot { background: var(--kj); box-shadow: 0 0 10px var(--kj); }
.hero__seal { position: absolute; right: max(5vw, 16px); top: calc(var(--nav-h) + 36px); writing-mode: vertical-rl; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .4em; color: rgba(255, 182, 39, .7); display: flex; align-items: center; gap: 14px; pointer-events: none; }
.hero__seal b { writing-mode: horizontal-tb; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 4px; background: var(--ember); color: var(--cream); font-size: 26px; letter-spacing: 0; box-shadow: 0 10px 26px -10px rgba(255, 74, 28, .8); }
.hero__hint { position: absolute; right: max(5vw, 16px); bottom: 26px; font: 500 12.5px/1.3 var(--mono); color: rgba(255, 246, 234, .55); text-align: right; pointer-events: none; }
@media (max-width: 760px) { .hero__seal, .hero__hint { display: none; } .hero__pond::after { background: linear-gradient(0deg, rgba(3, 20, 22, .95) 0%, rgba(3, 20, 22, .6) 45%, transparent 75%); } .hero { min-height: 92svh; } }

/* the CA box: a lacquer plate with a gold rule */
.ca { border-radius: 4px !important; background: rgba(3, 15, 16, .72) !important; box-shadow: inset 0 0 0 1px rgba(255, 182, 39, .32) !important; }
.ca-label { color: var(--amber) !important; background: rgba(255, 182, 39, .1) !important; border-radius: 2px !important; }
.ca-soon, .ca-live { background: transparent !important; }
.ca-copy { border-radius: 2px !important; }

/* stats: four stones on the water line, each with a red mark */
.stats { border-radius: 4px !important; background: rgba(3, 15, 16, .7) !important; box-shadow: inset 0 0 0 1px var(--line-2) !important; }
.stat { position: relative; }
.stat b { font-family: var(--display); font-weight: 800; }
.stat:nth-child(1) b { color: var(--cream); } .stat:nth-child(2) b { color: var(--amber); } .stat:nth-child(3) b { color: var(--kj); } .stat:nth-child(4) b { color: var(--ember-hi); }
.ticker { border-radius: 3px !important; }

/* panels and cards: square lacquer with a gold hairline and two corner ticks */
.panel { border-radius: 8px !important; }
.panel--ink, .panel--navy, .panel--deep { background: linear-gradient(180deg, rgba(6, 36, 38, .92), rgba(3, 15, 16, .96)) !important; box-shadow: inset 0 0 0 1px rgba(255, 182, 39, .16) !important; }
.panel--ghost, .panel--gold, .panel--mist, .panel--cream { background: linear-gradient(180deg, #FFF6EA, #F6EAD6) !important; color: var(--ink); }
.how-card, .tcard, .coachcard, .tradecard, .ag-row, .faq details, .live__list > *, .kpis > *, .agents__grid > * { border-radius: 4px !important; }
.how-card, .tcard, .tradecard, .coachcard { position: relative; box-shadow: inset 0 0 0 1px rgba(255, 182, 39, .18) !important; background: rgba(3, 15, 16, .7) !important; }
.how-card::before, .tcard::before, .tradecard::before, .coachcard::before { content: ''; position: absolute; left: -1px; top: -1px; width: 14px; height: 14px; border-left: 2px solid var(--amber); border-top: 2px solid var(--amber); pointer-events: none; }
.how-card::after, .tcard::after, .tradecard::after, .coachcard::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px; border-right: 2px solid var(--ember); border-bottom: 2px solid var(--ember); pointer-events: none; }
.chip { border-radius: 2px !important; }
.faq details { box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(3, 15, 16, .55); }
.faq summary { font-family: var(--display); font-weight: 600; }

/* the right-edge rail: small gold seals */
.rail a::before, .rail button::before { border-radius: 1px !important; }

/* closing band: a vermilion seal stamped on the dark water */
.closing__title { font-family: var(--display); font-weight: 800; }
.footer { border-top: 1px solid rgba(255, 182, 39, .18); }

/* wallet disclosure (token page) */
.wl-lead { max-width: 720px; color: var(--on-2); margin-top: 14px; }
.wl-list { list-style: none; padding: 0; margin: 24px 0 12px; display: grid; gap: 10px; }
.wl-list li { display: grid; gap: 6px; padding: 16px 18px; border-radius: 4px; background: rgba(3, 15, 16, .75); box-shadow: inset 0 0 0 1px rgba(255, 182, 39, .2); overflow-wrap: anywhere; }
.wl-list b { font: 700 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.wl-list a { font-family: var(--mono); color: var(--kj); }
.wl-note { font-size: 13px; color: var(--muted-c); }
@media (max-width: 700px) { .nav__bar { padding: 0 !important; } }
