/* =========================================================
   $spegx — Monochrome (black / grey / white) single hero
   ========================================================= */

:root {
  --bg:        #060606;
  --bg-2:      #0c0c0d;
  --panel:     rgba(255, 255, 255, 0.035);
  --panel-2:   rgba(255, 255, 255, 0.07);
  --line:      rgba(255, 255, 255, 0.12);
  --line-2:    rgba(255, 255, 255, 0.26);
  --text:      #f3f3f4;
  --muted:     #9a9a9e;
  --faint:     #62626a;
  --white:     #ffffff;

  --font-display: "Archivo Expanded", "Archivo", sans-serif;
  --font-body:    "Archivo", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Atmosphere ---------- */
.bg-layer { position: fixed; inset: 0; pointer-events: none; }
.bg-grad {
  z-index: -3;
  background:
    radial-gradient(900px 620px at 78% 42%, rgba(255,255,255,0.10), transparent 62%),
    radial-gradient(1100px 800px at 50% 120%, rgba(255,255,255,0.04), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.bg-grid {
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 70px 70px;
  -webkit-mask-image: radial-gradient(1000px 720px at 70% 30%, #000 0%, transparent 78%);
          mask-image: radial-gradient(1000px 720px at 70% 30%, #000 0%, transparent 78%);
  opacity: 0.45;
}
#stars { z-index: -2; }
.bg-noise {
  z-index: -1; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* HUD corner brackets */
.hud-corner { position: fixed; width: 24px; height: 24px; border: 1px solid var(--line-2); z-index: 5; pointer-events: none; opacity: 0.5; }
.hud-corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.hud-corner.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.hud-corner.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
@media (max-width: 720px){ .hud-corner { display: none; } }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 5vw, 56px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  padding: 13px 22px; border-radius: 10px;
  border: 1px solid var(--line-2); color: var(--text); background: var(--panel);
  cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--white); background: var(--panel-2); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translate(3px,-3px); }
.btn-primary {
  border: 1px solid transparent; color: #08080a; font-weight: 700;
  background: linear-gradient(180deg, #ffffff, #d8d8db);
  box-shadow: 0 12px 40px -14px rgba(255,255,255,0.5);
}
.btn-primary:hover { background: linear-gradient(180deg, #ffffff, #ededf0); box-shadow: 0 16px 50px -14px rgba(255,255,255,0.65); }

/* ---------- Header ---------- */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; transition: background .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
header.scrolled { background: rgba(6,6,6,0.7); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.brand b { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand b span { color: var(--white); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; color: var(--muted);
  text-decoration: none; transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.icon-btn:hover { color: var(--white); border-color: var(--white); background: var(--panel); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(20px, 4vw, 56px); align-items: center; width: 100%; }
@media (max-width: 900px){ .hero-grid { grid-template-columns: 1fr; gap: 8px; text-align: center; } }

.chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--white); box-shadow: 0 0 10px rgba(255,255,255,0.8); animation: pulse 1.9s ease-in-out infinite; }

.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(76px, 15vw, 184px); line-height: 0.84; letter-spacing: -0.035em; margin: 24px 0 0;
}
.hero h1 .dollar { color: var(--faint); -webkit-text-fill-color: var(--faint); }
.hero h1 .word {
  background: linear-gradient(180deg, #ffffff 0%, #cfcfd4 60%, #7e7e86 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 70px rgba(255,255,255,0.14);
}
.hero .lede {
  margin-top: 24px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 3vw, 30px); letter-spacing: -0.01em; color: var(--text);
}
.hero .lede .x { color: var(--white); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (max-width: 900px){ .hero-cta { justify-content: center; } }

/* CA pill */
.ca {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px 9px 14px; background: var(--panel); max-width: 100%;
}
@media (max-width: 900px){ .ca { margin-left: auto; margin-right: auto; } }
.ca .ca-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--faint); text-transform: uppercase; padding-right: 12px; border-right: 1px solid var(--line); }
.ca code { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.ca button { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #08080a; background: var(--white); border: 0; border-radius: 7px; padding: 7px 12px; cursor: pointer; transition: background .18s ease; }
.ca button:hover { background: #e6e6e9; }
.ca button.copied { background: #bdbdc2; }

/* Hero visual — the piglet */
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.05) 38%, transparent 70%);
  filter: blur(8px);
}
.hero-visual img {
  position: relative; width: min(86%, 460px); height: auto; display: block;
  -webkit-mask-image: radial-gradient(75% 80% at 50% 46%, #000 60%, transparent 100%);
          mask-image: radial-gradient(75% 80% at 50% 46%, #000 60%, transparent 100%);
  animation: floaty 6s ease-in-out infinite;
}
@media (max-width: 900px){ .hero-visual img { width: min(72%, 360px); } }

/* tiny disclaimer */
.disclaimer { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; padding: 0 24px; }
.disclaimer p { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); letter-spacing: 0.02em; max-width: 760px; margin: 0 auto; line-height: 1.5; }
@media (max-width: 720px){ .disclaimer { position: static; margin-top: 40px; } }

/* ---------- Load-in ---------- */
.hero .chip, .hero h1, .hero .lede, .hero-cta, .hero .ca { opacity: 0; animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero h1 { animation-delay: .07s; }
.hero .lede { animation-delay: .16s; }
.hero-cta { animation-delay: .26s; }
.hero .ca { animation-delay: .34s; }
.hero-visual { opacity: 0; animation: rise 1s cubic-bezier(.2,.7,.2,1) .18s forwards; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }
@keyframes floaty { 0%,100% { transform: translateY(-6px); } 50% { transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero .chip, .hero h1, .hero .lede, .hero-cta, .hero .ca, .hero-visual { opacity: 1 !important; }
}
