/* ==========================================================================
   CX Host - Home page only ("network operations console" direction, light)
   Scoped entirely under body.home-page so styles.css (shared with
   checkout.html) is never touched. Loaded AFTER styles.css and bootstrap.
   ========================================================================== */

body.home-page {
  --hp-bg: #ffffff;
  --hp-surface: #f8fafc;
  --hp-surface-2: #f1f5f9;
  --hp-border: #e2e8f0;
  --hp-primary: #1d4ed8;
  --hp-accent: #f68b1f;
  --hp-ok: #16a34a;
  --hp-text: #0f172a;
  --hp-muted: #475569;

  background: var(--hp-bg);
  color: var(--hp-text);
}

body.home-page,
body.home-page input,
body.home-page button {
  font-family: "Inter", sans-serif;
}

body.home-page h1,
body.home-page h2,
body.home-page h3,
body.home-page h4,
body.home-page .logo {
  font-family: "Sora", "Outfit", sans-serif;
  color: var(--hp-text);
}

body.home-page .hp-mono {
  font-family: "JetBrains Mono", monospace;
}

/* ---- Atmosphere: faint technical grid instead of blurred blobs ---- */

body.home-page .bg-gradient { display: none; }

body.home-page .hp-grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}

body.home-page .hp-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
body.home-page .hp-glow-a { width: 560px; height: 560px; background: rgba(29, 78, 216, 0.07); top: -220px; right: -160px; }
body.home-page .hp-glow-b { width: 480px; height: 480px; background: rgba(246, 139, 31, 0.06); bottom: -200px; left: -180px; }

/* ---- Header / nav (kept dark navy -- brand header, not the page bg) ---- */

body.home-page header {
  border-bottom: 2px solid var(--hp-accent);
}

/* ---- Eyebrow labels: encode section identity, terminal-style ---- */

body.home-page .hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--hp-accent);
  margin-bottom: 14px;
}

body.home-page .hp-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hp-ok);
  box-shadow: 0 0 0 rgba(22, 163, 74, 0.5);
  animation: hpPulse 2s infinite;
}

@keyframes hpPulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .hp-eyebrow::before { animation: none; }
}

/* ---- Hero ---- */

body.home-page .hero-content h1 {
  font-size: 50px;
  letter-spacing: -0.01em;
}

body.home-page .hero-content p { color: var(--hp-muted); }

/* Signature element: live system-status console replacing the generic
   floating-card + stock photo pattern. Real, stated specs -- not decoration. */
body.home-page .hp-console {
  position: relative;
  background: var(--hp-bg);
  border: 1px solid var(--hp-border);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

body.home-page .hp-console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hp-border);
  background: var(--hp-surface);
}

body.home-page .hp-console-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}
body.home-page .hp-console-bar .hp-console-dot:first-child { background: #ef4444; }
body.home-page .hp-console-bar .hp-console-dot:nth-child(2) { background: #f59e0b; }
body.home-page .hp-console-bar .hp-console-dot:nth-child(3) { background: var(--hp-ok); }

body.home-page .hp-console-title {
  margin-left: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--hp-muted);
}

body.home-page .hp-console-body {
  padding: 20px;
  display: grid;
  gap: 12px;
}

body.home-page .hp-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: 9px;
}

body.home-page .hp-stat-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--hp-muted);
}

body.home-page .hp-stat-label .hp-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hp-ok);
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.5);
  flex-shrink: 0;
}

body.home-page .hp-stat-value {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 14px;
  color: var(--hp-text);
}

body.home-page .hp-stat-value.hp-ok { color: var(--hp-ok); }

/* ---- Domain search ---- */

body.home-page .home-domain-result-row .name { font-family: "JetBrains Mono", monospace; }

/* ---- Pricing ---- */

body.home-page .price { font-family: "JetBrains Mono", monospace; }

/* ---- Domain choice modal ---- */

body.home-page .app-modal h3 { font-family: "Sora", "Outfit", sans-serif; }

@media (max-width: 640px) {
  body.home-page .hero-content h1 { font-size: 34px; }
}
