/* ============================================================
   PrimeCore Registry — site theme (black & orange)
   Dark mode default, light mode via [data-theme="light"]
   ============================================================ */

:root {
  --accent: #ff6b1a;
  --accent-hover: #ff7f38;
  --accent-soft: rgba(255, 107, 26, 0.12);
  --accent-grad: linear-gradient(135deg, #ff6b1a 0%, #ff9142 100%);

  --bg: #0a0a0c;
  --bg-alt: #101014;
  --surface: #141419;
  --surface-2: #1b1b22;
  --border: #26262e;
  --border-strong: #34343e;

  --text: #f2f2f4;
  --text-muted: #9b9ba6;
  --text-faint: #6d6d78;

  --success: #2ecc71;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-sm: 9px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f7f7f9;
  --surface: #ffffff;
  --surface-2: #f2f2f5;
  --border: #e4e4e9;
  --border-strong: #d2d2da;
  --text: #16161a;
  --text-muted: #55555f;
  --text-faint: #8a8a94;
  --shadow: 0 8px 30px rgba(20, 20, 30, 0.08);
  --accent-soft: rgba(255, 107, 26, 0.1);
}

* { box-sizing: border-box; }

/* Elements with the hidden attribute must never be shown,
   even when they have their own display rules (modals, chat, alerts) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img, svg { vertical-align: middle; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.18s ease; white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 4px 16px rgba(255, 107, 26, 0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(255, 107, 26, 0.45); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: var(--accent-soft); color: var(--accent); }
.btn-ghost:hover { background: rgba(255, 107, 26, 0.2); }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; transition: all 0.18s ease;
  font-size: 18px;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; color: var(--text); }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand-accent { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
  padding: 8px 13px; border-radius: 8px; font-size: 14.5px; font-weight: 500;
  color: var(--text-muted); transition: all 0.15s ease;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--accent); background: var(--accent-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-mobile-actions { display: none; }

/* theme toggle icons */
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

/* hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle-bar { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: all 0.2s ease; }
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; }
.section-sub { color: var(--text-muted); font-size: 17px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 0 90px;
  background:
    radial-gradient(ellipse 60% 50% at 70% 10%, rgba(255, 107, 26, 0.13), transparent),
    radial-gradient(ellipse 50% 40% at 20% 90%, rgba(255, 107, 26, 0.07), transparent);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 20px;
}
.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat .stat-value { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--text); }
.hero-stat .stat-label { font-size: 13.5px; color: var(--text-faint); }

/* hero terminal card */
.hero-visual { position: relative; }
.terminal-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; font-size: 13.5px;
}
.terminal-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; } .term-dot.y { background: #febc2e; } .term-dot.g { background: #28c840; }
.terminal-title { margin-left: 8px; color: var(--text-faint); font-size: 12.5px; }
.terminal-body { padding: 18px 20px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; line-height: 1.85; }
.term-line { color: var(--text-muted); }
.term-line .prompt { color: var(--accent); }
.term-line .ok { color: var(--success); }
.term-line .val { color: var(--text); }

.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.18);
}

/* ---------- Feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; transition: all 0.2s ease;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent);
}
.feature-icon svg { width: 23px; height: 23px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px; margin: 0 auto 44px;
}
.billing-toggle button {
  border: 0; background: transparent; color: var(--text-muted);
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 8px 20px; border-radius: 999px; cursor: pointer; transition: all 0.18s ease;
}
.billing-toggle button.active { background: var(--accent-grad); color: #fff; }
.billing-toggle .save-tag { font-size: 12px; opacity: 0.85; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: all 0.2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.price-card.popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.popular-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent-grad); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; padding: 4px 16px; border-radius: 999px; text-transform: uppercase;
}
.plan-name { font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.plan-for { font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 22px; }
.plan-price .amount { font-family: var(--font-head); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.plan-price .period { color: var(--text-faint); font-size: 14px; }
.plan-specs { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; font-size: 14.5px; }
.plan-specs li { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.plan-specs li strong { color: var(--text); font-weight: 600; }
.plan-specs .spec-check { color: var(--accent); flex: none; }
.price-card .btn { margin-top: auto; }

/* ---------- Data centers ---------- */
.dc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.dc-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 32px; transition: all 0.2s ease;
}
.dc-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.dc-flag { font-size: 38px; line-height: 1; margin-bottom: 16px; }
.dc-card h3 { font-size: 21px; margin-bottom: 4px; }
.dc-city { color: var(--text-muted); font-size: 14.5px; margin-bottom: 20px; }
.dc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--text-muted);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 999px;
}
.badge-pill.online { color: var(--success); }
.dc-ping { position: absolute; top: 30px; right: 30px; text-align: right; }
.dc-ping .ping-value { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--accent); }
.dc-ping .ping-label { font-size: 12px; color: var(--text-faint); }

/* ---------- Trust / security strip ---------- */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 28px 32px;
}
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.trust-item strong { display: block; font-size: 14.5px; }
.trust-item span { font-size: 12.5px; color: var(--text-faint); }

/* ---------- CTA ---------- */
.cta-box {
  text-align: center; padding: 70px 40px;
  background:
    radial-gradient(ellipse 55% 90% at 50% -20%, rgba(255, 107, 26, 0.16), transparent),
    var(--surface);
  border: 1px solid var(--border); border-radius: 20px;
}
.cta-box h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 12px; }
.cta-box p { color: var(--text-muted); max-width: 520px; margin: 0 auto 30px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 56px; text-align: center;
  background: radial-gradient(ellipse 50% 80% at 50% -30%, rgba(255, 107, 26, 0.12), transparent);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; }
.page-hero p { color: var(--text-muted); font-size: 17px; max-width: 620px; margin: 0 auto; }

/* ---------- Location picker ---------- */
.loc-picker { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.loc-option {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius-sm); padding: 10px 20px; cursor: pointer;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 500; color: var(--text-muted);
  transition: all 0.18s ease;
}
.loc-option:hover { border-color: var(--border-strong); color: var(--text); }
.loc-option.selected { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.loc-option .flag { font-size: 19px; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 760px; }
.compare-table th, .compare-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table thead th { font-family: var(--font-head); font-size: 14px; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover { background: var(--surface-2); }
.compare-table .t-price { font-family: var(--font-head); font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ---------- Configurator ---------- */
.config-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.config-panel { display: grid; gap: 26px; }
.config-group {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px;
}
.config-group h3 { font-size: 16.5px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.config-group h3 .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; font-size: 12.5px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
.config-hint { font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }

.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.option-card {
  border: 1px solid var(--border); background: var(--bg); border-radius: var(--radius-sm);
  padding: 14px 16px; cursor: pointer; text-align: left;
  font-family: var(--font-body); color: var(--text); transition: all 0.15s ease;
}
.option-card:hover { border-color: var(--border-strong); }
.option-card.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.option-card .opt-title { display: block; font-weight: 600; font-size: 14.5px; }
.option-card .opt-sub { display: block; font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.option-card .opt-price { display: block; font-size: 12.5px; color: var(--accent); font-weight: 600; margin-top: 6px; }

/* sliders */
.slider-row { display: grid; gap: 8px; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; }
.slider-head label { font-weight: 600; font-size: 14.5px; }
.slider-value { font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: 17px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: var(--surface-2); outline: none; border: 1px solid var(--border);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-grad); cursor: pointer; border: 3px solid var(--bg);
  box-shadow: 0 2px 8px rgba(255, 107, 26, 0.5);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--accent);
  cursor: pointer; border: 3px solid var(--bg);
}
.slider-marks { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-faint); }

/* checkbox add-ons */
.addon-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; cursor: pointer; transition: all 0.15s ease; background: var(--bg);
}
.addon-row:hover { border-color: var(--border-strong); }
.addon-row.selected { border-color: var(--accent); background: var(--accent-soft); }
.addon-row input { accent-color: var(--accent); width: 17px; height: 17px; }
.addon-info { flex: 1; }
.addon-info strong { font-size: 14.5px; display: block; }
.addon-info span { font-size: 12.5px; color: var(--text-faint); }
.addon-price { font-weight: 600; color: var(--accent); font-size: 14px; white-space: nowrap; }

/* summary */
.summary-card {
  position: sticky; top: 92px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 26px 28px; box-shadow: var(--shadow);
}
.summary-card h3 { font-size: 17px; margin-bottom: 18px; }
.summary-lines { display: grid; gap: 10px; margin-bottom: 18px; font-size: 14px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; color: var(--text-muted); }
.summary-line .s-val { color: var(--text); font-weight: 500; text-align: right; }
.summary-divider { border: 0; border-top: 1px solid var(--border); margin: 4px 0 14px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.summary-total .total-label { font-size: 14px; color: var(--text-muted); }
.summary-total .total-value { font-family: var(--font-head); font-size: 34px; font-weight: 700; color: var(--accent); }
.summary-total .total-period { font-size: 13px; color: var(--text-faint); }
.summary-note { font-size: 12px; color: var(--text-faint); text-align: center; margin: 12px 0 0; }

/* ---------- Support page ---------- */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 60px; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: 14.5px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 14px; outline: none; transition: border-color 0.15s ease; width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 130px; }

/* ---------- Knowledge base ---------- */
.kb-search { max-width: 560px; margin: 0 auto 50px; position: relative; }
.kb-search input {
  width: 100%; font-size: 15.5px; font-family: var(--font-body); color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 15px 24px 15px 52px; outline: none; transition: all 0.18s ease; box-shadow: var(--shadow);
}
.kb-search input:focus { border-color: var(--accent); }
.kb-search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--text-faint); }

.kb-cat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all 0.2s ease; }
.kb-cat:hover { border-color: var(--accent); transform: translateY(-3px); }
.kb-cat h3 { font-size: 17px; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.kb-cat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.kb-cat li a { color: var(--text-muted); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.kb-cat li a:hover { color: var(--accent); }
.kb-cat .article-count { margin-top: 16px; font-size: 12.5px; color: var(--text-faint); }

/* ---------- Chat widget ---------- */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.chat-fab {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent-grad); color: #fff;
  box-shadow: 0 6px 24px rgba(255, 107, 26, 0.45);
  display: flex; align-items: center; justify-content: center; transition: transform 0.18s ease;
}
.chat-fab:hover { transform: scale(1.07); }
.chat-panel {
  width: 340px; max-width: calc(100vw - 44px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.chat-panel-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.chat-panel-header strong { font-size: 14.5px; display: block; }
.chat-status { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-faint); }
.chat-messages { padding: 16px; display: grid; gap: 10px; max-height: 300px; overflow-y: auto; }
.chat-msg { padding: 10px 14px; border-radius: 12px; font-size: 13.5px; max-width: 85%; }
.chat-msg-agent { background: var(--surface-2); border: 1px solid var(--border); justify-self: start; }
.chat-msg-user { background: var(--accent-grad); color: #fff; justify-self: end; }
.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input-row input {
  flex: 1; font-family: var(--font-body); font-size: 13.5px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; outline: none;
}
.chat-input-row input:focus { border-color: var(--accent); }

/* ---------- Form error ---------- */
.form-error {
  display: flex; align-items: center; gap: 9px;
  background: rgba(231, 76, 60, 0.1); border: 1px solid rgba(231, 76, 60, 0.45);
  color: #e74c3c; font-size: 13.5px; font-weight: 500;
  border-radius: var(--radius-sm); padding: 11px 14px;
}
.form-error svg { flex: none; }
.form-error.shake { animation: shakeX 0.4s ease; }
@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

/* ---------- Modal (VIP request) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  overflow-y: auto;
}
.modal-box {
  width: 100%; max-width: 620px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); animation: modalIn 0.22s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 24px 26px 18px; border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 19px; }
.req-summary { display: grid; gap: 8px; padding: 20px 26px; }
.req-summary-row {
  display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px;
  color: var(--text-muted);
}
.req-summary-row strong { color: var(--text); font-weight: 600; text-align: right; }
.req-summary-total { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.req-summary-total strong { color: var(--accent); font-family: var(--font-head); font-size: 16px; }
.req-success { text-align: center; padding: 44px 30px 40px; }
.req-success-icon {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-grad); color: #fff; font-size: 30px; font-weight: 700;
  box-shadow: 0 6px 24px rgba(255, 107, 26, 0.4);
}
.req-success h3 { font-size: 21px; }
.req-success p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 22px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 60px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-grid > div { display: grid; gap: 10px; align-content: start; }
.footer-heading { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 6px; }
.footer-grid a { color: var(--text-muted); font-size: 14px; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand { gap: 14px !important; }
.footer-tagline { color: var(--text-muted); font-size: 14px; max-width: 300px; margin: 0; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--border); padding-top: 24px;
  font-size: 13px; color: var(--text-faint);
}
.footer-locations { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 22px; bottom: 22px; z-index: 250;
  max-width: 420px; width: calc(100vw - 44px);
  display: grid; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px;
  animation: modalIn 0.3s ease;
}
.cookie-text { display: grid; gap: 5px; font-size: 13.5px; color: var(--text-muted); }
.cookie-text strong { color: var(--text); font-size: 14.5px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1; }

/* ---------- Auth tabs / success alerts ---------- */
.auth-tabs {
  display: flex; gap: 4px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 4px; margin-bottom: 24px;
}
.auth-tab {
  flex: 1; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  color: var(--text-muted); padding: 9px 12px; border-radius: 7px; transition: all 0.18s ease;
}
.auth-tab.active { background: var(--accent-grad); color: #fff; }
.form-success {
  background: rgba(46, 204, 113, 0.1); border: 1px solid rgba(46, 204, 113, 0.45);
  color: var(--success); font-size: 13.5px; border-radius: var(--radius-sm); padding: 12px 15px;
}

/* ---------- Prose (legal & KB articles) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 20px; margin: 34px 0 10px; }
.prose p { color: var(--text-muted); font-size: 15px; }
.prose strong { color: var(--text); }
.prose code {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 1.5px 6px; font-size: 13px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.prose pre {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 15px 18px; overflow-x: auto; margin: 14px 0 18px;
}
.prose pre code { background: none; border: 0; padding: 0; color: var(--text); line-height: 1.7; }
.prose kbd {
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; font-size: 12.5px;
}

/* ---------- Status page ---------- */
.uptime-bars { display: flex; gap: 2.5px; align-items: flex-end; }
.uptime-bars .bar {
  flex: 1; height: 34px; border-radius: 2.5px;
  background: var(--success); opacity: 0.85; min-width: 2px;
}
.uptime-bars .bar.degraded { background: #f39c12; }
.uptime-meta {
  display: flex; justify-content: space-between; margin-top: 9px;
  font-size: 12.5px; color: var(--text-faint);
}
.uptime-meta strong { color: var(--text); }
.status-services { display: grid; gap: 0; }
.status-service {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 2px; border-bottom: 1px solid var(--border); font-size: 14.5px;
}
.status-service:last-child { border-bottom: 0; }
.incident { display: grid; gap: 8px; }
.incident-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.incident-body { color: var(--text-muted); font-size: 14px; margin: 0; }
.incident-date { font-size: 12.5px; color: var(--text-faint); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.hide-mobile { display: inline-flex; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 560px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .config-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 60px; }
  .grid-3, .grid-2, .support-grid { grid-template-columns: 1fr; }
  .dc-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }

  /* mobile nav */
  .nav-toggle { display: inline-flex; }
  .hide-mobile { display: none; }
  .main-nav {
    position: fixed; inset: 68px 0 auto 0; z-index: 99;
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px; box-shadow: var(--shadow); margin: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav .nav-link { padding: 12px 14px; font-size: 16px; }
  .nav-mobile-actions { display: flex; gap: 10px; margin-top: 14px; }
  .nav-mobile-actions .btn { flex: 1; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .grid-4, .trust-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { width: 100%; }
  .dc-ping { position: static; text-align: left; margin-bottom: 14px; }
  .cta-box { padding: 48px 22px; }
}
