/* ============================================================
   virtualization.html — page-scoped styles.
   Base theme (hero, section shell, kicker, cards, feature list,
   highlight banner) follows the same dark-card / blue-orange
   language as infra.css and linux.css. Page-specific components:
   hero how-it-works stack, Ruckos-V Manager app-window frame,
   hypervisor stack diagram, rctl terminal, hypervisor boot timeline,
   Ruckos cluster diagram, VM lifecycle grid, and the hypervisor
   comparison table.
   ============================================================ */

:root {
  --accent: #4f9bd0;
  --accent-strong: #ff7a24;
}

body {
  background: #0a0a0a;
  color: #ffffff;
}

/* Back-to-top button (rendered by the shared footer include). */
#myBtn {
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  width: 44px;
  height: 44px;
  border: none;
  outline: none;
  border-radius: 50%;
  background: #0ea5e9;
  color: #e5e7eb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  line-height: 1;
  font-size: 18px;
}

#myBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(3, 105, 161, 0.35);
  background: #0284c7;
}

#myBtn:active,
#myBtn:focus {
  background: #0369a1;
  color: #e5e7eb;
  outline: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

#myBtn i {
  display: none;
}

/* ------------------------------------------------------------
   Hero (two-column: copy + how-it-works stack)
   ------------------------------------------------------------ */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding: 4.2rem 0 4rem;
  background:
    radial-gradient(circle at 84% 82%, rgba(255, 115, 35, 0.16), transparent 18rem),
    radial-gradient(circle at 8% 74%, rgba(79, 155, 208, 0.09), transparent 18rem),
    linear-gradient(180deg, #020202 0%, #010101 68%, #050100 100%);
}

#hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

#hero .hero-text {
  position: relative;
  z-index: 1;
  width: 100%;
  color: snow;
  text-align: left;
}

.hero-layout {
  min-height: calc(100vh - 8.8rem);
  position: relative;
  align-items: center !important;
  padding-top: 4.4rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  color: var(--accent);
  font-size: var(--fs-kicker);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
}

.hero-kicker span {
  width: 2rem;
  height: 1px;
  background: var(--accent-strong);
}

.hero-title {
  margin: 0;
  color: #f7f3f0;
  font-size: var(--fs-display);
  font-weight: var(--fw-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}

.hero-title span,
.hero-title strong {
  display: block;
}

.hero-title span {
  color: #d8d3d0;
  font-size: 0.75em;
  font-weight: var(--fw-light);
}

.hero-title strong {
  color: #ffffff;
  font-weight: var(--fw-display);
}

.hero-title em {
  color: var(--accent-strong);
  font-style: normal;
}

.hero-copy {
  max-width: 34rem;
  margin: 2rem 0 0;
  color: #aaa4a0;
  font-size: var(--fs-lead);
  font-weight: var(--fw-regular);
  line-height: var(--lh-lead);
}

.hero-copy strong {
  color: #e9e4e0;
  font-weight: var(--fw-semibold);
}

.hero-reveal {
  --i: 0;
  opacity: 0;
  transform: translateY(1rem);
  animation: hero-reveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 0.12s);
}

.hero-copy-col .hero-title   { --i: 1; }
.hero-copy-col .hero-copy    { --i: 2; }
.hero-copy-col .cta-buttons  { --i: 3; }
.hero-copy-col .hero-proof   { --i: 4; }
.hero-visual-col .hv-stack   { --i: 3; }

@keyframes hero-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-size: var(--fs-btn);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}

#hero .btn-primary {
  color: #fff;
  background: var(--accent-strong);
  border: 1px solid var(--accent-strong);
  box-shadow: 0 1rem 2.4rem rgba(255, 122, 36, 0.24);
}

#hero .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 1.2rem 2.8rem rgba(255, 122, 36, 0.34);
}

#hero .btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

#hero .btn-secondary:hover {
  color: #ffffff;
  background: rgba(255, 122, 36, 0.12);
  border-color: rgba(255, 122, 36, 0.38);
  transform: translateY(-3px);
}

/* Hero diagram: three plain tiers read top-down — VMs run on Ruckos
   Linux (hypervisor role), which is installed directly on the servers. */
.hv-stack {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 14, 16, 0.95), rgba(8, 8, 9, 0.98));
  box-shadow: 0 2.4rem 5rem rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hv-stack-title {
  margin-bottom: 1.1rem;
  text-align: center;
  color: #8f8a86;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hv-tier {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--tier-border);
  border-left: 3px solid var(--tier-accent);
  border-radius: 14px;
  background: linear-gradient(180deg, #12161c 0%, #0c0f13 100%);
}

.hv-tier-vms { --tier-border: rgba(255, 255, 255, 0.08); --tier-accent: #8f8a86; }
.hv-tier-os  { --tier-border: rgba(79, 155, 208, 0.4);  --tier-accent: var(--accent); }
.hv-tier-hw  { --tier-border: rgba(255, 255, 255, 0.08); --tier-accent: #5b6470; }

.hv-tier-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.hv-tier-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.hv-logo {
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 1.6rem;
  object-fit: contain;
}

.hv-tier-os .hv-tier-name {
  color: #8cc7ec;
}

/* Tier 2: the aggregated resource pool, three equal cells. */
.hv-pool {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.hv-pool span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.4rem;
  border: 1px solid rgba(79, 155, 208, 0.35);
  border-radius: 8px;
  background: rgba(79, 155, 208, 0.12);
  color: #e6f2fb;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.hv-pool span i {
  color: var(--accent);
}

/* Tier 1: one block split into two columns — HCI with local disks in
   every host on the left, hosts over shared storage on the right. */
.hv-topologies {
  display: flex;
  flex-direction: row;
  margin-top: 0.6rem;
}

.hv-topo {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.hv-topo + .hv-topo {
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(79, 155, 208, 0.25);
}

.hv-topo-label {
  text-align: center;
  color: #cfe6f7;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hv-hosts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.hv-hosts::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 50%;
  border-top: 2px dashed rgba(79, 155, 208, 0.45);
}

.hv-hosts span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0;
  border: 1px solid rgba(79, 155, 208, 0.3);
  border-radius: 8px;
  background: #0f161d;
  color: var(--accent);
  font-size: 1rem;
}

.hv-hosts img {
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  max-width: 1rem;
  object-fit: contain;
}

/* HCI: one storage bar under each host, same 3-column grid as the hosts. */
.hv-local-storage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.hv-local-storage .hv-storage {
  padding: 0.45rem 0;
  font-size: 0.62rem;
}

.hv-storage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem;
  border: 1px solid rgba(79, 155, 208, 0.3);
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, rgba(79, 155, 208, 0.14) 0 6px, rgba(79, 155, 208, 0.06) 6px 12px);
  color: #cfe6f7;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hv-storage i {
  color: var(--accent);
}

.hv-join {
  padding: 0.5rem 0;
  text-align: center;
  color: #6f6a66;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hv-join::before {
  content: "\2193";
  margin-right: 0.5rem;
  color: var(--accent-strong);
}

/* Ruckos-V Manager screenshot framed as a desktop window. */
.app-window {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(14, 14, 16, 0.95), rgba(8, 8, 9, 0.98));
  box-shadow: 0 2.4rem 5rem rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
}

.app-window:hover {
  transform: perspective(1400px) rotateY(0deg) rotateX(0deg) translateY(-4px);
  box-shadow: 0 2.8rem 5.5rem rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(79, 155, 208, 0.25);
}

.app-window::before {
  content: "";
  position: absolute;
  inset: -30% 20% auto;
  height: 60%;
  background: radial-gradient(circle, rgba(79, 155, 208, 0.18), rgba(255, 122, 36, 0.1) 45%, transparent 72%);
  filter: blur(36px);
  pointer-events: none;
}

.app-window-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.app-window-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}

.app-window-dot:nth-child(1) { background: #ff5f57; }
.app-window-dot:nth-child(2) { background: #febc2e; }
.app-window-dot:nth-child(3) { background: #28c840; }

.app-window-title {
  margin-left: auto;
  color: #8f8a86;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-window img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.visual-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
  color: #8f8a86;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.visual-caption i {
  color: var(--accent);
}

/* ------------------------------------------------------------
   Section shell + shared headings
   ------------------------------------------------------------ */
.sections {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0a0a0a;
  padding: 5rem 0;
}

.sections.compact {
  min-height: auto;
}

.bg-accent {
  background: rgba(15, 15, 15, 0.8);
  position: relative;
  overflow: hidden;
}

.bg-accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 1.10) 0%, rgba(255, 122, 36, 0.05) 100%);
  z-index: 0;
}

.bg-accent > * {
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 820px;
  margin: 0 auto 3rem;
  text-align: center;
}

.portal-kicker {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(79, 155, 208, 0.3);
  background: rgba(79, 155, 208, 0.1);
  border-radius: 50px;
  color: var(--accent);
  font-size: var(--fs-kicker);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.portal-headline {
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: var(--fs-h2);
  font-weight: var(--fw-display);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
}

.portal-gradient {
  background: linear-gradient(90deg, var(--accent) 0%, #8cc7ec 45%, var(--accent-strong) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portal-sub {
  max-width: 720px;
  margin: 0 auto;
  color: #b8b8b8;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

.portal-sub code,
.boot-desc code,
.content-text code {
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: rgba(79, 155, 208, 0.12);
  color: #8cc7ec;
  font-size: 0.9em;
}

.content-text {
  color: #a0a0a0;
  font-size: var(--fs-body);
  line-height: var(--lh-lead);
}

.content-text p {
  margin-bottom: 1rem;
}

.content-text strong {
  color: #fff;
}

/* ------------------------------------------------------------
   Stat band
   ------------------------------------------------------------ */
.stat-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto 3.5rem;
}

.stat-item {
  padding: 1.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  background: rgba(15, 15, 15, 0.6);
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 155, 208, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.stat-value {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-value small {
  margin-left: 0.15rem;
  font-size: 1rem;
  font-weight: 600;
}

.stat-label {
  display: block;
  margin-top: 0.6rem;
  color: #a0a0a0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .stat-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ------------------------------------------------------------
   Feature checklist + side panels
   ------------------------------------------------------------ */
.features-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #a0a0a0;
  line-height: 1.6;
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list li i {
  margin-top: 0.25rem;
  color: var(--accent);
  font-size: 1rem;
}

.features-list li strong {
  color: #ffffff;
  font-weight: 700;
}

.panel {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(10px);
}

/* ------------------------------------------------------------
   Hypervisor stack diagram (hardware up to management)
   ------------------------------------------------------------ */
.stack-diagram {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.stack-layer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #12181f 0%, #0c0f13 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.stack-layer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--tier, var(--accent));
}

.stack-layer:hover {
  transform: translateX(4px);
  border-color: rgba(79, 155, 208, 0.35);
}

.stack-layer[data-tier="l0"] { --tier: linear-gradient(180deg, #3a3a3a, #262626); }
.stack-layer[data-tier="l1"] { --tier: linear-gradient(180deg, #1d3345, #16262f); }
.stack-layer[data-tier="l2"] { --tier: linear-gradient(180deg, #2f6f93, #255a78); }
.stack-layer[data-tier="l3"] { --tier: linear-gradient(180deg, #4f9bd0, #3f8ab8); }
.stack-layer[data-tier="l4"] { --tier: linear-gradient(180deg, #ff9a52, #ff7a24); }
.stack-layer[data-tier="l5"] { --tier: linear-gradient(180deg, #ffb36b, #ff8a3a); }

.stack-layer-highlight {
  border-color: rgba(255, 122, 36, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(255, 122, 36, 0.08);
}

.stack-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 2.4rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #e5e2df;
  font-size: 1rem;
}

.stack-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.stack-name {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
}

.stack-meta {
  color: #9aa0ac;
  font-size: 0.8rem;
}

.stack-arrow {
  display: flex;
  justify-content: center;
  padding: 0.35rem 0;
  color: var(--accent-strong);
  font-size: 0.85rem;
}

.stack-arrow i {
  filter: drop-shadow(0 0 6px rgba(255, 122, 36, 0.6));
}

/* ------------------------------------------------------------
   Replace cards (VMware / Hyper-V / cloud-native)
   ------------------------------------------------------------ */
.replace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.replace-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.3s ease;
}

.replace-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.replace-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 155, 208, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.replace-card:hover::before {
  transform: scaleX(1);
}

.replace-from {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #c8c8c8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.replace-from s {
  color: #7a7570;
}

.replace-from i {
  color: var(--accent-strong);
}

.replace-card h3 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-h3);
}

.replace-card p {
  margin: 0 0 1.25rem;
  color: #a0a0a0;
  line-height: var(--lh-body);
}

.service-list {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  color: #a0a0a0;
  line-height: 1.5;
}

.service-list li i {
  color: var(--accent);
  margin-top: 0.2rem;
}

/* ------------------------------------------------------------
   rctl terminal (typed commands)
   ------------------------------------------------------------ */
.terminal-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: min(100%, 46rem);
  margin: 0 auto 3rem;
}

.terminal-window {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.85), rgba(17, 17, 17, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.terminal-window::before {
  content: "";
  position: absolute;
  inset: -20% 30% auto;
  height: 60%;
  background: radial-gradient(circle, rgba(79, 155, 208, 0.16), rgba(255, 122, 36, 0.1) 45%, transparent 72%);
  filter: blur(32px);
  pointer-events: none;
}

.terminal-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.terminal-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}

.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-title {
  margin-left: auto;
  color: #8f8a86;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-body {
  position: relative;
  min-height: 17rem;
  margin: 0;
  padding: 1.1rem 1.25rem 1.3rem;
  color: #d9e4f2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-line {
  animation: terminalLineIn 0.25s ease-out both;
}

.terminal-prompt {
  color: var(--accent-strong);
  font-weight: 800;
}

.terminal-cmd .terminal-text {
  color: #ffffff;
}

.terminal-out {
  color: #9fb3c8;
  padding-left: 1.15rem;
}

.terminal-ok {
  color: #28c840;
  font-weight: 800;
}

.terminal-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: terminalBlink 0.9s steps(1) infinite;
}

@keyframes terminalLineIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes terminalBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ------------------------------------------------------------
   Hypervisor boot timeline
   ------------------------------------------------------------ */
.boot-connector {
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 1.1rem;
  text-align: center;
}

.boot-process {
  --cycle: 8s;
  padding: 2rem 1.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(10px);
}

.boot-track {
  position: relative;
  height: 4px;
  margin: 0 1.5rem 3rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.boot-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong), #ff7323);
  animation: bootFill var(--cycle) linear infinite;
}

@keyframes bootFill {
  0% { width: 0%; }
  62.5% { width: 100%; }
  100% { width: 100%; }
}

.boot-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.boot-marker {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #6b6b76;
  background: #101017;
  font-size: 1.3rem;
  animation: bootStepGlow var(--cycle) linear infinite;
  animation-delay: calc(var(--i) * 1.25s);
}

.boot-label {
  margin-bottom: 0.3rem;
  color: #6b6b76;
  font-size: 1.05rem;
  font-weight: 700;
  animation: bootStepColor var(--cycle) linear infinite;
  animation-delay: calc(var(--i) * 1.25s);
}

.boot-time {
  margin-bottom: 0.6rem;
  color: #55555f;
  font-size: 0.85rem;
  font-weight: 600;
}

.boot-desc {
  max-width: 230px;
  margin: 0 auto;
  color: #9a9aa2;
  font-size: var(--fs-body);
  line-height: 1.6;
}

@keyframes bootStepGlow {
  0%, 3% {
    color: #6b6b76;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }
  8%, 97% {
    color: #ff7323;
    border-color: #ff7323;
    box-shadow: 0 0 0 6px rgba(255, 115, 35, 0.12), 0 0 18px rgba(255, 115, 35, 0.35);
  }
  100% {
    color: #6b6b76;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }
}

@keyframes bootStepColor {
  0%, 3% { color: #6b6b76; }
  8%, 97% { color: #fff; }
  100% { color: #6b6b76; }
}

/* ------------------------------------------------------------
   Ruckos cluster diagram (hosts + etcd roles)
   ------------------------------------------------------------ */
.cluster-diagram {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(10px);
}

.cluster-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: rgba(79, 155, 208, 0.12);
  border: 1px solid rgba(79, 155, 208, 0.35);
}

.cluster-band i {
  color: var(--accent);
}

.cluster-band code {
  padding: 0.05rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.85em;
}

.cluster-hosts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cluster-host {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 1rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.cluster-host:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 155, 208, 0.3);
  background: rgba(79, 155, 208, 0.06);
}

.cluster-host-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cluster-host-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #e5e2df;
}

.cluster-host-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.1;
}

.cluster-host-ip {
  display: block;
  margin-top: 0.15rem;
  color: #8f8a86;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

.cluster-etcd {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cluster-etcd-leader {
  color: var(--accent-strong);
  border: 1px solid rgba(255, 122, 36, 0.5);
  background: rgba(255, 122, 36, 0.14);
}

.cluster-etcd-member {
  color: var(--accent);
  border: 1px solid rgba(79, 155, 208, 0.45);
  background: rgba(79, 155, 208, 0.14);
}

.cluster-vms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.cluster-vm {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  color: #c8c8c8;
  font-size: 0.7rem;
  font-weight: 600;
}

.cluster-vm i {
  color: #28c840;
  font-size: 0.5rem;
}

.cluster-pulse {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.5);
  animation: clusterPulse 2.4s ease-out infinite;
}

@keyframes clusterPulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(40, 200, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0); }
}

.cluster-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #8f8a86;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.cluster-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cluster-legend i {
  color: var(--accent);
}

/* etcd grows with the cluster: a card per cluster size, hosts that run etcd in orange. */
.cluster-scale {
  margin-top: 1.5rem;
}

.cluster-scale .hv-stack-title {
  margin-bottom: 0;
}

.cluster-scale-card {
  align-items: center;
  text-align: center;
}

.cluster-scale-card .cluster-etcd {
  align-self: center;
}

.cluster-scale-nodes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  color: #5b6470;
  font-size: 1.2rem;
}

.cluster-scale-nodes .is-etcd {
  color: var(--accent-strong);
}

.cluster-note {
  margin-top: 1.5rem;
  text-align: center;
}

/* ------------------------------------------------------------
   VM lifecycle grid
   ------------------------------------------------------------ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

/* The assessment's four cards sit in one row (two, then one, on smaller screens below). */
.assessment-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(79, 155, 208, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 1.5rem;
}

.service-title {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
}

.service-card code {
  padding: 0.05rem 0.35rem;
  border-radius: 5px;
  background: rgba(79, 155, 208, 0.12);
  color: #8cc7ec;
  font-size: 0.82em;
}

/* ------------------------------------------------------------
   Management surfaces (ruckos-v / rctl / Ruckos Cloud)
   ------------------------------------------------------------ */
.manage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.manage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(10px);
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.manage-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 122, 36, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  color: inherit;
}

.manage-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.manage-badge-free {
  color: var(--accent);
  border: 1px solid rgba(79, 155, 208, 0.45);
  background: rgba(79, 155, 208, 0.16);
}

.manage-badge-licensed {
  color: var(--accent-strong);
  border: 1px solid rgba(255, 122, 36, 0.5);
  background: rgba(255, 122, 36, 0.16);
}

.manage-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--accent);
  border: 1px solid rgba(79, 155, 208, 0.38);
  background: rgba(79, 155, 208, 0.14);
}

.manage-card:nth-child(2) .manage-icon {
  color: var(--accent-strong);
  border-color: rgba(255, 122, 36, 0.45);
  background: rgba(255, 122, 36, 0.16);
}

.manage-card h3 {
  margin: 0 0 0.3rem;
  color: #fff;
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
}

.manage-kind {
  display: block;
  margin-bottom: 1rem;
  color: #9a9aa2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manage-card p {
  margin: 0 0 1.25rem;
  color: #a0a0a0;
  line-height: var(--lh-body);
}

.manage-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}

.manage-cta i {
  color: var(--accent-strong);
  transition: transform 0.3s ease;
}

.manage-card:hover .manage-cta i {
  transform: translateX(4px);
}

.api-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1rem;
  margin: 2.5rem auto 0;
  padding: 1rem 1.5rem;
  max-width: 900px;
  border: 1px solid rgba(79, 155, 208, 0.2);
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.6);
  color: #a0a0a0;
  font-size: var(--fs-small);
}

.api-strip i {
  color: var(--accent);
}

.api-strip code {
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.8rem;
}

/* ------------------------------------------------------------
   Comparison table
   ------------------------------------------------------------ */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(10px);
}

.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
}

.compare th,
.compare td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.compare thead th {
  color: #8f8a86;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}

.compare thead th.compare-ruckos {
  color: #fff;
  background: linear-gradient(135deg, rgba(79, 155, 208, 0.22), rgba(255, 122, 36, 0.22));
}

.compare thead th.compare-ruckos i {
  color: var(--accent-strong);
  margin-right: 0.4rem;
}

.compare tbody th {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.compare tbody td {
  color: #a0a0a0;
}

.compare tbody td.compare-ruckos {
  color: #e9e4e0;
  background: rgba(79, 155, 208, 0.05);
}

.compare tbody td.compare-ruckos i {
  color: #28c840;
  margin-right: 0.4rem;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: none;
}

.compare-note {
  margin: 1.25rem 0 0;
  color: #6b6864;
  font-size: var(--fs-small);
  text-align: center;
}

/* ------------------------------------------------------------
   Migration callout
   ------------------------------------------------------------ */
.highlight-container {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: 2rem;
  padding: 2.5rem;
  border-radius: 20px;
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(79, 155, 208, 0.2);
  backdrop-filter: blur(10px);
}

.highlight-image {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}

.highlight-content h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}

.highlight-content h3 i {
  color: var(--accent-strong);
}

.highlight-content p {
  margin: 0 0 1.5rem;
  color: #a0a0a0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.highlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.highlight-actions .btn-primary {
  color: #fff;
  background: var(--accent-strong);
  border: 1px solid var(--accent-strong);
}

.highlight-actions .btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 1rem 2.4rem rgba(255, 122, 36, 0.3);
}

.highlight-actions .btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.highlight-actions .btn-secondary:hover {
  color: #fff;
  border-color: rgba(79, 155, 208, 0.5);
  transform: translateY(-3px);
}

/* ------------------------------------------------------------
   Related products
   ------------------------------------------------------------ */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.solution-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(10px);
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.solution-card:hover {
  color: inherit;
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.solution-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 2rem;
}

.solution-card .card-title {
  margin-bottom: 1rem;
  color: #fff;
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-h3);
}

.solution-card .card-description {
  flex-grow: 1;
  margin: 0;
  color: #a0a0a0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1200px) {
  .service-grid,
  .replace-grid,
  .manage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  #hero {
    padding: 6rem 0 5rem;
  }

  .hero-layout {
    min-height: auto;
    gap: 3rem;
    padding-top: 0;
  }

  .app-window {
    transform: none;
  }

  .app-window:hover {
    transform: translateY(-4px);
  }

  .highlight-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #hero {
    min-height: auto;
  }

  .hero-kicker {
    align-items: flex-start;
    line-height: 1.5;
  }

  .service-grid,
  .replace-grid,
  .manage-grid,
  .cluster-hosts {
    grid-template-columns: 1fr;
  }

  .terminal-body {
    min-height: 14rem;
    font-size: 0.74rem;
  }

  .boot-steps {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .boot-track {
    display: none;
  }
}
