/* ─────────────────────────────────────────────────────────────────────
   homepage.css — additions on top of dark.css + dark-pages.css.
   Drop this into src/styles/ and import alongside the others.
   Everything here is namespaced with `.hp-*` so it won't collide with
   the existing site CSS.
   ───────────────────────────────────────────────────────────────────── */

/* ─── Preview-only background. In the real project, SkyMount provides
   the WebGL background; delete this block when dropping into Vite. ─── */
.ambient-sky {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 900px 600px at 20% 10%, rgba(63,169,245,0.10), transparent 60%),
    radial-gradient(ellipse 800px 500px at 90% 0%,  rgba(183,148,244,0.08), transparent 60%),
    radial-gradient(ellipse 1100px 600px at 50% 100%, rgba(255,125,59,0.06), transparent 60%);
}
.ambient-sky::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 28% 8%,  rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1px 1px at 42% 22%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1px 1px at 65% 12%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 76% 28%, rgba(255,255,255,0.40), transparent 60%),
    radial-gradient(1px 1px at 88% 6%,  rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 8% 36%,  rgba(255,255,255,0.30), transparent 60%),
    radial-gradient(1px 1px at 36% 44%, rgba(255,255,255,0.20), transparent 60%),
    radial-gradient(1px 1px at 58% 38%, rgba(255,255,255,0.30), transparent 60%),
    radial-gradient(1px 1px at 82% 48%, rgba(255,255,255,0.30), transparent 60%),
    radial-gradient(1px 1px at 24% 60%, rgba(255,255,255,0.30), transparent 60%),
    radial-gradient(1px 1px at 70% 70%, rgba(255,255,255,0.25), transparent 60%);
}

/* ─── Hero refinements ─── */
.hp-hero {
  position: relative;
  min-height: 100vh;
  padding: 132px 0 80px;
  overflow: hidden;
  display: flex; align-items: center;
}
.hp-hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 0.95fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hp-hero-left { max-width: 720px; }

.hp-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-pixel);
  font-size: 10px; letter-spacing: .22em;
  color: var(--ink-mute); text-transform: uppercase;
  margin-bottom: 22px;
}
.hp-eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--accent);
  display: inline-block;
}
.hp-eyebrow .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: hpPulse 1.6s ease-in-out infinite;
}
.hp-eyebrow .live-on  { color: var(--emerald); }
.hp-eyebrow .live-off { color: var(--accent); }
@keyframes hpPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hp-wordmark {
  font-family: var(--font-pixel);
  font-size: clamp(56px, 8.2vw, 108px);
  line-height: 0.92;
  margin: 0 0 22px;
  display: flex; flex-direction: column; gap: 6px;
  letter-spacing: -.02em;
}
.hp-wordmark .a {
  text-shadow: 4px 4px 0 rgba(0,0,0,0.55);
}
.hp-wordmark .b {
  color: var(--accent);
  text-shadow: 4px 4px 0 rgba(0,0,0,0.55),
               0 0 80px color-mix(in oklab, var(--accent) 50%, transparent);
}
@keyframes hpDrop {
  0%   { transform: translateY(-160%) rotate(-3deg); opacity: 0; }
  60%  { transform: translateY(6%); opacity: 1; }
  100% { transform: translateY(0); }
}

.hp-tagline {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink-soft);
  margin: 0 0 30px;
  line-height: 1.55;
  max-width: 540px;
}
.hp-tagline em { color: var(--accent-2); font-style: normal; font-weight: 600; }
.hp-tagline strong { color: var(--ink); font-weight: 600; }

/* IP plaque — 3-segment row: label | address | copy button */
.hp-ip {
  display: flex; align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  max-width: 560px;
  background: linear-gradient(180deg, var(--surface-1), rgba(11,15,22,0.85));
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.7);
  margin-bottom: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.hp-ip:hover { border-color: var(--accent); box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7), var(--glow-diamond); }
.hp-ip .lbl {
  padding: 0 16px;
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: .22em;
  color: var(--ink-mute); text-transform: uppercase;
  border-right: 1px dashed var(--line);
  display: grid; place-items: center;
}
.hp-ip .addr {
  flex: 1; padding: 16px 18px;
  font-family: var(--font-mono); font-size: 17px; font-weight: 600;
  color: var(--accent);
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hp-ip .addr .caret {
  color: var(--ink-mute); font-weight: 400;
}
.hp-ip .copy {
  padding: 0 22px;
  background: var(--accent); color: var(--accent-fg);
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: .15em;
  border: none; cursor: pointer; text-transform: uppercase;
  transition: filter .15s;
  min-width: 130px;
}
.hp-ip .copy:hover { filter: brightness(1.1); }
.hp-ip .copy.is-copied { background: var(--emerald); }

.hp-cta-row {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-top: 8px;
}
.hp-cta-row .btn { min-width: 0; }

.hp-meta {
  margin-top: 22px;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  color: var(--ink-soft); font-size: 13px;
}
.hp-meta b { color: var(--ink); font-weight: 600; }
.hp-meta .sep { color: var(--ink-mute); }

/* Hero right — live status console */
.hp-status {
  background: linear-gradient(180deg, rgba(20,26,38,0.92), rgba(13,17,25,0.96));
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.04);
}
.hp-status-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--line);
}
.hp-status-bar .dot { width: 9px; height: 9px; border-radius: 50%; }
.hp-status-bar .dot.r { background: #ff4242; box-shadow: 0 0 6px #ff4242; }
.hp-status-bar .dot.y { background: #ffc340; box-shadow: 0 0 6px #ffc340; }
.hp-status-bar .dot.g { background: #2bd17e; box-shadow: 0 0 6px #2bd17e; }
.hp-status-bar .title {
  margin-left: 6px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: .12em; text-transform: uppercase;
}
.hp-status-bar .badge {
  margin-left: auto;
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: .15em;
  color: var(--emerald);
  display: inline-flex; align-items: center; gap: 6px;
}
.hp-status-bar .badge i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: hpPulse 1.6s ease-in-out infinite;
}
.hp-status-bar .badge.warn { color: var(--accent-2); }
.hp-status-bar .badge.warn i { background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }

.hp-status-body { padding: 16px 18px; }
.hp-status-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  font-family: var(--font-mono); font-size: 13px;
}
.hp-status-row:last-child { border-bottom: none; }
.hp-status-row .k { color: var(--ink-mute); letter-spacing: .04em; }
.hp-status-row .v { color: var(--ink); font-weight: 600; text-align: right; }
.hp-status-row .v.accent { color: var(--accent); }
.hp-status-row .v.emerald { color: var(--emerald); }

.hp-status-actions {
  display: flex; gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(63,169,245,0.04));
}
.hp-status-actions .btn { flex: 1; justify-content: center; }

/* ─── Modes section ─── */
.hp-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.hp-mode {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .25s;
}
.hp-mode::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(180deg, color-mix(in oklab, var(--tint) 30%, transparent), transparent 30%);
  opacity: 0; transition: opacity .25s;
  pointer-events: none;
  z-index: 0;
}
.hp-mode:hover {
  transform: translateY(-6px);
  border-color: color-mix(in oklab, var(--tint) 60%, var(--line));
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7), 0 0 36px color-mix(in oklab, var(--tint) 22%, transparent);
}
.hp-mode:hover::before { opacity: 1; }
.hp-mode.is-featured {
  border-color: color-mix(in oklab, var(--tint) 50%, var(--line-strong));
  background: linear-gradient(180deg, color-mix(in oklab, var(--tint) 6%, var(--surface-1)), var(--bg-2));
}
.hp-mode > * { position: relative; z-index: 1; }
.hp-mode-art {
  display: grid; place-items: center;
  height: 144px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px),
    radial-gradient(circle at center, color-mix(in oklab, var(--tint) 22%, transparent), transparent 65%);
}
.hp-mode-status {
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: .18em;
  color: var(--tint);
  display: inline-flex; align-items: center; gap: 8px;
}
.hp-mode-status::before {
  content: ""; width: 6px; height: 6px;
  background: var(--tint);
  box-shadow: 0 0 8px var(--tint);
}
.hp-mode-name {
  font-family: var(--font-pixel);
  font-size: 22px;
  margin: 0;
  letter-spacing: -.01em;
}
.hp-mode-tag {
  color: var(--ink-soft);
  font-size: 14px; line-height: 1.5;
  margin: 0;
}
.hp-mode-perks {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px;
}
.hp-mode-perks li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-soft);
  font-family: var(--font-mono);
}
.hp-mode-perks li::before {
  content: ""; width: 6px; height: 6px;
  background: var(--tint);
  box-shadow: 0 0 6px var(--tint);
  flex-shrink: 0;
}
.hp-mode-link {
  margin-top: auto;
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: .18em;
  color: var(--tint);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.hp-mode-flag {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--font-pixel); font-size: 8px; letter-spacing: .2em;
  background: var(--tint); color: #0a0d12;
  padding: 5px 10px; border-radius: 3px;
  box-shadow: 0 4px 0 rgba(0,0,0,.35);
  z-index: 2;
}

/* ─── Why section ─── */
.hp-why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hp-why-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 24px 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.hp-why-card:hover {
  border-color: color-mix(in oklab, var(--tint) 50%, var(--line-strong));
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,0.6);
}
.hp-why-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.hp-why-num {
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--tint);
  display: inline-flex; align-items: center; gap: 10px;
}
.hp-why-num::before {
  content: ""; width: 24px; height: 1px; background: var(--tint);
  box-shadow: 0 0 8px var(--tint);
}
.hp-why-card h4 {
  font-family: var(--font-pixel);
  font-size: 17px;
  margin: 0;
  letter-spacing: -.01em;
}
.hp-why-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ─── CTA section ─── */
.hp-cta {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 800px 380px at 100% 100%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.hp-cta::before {
  content: "";
  position: absolute; top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 24%, transparent), transparent 70%);
  pointer-events: none;
}
.hp-cta-eyebrow {
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: .22em;
  color: var(--accent); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.hp-cta-eyebrow::before {
  content: ""; width: 8px; height: 8px; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.hp-cta h2 {
  font-family: var(--font-pixel);
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 14px;
  line-height: 1.04;
  letter-spacing: -.01em;
}
.hp-cta p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px; line-height: 1.55;
  max-width: 480px;
}
.hp-cta-side {
  display: flex; flex-direction: column; gap: 10px; align-items: stretch;
  min-width: 280px;
  position: relative; z-index: 1;
}
.hp-cta-side .btn { justify-content: center; }
.hp-cta-version {
  display: inline-flex; align-items: center; gap: 10px;
  justify-content: center;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-mute);
  margin-top: 4px;
}
.hp-cta-version i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

/* ─── Floating voxel decorations (subtle, behind hero stats) ─── */
.hp-floaters {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.hp-floater {
  position: absolute;
  opacity: 0.35;
  filter: blur(0.5px);
  animation: hpFloat 18s ease-in-out infinite;
}
.hp-floater:nth-child(1) { top: 18%; left: 8%;  animation-delay: 0s;    }
.hp-floater:nth-child(2) { top: 62%; left: 14%; animation-delay: -6s;   }
.hp-floater:nth-child(3) { top: 78%; left: 46%; animation-delay: -10s;  }
.hp-floater:nth-child(4) { top: 24%; left: 88%; animation-delay: -3s;   }
@keyframes hpFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-22px) rotate(6deg); }
}

/* ─── Tweak toggles ─── */
body.no-floaters .hp-floaters { display: none; }
body.no-status-panel .hp-status { display: none; }
body.no-status-panel .hp-hero-grid { grid-template-columns: 1fr; max-width: 880px; margin: 0 auto; }

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .hp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hp-modes { grid-template-columns: 1fr 1fr; }
  .hp-why   { grid-template-columns: 1fr 1fr; }
  .hp-cta   { grid-template-columns: 1fr; padding: 36px 28px; }
  .hp-cta-side { min-width: 0; }
}
@media (max-width: 640px) {
  .hp-hero { padding: 100px 0 50px; }
  .hp-modes { grid-template-columns: 1fr; gap: 14px; }
  .hp-why   { grid-template-columns: 1fr; gap: 12px; }
  .hp-mode { padding: 20px; }
  .hp-mode-art { height: 120px; }
  .hp-ip .lbl { display: none; }
  .hp-ip .addr { font-size: 14px; padding: 12px 14px; }
  .hp-ip .copy { padding: 0 16px; font-size: 9px; min-width: 0; }
  .hp-eyebrow { font-size: 9px; }
  .hp-tagline br { display: none; }
  .hp-cta { padding: 28px 22px; border-radius: 12px; }
  .hp-status-body { padding: 12px 14px; }
}
