/* ==========================================================================
   SlayHost — Cloud VPS theme
   Industrial look: alternating dark / light bands, square corners, mono labels.
   Edit the tokens below to rebrand. Each .band sets its own local colours,
   so components adapt to whichever band they sit in.
   ========================================================================== */

:root {
  --accent: #e5484d;
  --accent-hover: #d13c41;
  --accent-ink: #ffffff;
  --success: #3ecf8e;

  --ink-900: #0b0c0f;   /* darkest: header, strips */
  --ink-800: #111216;   /* dark band */
  --ink-700: #17181d;   /* dark panel */
  --paper-200: #e6e4df; /* light band */
  --paper-100: #f5f4f1; /* light panel */

  --radius: 2px;
  --container: 1200px;
  --header-h: 64px;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Band colour scopes */
.band--dark {
  --bg: var(--ink-800);
  --panel: var(--ink-700);
  --panel-2: #1d1e24;
  --text: #f2f1ee;
  --muted: #8d8f99;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
.band--light {
  --bg: var(--paper-200);
  --panel: var(--paper-100);
  --panel-2: #ebe9e4;
  --text: #121317;
  --muted: #62646d;
  --line: rgba(18, 19, 23, .1);
  --line-strong: rgba(18, 19, 23, .2);
  --shadow: 0 24px 50px -30px rgba(18, 19, 23, .35);
  color-scheme: light;
}
.band { background: var(--bg); color: var(--text); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: #f2f1ee; background: var(--ink-800);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.025em; font-weight: 600; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

/* Small helpers */
.sq { display: inline-block; width: 7px; height: 7px; flex: none; background: var(--accent); }
.dot { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent); }
.label, .tag, .eyebrow, .panel__bar, .panel__foot {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.label { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 42px; padding: 0 18px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 500; font-size: 15px; white-space: nowrap; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn--lg { height: 50px; padding: 0 24px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--outline { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--text); }
.btn--ghost { color: var(--muted); }
.btn--ghost:hover { color: var(--text); }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  border-radius: var(--radius); border: 1px solid var(--line); background: transparent;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Header ---------- */
.header {
  --text: #f2f1ee; --muted: #8d8f99; --line: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.18); --bg: var(--ink-900);
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--ink-900) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); color: var(--text);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.03em; }
.logo__mark { width: 26px; height: 26px; fill: var(--accent); }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { padding: 8px 12px; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-btn { display: none; }
.nav__cta { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 88px 0 0;
  background:
    radial-gradient(60% 70% at 0% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    var(--bg);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 28px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); letter-spacing: -.035em; }
.hero h1 .dim { color: var(--muted); }
.lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 88px; border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 36px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.03em; }
.stat span { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Panels (shared card style) ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.panel__bar, .panel__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 18px; color: var(--muted);
}
.panel__bar { border-bottom: 1px solid var(--line); }
.panel__bar > span:first-child { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.panel__bar--dark { background: var(--ink-900); color: #8d8f99; border-bottom-color: var(--ink-900); }
.panel__bar--dark > span:first-child { color: #f2f1ee; }
.panel__foot { border-top: 1px solid var(--line); }
.panel__foot > span:first-child { display: inline-flex; align-items: center; gap: 10px; }

/* Terminal */
.terminal { background: #0d0e12; }
.terminal__dots { display: inline-flex; gap: 5px; }
.terminal__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.terminal__body {
  margin: 0; padding: 20px 20px; min-height: 300px;
  font-family: var(--mono); font-size: 13px; line-height: 1.8; color: #c7c9d1;
  white-space: pre-wrap; word-break: break-word;
}
.terminal__body .p { color: var(--accent); }
.terminal__body .c { color: #f2f1ee; }
.terminal__body .ok { color: var(--success); }
.terminal__body .dim { color: #6b6e78; }
.terminal__body .hl { color: #f2f1ee; }
.cursor { display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px; background: #f2f1ee; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(30px, 3.8vw, 44px); }
.section__head p { margin-top: 14px; font-size: 17px; color: var(--muted); }
.eyebrow { display: inline-flex; gap: 12px; margin-bottom: 18px; color: var(--muted); }
.eyebrow b { color: var(--accent); font-weight: 500; }

/* ---------- Platform features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.feature { padding: 30px 28px; border-top: 1px solid var(--line); }
.feature:nth-child(-n+3) { border-top: 0; }
.feature:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }
.feature svg { width: 22px; height: 22px; margin-bottom: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 17px; letter-spacing: -.01em; margin-bottom: 6px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.tabs { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.tabs button {
  padding: 10px 18px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  transition: background .2s, color .2s;
}
.tabs button + button { border-left: 1px solid var(--line-strong); }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.switch { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { position: relative; width: 40px; height: 22px; border-radius: 2px; background: var(--panel-2); border: 1px solid var(--line-strong); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 1px; background: var(--text); transition: transform .25s var(--ease); }
.switch input:checked + i { background: var(--accent); border-color: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 3px; }
.save { font-style: normal; color: var(--accent); margin-left: 4px; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { display: flex; flex-direction: column; animation: planIn .4s var(--ease) both; }
.plan--popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan--popular .panel__bar { background: var(--accent); border-color: var(--accent); color: #fff; }
.plan--popular .panel__bar > span:first-child { color: #fff; }
.plan--popular .panel__bar .sq { background: #fff; }
.plan__body { padding: 24px 20px; flex: 1; display: flex; flex-direction: column; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__price strong { font-size: 42px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.plan__price span { color: var(--muted); font-size: 14px; }
.plan__hourly { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.plan ul { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; font-family: var(--mono); font-size: 13px; }
.plan li { display: flex; align-items: center; gap: 12px; }
.plan li .sq { width: 5px; height: 5px; }
.plan .panel__foot { padding: 16px 20px; }
.plan .btn { width: 100%; font-family: var(--font); font-size: 15px; letter-spacing: normal; text-transform: none; }
.plans__note { margin-top: 28px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@keyframes planIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Configurator ---------- */
.configurator { display: grid; grid-template-columns: 1.4fr 1fr; }
.configurator__controls { padding: 32px 32px 36px; }
.configurator__summary { padding: 32px; display: flex; flex-direction: column; background: var(--panel-2); border-left: 1px solid var(--line); }

.region-picker { margin: 0 0 32px; padding: 0; border: 0; min-width: 0; }
.region-picker legend { padding: 0; margin-bottom: 12px; }
.region-picker__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.region-opt {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel);
  transition: border-color .2s, background .2s;
}
.region-opt:hover { border-color: var(--text); }
.region-opt input { position: absolute; opacity: 0; pointer-events: none; }
.region-opt b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.region-opt small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.region-opt__flag { flex: none; width: 26px; height: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.region-opt__flag svg { width: 100%; height: 100%; }
.region-opt__dot { margin-left: auto; width: 7px; height: 7px; flex: none; background: var(--accent); opacity: 0; transition: opacity .2s; }
.region-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); box-shadow: inset 0 0 0 1px var(--accent); }
.region-opt:has(input:checked) .region-opt__dot { opacity: 1; }
.region-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.range + .range { margin-top: 26px; }
.range__label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.range__label output { font-family: var(--mono); font-size: 14px; color: var(--text); }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; cursor: pointer; border-radius: 0;
  background: linear-gradient(var(--accent), var(--accent)) 0 / var(--fill, 0%) 100% no-repeat, var(--line-strong);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 1px;
  background: var(--panel); border: 2px solid var(--accent);
}
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 1px; background: var(--panel); border: 2px solid var(--accent); }

.configurator__summary ul { list-style: none; padding: 0; margin: 16px 0 28px; display: grid; font-size: 14px; }
.configurator__summary li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.configurator__summary li span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.configurator__summary li b { font-weight: 500; text-align: right; }
.configurator__price { display: flex; align-items: baseline; gap: 6px; margin-top: auto; }
.configurator__price strong { font-size: 48px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.configurator__price span { color: var(--muted); }
.configurator__summary small { display: block; margin: 8px 0 22px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- OS images ---------- */
.os-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.os {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 22px 20px;
  border-top: 1px solid var(--line); transition: background .2s;
}
.os:nth-child(-n+6) { border-top: 0; }
.os:not(:nth-child(6n+1)) { border-left: 1px solid var(--line); }
.os:hover { background: var(--panel-2); }
.os b { font-weight: 600; font-size: 15px; }
.os small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.os__badge {
  width: 32px; height: 32px; display: grid; place-items: center; margin-bottom: 14px;
  border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 14px; color: var(--accent);
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { margin: 0; padding: 28px; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 28px; font-size: 17px; line-height: 1.6; flex: 1; }
.quote blockquote::before { content: ""; display: block; width: 7px; height: 7px; margin-bottom: 18px; background: var(--accent); }
.quote figcaption { padding-top: 16px; border-top: 1px solid var(--line); }
.quote figcaption b { display: block; font-weight: 600; }
.quote figcaption small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 500; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 16px; color: var(--muted);
  transition: transform .25s var(--ease), color .2s, border-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); border-color: var(--accent); }
.faq details p { padding: 0 22px 22px; color: var(--muted); max-width: 680px; }

/* ---------- Footer ---------- */
.footer { --bg: var(--ink-900); padding: 72px 0 28px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer__brand p { margin: 16px 0 20px; max-width: 280px; font-size: 15px; color: var(--muted); }
.footer h4 { margin-bottom: 18px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer__grid > div:not(.footer__brand) { display: flex; flex-direction: column; gap: 10px; }
.footer__grid a:not(.logo) { font-size: 15px; color: var(--text); opacity: .85; transition: opacity .2s; }
.footer__grid a:not(.logo):hover { opacity: 1; color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px;
  border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.footer__bottom a:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .os-grid { grid-template-columns: repeat(4, 1fr); }
  .os:nth-child(n) { border-top: 1px solid var(--line); border-left: 0; }
  .os:nth-child(-n+4) { border-top: 0; }
  .os:not(:nth-child(4n+1)) { border-left: 1px solid var(--line); }
  .footer__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .hide-sm { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 40;
    flex-direction: column; gap: 0; padding: 8px 24px 24px;
    background: var(--ink-900); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav > a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav .nav__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
  .nav .nav__cta .btn { padding: 0 18px; color: var(--text); }
  .nav .nav__cta .btn--primary { color: var(--accent-ink); }

  .hero { padding-top: 56px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 64px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(n) { border-top: 1px solid var(--line); border-left: 0; }
  .feature:nth-child(-n+2) { border-top: 0; }
  .feature:nth-child(2n) { border-left: 1px solid var(--line); }
  .configurator { grid-template-columns: 1fr; }
  .configurator__summary { border-left: 0; border-top: 1px solid var(--line); }
  .quotes { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hide-xs { display: none; }
  .hero__cta .btn { flex: 1 1 100%; }
  .terminal__body { font-size: 12px; padding: 16px; min-height: 260px; }
  .stat { padding: 22px 16px 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .feature:first-child { border-top: 0; }
  .plans { grid-template-columns: 1fr; }
  .pricing-controls { flex-direction: column; align-items: flex-start; }
  .os-grid { grid-template-columns: repeat(2, 1fr); }
  .os:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .os:nth-child(-n+2) { border-top: 0; }
  .os:nth-child(2n) { border-left: 1px solid var(--line); }
  .region-picker__options { grid-template-columns: 1fr; }
  .configurator__controls, .configurator__summary { padding: 24px 18px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
