/* =========================================================
   CloudBill — Extra homepage layout themes
   Applied via body.cb-hp-layout--{stack3d|aurora|rack|bold}
   ========================================================= */

/* ---------- Shared dark heroes ---------- */
.cb-hp-layout--stack3d .cb-hp-topnav,
.cb-hp-layout--aurora .cb-hp-topnav,
.cb-hp-layout--rack .cb-hp-topnav {
  background: rgba(7, 11, 20, 0.85);
}

/* ==================== 3D Server Stack ==================== */
.cb-hp-hero--stack3d {
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(37,99,235,0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(6,182,212,0.18), transparent 50%),
    linear-gradient(160deg, #070b14 0%, #0f1a2e 50%, #0b1220 100%);
  color: #fff;
  min-height: min(82vh, 640px);
}
.cb-hp-hero--stack3d .cb-hp-hero-copy p { color: rgba(226,232,240,0.85); }
.cb-hp-hero--stack3d .cb-home-kicker { color: #7dd3fc; }
.cb-iso-scene {
  position: relative; width: min(100%, 420px); height: 320px;
  margin: 0 auto; perspective: 900px;
}
.cb-iso-cloud {
  position: absolute; top: 8%; right: 12%; font-size: 2.4rem; color: #60a5fa;
  filter: drop-shadow(0 12px 24px rgba(37,99,235,0.45));
  animation: cbHpFloat 4s ease-in-out infinite;
}
.cb-iso-stack {
  position: absolute; left: 50%; bottom: 12%; width: 220px; height: 180px;
  transform: translateX(-50%) rotateX(58deg) rotateZ(-32deg);
  transform-style: preserve-3d;
}
.cb-iso-layer {
  position: absolute; left: 0; right: 0; height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb 45%, #06b6d4);
  box-shadow: 0 18px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.cb-iso-layer span {
  width: 28px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.35);
}
.cb-iso-layer.l1 { bottom: 0; opacity: 0.95; }
.cb-iso-layer.l2 { bottom: 42px; transform: translateZ(28px); opacity: 0.98; }
.cb-iso-layer.l3 { bottom: 84px; transform: translateZ(56px); }
.cb-iso-chip {
  position: absolute; background: rgba(15,23,42,0.9); border: 1px solid rgba(148,163,184,0.25);
  color: #e2e8f0; border-radius: 12px; padding: 0.5rem 0.75rem; font-size: 0.8rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.4rem; backdrop-filter: blur(8px);
}
.cb-iso-chip i { color: #38bdf8; }
.cb-iso-chip.c1 { left: 0; top: 42%; animation: cbHpFloat 3.2s ease-in-out infinite; }
.cb-iso-chip.c2 { right: 0; top: 28%; animation: cbHpFloat 3.8s ease-in-out 0.4s infinite; }
.cb-iso-chip.c3 { right: 8%; bottom: 8%; animation: cbHpFloat 4.2s ease-in-out 0.8s infinite; }

/* ==================== Aurora Cloud ==================== */
.cb-hp-hero--aurora {
  position: relative; overflow: hidden;
  display: grid; align-items: center;
  min-height: min(86vh, 680px);
  padding: 4rem 1.5rem;
  background: #050814;
  color: #fff;
}
@media (min-width: 992px) {
  .cb-hp-hero--aurora {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 4.5rem 3rem;
  }
}
.cb-aurora-orbs span {
  position: absolute; border-radius: 50%; filter: blur(40px); pointer-events: none;
}
.cb-aurora-orbs .o1 {
  width: 340px; height: 340px; top: -80px; right: 10%;
  background: rgba(37,99,235,0.45); animation: cbAuroraPulse 8s ease-in-out infinite;
}
.cb-aurora-orbs .o2 {
  width: 280px; height: 280px; bottom: -60px; left: 5%;
  background: rgba(6,182,212,0.28); animation: cbAuroraPulse 10s ease-in-out 1s infinite;
}
.cb-aurora-orbs .o3 {
  width: 180px; height: 180px; top: 40%; left: 45%;
  background: rgba(59,130,246,0.22); animation: cbAuroraPulse 7s ease-in-out 0.5s infinite;
}
@keyframes cbAuroraPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}
.cb-aurora-copy { position: relative; z-index: 2; max-width: 34rem; }
.cb-aurora-copy h1 {
  font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.04em;
}
.cb-aurora-copy p { color: rgba(226,232,240,0.85); font-size: 1.1rem; }
.cb-aurora-nodes {
  position: relative; z-index: 2; min-height: 260px;
}
.cb-aurora-nodes .node {
  position: absolute; background: rgba(15,23,42,0.75);
  border: 1px solid rgba(148,163,184,0.2); border-radius: 16px;
  padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.25rem;
  backdrop-filter: blur(10px); min-width: 110px;
  animation: cbHpFloat 4s ease-in-out infinite;
}
.cb-aurora-nodes .node i { font-size: 1.25rem; color: #38bdf8; }
.cb-aurora-nodes .node em { font-style: normal; font-size: 0.82rem; font-weight: 600; color: #e2e8f0; }
.cb-aurora-nodes .n1 { top: 8%; left: 18%; }
.cb-aurora-nodes .n2 { top: 20%; right: 8%; animation-delay: 0.5s; }
.cb-aurora-nodes .n3 { bottom: 18%; left: 8%; animation-delay: 0.9s; }
.cb-aurora-nodes .n4 { bottom: 8%; right: 18%; animation-delay: 1.2s; }

/* ==================== Data Center Rack ==================== */
.cb-hp-hero--rack {
  background:
    linear-gradient(180deg, rgba(7,11,20,0.2), rgba(7,11,20,0.85)),
    repeating-linear-gradient(90deg, #0b1220 0 18px, #0e1628 18px 20px);
  color: #fff;
  min-height: min(84vh, 660px);
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 992px) {
  .cb-hp-hero--rack { grid-template-columns: 0.95fr 1.05fr; }
}
.cb-rack-frame {
  display: flex; justify-content: center;
}
.cb-rack-bay {
  width: min(100%, 340px);
  background: linear-gradient(180deg, #111827, #0b1220);
  border: 2px solid #334155; border-radius: 14px;
  padding: 1rem 0.85rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 30px 60px rgba(0,0,0,0.45);
}
.cb-rack-unit {
  display: flex; align-items: center; gap: 0.45rem;
  background: #020617; border: 1px solid #1e293b; border-radius: 8px;
  padding: 0.65rem 0.75rem; margin-bottom: 0.55rem;
  font-size: 0.78rem; font-weight: 600; color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.cb-rack-unit i {
  width: 8px; height: 8px; border-radius: 50%; background: #475569; display: inline-block;
}
.cb-rack-unit.on i { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.7); }
.cb-rack-unit.blink i:nth-child(2) {
  background: #fbbf24; animation: cbRackBlink 1.2s ease-in-out infinite;
}
@keyframes cbRackBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.cb-rack-copy .cb-home-kicker { color: #86efac; }
.cb-rack-copy p { color: rgba(226,232,240,0.85); }

/* ==================== Bold Billboard ==================== */
.cb-hp-layout--bold .cb-hp-topnav {
  background: #fff; border-bottom: 1px solid #e7eaf3;
}
.cb-hp-layout--bold .cb-hp-topnav .navbar-brand,
.cb-hp-layout--bold .cb-hp-topnav .nav-link {
  color: #0b1220 !important;
}
.cb-hp-layout--bold .cb-hp-topnav .nav-link:hover { color: #2563eb !important; }
.cb-hp-layout--bold .cb-hp-topnav .btn-outline-light {
  color: #0b1220; border-color: #cbd5e1;
}
.cb-hp-layout--bold .cb-hp-topnav .btn-outline-light:hover {
  background: #0b1220; color: #fff; border-color: #0b1220;
}
.cb-hp-layout--bold .navbar-toggler { border-color: #cbd5e1; }
.cb-hp-layout--bold .navbar-toggler-icon {
  filter: invert(1) grayscale(100%);
}
.cb-hp-hero--bold {
  display: block; background:
    linear-gradient(180deg, #f8fafc 0%, #eff6ff 45%, #fff 100%);
  min-height: min(78vh, 620px); padding: 4.5rem 1.5rem 5rem;
}
.cb-bold-inner { max-width: 920px; margin: 0 auto; text-align: center; }
.cb-bold-eyebrow {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #2563eb; margin-bottom: 1rem;
}
.cb-hp-hero--bold h1 {
  font-size: clamp(3rem, 9vw, 5.5rem); font-weight: 800;
  letter-spacing: -0.055em; line-height: 0.95; margin: 0 0 1.25rem;
  background: linear-gradient(120deg, #0b1220 20%, #1d4ed8 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cb-bold-lead {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: #64748b;
  max-width: 34rem; margin: 0 auto 1.75rem; line-height: 1.55;
}
.cb-hp-hero--bold .cb-hp-hero-actions { justify-content: center; }

/* Soft section tint tweaks per layout */
.cb-hp-layout--stack3d .cb-hp-cta,
.cb-hp-layout--aurora .cb-hp-cta,
.cb-hp-layout--rack .cb-hp-cta {
  background:
    radial-gradient(ellipse 60% 100% at 15% 50%, rgba(37,99,235,0.45), transparent 55%),
    linear-gradient(135deg, #070b14, #13203a);
}

@media (prefers-reduced-motion: reduce) {
  .cb-iso-cloud, .cb-iso-chip, .cb-aurora-nodes .node,
  .cb-aurora-orbs span, .cb-rack-unit.blink i:nth-child(2) { animation: none !important; }
}
