:root {
  --ink: #111111;
  --ink-2: #1a1a1a;
  --ink-3: #242424;
  --paper: #ededE4;
  --paper-dim: #a9a9a1;
  --paper-faint: #6b6b66;
  --line: rgba(237, 237, 228, 0.12);
  --line-strong: rgba(237, 237, 228, 0.28);
  --blue: #7dabe3;
  --blue-deep: #5a8fd1;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --display: "Inter Tight", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: var(--ink); }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.accent { color: var(--blue); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--blue); color: var(--ink); padding: 8px 12px; border-radius: 8px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; font-size: 15px; }
.brand-mark {
  display: grid; place-items: center; width: 28px; height: 28px;
  background: var(--paper); color: var(--ink); border-radius: 7px;
  font-family: var(--mono); font-weight: 700; font-size: 15px;
}
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--paper-dim); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--paper); }

.code-pill {
  display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px;
  overflow: hidden; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.code-pill:hover { border-color: var(--blue); }
.code-pill:active { transform: scale(0.97); }
.code-pill-label { padding: 7px 10px; color: var(--paper-dim); }
.code-pill-value { padding: 7px 12px; background: var(--blue); color: var(--ink); font-weight: 700; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(40px, 6vw, 72px);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 25%, 12.5% 100%;
  background-position: 0 -1px, -1px 0;
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.hero-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--paper-faint); margin-bottom: clamp(28px, 6vw, 64px); }

.hero-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(64px, 14.5vw, 232px);
  line-height: 0.86;
  letter-spacing: -0.055em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-title em { font-style: normal; color: var(--blue); }
.hero-title .line { animation: rise 0.9s var(--ease) both; }
.hero-title .line:nth-child(2) { animation-delay: 0.08s; }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }

.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 80px);
  align-items: end; margin-top: clamp(28px, 5vw, 56px);
}
.hero-sub { margin: 0; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.4; color: var(--paper-dim); max-width: 30ch; }
.hero-sub strong { font-weight: 700; }

.code-block {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: grid; gap: 12px;
  animation: rise 0.9s 0.2s var(--ease) both;
}
.code-block-head { display: flex; justify-content: space-between; color: var(--paper-faint); }
.code-block-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px dashed var(--line-strong); border-radius: 10px; padding: 18px 20px;
  transition: border-color 0.2s, background 0.2s;
}
.code-block-btn:hover { border-color: var(--blue); background: rgba(125, 171, 227, 0.06); }
.code-block-value { font-family: var(--mono); font-weight: 700; font-size: clamp(30px, 4vw, 44px); letter-spacing: 0.12em; }
.code-block-action { color: var(--blue); }

.dot-live { display: inline-flex; align-items: center; gap: 8px; color: var(--paper-dim); }
.dot-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 0 rgba(125, 171, 227, 0.6); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(125, 171, 227, 0); } 100% { box-shadow: 0 0 0 0 rgba(125, 171, 227, 0); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 10px; font-weight: 600; font-size: 16px;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { background: var(--blue); }
.btn-ghost { border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--paper); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(40px, 6vw, 72px) 0 0;
  border-top: 1px solid var(--line-strong);
}
.stats > div { padding: 18px 16px 0 0; border-right: 1px solid var(--line); }
.stats > div + div { padding-left: 16px; }
.stats > div:last-child { border-right: 0; }
.stats dt { color: var(--paper-faint); margin-bottom: 8px; }
.stats dd { margin: 0; font-size: clamp(32px, 4.5vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stats .unit { color: var(--blue); }

/* ---------- TICKER ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--ink); }
.ticker-track {
  display: flex; width: max-content; gap: 40px; padding: 16px 0;
  animation: scroll 40s linear infinite;
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track span b { color: var(--blue); font-weight: 700; }
.ticker-track .sep { color: var(--paper-faint); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(64px, 10vw, 128px) var(--gutter) 0; }
.section-head {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 16px; margin-bottom: 24px;
}
.section-head h2 { margin: 0; font-size: clamp(40px, 7vw, 96px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.95; }
.section-index { color: var(--blue); align-self: flex-start; padding-top: 6px; }
.section-note, .section-link { margin: 0 0 0 auto; color: var(--paper-faint); }
.section-link { color: var(--blue); }
.section-link:hover { color: var(--paper); }

/* ---------- DEALS ---------- */
.deals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.deal {
  position: relative; display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; min-height: 340px; overflow: hidden;
  transition: border-color 0.25s, transform 0.35s var(--ease);
}
.deal:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.deal.is-featured { background: var(--blue); color: var(--ink); border-color: var(--blue); }
.deal-top { display: flex; justify-content: space-between; gap: 12px; color: var(--paper-faint); }
.deal.is-featured .deal-top { color: rgba(17, 17, 17, 0.6); }
.tag { border: 1px solid currentColor; border-radius: 999px; padding: 3px 9px; font-size: 11px; }
.deal-firm { margin: 14px 0 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; }
.deal-discount {
  margin: auto 0 0; display: flex; align-items: flex-end; gap: 12px;
  font-size: clamp(88px, 11vw, 160px); font-weight: 700; letter-spacing: -0.06em; line-height: 0.82;
}
.deal-discount small { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; font-weight: 700; padding-bottom: 0.6em; }
.deal-detail { margin: 14px 0 18px; color: var(--paper-dim); font-size: 15px; }
.deal.is-featured .deal-detail { color: rgba(17, 17, 17, 0.72); }
.deal-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.deal-code {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px;
  border: 1px dashed var(--line-strong); border-radius: 10px;
  font-family: var(--mono); font-weight: 700; letter-spacing: 0.1em; font-size: 14px;
  transition: border-color 0.2s;
}
.deal-code:hover { border-color: var(--blue); }
.deal-code .copy-ico { font-weight: 400; opacity: 0.6; font-size: 12px; }
.deal.is-featured .deal-code { border-color: rgba(17, 17, 17, 0.4); }
.deal.is-featured .deal-code:hover { border-color: var(--ink); }
.deal-claim { height: 48px; padding: 0 18px; }
.deal.is-featured .deal-claim { background: var(--ink); color: var(--paper); }
.deal.is-featured .deal-claim:hover { background: var(--paper); color: var(--ink); }

.fineprint { color: var(--paper-faint); margin: 20px 0 0; font-size: 11px; }

/* ---------- VIDEOS ---------- */
.video-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-side {
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--ink-2);
}
.video-side .label { color: var(--blue); margin: 0; }
.video-copy { margin: 0 0 auto; font-size: 20px; line-height: 1.35; }

/* ---------- DISCORD ---------- */
.discord {
  display: grid; gap: 24px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(125, 171, 227, 0.35), transparent 55%),
    var(--ink-2);
  border: 1px solid var(--line); transition: border-color 0.25s;
}
.discord:hover { border-color: var(--blue); }
.discord-top { display: flex; justify-content: space-between; color: var(--paper-faint); }
.discord-name { font-size: clamp(72px, 15vw, 220px); font-weight: 700; letter-spacing: -0.06em; line-height: 0.82; }
.discord-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.discord-bottom p { margin: 0; max-width: 40ch; color: var(--paper-dim); font-size: 18px; }
.discord:hover .btn-primary { background: var(--blue); }

/* ---------- SOCIALS ---------- */
.socials { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.socials a {
  position: relative; display: flex; flex-direction: column; gap: 40px;
  padding: 20px 16px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em;
  transition: background 0.25s, color 0.25s;
}
.socials a:last-child { border-right: 0; }
.socials a .mono { color: var(--paper-faint); }
.socials a .arrow { position: absolute; top: 16px; right: 16px; font-size: 20px; transition: transform 0.3s var(--ease); }
.socials a:hover { background: var(--paper); color: var(--ink); }
.socials a:hover .arrow { transform: translate(3px, -3px); }

/* ---------- FOOTER ---------- */
.footer { padding: clamp(80px, 12vw, 160px) var(--gutter) 32px; overflow: hidden; }
.footer-big {
  font-size: clamp(80px, 24vw, 400px); font-weight: 800; letter-spacing: -0.07em; line-height: 0.78;
  color: var(--ink-3); user-select: none; margin-left: -0.04em;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr 2fr 2fr; gap: 24px;
  border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px;
}
.footer-grid p { margin: 0; }
.footer-grid .mono { color: var(--paper-faint); }
.disclosure { font-size: 13px; color: var(--paper-faint); line-height: 1.55; }
.disclosure strong { color: var(--paper-dim); font-weight: 600; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 700;
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-grid, .video-wrap { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(3) { padding-left: 0; }
  .stats > div:nth-child(n + 3) { margin-top: 20px; border-top: 1px solid var(--line); }
  .socials { grid-template-columns: repeat(2, 1fr); }
  .socials a:nth-child(2) { border-right: 0; }
  .socials a:nth-child(3) { border-right: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .hide-sm { display: none; }
  .deals { grid-template-columns: 1fr; }
  .deal { min-height: 300px; }
  .section-note { display: none; }
  .hero::before { background-size: 100% 25%, 25% 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- LOGO (rune) ---------- */
.rune { fill: none; stroke: currentColor; stroke-linecap: butt; stroke-linejoin: miter; overflow: visible; }
.brand-rune { width: 14px; height: 34px; stroke-width: 26; color: var(--paper); transition: color 0.2s; }
.brand:hover .brand-rune { color: var(--blue); }
.hero-rune {
  position: absolute; right: var(--gutter); top: clamp(80px, 9vw, 130px);
  height: clamp(220px, 30vw, 460px); width: auto; aspect-ratio: 180 / 450;
  stroke-width: 9; color: var(--blue); opacity: 0.9;
  animation: draw 1.6s 0.2s var(--ease) both;
  stroke-dasharray: 600; stroke-dashoffset: 0;
}
@keyframes draw { from { stroke-dashoffset: 600; opacity: 0; } to { stroke-dashoffset: 0; opacity: 0.9; } }
.footer-id { display: flex; align-items: center; gap: 12px; }
.footer-rune { width: 12px; height: 30px; stroke-width: 24; color: var(--paper-dim); }
@media (max-width: 900px) { .hero-rune { display: none; } }

/* ---------- BRANDED DEAL CARDS ---------- */
.deal.is-branded { background: var(--c-bg); color: var(--c-text); border-color: transparent; }
.deal.is-branded:hover { border-color: transparent; box-shadow: 0 18px 50px -20px var(--c-bg); }
.deal.is-branded .deal-top,
.deal.is-branded .deal-detail { color: color-mix(in srgb, var(--c-text) 72%, transparent); }
.deal.is-branded .deal-discount { color: var(--c-hl); }
.deal.is-branded .deal-discount small { color: var(--c-text); }
.deal.is-branded .deal-code { border-color: color-mix(in srgb, var(--c-text) 40%, transparent); }
.deal.is-branded .deal-code:hover { border-color: var(--c-text); }
.deal.is-branded .deal-claim { background: var(--c-btn); color: var(--c-btn-text); }
.deal.is-branded .deal-claim:hover { background: var(--c-text); color: var(--c-bg); }
