/* dukunai.com — Séance: a night sky, serif display, bots drawn as glowing star trails. */
:root {
  --bg: #08080F; --ink: #F4EBD0; --ink-2: rgba(244, 235, 208, 0.74); --ink-3: rgba(244, 235, 208, 0.52); --ink-4: rgba(244, 235, 208, 0.36);
  --line: rgba(244, 235, 208, 0.14); --accent: #5FE0C8; --warn: #FF8A5B; --nebula: #C39BE0;
  --serif: "Instrument Serif", "Times New Roman", serif; --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
a { color: inherit; }
a:hover { color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
em { font-style: italic; color: var(--accent); }
img, svg { max-width: 100%; }
.sky { position: absolute; inset: 0 0 auto 0; height: 1700px; width: 100%; pointer-events: none; z-index: 0; }
.halo { position: absolute; left: 50%; top: 200px; width: min(1300px, 140vw); height: 760px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(95, 224, 200, 0.09), rgba(8, 8, 15, 0)); pointer-events: none; z-index: 0; }
.page { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.page > :not(.sky):not(.halo):not(.twinkles) { position: relative; z-index: 1; }
.twinkles { position: absolute; inset: 0 0 auto 0; height: 1700px; pointer-events: none; z-index: 0; }
.twinkles i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #F4EBD0; box-shadow: 0 0 6px 1px rgba(244, 235, 208, 0.6); opacity: .15; will-change: opacity; animation: glint var(--d, 4s) ease-in-out var(--o, 0s) infinite; }
main { flex: 1 0 auto; }

/* ---------- header / footer ---------- */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 24px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { filter: drop-shadow(0 0 10px var(--nebula)); }
.brand span { font: 30px/1 var(--serif); letter-spacing: 0.01em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 30px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; border: 0; white-space: nowrap; }
.btn-cream { background: var(--ink); color: var(--bg) !important; }
.btn-accent { background: var(--accent); color: var(--bg) !important; }
.btn-accent:hover, .btn-cream:hover { filter: brightness(1.08); }
.btn-ghost { border: 1px solid rgba(244, 235, 208, 0.3); color: var(--ink); background: transparent; font-weight: 400; }
.btn-ghost:hover { border-color: var(--ink); }
.foot { margin-top: 40px; border-top: 1px solid var(--line); padding: 40px var(--gutter) 48px; display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; color: var(--ink-3); font-size: 14px; }
.foot .brand span { font-size: 24px; color: var(--ink); }
.foot p { margin: 14px 0 0; max-width: 520px; line-height: 1.6; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 28px; align-content: flex-start; }
.foot nav a { text-decoration: none; color: var(--ink-2); }

/* ---------- type ---------- */
.eyebrow { font: 12px/1.4 var(--mono); letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }
.display { margin: 0; font: 400 clamp(54px, 7.8vw, 112px)/0.92 var(--serif); letter-spacing: -0.02em; }
.h2 { margin: 0; font: 400 clamp(44px, 5.4vw, 76px)/0.95 var(--serif); letter-spacing: -0.01em; }
.lede { margin: 0; max-width: 600px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-2); }
.num { font-family: var(--serif); line-height: 1.02; font-variant-numeric: tabular-nums; }
.up { color: var(--accent); } .down { color: var(--warn); }
.section { padding: 0 var(--gutter); }

/* ---------- hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding: 40px var(--gutter) 0; }
.hero-copy { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.ask { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }
.ask-box { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px; border-radius: 22px; border: 1px solid rgba(95, 224, 200, 0.35); background: rgba(244, 235, 208, 0.04); box-shadow: 0 0 40px rgba(95, 224, 200, 0.08); transition: border-color .2s, box-shadow .2s; }
.ask-box:focus-within { border-color: var(--accent); box-shadow: 0 0 56px rgba(95, 224, 200, 0.18); }
.ask-box input { flex: 1 1 300px; min-width: 0; min-height: 52px; padding: 0 14px; border: 0; outline: none; background: transparent; color: var(--ink); font: 17px var(--sans); }
.ask-box input::placeholder { color: var(--ink-3); }
.ask-box .btn { min-height: 52px; border-radius: 14px; flex: 0 0 auto; }
.ask small { font-size: 14px; color: var(--ink-3); }

.champ { flex: 1 1 400px; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 8px 0; }
.bubble { position: relative; align-self: stretch; margin: 0 clamp(0px, 2vw, 24px); padding: 16px 20px; border-radius: 22px; background: var(--ink); color: var(--bg); font-size: 17px; line-height: 1.45; }
.bubble { display: grid; }
.bubble .sizers, .bubble .sizers > span, .bubble .typed { grid-area: 1 / 1; }
.bubble .sizers { display: grid; visibility: hidden; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 20px; height: 20px; background: var(--ink); transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.18em; background: var(--bg); animation: caret 1s steps(1) infinite; }
.champ-body { position: relative; isolation: isolate; animation: float 4.2s ease-in-out infinite; will-change: transform; }
.champ-body::before { content: ""; position: absolute; inset: -40px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c, #5FE0C8) 38%, transparent), transparent); }
.champ-name { text-align: center; }
.champ-name .num { font-size: 46px; }
.champ-status { margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; flex: 0 0 auto; }
.champ-stats { align-self: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(244, 235, 208, 0.16); }
.champ-stats > div { padding: 16px 16px 0 0; min-width: 0; }
.champ-stats > div + div { padding: 16px 0 0 16px; border-left: 1px solid rgba(244, 235, 208, 0.16); }
.champ-stats .eyebrow { font-size: 11px; }
.champ-stats .num { font-size: clamp(38px, 4vw, 48px); }
.champ-stats .sub { font-size: 13px; color: var(--ink-3); }

/* ---------- race ---------- */
.race-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 96px var(--gutter) 0; }
.race { position: relative; margin-top: 28px; padding: 0 240px 0 var(--gutter); }
.race-plot { position: relative; width: 100%; aspect-ratio: 1000 / 400; }
.race-plot > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* each line is drawn once into its own layer and revealed by sliding two boxes past each other (transform only) */
.wipe, .wipe > div { position: absolute; inset: -16px; overflow: hidden; }
.wipe > div { inset: 0; overflow: visible; }
.wipe svg { position: absolute; left: 16px; top: 16px; width: calc(100% - 32px); height: calc(100% - 32px); overflow: visible; }
.wipe.anim { animation: wipe-out 2.6s cubic-bezier(.33, 1, .68, 1) var(--wd, 0s) both; will-change: transform; }
.wipe.anim > div { animation: wipe-in 2.6s cubic-bezier(.33, 1, .68, 1) var(--wd, 0s) both; will-change: transform; }
@keyframes wipe-out { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes wipe-in { from { transform: translateX(100%); } to { transform: none; } }
.race-axis { display: flex; justify-content: space-between; margin-top: 16px; font: 12px var(--mono); color: var(--ink-4); }
.race-note { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }
.head { position: absolute; left: 100%; display: flex; align-items: center; gap: 10px; transform: translate(-22px, -50%); opacity: 0; animation: rise .6s ease-out forwards; white-space: nowrap; }
.head .nm { font: 24px/1.05 var(--serif); color: var(--ink); }
.head .pc { font: 13px/1.2 var(--mono); }
.head-btc { position: absolute; left: 100%; transform: translate(14px, -50%); font: 13px var(--mono); color: var(--ink-3); white-space: nowrap; opacity: 0; animation: fade .8s ease-out forwards; }
.legend { display: none; margin: 22px 0 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.legend .nm { font: 22px/1 var(--serif); flex: 1; }
.legend .pc { font: 14px var(--mono); }

/* ---------- ticker ---------- */
.ticker { margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; font: 14px var(--mono); color: rgba(244, 235, 208, 0.8); }
.ticker-track { display: inline-flex; padding: 16px 0; animation: tape var(--tape, 40s) linear infinite; will-change: transform; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; padding: 0 28px; }
.ticker-item i { font-style: normal; color: var(--ink-4); }

/* ---------- conversation ---------- */
.convo { display: flex; flex-wrap: wrap; gap: 48px 56px; padding: 120px var(--gutter) 40px; }
.convo-intro { flex: 1 1 340px; max-width: 460px; }
.convo-intro p { margin: 20px 0 0; font-size: 18px; color: var(--ink-2); }
.convo-thread { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.msg-user { align-self: flex-end; max-width: 560px; padding: 16px 20px; border-radius: 22px 22px 6px 22px; background: var(--ink); color: var(--bg); font-size: 17px; line-height: 1.5; }
.msg-dukun { display: flex; gap: 14px; align-items: flex-start; max-width: 740px; }
.msg-dukun > svg { flex: 0 0 auto; filter: drop-shadow(0 0 12px var(--nebula)); }
.msg-dukun-body { min-width: 0; display: flex; flex-direction: column; gap: 14px; color: rgba(244, 235, 208, 0.9); }
.msg-dukun-body p { margin: 0; }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-top: 1px solid rgba(244, 235, 208, 0.16); border-bottom: 1px solid rgba(244, 235, 208, 0.16); }
.figs > div { padding: 14px 16px; min-width: 0; }
.figs > div:first-child { padding-left: 0; }
.figs > div + div { border-left: 1px solid rgba(244, 235, 208, 0.16); }
.figs .eyebrow { font-size: 11px; }
.figs .num { font-size: 40px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- receipts ---------- */
.receipts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); padding: 80px var(--gutter) 100px; }
.receipts > div { padding: 0 40px; }
.receipts > div:first-child { padding-left: 0; }
.receipts > div + div { border-left: 1px solid var(--line); }
.receipts .num { font-size: clamp(64px, 7vw, 96px); line-height: 1; }
.receipts p { margin: 14px 0 0; color: var(--ink-2); }

/* ---------- closing ---------- */
.close { text-align: center; padding: 40px var(--gutter) 100px; display: flex; flex-direction: column; align-items: center; gap: 24px; }

/* ---------- showcase ---------- */
.page-hero { padding: 48px var(--gutter) 0; display: flex; flex-direction: column; gap: 24px; }
.board { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 16px; }
.board th { text-align: left; font: 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding: 0 16px 12px 0; font-weight: 400; border-bottom: 1px solid var(--line); white-space: nowrap; }
.board td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.board td.r, .board th.r { text-align: right; }
.board .who { display: flex; align-items: center; gap: 14px; }
.board .who b { display: block; font: 400 28px/1 var(--serif); }
.board .who span { font-size: 14px; color: var(--ink-3); }
.board .num { font-size: 30px; }
.board .rank { font: 13px var(--mono); color: var(--ink-4); width: 32px; }
.bot-cards { display: none; }
.trades { list-style: none; margin: 18px 0 0; padding: 0; }
.trades li { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.trades time { font: 13px var(--mono); color: var(--ink-3); }
.trades .amt { font: 14px var(--mono); color: var(--ink-2); }
.trades li.empty { display: block; color: var(--ink-3); padding: 18px 0; }
.method { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px 48px; margin-top: 28px; }
.method h3 { margin: 0 0 8px; font: 400 30px/1.1 var(--serif); }
.method p { margin: 0; color: var(--ink-2); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.plan { padding: 36px 40px 40px 0; display: flex; flex-direction: column; gap: 16px; }
.plan + .plan { padding-left: 40px; border-left: 1px solid var(--line); }
.plan .num { font-size: 64px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); }
.plan li { display: flex; gap: 12px; }
.plan li::before { content: "✦"; color: var(--accent); font-size: 12px; line-height: 1.9; }
.plan.later li::before { color: var(--ink-4); }
.faq { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 32px 56px; }
.faq h3 { margin: 0 0 8px; font: 600 18px/1.4 var(--sans); }
.faq p { margin: 0; color: var(--ink-2); }

/* ---------- legal ---------- */
.legal { display: flex; flex-wrap: wrap; gap: 48px 64px; padding: 48px var(--gutter) 40px; max-width: 1240px; }
.legal aside { flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 24px; align-self: flex-start; }
.legal aside a { color: var(--ink-3); text-decoration: none; font-size: 14px; line-height: 1.5; }
.legal aside a:hover { color: var(--ink); }
.legal article { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.legal h1 { margin: 0; font: 400 clamp(52px, 6vw, 80px)/0.95 var(--serif); }
.legal h2 { margin: 0 0 10px; font: 400 30px/1.15 var(--serif); }
.legal section { scroll-margin-top: 24px; }
.legal p { margin: 0 0 10px; color: var(--ink-2); line-height: 1.75; }
.legal ul { margin: 0 0 10px; padding-left: 20px; color: var(--ink-2); line-height: 1.75; }
.legal .meta { color: var(--ink-3); }

/* ---------- 404 ---------- */
.lost { padding: 80px var(--gutter); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translate(-22px, calc(-50% + 12px)); } to { opacity: 1; transform: translate(-22px, -50%); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes twinkle { 0%, 100% { opacity: .6; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes aura { 0%, 100% { transform: scale(1); opacity: .18; } 50% { transform: scale(1.18); opacity: .32; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes glint { 0%, 100% { opacity: .15; } 50% { opacity: .8; } }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .race { padding-right: var(--gutter); }
  .head, .head-btc { display: none; }
  .legend { display: block; }
  .receipts > div { padding: 28px 0 0; border-left: 0 !important; }
  .receipts > div + div { margin-top: 28px; border-top: 1px solid var(--line); }
  .plan, .plan + .plan { padding: 32px 0; border-left: 0; }
  .plan + .plan { border-top: 1px solid var(--line); }
  .board { display: none; }
  .bot-cards { display: block; list-style: none; margin: 18px 0 0; padding: 0; }
  .bot-cards li { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
  .bot-cards .who { display: flex; align-items: center; gap: 14px; }
  .bot-cards .who b { display: block; font: 400 28px/1 var(--serif); }
  .bot-cards .who span { font-size: 14px; color: var(--ink-3); }
  .bot-cards dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .bot-cards dt { font: 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
  .bot-cards dd { margin: 2px 0 0; font: 26px/1.1 var(--serif); }
  .trades li { grid-template-columns: minmax(0, 1fr) auto; }
  .trades time { grid-column: 1 / -1; }
  .legal aside { position: static; max-width: none; }
}
@media (max-width: 560px) {
  .nav { gap: 6px 18px; font-size: 14px; }
  .nav .btn { min-height: 40px; padding: 0 16px; }
  .ask-box .btn { flex: 1 1 100%; }
  .race-plot { aspect-ratio: 4 / 3; }
  .champ-name .num { font-size: 40px; }
  .figs > div { padding-left: 0 !important; border-left: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
}
