/* ==========================================================================
   LAVA CASCADE — Main Styles
   Load order: var.css → main.css → other/animations.css → other/responsive.css
   ========================================================================== */

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--torch); color: var(--deep); }

:focus-visible {
  outline: 2px solid var(--torch);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- Layout helpers ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--torch);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--torch);
  border-radius: var(--radius-block);
  box-shadow: 0 0 10px var(--torch-glow);
}

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 1rem;
}
.section-head p { color: var(--ink-2); font-size: var(--fs-lead); margin-top: 1rem; }

.text-torch { color: var(--torch); }
.text-grass { color: var(--grass); }
.mono { font-family: var(--font-mono); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-block);
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--grad-torch);
  color: #ffffff;
  box-shadow: var(--glow-torch);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,61,104,.5), 0 14px 40px var(--torch-glow); }

.btn-ghost {
  background: var(--fill);
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--night-4); border-color: var(--torch); }

.btn-lg { padding: 1.05em 2em; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---- Navigation -------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 15, 24, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand-name b { color: var(--torch); font-weight: inherit; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-2);
  transition: color var(--dur-fast);
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 0.8rem; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: var(--radius-block); background: var(--fill); border: 1px solid var(--line-2); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px auto; transition: transform var(--dur-fast), opacity var(--dur-fast); }
.nav-toggle.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(8rem, 16vh, 11rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  background: var(--grad-night);
  overflow: hidden;
}
/* ambient torch glows */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: var(--z-bg);
}
.hero::before { width: 520px; height: 520px; background: radial-gradient(circle, rgba(139,92,246,.28), transparent 70%); top: -120px; right: -80px; }
.hero::after  { width: 460px; height: 460px; background: radial-gradient(circle, rgba(52,228,168,.14), transparent 70%); bottom: -160px; left: -120px; }

/* voxel grid texture */
.hero-grid {
  position: absolute; inset: 0; z-index: var(--z-bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--fill);
  border: 1px solid var(--line-2);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grass); box-shadow: 0 0 8px var(--grass); }

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero h1 .glow { color: var(--torch); text-shadow: 0 0 40px var(--torch-glow); }
.hero-lead {
  color: var(--ink-2);
  font-size: var(--fs-lead);
  max-width: 34ch;
  margin: 1.5rem 0 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-note { font-size: var(--fs-sm); color: var(--muted); margin-top: 1.4rem; display: flex; align-items: center; gap: 0.5rem; }
.hero-note svg { width: 16px; height: 16px; color: var(--grass); }

/* hero visual: live server card */
.server-card {
  background: var(--grad-surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-lift);
  position: relative;
}
.server-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255,61,104,.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.sc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.sc-name { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-mono); font-size: 0.9rem; }
.sc-name .cube { width: 26px; height: 26px; border-radius: var(--radius-block); background: var(--grad-torch); box-shadow: 0 0 14px var(--torch-glow); }
.sc-status { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--grass); background: rgba(52,228,168,.1); padding: 0.25rem 0.6rem; border-radius: 100px; }
.sc-status .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--grass); }

.sc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 1.1rem; }
.sc-stat { background: var(--fill-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.7rem 0.8rem; }
.sc-stat .k { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.sc-stat .v { font-family: var(--font-mono); font-size: 1.15rem; color: var(--ink); margin-top: 0.15rem; }
.sc-stat .v.good { color: var(--grass); }

/* mini RAM bar in card */
.sc-ram { margin-top: 0.2rem; }
.sc-ram-label { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); margin-bottom: 0.4rem; }
.sc-ram-track { height: 10px; background: var(--fill); border-radius: 3px; overflow: hidden; display: flex; gap: 2px; padding: 2px; }
.sc-ram-fill { flex: 1; background: var(--grad-torch); border-radius: 1px; }
.sc-ram-fill.empty { background: var(--fill); }

.sc-console { margin-top: 1.1rem; background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem; font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.7; color: var(--ink-2); height: 96px; overflow: hidden; }
.sc-console .ln { white-space: nowrap; }
.sc-console .t { color: var(--faint); }
.sc-console .ok { color: var(--grass); }
.sc-console .warn { color: var(--torch); }

/* ---- Trust strip ------------------------------------------------------- */
.trust {
  border-block: 1px solid var(--line);
  background: var(--night-2);
}
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 2rem; }
.trust-item { text-align: center; }
.trust-item .n { font-family: var(--font-mono); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--ink); }
.trust-item .n .u { color: var(--torch); }
.trust-item .l { font-size: var(--fs-sm); color: var(--muted); margin-top: 0.2rem; }

/* ---- Features ---------------------------------------------------------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.feature {
  background: var(--grad-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
  position: relative;
  overflow: hidden;
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.feature-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--radius-block);
  background: rgba(255,61,104,.1);
  border: 1px solid rgba(255,61,104,.25);
  color: var(--torch);
  margin-bottom: 1rem;
}
.feature-ico svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; }
.feature p { color: var(--ink-2); font-size: var(--fs-sm); margin-top: 0.5rem; }

/* ---- Pricing / Configurator ------------------------------------------- */
.pricing { background: var(--night-2); border-block: 1px solid var(--line); }
.config {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: stretch;
}
.config-panel {
  background: var(--grad-surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

/* billing toggle */
.billing { display: inline-flex; background: var(--deep); border: 1px solid var(--line); border-radius: 100px; padding: 4px; margin-bottom: 2rem; position: relative; flex-wrap: wrap; }
.billing button {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-2);
  padding: 0.55rem 1.15rem;
  border-radius: 100px;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: color var(--dur-fast);
}
.billing button.active { color: #ffffff; }
.billing .pill { position: absolute; top: 4px; bottom: 4px; background: var(--grad-torch); border-radius: 100px; z-index: 1; transition: left var(--dur) var(--ease), width var(--dur) var(--ease); box-shadow: 0 4px 16px var(--torch-glow); }
.billing .save { font-family: var(--font-mono); font-size: 0.62rem; background: rgba(52,228,168,.18); color: var(--grass); padding: 0.1rem 0.4rem; border-radius: 100px; }
.billing button.active .save { background: rgba(0,0,0,.2); color: #ffffff; }

/* RAM block selector — the signature */
.ram-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.ram-head .lab { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.ram-head .val { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; color: var(--torch); }
.ram-head .val small { font-size: 1rem; color: var(--ink-2); }

.ram-blocks {
  display: flex;
  gap: 4px;
  height: 64px;
  padding: 6px;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
}
.ram-block {
  flex: 1;
  border-radius: var(--radius-block);
  background: var(--fill);
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast), transform var(--dur-fast);
  position: relative;
}
.ram-block.on {
  background: var(--grad-torch);
  box-shadow: 0 0 12px var(--torch-glow), inset 0 1px 0 rgba(255,255,255,.35);
}
.ram-block.peak { transform: translateY(-3px); }

.ram-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 24px;
  background: transparent;
  cursor: pointer;
  margin-top: 0.2rem;
}
.ram-slider::-webkit-slider-runnable-track { height: 6px; background: var(--night-4); border-radius: 100px; }
.ram-slider::-moz-range-track { height: 6px; background: var(--night-4); border-radius: 100px; }
.ram-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin-top: -10px;
  border-radius: var(--radius-block);
  background: var(--torch-soft);
  border: 3px solid var(--torch-hot);
  box-shadow: 0 0 16px var(--torch-glow);
  transition: transform var(--dur-fast);
}
.ram-slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
.ram-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: var(--radius-block);
  background: var(--torch-soft);
  border: 3px solid var(--torch-hot);
  box-shadow: 0 0 16px var(--torch-glow);
}
.ram-scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); margin-top: 0.5rem; }

/* preset chips */
.presets { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.preset {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-block);
  background: var(--fill);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: all var(--dur-fast);
}
.preset:hover { border-color: var(--torch); color: var(--ink); }
.preset.active { background: rgba(255,61,104,.14); border-color: var(--torch); color: var(--torch); }
.preset .p { color: var(--muted); }
.preset.active .p { color: var(--torch-soft); }

/* price readout card */
.quote {
  background: var(--deep);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.quote::before {
  content: ""; position: absolute; top: -40%; right: -30%;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,61,104,.16), transparent 70%);
  pointer-events: none;
}
.quote-lab { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.quote-price { display: flex; align-items: flex-start; gap: 0.15rem; margin: 0.4rem 0 0.2rem; font-family: var(--font-mono); font-weight: 700; line-height: 1; }
.quote-price .cur { font-size: 1.6rem; color: var(--ink-2); margin-top: 0.35rem; }
.quote-price .amt { font-size: clamp(3rem, 8vw, 4.2rem); color: var(--ink); letter-spacing: -0.02em; }
.quote-per { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); }
.quote-billed { margin-top: 0.9rem; font-size: var(--fs-sm); color: var(--ink-2); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.quote-billed .tot { color: var(--ink); font-family: var(--font-mono); }
.quote-save { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--grass); background: rgba(52,228,168,.12); border: 1px solid rgba(52,228,168,.25); padding: 0.25rem 0.6rem; border-radius: 100px; margin-top: 0.9rem; align-self: flex-start; }
.quote-save.hidden { display: none; }

.quote-inc { margin: 1.4rem 0; display: grid; gap: 0.55rem; }
.quote-inc li { display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-sm); color: var(--ink-2); }
.quote-inc li svg { width: 16px; height: 16px; color: var(--grass); flex: none; }
.quote .btn { margin-top: auto; }

/* ---- Panel showcase ---------------------------------------------------- */
.panel { background: var(--grad-night); overflow: hidden; }
.panel-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.panel-copy .feat-list { margin-top: 1.6rem; display: grid; gap: 1rem; }
.panel-copy .feat-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.panel-copy .feat-list .ico { width: 34px; height: 34px; flex: none; border-radius: var(--radius-block); background: rgba(255,61,104,.1); border: 1px solid rgba(255,61,104,.25); color: var(--torch); display: grid; place-items: center; }
.panel-copy .feat-list .ico svg { width: 18px; height: 18px; }
.panel-copy .feat-list b { display: block; font-family: var(--font-display); }
.panel-copy .feat-list span { font-size: var(--fs-sm); color: var(--ink-2); }

/* fake pterodactyl dashboard */
.dash {
  background: var(--night-3);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.dash-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1rem; background: var(--deep); border-bottom: 1px solid var(--line); }
.dash-bar .dots { display: flex; gap: 0.35rem; }
.dash-bar .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dash-bar .dots i:nth-child(1){ background:#FF5F57; } .dash-bar .dots i:nth-child(2){ background:#FEBC2E; } .dash-bar .dots i:nth-child(3){ background:#28C840; }
.dash-bar .url { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); margin-left: 0.5rem; }
.dash-body { padding: 1.1rem; }
.dash-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.7rem; margin-bottom: 1rem; }
.dash-metric { background: var(--fill-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem; }
.dash-metric .mk { font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.dash-metric .mv { font-family: var(--font-mono); font-size: 1.25rem; margin-top: 0.15rem; }
.dash-metric .mv.a { color: var(--torch); } .dash-metric .mv.b { color: var(--grass); } .dash-metric .mv.c { color: var(--sky); }
.dash-metric .spark { height: 26px; margin-top: 0.4rem; display: flex; align-items: flex-end; gap: 2px; }
.dash-metric .spark i { flex: 1; background: currentColor; opacity: 0.55; border-radius: 1px; }
.dash-console { background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.9rem; font-family: var(--font-mono); font-size: 0.7rem; line-height: 1.75; color: var(--ink-2); }
.dash-console .p { color: var(--grass); } .dash-console .w { color: var(--torch); } .dash-console .m { color: var(--muted); }

/* ---- Steps ------------------------------------------------------------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding: 1.8rem 1.5rem; background: var(--grad-surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step .num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--torch); border: 1px solid rgba(255,61,104,.3); background: rgba(255,61,104,.08); width: 40px; height: 40px; border-radius: var(--radius-block); display: grid; place-items: center; font-weight: 700; margin-bottom: 1rem; }
.step h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; }
.step p { color: var(--ink-2); font-size: var(--fs-sm); margin-top: 0.5rem; }
.step .connector { position: absolute; top: 3rem; right: -0.6rem; color: var(--faint); display: none; }

/* ---- FAQ --------------------------------------------------------------- */
.faq-list { display: grid; gap: 0.7rem; max-width: 820px; }
.faq-item { background: var(--grad-surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color var(--dur-fast); }
.faq-item.open { border-color: var(--line-2); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.faq-q .chev { flex: none; width: 22px; height: 22px; color: var(--torch); transition: transform var(--dur) var(--ease); }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.faq-a-inner { padding: 0 1.4rem 1.3rem; color: var(--ink-2); font-size: var(--fs-sm); }

/* ---- Order form -------------------------------------------------------- */
.order { background: var(--night-2); border-top: 1px solid var(--line); }
.order-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.order-summary { background: var(--grad-surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 1.6rem; position: sticky; top: 100px; }
.order-summary h3 { font-family: var(--font-display); font-size: var(--fs-h3); margin-bottom: 1rem; }
.summary-row { display: flex; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.summary-row span:first-child { color: var(--muted); }
.summary-row span:last-child { font-family: var(--font-mono); color: var(--ink); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1rem; padding-top: 1rem; }
.summary-total .l { color: var(--ink-2); }
.summary-total .v { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; color: var(--torch); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.field label .req { color: var(--torch); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--deep);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-block);
  padding: 0.85rem 1rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--torch); box-shadow: 0 0 0 3px rgba(255,61,104,.15); }
.field textarea { resize: vertical; min-height: 90px; }
.field .err { font-size: var(--fs-xs); color: var(--danger); display: none; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field.invalid .err { display: block; }

.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.form-msg { font-size: var(--fs-sm); }
.form-msg.ok { color: var(--grass); }
.form-msg.bad { color: var(--danger); }

/* ---- Footer ------------------------------------------------------------ */
.footer { background: var(--deep); border-top: 1px solid var(--line); padding-block: clamp(3rem, 5vw, 4rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-brand p { color: var(--muted); font-size: var(--fs-sm); margin-top: 1rem; max-width: 30ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--ink-2); font-size: var(--fs-sm); padding: 0.35rem 0; transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--torch); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.footer-socials { display: flex; gap: 0.6rem; }
.footer-socials a { width: 38px; height: 38px; border-radius: var(--radius-block); background: var(--fill); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); transition: all var(--dur-fast); }
.footer-socials a:hover { color: var(--torch); border-color: var(--torch); }
.footer-socials svg { width: 18px; height: 18px; }

/* ---- Utility ----------------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ==========================================================================
   LAVA CASCADE — macOS glass + duotone polish (overrides)
   Appended last so it wins on the cascade. Layers vibrancy, purple/red
   duotone, and springy motion over the base layout.
   ========================================================================== */

/* ambient depth: two soft blooms fixed behind the whole page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(680px 480px at 12% 0%, rgba(168,85,247,.16), transparent 60%),
    radial-gradient(720px 520px at 100% 30%, rgba(255,61,104,.12), transparent 60%),
    radial-gradient(600px 600px at 50% 120%, rgba(109,40,217,.14), transparent 60%);
}

/* --- Brand + gradient text ------------------------------------------------ */
.brand-name {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.02rem;
}
.brand-name b {
  background: var(--grad-torch);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero h1 .glow {
  background: linear-gradient(120deg, var(--violet) 0%, var(--lava) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 6px 30px rgba(255,61,104,.35));
}
.eyebrow { color: var(--violet); }
.eyebrow::before { background: var(--grad-torch); box-shadow: 0 0 12px var(--violet-glow); }
.text-torch { color: var(--lava); }

/* --- Buttons: smoother, springier, glassier ------------------------------- */
.btn { border-radius: 12px; transition: transform var(--dur-fast) var(--spring), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease); }
.btn-primary { color: #fff; background: var(--grad-torch); box-shadow: var(--glow-torch); }
.btn-primary:hover { transform: translateY(-2px) scale(1.015); filter: saturate(115%); box-shadow: 0 0 0 1px rgba(255,61,104,.4), 0 18px 50px rgba(255,61,104,.42); }
.btn-ghost { background: rgba(255,255,255,.05); border: 1px solid var(--line-2); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.btn-ghost:hover { background: rgba(168,85,247,.12); border-color: var(--violet); transform: translateY(-2px); }

/* --- Frosted glass on the key surfaces ------------------------------------ */
.nav.scrolled {
  background: var(--glass-nav);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-bottom-color: var(--line-violet);
}
.server-card,
.config-panel,
.quote,
.order-summary,
.dash,
.feature,
.faq-item {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-color: var(--line-violet);
}
.quote { background: var(--glass-2); }
.dash-bar, .dash-console, .sc-console, .ram-blocks, .billing, .field input, .field select, .field textarea {
  background: rgba(6,3,12,.6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* server card top-edge sheen → violet→red */
.server-card::before { background: linear-gradient(160deg, rgba(168,85,247,.6), rgba(255,61,104,.25) 45%, transparent 65%); }
.sc-name .cube { background: var(--grad-torch); box-shadow: 0 0 18px var(--violet-glow); }

/* --- Feature cards: lift with a springy glow ------------------------------ */
.feature { transition: transform var(--dur) var(--spring), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.feature:hover { transform: translateY(-6px); border-color: var(--line-violet); box-shadow: var(--shadow-2), var(--glow-violet); }
.feature-ico { background: linear-gradient(135deg, rgba(168,85,247,.16), rgba(255,61,104,.12)); border-color: var(--line-violet); color: var(--violet); }

/* --- Billing pill + RAM blocks: springy motion ---------------------------- */
.billing .pill { background: var(--grad-torch); box-shadow: 0 6px 20px rgba(255,61,104,.4); transition: left var(--dur) var(--spring), width var(--dur) var(--spring); }
.billing button.active { color: #fff; }
.ram-block { transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--spring); }
.ram-block.on { background: var(--grad-torch); box-shadow: 0 0 14px rgba(255,61,104,.45), inset 0 1px 0 rgba(255,255,255,.35); }
.ram-block.peak { transform: translateY(-4px) scale(1.04); }

/* slider thumb: soft rounded, violet→red ring */
.ram-slider::-webkit-slider-thumb { border-radius: 50%; background: #fff; border: 4px solid var(--lava); box-shadow: 0 0 0 3px rgba(168,85,247,.35), 0 4px 16px rgba(255,61,104,.5); }
.ram-slider::-moz-range-thumb { border-radius: 50%; background: #fff; border: 4px solid var(--lava); box-shadow: 0 0 0 3px rgba(168,85,247,.35); }
.ram-slider::-webkit-slider-runnable-track,
.ram-slider::-moz-range-track { background: linear-gradient(90deg, rgba(168,85,247,.5), rgba(255,61,104,.5)); height: 6px; }

/* quote bloom → duotone */
.quote::before { background: radial-gradient(circle, rgba(168,85,247,.22), transparent 70%); }
.quote-price .amt {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* preset chips */
.preset.active { background: linear-gradient(135deg, rgba(168,85,247,.18), rgba(255,61,104,.16)); border-color: var(--violet); color: #fff; }
.preset:hover { border-color: var(--violet); }

/* summary total gradient number */
.summary-total .v { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* panel + step accents */
.panel-copy .feat-list .ico { background: linear-gradient(135deg, rgba(168,85,247,.16), rgba(255,61,104,.12)); border-color: var(--line-violet); color: var(--violet); }
.step .num { color: #fff; background: var(--grad-torch); border: none; box-shadow: 0 6px 18px rgba(255,61,104,.35); }
.step { transition: transform var(--dur) var(--spring), border-color var(--dur); }
.step:hover { transform: translateY(-4px); border-color: var(--line-violet); }

/* faq chevron colour + hover */
.faq-q .chev { color: var(--violet); }
.faq-item.open { border-color: var(--line-violet); }

/* nav link underline sweep */
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
  background: var(--grad-torch); border-radius: 2px;
  transition: right var(--dur-fast) var(--ease);
}
.nav-links a:hover::after { right: 0; }

/* selection + focus in brand colours */
::selection { background: rgba(255,61,104,.85); color: #fff; }
:focus-visible { outline-color: var(--violet); }

/* trust numbers: unit in gradient */
.trust-item .n .u { background: var(--grad-torch); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* hero grid a touch subtler on the darker base */
.hero-grid { opacity: 0.4; }

/* gradient-text safety net: only knock the fill transparent where the browser
   actually supports background-clip:text — otherwise show solid lava-red. */
.brand-name b, .hero h1 .glow, .quote-price .amt, .summary-total .v, .trust-item .n .u {
  -webkit-text-fill-color: currentColor; color: var(--lava);
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .brand-name b, .hero h1 .glow, .quote-price .amt, .summary-total .v, .trust-item .n .u {
    color: transparent; -webkit-text-fill-color: transparent;
  }
}

/* ==========================================================================
   LAVA CASCADE — multi-page helpers
   ========================================================================== */
.page-top { padding-top: clamp(8rem, 15vh, 11rem); }
.page-hero { max-width: 780px; }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 {
  font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.02em;
}
.page-hero p { color: var(--ink-2); font-size: var(--fs-lead); margin-top: 1rem; }
.page-hero .glow {
  background: linear-gradient(120deg, var(--violet) 0%, var(--lava) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* section-link (e.g. "explore all features →") */
.more-link {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 2rem;
  font-family: var(--font-display); font-weight: 600; color: var(--violet);
  transition: gap var(--dur-fast) var(--ease), color var(--dur-fast);
}
.more-link:hover { gap: 0.75rem; color: var(--lava); }

/* static pricing table */
.price-table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 2rem;
  background: var(--glass); border: 1px solid var(--line-violet); border-radius: var(--radius-lg);
  overflow: hidden; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.price-table th, .price-table td {
  padding: 0.95rem 1.1rem; text-align: center; font-family: var(--font-mono);
  font-size: var(--fs-sm); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.price-table thead th {
  color: var(--violet); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: var(--fs-xs); background: rgba(168,85,247,.06);
}
.price-table td:first-child, .price-table th:first-child { text-align: left; color: var(--ink); font-weight: 600; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover td { background: rgba(255,61,104,.05); }
.price-table .best { color: var(--lava); font-weight: 600; }
.price-table small { color: var(--muted); font-size: 0.62rem; }
.table-note { color: var(--muted); font-size: var(--fs-sm); margin-top: 0.9rem; }

/* included checklist */
.included { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-top: 2.2rem; max-width: 660px; }
.included li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--ink-2); font-size: var(--fs-sm); }
.included li svg { width: 18px; height: 18px; color: var(--grass); flex: none; margin-top: 2px; }

/* CTA band */
.cta-band { text-align: center; background: var(--grad-night); border-block: 1px solid var(--line); }
.cta-band h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.02em; }
.cta-band p { color: var(--ink-2); margin: 1rem auto 2rem; max-width: 54ch; }
.cta-row { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* contact layout */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-aside { background: var(--glass); border: 1px solid var(--line-violet); border-radius: var(--radius-lg); padding: 1.8rem; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.contact-aside h3 { font-family: var(--font-display); font-size: var(--fs-h3); margin-bottom: 0.8rem; }
.contact-aside p { color: var(--ink-2); font-size: var(--fs-sm); }
.contact-aside .chan { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.2rem; color: var(--ink-2); font-size: var(--fs-sm); }
.contact-aside .chan .ico { width: 36px; height: 36px; flex: none; border-radius: var(--radius-block); display: grid; place-items: center; background: linear-gradient(135deg, rgba(168,85,247,.16), rgba(255,61,104,.12)); border: 1px solid var(--line-violet); color: var(--violet); }
.contact-aside .chan .ico svg { width: 18px; height: 18px; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .included { grid-template-columns: 1fr; }
  .price-table { display: block; overflow-x: auto; }
}

/* active nav link (multi-page) */
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { right: 0; }

/* ==========================================================================
   LAVA CASCADE — add-on toggle, auth, dashboard
   ========================================================================== */

/* custom-domain add-on toggle (in the configurator) */
.addon {
  display: flex; align-items: flex-start; gap: 0.9rem; margin-top: 1.5rem;
  padding: 1rem 1.1rem; border-radius: var(--radius);
  background: rgba(6,3,12,.5); border: 1px solid var(--line);
  cursor: pointer; transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast);
}
.addon:hover { border-color: var(--line-violet); }
.addon input { position: absolute; opacity: 0; width: 0; height: 0; }
.addon-body { flex: 1; }
.addon-title { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 600; }
.addon-price { font-family: var(--font-mono); font-size: var(--fs-xs); color: #fff; background: var(--grad-torch); padding: 0.15rem 0.5rem; border-radius: 100px; }
.addon-sub { display: block; color: var(--muted); font-size: var(--fs-sm); margin-top: 0.25rem; }
.addon-switch { position: relative; flex: none; width: 46px; height: 27px; border-radius: 100px; background: var(--night-4); border: 1px solid var(--line-2); transition: background var(--dur-fast) var(--ease); margin-top: 2px; }
.addon-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: transform var(--dur-fast) var(--spring); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.addon input:checked ~ .addon-switch { background: var(--grad-torch); border-color: transparent; }
.addon input:checked ~ .addon-switch::after { transform: translateX(19px); }
.addon input:focus-visible ~ .addon-switch { outline: 2px solid var(--violet); outline-offset: 2px; }
.addon:has(input:checked) { border-color: var(--line-violet); background: rgba(168,85,247,.06); }
.domain-field { margin-top: 0.7rem; }
.domain-field input {
  width: 100%; font-family: var(--font-mono); font-size: 0.95rem; color: var(--ink);
  background: rgba(6,3,12,.6); border: 1px solid var(--line-2); border-radius: var(--radius-block);
  padding: 0.8rem 1rem; transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.domain-field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(168,85,247,.15); }

/* auth pages (login / signup) */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: clamp(6rem,14vh,9rem) var(--gutter) 3rem; position: relative; }
.auth-card {
  width: 100%; max-width: 440px; background: var(--glass); border: 1px solid var(--line-violet);
  border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.6rem);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow-lift);
}
.auth-card .brand { justify-content: center; margin-bottom: 1.4rem; }
.auth-card h1 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; text-align: center; letter-spacing: -0.02em; }
.auth-card .sub { text-align: center; color: var(--ink-2); font-size: var(--fs-sm); margin: 0.4rem 0 1.8rem; }
.auth-card .field { margin-bottom: 1rem; }
.auth-card .btn { width: 100%; margin-top: 0.4rem; }
.auth-alt { text-align: center; color: var(--muted); font-size: var(--fs-sm); margin-top: 1.4rem; }
.auth-alt a { color: var(--violet); font-weight: 600; }
.auth-row { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: 1rem; }
.auth-row a { color: var(--violet); }
.checkline { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.checkline input { width: 16px; height: 16px; accent-color: var(--lava); }
.auth-back { position: absolute; top: clamp(1.5rem,4vh,2.5rem); left: var(--gutter); color: var(--muted); font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 0.4rem; }
.auth-back:hover { color: var(--ink); }

/* dashboard */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.dash-head h1 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.02em; }
.dash-head p { color: var(--ink-2); margin-top: 0.3rem; }
.dash-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.dstat { background: var(--glass); border: 1px solid var(--line-violet); border-radius: var(--radius); padding: 1.2rem; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.dstat .k { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.dstat .v { font-family: var(--font-mono); font-size: 1.6rem; margin-top: 0.3rem; }
.dstat .v.accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.svr-head { display: flex; align-items: center; justify-content: space-between; margin: 2.5rem 0 1rem; }
.svr-head h2 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; }
.server-list { display: grid; gap: 1rem; }
.svr {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center;
  background: var(--glass); border: 1px solid var(--line-violet); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.svr .cube { width: 44px; height: 44px; border-radius: var(--radius-block); background: var(--grad-torch); box-shadow: 0 0 16px var(--violet-glow); flex: none; }
.svr .info h3 { font-family: var(--font-mono); font-size: 1.02rem; }
.svr .info .meta { display: flex; gap: 0.6rem; flex-wrap: wrap; color: var(--muted); font-size: var(--fs-sm); margin-top: 0.3rem; }
.svr .info .meta b { color: var(--ink-2); font-weight: 500; }
.svr .info .dom { color: var(--violet); }
.svr .right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
.pillstat { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: var(--fs-xs); padding: 0.25rem 0.6rem; border-radius: 100px; }
.pillstat.online { color: var(--grass); background: rgba(52,228,168,.12); }
.pillstat.online .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--grass); }
.pillstat.susp { color: var(--danger); background: rgba(255,107,129,.12); }
.dash-empty { text-align: center; color: var(--ink-2); background: var(--glass); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); padding: 3rem 1.5rem; }

@media (max-width: 820px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .svr { grid-template-columns: auto 1fr; }
  .svr .right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}
