*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #e8622c;
  --orange-2: #f0813e;
  --glow: rgba(232, 98, 44, 0.28);
  --bg: #0f0f0f;
  --bg-2: #131313;
  --card: #171717;
  --line: #242424;
  --cream: #f5f0e8;
  --cream-line: #e4dccf;
  --text: #f0ece4;
  --muted: #8f8a7f;
  --ink: #1a1a1a;
  --ink-muted: #6f6a60;
  --ok: #3ccf7a;
  --bad: #ef5b4c;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --serif: "DM Serif Display", Georgia, serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--orange-2); }
code { font-family: var(--mono); font-size: 0.85em; background: rgba(127,127,127,0.14); padding: 0.1em 0.35em; border-radius: 4px; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.12; }
h3 { font-size: 1rem; font-weight: 600; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.eyebrow { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.6rem; }
[hidden] { display: none !important; }

/* ticker */
.ticker { position: fixed; inset: 0 0 auto 0; height: 34px; z-index: 30; display: flex; background: #0a0a0a; border-bottom: 1px solid #1b1b1b; }
.ticker-label { flex: none; display: flex; align-items: center; padding: 0 14px; background: var(--orange); color: #fff; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.ticker-viewport { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker-track { display: flex; white-space: nowrap; }
.ticker-track.moving { animation: ticker 60s linear infinite; }
.ticker-track.moving:hover { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track.moving { animation: none; } }
.tick { display: inline-flex; align-items: center; gap: 8px; padding: 0 26px; font-size: 0.72rem; color: #8a8a8a; }
.tick .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.tick .dot.fee_claim { background: var(--ok); }
.tick .dot.round_commitment { background: #6ea8ff; }
.tick .dot.swap { background: #c9b8f2; }
.tick .dot.gift_opened { background: #f5f0e8; }
.tick a { font-size: 0.68rem; text-decoration: none; }
.tick a:hover { text-decoration: underline; }
.tick .ago { color: #4a4a4a; font-size: 0.65rem; }

/* nav */
.nav { position: fixed; top: 34px; left: 0; right: 0; z-index: 29; height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; background: rgba(15,15,15,0.88); backdrop-filter: blur(16px); border-bottom: 1px solid #1c1c1c; }
.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 1.45rem; }
.logo-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--orange); color: #fff; font-family: "Inter", sans-serif; font-weight: 700; font-size: 0.95rem; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.86rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { color: #fff; background: var(--orange); padding: 0.5rem 1.2rem; border-radius: 999px; font-weight: 600; }
.nav-links .nav-cta:hover { background: var(--orange-2); color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 0.8rem 1.6rem; font: 600 0.9rem "Inter", sans-serif; cursor: pointer; text-decoration: none; transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: #343434; }
.btn-ghost:hover { border-color: #555; }
.btn-small { padding: 0.4rem 1rem; font-size: 0.78rem; background: transparent; color: var(--muted); border-color: #333; }
.btn-small:hover { color: var(--orange); border-color: var(--orange); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 170px 0 110px; }
.hero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -40px; background: radial-gradient(circle, var(--glow), transparent 65%); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; left: -200px; top: -160px; background: radial-gradient(circle, rgba(92, 52, 140, 0.22), transparent 65%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.06; margin-bottom: 1.4rem; }
.accent { color: var(--orange); }
.lede { color: var(--muted); font-size: 1.02rem; max-width: 470px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-card { background: linear-gradient(160deg, #1b1b1b, #141414); border: 1px solid #272727; border-radius: 22px; padding: 1.8rem; box-shadow: 0 30px 80px rgba(0,0,0,0.45); }
.hero-card-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1.1rem; }
.pill { font-size: 0.66rem; letter-spacing: 0.06em; padding: 0.25rem 0.65rem; border-radius: 999px; background: #262626; color: var(--muted); }
.pill.on { background: rgba(60, 207, 122, 0.14); color: var(--ok); }
.pill.off { background: rgba(239, 91, 76, 0.14); color: var(--bad); }
.hero-big { font-family: var(--serif); font-size: 3rem; color: var(--orange); line-height: 1; }
.hero-sub { color: var(--muted); font-size: 0.8rem; margin: 0.3rem 0 1.3rem; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid #262626; border-bottom: 1px solid #262626; margin-bottom: 1rem; }
.k { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.v { font-size: 1.2rem; font-weight: 600; margin-top: 0.15rem; }
.addr-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.35rem 0; }
.addr { font-family: var(--mono); font-size: 0.78rem; color: var(--text); background: none; border: 0; cursor: pointer; text-decoration: none; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.addr:hover, button.addr:hover { color: var(--orange-2); }

/* bands and sections */
.band { padding: 5.5rem 0; }
.band.cream { background: var(--cream); color: var(--ink); }
.band.cream .eyebrow { color: var(--orange); }
.band.cream .muted { color: var(--ink-muted); }
.band.dark-2 { background: var(--bg-2); border-top: 1px solid #1b1b1b; border-bottom: 1px solid #1b1b1b; }
.section { padding: 5.5rem 0; }
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: start; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.twocol h3 { margin-bottom: 0.8rem; }
.checks, .crosses, .limits { list-style: none; display: grid; gap: 0.8rem; }
.checks li, .crosses li { position: relative; padding-left: 1.6rem; font-size: 0.92rem; color: #3a3631; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.crosses li::before { content: "–"; position: absolute; left: 0.15rem; color: var(--ink-muted); font-weight: 700; }
.limits li { font-size: 0.92rem; color: #3a3631; padding-bottom: 0.8rem; border-bottom: 1px solid var(--cream-line); }
.limits strong { color: var(--ink); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.5rem; }
.section-head .muted { max-width: 380px; text-align: right; font-size: 0.92rem; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.7rem 1.4rem; }
.step .num { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--orange); color: #fff; font-weight: 700; font-size: 0.85rem; margin-bottom: 1.1rem; }
.step h3 { margin-bottom: 0.45rem; }
.step p { color: var(--muted); font-size: 0.85rem; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 2.2rem; }
.panel h2 { margin-bottom: 0.4rem; }
.panel h3 { margin-bottom: 0.5rem; }
.panel > .muted { margin-bottom: 1.4rem; font-size: 0.9rem; }

/* claim */
.claim-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.or { color: var(--muted); font-size: 0.85rem; }
.lookup { display: flex; flex: 1; min-width: 280px; gap: 0.6rem; }
.lookup input { flex: 1; min-width: 0; background: #0d0d0d; border: 1px solid #2c2c2c; border-radius: 999px; padding: 0.75rem 1.1rem; color: var(--text); font: 0.85rem var(--mono); }
.lookup input:focus { outline: none; border-color: var(--orange); }
.wallet-bar { display: flex; align-items: center; gap: 1rem; margin-top: 1.2rem; font: 0.85rem var(--mono); color: var(--orange-2); flex-wrap: wrap; }
.notice { min-height: 1.4em; margin-top: 1rem; font-size: 0.86rem; color: var(--muted); }
.notice.error { color: var(--bad); }
.allocations { display: grid; gap: 0.7rem; margin-top: 0.6rem; }
.alloc { display: grid; grid-template-columns: 1fr auto; gap: 0.8rem 1.4rem; align-items: center; background: #101010; border: 1px solid #222; border-radius: 14px; padding: 1.1rem 1.3rem; }
.alloc .title { font-weight: 600; }
.alloc .meta { color: var(--muted); font-size: 0.78rem; margin-top: 0.15rem; }
.alloc .meta a { margin-left: 0.4rem; }
.alloc .right { display: flex; align-items: center; gap: 1rem; }
.alloc .amount { font-family: var(--serif); font-size: 1.35rem; color: var(--orange); }
.status { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.22rem 0.6rem; border-radius: 6px; background: #222; color: var(--muted); }
.status.delivered, .status.paid_sol { background: rgba(60,207,122,0.13); color: var(--ok); }
.status.needs_review, .status.failed, .status.unfunded { background: rgba(239,91,76,0.13); color: var(--bad); }
.status.pending, .status.invoiced, .status.paying, .status.paid, .status.sending { background: rgba(232,98,44,0.14); color: var(--orange-2); }
.code-box { grid-column: 1 / -1; border: 1px dashed var(--orange); border-radius: 12px; padding: 1rem 1.2rem; display: grid; gap: 0.45rem; }
.code-box .code { font: 600 1.15rem var(--mono); letter-spacing: 0.06em; word-break: break-all; color: var(--text); }
.code-box .line { font-size: 0.82rem; color: var(--muted); }

/* proof */
.proof-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.4rem; align-items: start; }
.check-results { display: grid; gap: 0.6rem; margin-top: 1.3rem; }
.check { border: 1px solid #252525; border-radius: 12px; padding: 0.8rem 1rem; background: #0e0e0e; }
.check-head { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.85rem; }
.check-head .name { font-family: var(--mono); }
.check-head .ok { color: var(--ok); font-weight: 600; }
.check-head .bad { color: var(--bad); font-weight: 600; }
.check pre { margin-top: 0.5rem; font: 0.74rem/1.5 var(--mono); color: #9a958b; white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: auto; }
.verify { padding-left: 1.2rem; display: grid; gap: 0.7rem; font-size: 0.88rem; color: #c9c4ba; margin-bottom: 1.2rem; }

/* rounds */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.table th { text-align: left; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 600; padding: 0.85rem 0.7rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 0.8rem 0.7rem; border-bottom: 1px solid #1a1a1a; color: #c9c4ba; white-space: nowrap; font-size: 0.82rem; }
.table th:first-child, .table td:first-child { padding-left: 1.1rem; }
.table tr:last-child td { border-bottom: 0; }
.table td.empty { text-align: center; color: var(--muted); padding: 2.2rem; }
.table a { text-decoration: none; }
.table a:hover { text-decoration: underline; }

.footer { padding: 2.5rem 2rem; text-align: center; color: #555; font-size: 0.78rem; border-top: 1px solid #1a1a1a; }
.footer span { font-family: var(--mono); }
.footer .fine { margin-top: 0.6rem; font-size: 0.7rem; color: #444; max-width: 640px; margin-left: auto; margin-right: auto; }

/* holiday hero art */
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: 0.92; pointer-events: none; }
.hero::before, .hero::after { z-index: 0; }
.hero { min-height: 720px; display: flex; align-items: center; }
.hero-inner { width: 100%; }
.hero-text { text-shadow: 0 2px 30px rgba(0,0,0,0.55); }
.hero-text h1 em, .accent { font-style: italic; }
.lede strong { color: var(--text); }
.hero-card { backdrop-filter: blur(10px); background: linear-gradient(160deg, rgba(27,27,27,0.88), rgba(20,20,20,0.9)); }

/* official wallet band */
.phantom-band { background: linear-gradient(90deg, #1a1226, #241634 55%, #1a1226); border-top: 1px solid #2c2140; border-bottom: 1px solid #2c2140; padding: 3.2rem 0; }
.phantom-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.phantom-band .eyebrow { color: #c9b8f2; }
.phantom-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.phantom-copy p { color: #c4bcd6; margin-bottom: 1.2rem; font-size: 0.95rem; }
.btn-ghost-dark { background: rgba(255,255,255,0.06); color: #efe9ff; border-color: rgba(201,184,242,0.35); }
.btn-ghost-dark:hover { border-color: #c9b8f2; }

/* nav logo */
.logo-img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.nav-logo em { color: var(--orange); font-style: italic; }
.nav-links .nav-x { display: inline-flex; align-items: center; gap: 6px; }

/* official wallet band: Phantom's white logo as an overlay watermark */
.phantom-band { position: relative; overflow: hidden; isolation: isolate; }
.phantom-mark {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(1150px, 118%); height: auto;
  left: 50%; top: 50%; transform: translate(-46%, -50%) rotate(-4deg);
  mix-blend-mode: overlay; opacity: 0.9;
}
.phantom-inner { position: relative; z-index: 1; }

/* how it works: a garland with the steps hanging from it */
.garland-row { position: relative; margin-top: 1rem; }
.garland { position: absolute; left: -2%; top: 0; width: 104%; height: 140px; overflow: visible; }
.garland .bulb { animation: twinkle 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.37s); }
@keyframes twinkle { 0%, 100% { opacity: 1; } 45% { opacity: 0.55; } 55% { opacity: 0.95; } }
.ornaments { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4rem; position: relative; }
.ornament { position: relative; padding-top: calc(var(--top) + var(--len)); text-align: left; }
.ornament .thread { position: absolute; left: 50%; top: var(--top); width: 1px; height: calc(var(--len) + 8px); background: linear-gradient(#6b5444, #8a6a50); transform-origin: top; animation: sway var(--sway) ease-in-out infinite; animation-delay: var(--delay); }
.ornament .bauble { width: 190px; height: 190px; margin: 0 auto 0.4rem; transform-origin: 50% calc(-1 * var(--len)); animation: sway var(--sway) ease-in-out infinite; animation-delay: var(--delay); mix-blend-mode: lighten; }
.ornament .bauble img { width: 100%; height: 100%; display: block; }
@keyframes sway { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
.ornament .ord { display: block; font-family: var(--serif); font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--orange); margin: 0.6rem 0 0.2rem; }
.ornament h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.ornament p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; max-width: 26ch; }
@media (prefers-reduced-motion: reduce) {
  .garland .bulb, .ornament .thread, .ornament .bauble { animation: none; }
}
@media (max-width: 960px) {
  .ornaments { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
  .garland { display: none; }
  .ornament { padding-top: 0; }
  .ornament .thread { display: none; }
}
@media (max-width: 560px) { .ornaments { grid-template-columns: 1fr; } }

/* give */
.give-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2.5rem; align-items: center; }
.give-art img { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.quotas { display: grid; gap: 0.7rem; margin-top: 0.4rem; }
.quota { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: #101010; border: 1px solid #262626; border-radius: 14px; padding: 1rem 1.2rem; }
.quota .count { font-family: var(--serif); font-size: 1.5rem; color: var(--orange); margin-right: 0.4rem; }
.quota .meta { color: var(--muted); font-size: 0.8rem; }
.new-link { margin-top: 1rem; border: 1px dashed var(--orange); border-radius: 14px; padding: 1.1rem 1.2rem; display: grid; gap: 0.7rem; background: rgba(232,98,44,0.05); }
.new-link .url { font: 0.8rem var(--mono); word-break: break-all; color: var(--text); background: #0c0c0c; border-radius: 8px; padding: 0.6rem 0.8rem; }
.new-link .row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.new-link .warn { font-size: 0.78rem; color: var(--muted); }
.my-gifts-title { margin-top: 1.4rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.status.funded { background: rgba(232,98,44,0.14); color: var(--orange-2); }
.status.opened { background: rgba(60,207,122,0.13); color: var(--ok); }
.status.funding { background: #222; color: var(--muted); }

@media (max-width: 960px) {
  .phantom-inner, .give-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .give-art { max-width: 320px; }
  .hero { min-height: 0; }
  .hero-art { opacity: 0.35; }
}

@media (max-width: 960px) {
  .hero-inner, .split, .proof-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 150px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .twocol { grid-template-columns: 1fr; }
  .nav-links li:not(:last-child) { display: none; }
}
@media (max-width: 560px) {
  .wrap, .hero-inner { padding: 0 1.2rem; }
  .nav { padding: 0 1.2rem; }
  .steps { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .muted { text-align: left; }
  .panel { padding: 1.5rem; }
  .alloc { grid-template-columns: 1fr; }
}
