/* Page-specific layout. */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 60ch; }
.section { margin-top: 64px; }
.section > header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section > header h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.section > header a { color: var(--muted); font-weight: 600; font-size: 14px; }

/* home */
.live-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.live-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 40%, transparent), transparent 68%); pointer-events: none; }
.live-card .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 18px; }
.live-card .grid .stat b { font-size: 24px; }
.live-card .chains { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 13.5px; }
.live-card .chains .row { justify-content: space-between; color: var(--muted); }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps .step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.steps .step::before { counter-increment: s; content: counter(s); font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 38px; color: var(--gold); line-height: 1; display: block; margin-bottom: 10px; }
.steps h3 { font-size: 16px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14px; }

.fee-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.fee-flow { display: grid; gap: 14px; }
.fee-flow .line { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 14px; font-size: 14px; }
.fee-flow .bar { height: 12px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.fee-flow .bar i { display: block; height: 100%; border-radius: 99px; }
.big-num { font-weight: 650; font-size: 44px; line-height: 1; letter-spacing: -0.02em; }

.chain-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chain-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.chain-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 16px 0 0; font-size: 14px; }
.chain-card dt { color: var(--muted); } .chain-card dd { margin: 0; text-align: right; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.tile .hd { display: flex; align-items: center; gap: 12px; }
.tile .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.tile .nums b { display: block; color: var(--text); font-size: 14px; margin-top: 2px; }
.tile .ft { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--faint); }

/* explore */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .input { max-width: 340px; }
.toolbar .grow { flex: 1; }

/* token */
.tk-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.tk-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.tk-price { margin-left: auto; text-align: right; }
.tk-price b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tk-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.tk-stats .stat { background: var(--surface); padding: 14px 16px; }
.tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.chart-box { height: 380px; position: relative; }
.chart-box canvas { width: 100%; height: 100%; display: block; }
.panel { position: sticky; top: 84px; }
.quote { display: grid; gap: 8px; font-size: 13.5px; padding: 14px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
.quote .row { justify-content: space-between; color: var(--muted); }
.quote .row b { color: var(--text); font-weight: 600; }
.tk-tabs { margin-top: 20px; }
.addr-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.copy { border: 0; background: transparent; color: var(--muted); padding: 2px 6px; border-radius: 6px; }
.copy:hover { color: var(--mint); background: var(--accent-soft); }
.legend { display: grid; gap: 8px; margin-top: 14px; font-size: 13.5px; }
.legend div { display: flex; align-items: center; gap: 10px; }
.legend em { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.legend span:last-child { margin-left: auto; color: var(--muted); }

/* launch */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.form-sec { padding-block: 22px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.form-sec:first-of-type { border-top: 0; padding-top: 0; }
.form-sec > h3 { font-size: 17px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--bg-2); }
.upload .av { width: 64px; height: 64px; border-radius: 16px; }
.progress { display: grid; gap: 10px; }
.progress .st { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); font-size: 14px; }
.progress .st .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-strong); flex: none; font-size: 12px; }
.progress .st.done .ic { background: var(--up); border-color: var(--up); color: #04231a; }
.progress .st.run .ic { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.progress .st.fail .ic { background: var(--down); border-color: var(--down); color: #2a0610; }
.preview-card { position: sticky; top: 84px; display: grid; gap: 14px; }

/* docs */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
.docs aside { position: sticky; top: 90px; align-self: start; display: grid; gap: 2px; }
.docs aside a { padding: 8px 12px; border-radius: 6px; color: var(--muted); font-weight: 500; font-size: 14px; }
.docs aside a:hover { color: var(--text); background: var(--accent-soft); }
.docs aside a.on { color: var(--text); background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.prose { max-width: 70ch; }
.prose h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.prose h2 { font-size: 22px; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--muted); line-height: 1.7; }
.prose p { margin: 12px 0; } .prose strong { color: var(--text); }
.prose ul { padding-left: 20px; margin: 12px 0; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--bg-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; color: var(--mint); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.prose th { color: var(--text); font-weight: 600; }

@media (max-width: 1020px) {

  .tk-grid, .launch-grid { grid-template-columns: 1fr; }
  .panel, .preview-card { position: static; }
  .tk-stats { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .fee-demo, .chain-cards { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; gap: 20px; }
  .docs aside { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 6px; }
  .docs aside a { white-space: nowrap; }
}
@media (max-width: 560px) {
  .page-head h1 { font-size: 28px; } .two { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr; }
  .tk-stats { grid-template-columns: repeat(2, 1fr); } .tk-price { margin-left: 0; text-align: left; }
  .chart-box { height: 280px; } .section { margin-top: 48px; } .fee-flow .line { grid-template-columns: 84px 1fr auto; }

}

/* Home: bento grid */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.bt { background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-width: 0; backdrop-filter: blur(6px); }
.bt .tbl-wrap { border: 0; background: transparent; margin-inline: -8px; } .bt .tbl th { background: transparent; }
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 34px; display: flex; align-items: center; min-height: 300px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), color-mix(in srgb, var(--surface) 86%, transparent) 60%); }
.hero h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 650; letter-spacing: -0.025em; line-height: 1.08; max-width: 16ch; margin-top: 16px; }
.hero p { margin-top: 14px; color: var(--muted); font-size: 16px; max-width: 54ch; line-height: 1.6; }
.hero .cta { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: color-mix(in srgb, var(--bg) 50%, transparent); }
.eyebrow .dot + .dot, .eyebrow span + .dot { margin-left: 6px; }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kpi { padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 4px; } .kpi small { color: var(--muted); font-size: 12.5px; } .kpi b { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.blk-h { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.blk-h h2 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.blk-h .more { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 13px; }
.tabs-pill { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs-pill button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.tabs-pill button:hover { color: var(--text); } .tabs-pill button.on { background: var(--raised); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong); }
.net-note { display: flex; gap: 14px; align-items: flex-start; padding: 12px 8px; flex-wrap: wrap; }
.net-note .dot { margin-top: 7px; } .net-note > div { flex: 1; min-width: 240px; } .net-note h3 { font-size: 16px; margin-bottom: 6px; } .net-note p { color: var(--muted); font-size: 14px; max-width: 70ch; margin-bottom: 6px; }
.mini-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--line); color: inherit; border-radius: 8px; }
.mini-row:first-child { border-top: 0; } .mini-row:hover { background: var(--accent-soft); }
.mini-row .nm { display: flex; flex-direction: column; min-width: 0; } .mini-row .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; } .mini-row .nm small { color: var(--muted); font-size: 12px; }
.mini-row .ch { font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cmp { width: 100%; } .cmp th, .cmp td { white-space: normal; vertical-align: top; text-align: left; } .cmp thead th { font-size: 13px; color: var(--text); } .cmp tbody th { color: var(--muted); font-weight: 500; width: 150px; }
.steps-v { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; }
.steps-v li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.steps-v li:first-child { border-top: 0; }
.steps-v li::before { content: counter(s); grid-row: span 2; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.steps-v b { font-weight: 600; } .steps-v span { color: var(--muted); font-size: 14px; }
.fee-tile { display: grid; gap: 14px; align-content: start; } .fee-tile h2 { font-size: 17px; font-weight: 650; }
@media (max-width: 980px) { .c4, .c5, .c7, .c8 { grid-column: span 12; } .hero { min-height: 0; padding: 24px; } .cmp tbody th { width: 110px; } }

.tk-side { display: grid; align-content: start; gap: 16px; position: sticky; top: 76px; min-width: 0; }
.tk-stats.rail { grid-template-columns: 1fr 1fr; margin-bottom: 0; align-content: start; align-self: start; grid-auto-rows: min-content; }
@media (max-width: 980px) { .tk-side { position: static; } .tk-stats.rail { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tk-stats.rail { grid-template-columns: 1fr 1fr; } }

.cmp th, .cmp td { text-align: left; } .cmp tbody th { background: var(--bg-2); }

/* Explore: big-logo cards */
.big-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.big { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .15s; color: var(--text); }
.big:hover { border-color: var(--accent); transform: translateY(-3px); color: var(--text); }
.big .pic { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2, var(--surface)); overflow: hidden; }
.big .pic img, .big .pic > span:first-child { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: clamp(34px, 6vw, 54px); letter-spacing: -.02em; }
.big .pill { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px; font: 600 12px var(--mono, monospace); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(8px); }
.big .dots { position: absolute; top: 12px; right: 12px; display: flex; gap: 5px; padding: 4px 6px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(8px); }
.big .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.big .nm { display: flex; align-items: center; gap: 6px; font-size: 16px; min-width: 0; } .big .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.big .sy { font-size: 12.5px; color: var(--muted); }
.big p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); min-height: 2.9em; overflow: hidden; }
.big .mc { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--faint); }
.big .mc b { font-size: 15px; color: var(--text); }
@media (max-width: 520px) { .big-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .big .bd { padding: 10px 12px 12px; } .big p { display: none; } }
.ca-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ca { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--raised); font-size: 13px; }
.ca small { color: var(--muted); font-size: 12.5px; }
.ca .copy { padding: 3px 10px; border-radius: 999px; }

/* Hero backdrop: the Elyne wordmark as a huge soft watermark, a gold sun, two aurora glows and a faded grid */
.hero-in { position: relative; z-index: 2; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-bg i { position: absolute; display: block; }
.hb-grid { inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 78% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 78% 40%, #000, transparent 75%); opacity: .55; }
.hb-glow { border-radius: 50%; filter: blur(70px); }
.hb-glow.g1 { width: 420px; height: 420px; right: -90px; top: -150px; background: radial-gradient(circle, rgba(255, 217, 138, .34), transparent 68%); animation: hb-pulse 9s ease-in-out infinite; }
.hb-glow.g2 { width: 520px; height: 420px; right: 8%; bottom: -230px; background: radial-gradient(circle, rgba(25, 195, 166, .32), transparent 68%); animation: hb-pulse 11s ease-in-out -4s infinite; }
.hb-wm { position: absolute; width: min(760px, 118%); height: auto; aspect-ratio: 1989 / 1010; right: -9%; top: 50%; transform: translateY(-50%) rotate(-5deg); opacity: .26;
  -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 60%); mask-image: linear-gradient(90deg, transparent 22%, #000 60%); animation: hb-float 16s ease-in-out infinite; }
.hb-sun { width: 14px; height: 14px; right: 7%; top: 21%; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff3cf, #ffd98a);
  box-shadow: 0 0 0 10px rgba(255, 217, 138, .08), 0 0 46px 14px rgba(255, 217, 138, .38); animation: hb-pulse 6s ease-in-out infinite; }
:root[data-theme="light"] .hb-wm { opacity: .16; filter: brightness(.42) saturate(1.8); }
:root[data-theme="light"] .hb-glow.g1 { background: radial-gradient(circle, rgba(168, 116, 26, .22), transparent 68%); }
:root[data-theme="light"] .hb-glow.g2 { background: radial-gradient(circle, rgba(10, 154, 130, .2), transparent 68%); }
@keyframes hb-float { 0%, 100% { transform: translateY(-50%) rotate(-5deg); } 50% { transform: translateY(-53%) rotate(-4deg); } }
@keyframes hb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .62; } }
@media (max-width: 980px) { .hb-wm { width: 130%; right: -22%; top: 62%; opacity: .15; } .hb-sun { right: 12%; top: 14%; } }
@media (prefers-reduced-motion: reduce) { .hb-wm, .hb-glow, .hb-sun { animation: none; } }
