/* HEXARIUM home — glossy black & chrome (Orizin language), one hero */
@font-face { font-family: 'DM Sans'; src: url('/fonts/dm-sans-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }
:root {
  --bg: #04050a; --ink: #f4f4f5; --ink-2: #d6d6db; --ink-3: #9b9ba4; --muted: #74747d;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --grad: linear-gradient(180deg,#fff 0%,#e2e2e6 38%,#b4b4bc 72%,#d9d9de 100%);
  --grad-text: linear-gradient(100deg,#fff 0%,#c6c6cd 30%,#7d7d86 58%,#e9e9ee 80%,#9a9aa3 100%);
  --up: #46d98a; --red: #f26d6d;
  --font: 'DM Sans', system-ui, sans-serif; --display: 'Manrope', 'DM Sans', sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --px: max(16px, 5vw);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: radial-gradient(1200px 700px at 62% 45%, #0d1430 0%, #070914 45%, var(--bg) 80%) fixed, var(--bg); color: var(--ink); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; color-scheme: dark; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, output { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: radial-gradient(1100px 700px at 58% 48%, #111a3d 0%, #080b1a 45%, #04050a 85%); }
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#hero-3d { opacity: 0; transition: opacity 1.2s ease; }
#hero-3d.ready { opacity: 1; }
.hero-fade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(1000px 650px at 58% 48%, rgba(40, 60, 160, .22), rgba(20, 30, 90, .1) 50%, transparent 80%), linear-gradient(90deg, rgba(5,5,7,.8) 0%, rgba(5,5,7,.35) 34%, rgba(5,5,7,0) 52%), linear-gradient(0deg, var(--bg) 0%, rgba(8,8,10,0) 16%); }

.hd { display: flex; align-items: center; gap: 22px; height: 96px; padding: 0 var(--px); }
.brand { display: flex; align-items: center; gap: 12px; font: 700 19px/1 var(--display); letter-spacing: .08em; }
.brand img { width: 42px; height: 42px; }
.ca { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 99px; font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--ink-3); background: rgba(255,255,255,.03); }
.ca span { color: var(--muted); }
.ca.has-ca b { color: var(--ink); }
.nav { display: flex; gap: 30px; margin: 0 auto; font-size: 15px; color: var(--ink-3); }
.nav a:hover { color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 10px; }
.buy-btn { height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 99px; font-weight: 600; font-size: 14px; }

.btn-grad { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 99px; background: var(--grad); color: #0a0a0c; font-weight: 600; box-shadow: 0 16px 34px -16px rgba(255,255,255,.35), inset 0 1px 0 #fff, inset 0 -2px 6px rgba(0,0,0,.18); transition: transform .2s, box-shadow .2s; }
.btn-grad:hover { transform: translateY(-1px); box-shadow: 0 20px 40px -16px rgba(255,255,255,.45), inset 0 1px 0 #fff, inset 0 -2px 6px rgba(0,0,0,.18); }
.btn-grad.sm { height: 40px; padding: 0 20px; font-size: 14px; }
.btn-grad.lg { height: 60px; padding: 0 28px; font-size: 17px; }
.btn-grad.lg svg { width: 20px; height: 20px; stroke-width: 2.2; }
.ghost { display: inline-flex; align-items: center; height: 60px; padding: 0 24px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 500; }
.ghost:hover { border-color: rgba(255,255,255,.3); color: var(--ink); }

.grid { flex: 1; display: grid; grid-template-columns: minmax(0,1fr) minmax(380px, 470px); gap: 56px; align-items: center; padding: 20px var(--px) 80px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(70,217,138,.15); }
h1 { margin: 0; font: 600 clamp(46px, 5.4vw, 92px)/1.02 var(--display); letter-spacing: -.045em; }
h1 span { display: block; padding-bottom: .04em; }
.chrome { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 540px; margin: 28px 0 0; font-size: 18px; color: var(--ink-3); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; max-width: 520px; margin-top: 34px; }
.facts div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.03); backdrop-filter: blur(10px); }
.facts b { display: block; font: 600 26px/1 var(--display); letter-spacing: -.03em; }
.facts span { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* swap card — Hades-style compact form */
.glass { background: linear-gradient(180deg, rgba(40,40,46,.55), rgba(14,14,17,.78)); backdrop-filter: blur(24px) saturate(1.1); -webkit-backdrop-filter: blur(24px) saturate(1.1); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 100px -30px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.1); }
.swap { position: relative; border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.sw-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; }
.sw-top b { font: 600 17px/1 var(--display); }
.tg { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-3); cursor: pointer; }
.tg input { display: none; }
.tg span { width: 34px; height: 20px; border-radius: 99px; background: rgba(255,255,255,.12); position: relative; transition: background .2s; }
.tg span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #cfcfd6; transition: transform .2s; }
.tg input:checked + span { background: rgba(255,255,255,.4); }
.tg input:checked + span::after { transform: translateX(14px); background: #fff; }
.field { border-radius: 18px; background: rgba(0,0,0,.35); border: 1px solid var(--line); padding: 14px 16px; }
.f-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.f-main { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.f-main input, .f-main output { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 600 32px/1.1 var(--display); letter-spacing: -.03em; }
.f-main output { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tok { flex: none; display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 12px 0 7px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid var(--line-2); }
.tok:hover { background: rgba(255,255,255,.12); }
.tok img, .tok i { width: 30px; height: 30px; border-radius: 50%; background: #222; }
.tok span { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.tok b { font-size: 15px; }
.tok small { font-size: 11px; color: var(--muted); }
.tok svg { width: 15px; height: 15px; color: var(--ink-3); }
.flip { align-self: center; margin: -18px 0; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #1a1a1e; border: 1px solid var(--line-2); color: var(--ink-2); }
.flip:hover { color: #fff; }
.addr { height: 50px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.35); padding: 0 16px; outline: 0; font: 400 13px var(--mono); }
.addr:focus { border-color: var(--line-2); }
.meta { margin: 4px 0 0; padding: 6px 6px 0; display: grid; gap: 7px; }
.meta div { display: flex; justify-content: space-between; font-size: 13px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; color: var(--ink-2); }
.msg { margin: 4px 6px 0; font-size: 13px; color: var(--red); }
.go { height: 56px; margin-top: 8px; font-size: 16px; }
.picker { position: absolute; inset: 0; z-index: 3; border-radius: 26px; background: #0e0e11; border: 1px solid var(--line-2); padding: 16px; display: flex; flex-direction: column; }
.picker[hidden] { display: none; }
.pk-head { display: flex; gap: 8px; }
.pk-head input { flex: 1; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: #000; padding: 0 14px; outline: 0; }
.pk-head button { width: 46px; font-size: 24px; color: var(--ink-3); }
.pk-list { flex: 1; overflow: auto; margin-top: 10px; }
.pk-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; text-align: left; }
.pk-list button:hover { background: rgba(255,255,255,.06); }
.pk-list img { width: 30px; height: 30px; border-radius: 50%; }
.pk-list span { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.pk-list p { color: var(--muted); padding: 10px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; padding: 12px 18px; border-radius: 12px; background: #f4f4f5; color: #0a0a0c; font-size: 14px; font-weight: 500; }
.toast[hidden] { display: none; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .top-right { margin-left: auto; }
  .grid { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .swap { max-width: 520px; width: 100%; }
  .hero-fade { background: linear-gradient(0deg, var(--bg) 0%, rgba(8,8,10,0) 18%), linear-gradient(90deg, rgba(8,8,10,.86), rgba(8,8,10,.4)); }
}
@media (max-width: 640px) {
  .hd { height: 72px; gap: 10px; }
  .brand span, .ca span { display: none; }
  .ca { max-width: 46vw; overflow: hidden; }
  .ca b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .facts { gap: 8px; } .facts div { padding: 12px; } .facts b { font-size: 21px; }
  .lede { font-size: 16px; }
  .btn-grad.lg, .ghost { height: 52px; }
}

/* ice-blue glass (matched to the crystal's light) */
.glass { background: linear-gradient(180deg, rgba(200, 212, 255, .16) 0%, rgba(130, 150, 240, .07) 38%, rgba(12, 16, 36, .78) 100%); border-color: rgba(205, 218, 255, .24); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .85), 0 0 80px -30px rgba(140, 160, 255, .35), inset 0 1px 0 rgba(235, 240, 255, .25); }
.field, .addr { background: rgba(8, 12, 30, .5); border-color: rgba(190, 205, 255, .12); }
.facts div { background: linear-gradient(180deg, rgba(200, 212, 255, .09), rgba(20, 26, 56, .3)); border-color: rgba(205, 218, 255, .14); }
.flip { background: #161b33; border-color: rgba(205, 218, 255, .22); }
.tok { background: rgba(200, 212, 255, .08); border-color: rgba(205, 218, 255, .2); }
.picker { background: #0b0f22; border-color: rgba(205, 218, 255, .2); }
/* Robinhood Chain badge on token icons */
.ti { position: relative; display: inline-flex; flex: none; }
.ti > img, .ti > i:not(.rh-badge) { width: 30px; height: 30px; border-radius: 50%; }
.rh-badge { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; background: #0b0f22; display: grid; place-items: center; box-shadow: 0 0 0 2px #0b0f22; }
.rh-badge img { width: 15px; height: 15px; border-radius: 50%; }
.pk-list .ti img:first-child { width: 30px; height: 30px; }
.tok .rh-badge, .pk-list .rh-badge { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; background: #0b0f22; border-radius: 50%; }
.tok .rh-badge img, .pk-list .rh-badge img { width: 15px; height: 15px; }
.sw-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 6px 0 0; font-size: 12.5px; color: #8f94a8; text-align: center; }
.sw-note svg { width: 14px; height: 14px; flex: none; color: #c9d3ff; }
@media (max-width: 640px) { .lg-only { display: none; } }

/* hero backdrop: noisy gradient in the logo's ice-blue / periwinkle */
.hero-bg { background:
  radial-gradient(900px 620px at 56% 46%, rgba(150, 168, 255, .32) 0%, rgba(90, 100, 220, .16) 38%, transparent 70%),
  radial-gradient(700px 500px at 12% 90%, rgba(110, 90, 230, .16), transparent 70%),
  radial-gradient(800px 500px at 95% 5%, rgba(120, 150, 255, .14), transparent 70%),
  linear-gradient(160deg, #0a0d24 0%, #05060f 55%, #070818 100%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-fade { background: linear-gradient(90deg, rgba(5, 6, 15, .55) 0%, rgba(5, 6, 15, .15) 34%, rgba(5, 6, 15, 0) 52%), linear-gradient(0deg, #04050a 0%, rgba(4, 5, 10, 0) 16%) !important; }

.sm-only { display: none; }
@media (max-width: 640px) { .sm-only { display: inline; } .lg-only { display: none; } }
.hero-fade { background: linear-gradient(90deg, rgba(5, 6, 15, .6) 0%, rgba(5, 6, 15, .2) 34%, rgba(5, 6, 15, 0) 50%), linear-gradient(0deg, #04050a 0%, rgba(4, 5, 10, 0) 16%) !important; }
@media (max-width: 640px) { #hero-3d.ready { opacity: .7; } }
/* frosted card: the glass mark shows through */
.swap.glass { background: linear-gradient(180deg, rgba(200, 212, 255, .12) 0%, rgba(110, 130, 230, .05) 40%, rgba(10, 13, 32, .42) 100%); backdrop-filter: blur(14px) saturate(1.25); -webkit-backdrop-filter: blur(14px) saturate(1.25); }
.swap .field, .swap .addr { background: rgba(6, 9, 24, .38); }
.swap .f-row, .swap .meta dt, .swap .sw-note { color: #b9bfd6; } .swap .addr::placeholder { color: #9ea5c0; } .swap .tok small { color: #aab1c9; }

.socials { position: absolute; left: var(--px); bottom: 28px; z-index: 2; display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(205, 218, 255, .22); background: rgba(200, 212, 255, .06); backdrop-filter: blur(10px); color: #dfe6ff; transition: background .2s, border-color .2s, transform .2s; }
.socials a:hover { background: rgba(200, 212, 255, .14); border-color: rgba(205, 218, 255, .45); transform: translateY(-2px); }
.socials a[hidden] { display: none; }
.socials svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
@media (max-width: 1100px) { .socials { position: static; padding: 0 var(--px) 32px; } }

/* CA: full address, tap to copy */
.ca { cursor: pointer; }
.ca.is-copied, .ca-strip.is-copied { border-color: rgba(70, 217, 138, .6); }
.ca-strip { display: none; }
.buy-btn { white-space: nowrap; }
@media (max-width: 640px) {
  .hd .ca { display: none; }
  .hd .buy-btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .hd .connect { height: 36px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
  .ca-strip { display: flex; align-items: center; gap: 8px; width: calc(100% - 2 * var(--px)); margin: 0 auto 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(205, 218, 255, .22); background: rgba(200, 212, 255, .06); color: #dfe6ff; font: 500 10.5px/1.3 var(--mono); text-align: left; cursor: pointer; }
  .ca-strip span { color: #8f94a8; flex: none; }
  .ca-strip b { flex: 1; min-width: 0; word-break: break-all; font-weight: 600; }
  .ca-strip svg { width: 14px; height: 14px; flex: none; }
}
@media (max-width: 640px) { .ca-strip { position: relative; z-index: 3; background: rgba(10, 13, 32, .88); backdrop-filter: blur(10px); } }
