/* =========================================================================
   Super Lambda — design system
   Dark, premium hosting aesthetic. Self-contained (system fonts, no CDN).
   ========================================================================= */

:root {
  /* palette */
  --bg:        #0a0e1a;
  --bg-2:      #0f1424;
  --surface:   #141a2e;
  --surface-2: #1b2340;
  --border:    #26304f;
  --border-2:  #313c63;

  --text:      #eef1f8;
  --muted:     #9aa6c4;
  --faint:     #8b95ba;   /* meets WCAG AA (4.5:1) on our dark surfaces */

  --brand:     #7c6cff;   /* lambda violet */
  --brand-2:   #9d8cff;
  --accent:    #2ee6c8;   /* mint/cyan */
  --accent-2:  #29c7d6;
  --warn:      #ffcf5c;
  --danger:    #ff6b6b;
  --success:   #37d399;

  --grad: linear-gradient(135deg, #7c6cff 0%, #29c7d6 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,108,255,.18), rgba(41,199,214,.14));

  /* type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* spacing */
  --space-section: 56px;
  --space-section-tight: 40px;
  --space-section-adjacent: 28px;
  --space-section-head: 32px;
  --space-hero-top: 72px;
  --space-hero-bottom: 40px;

  /* geometry */
  --radius:   14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw: 1160px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, .3);
  --ring: 0 0 0 3px rgba(124, 108, 255, .65);

  /* semantic theme tokens (dark defaults) */
  --header-bg: rgba(10, 14, 26, .72);
  --glow-brand: rgba(124, 108, 255, .16);
  --glow-accent: rgba(41, 199, 214, .12);
  --hover-surface: rgba(255, 255, 255, .04);
  --nav-active-bg: rgba(124, 108, 255, .14);
  --mega-hover-bg: rgba(124, 108, 255, .1);
  --term-bg: #070a14;
  --term-text: #b9c4e6;
  --pre-bg: #070a14;
  --pre-text: #b9c4e6;
  --on-brand: #0a0e1a;
  --cfg-bar-bg: rgba(10, 14, 26, .92);
  --cfg-bar-shadow: 0 -8px 32px rgba(0, 0, 0, .35);
  --eyebrow-bg: rgba(46, 230, 200, .08);
  --eyebrow-border: rgba(46, 230, 200, .25);
  --btn-primary-shadow: 0 10px 26px rgba(124, 108, 255, .35);
  --btn-primary-shadow-hover: 0 14px 34px rgba(124, 108, 255, .5);
  --brand-mark-shadow: 0 6px 18px rgba(124, 108, 255, .4);
  --form-error-bg: rgba(255, 107, 107, .12);
  --form-error-border: rgba(255, 107, 107, .4);
  --form-error-text: #ffb3b3;
  --form-success-bg: rgba(55, 211, 153, .12);
  --form-success-border: rgba(55, 211, 153, .4);
  --form-success-text: #97efc9;
  --tip-btn-bg: rgba(255, 255, 255, .06);
  --meta-theme: #0a0e1a;
}

html { color-scheme: dark; }

html[data-theme="light"] {
  color-scheme: light;

  --bg:        #f7f8fc;
  --bg-2:      #eef1f8;
  --surface:   #ffffff;
  --surface-2: #f0f2f8;
  --border:    #d8deeb;
  --border-2:  #c5cee0;

  --text:      #141a2e;
  --muted:     #5a6680;
  --faint:     #6b758c;

  --brand:     #6a5cff;
  --brand-2:   #5b4de6;
  --accent:    #0d9e88;
  --accent-2:  #1a9fb0;
  --warn:      #c98a00;
  --danger:    #d64545;
  --success:   #1a9e6e;

  --grad: linear-gradient(135deg, #6a5cff 0%, #1a9fb0 100%);
  --grad-soft: linear-gradient(135deg, rgba(106, 92, 255, .1), rgba(26, 159, 176, .08));

  --shadow: 0 18px 50px rgba(20, 26, 46, .08);
  --shadow-sm: 0 6px 20px rgba(20, 26, 46, .06);
  --ring: 0 0 0 3px rgba(106, 92, 255, .35);

  --header-bg: rgba(247, 248, 252, .88);
  --glow-brand: rgba(106, 92, 255, .1);
  --glow-accent: rgba(26, 159, 176, .08);
  --hover-surface: rgba(20, 26, 46, .05);
  --nav-active-bg: rgba(106, 92, 255, .12);
  --mega-hover-bg: rgba(106, 92, 255, .08);
  --term-bg: #eef1f8;
  --term-text: #3d4a66;
  --pre-bg: #eef1f8;
  --pre-text: #3d4a66;
  --on-brand: #ffffff;
  --cfg-bar-bg: rgba(247, 248, 252, .95);
  --cfg-bar-shadow: 0 -8px 32px rgba(20, 26, 46, .08);
  --eyebrow-bg: rgba(13, 158, 136, .1);
  --eyebrow-border: rgba(13, 158, 136, .28);
  --btn-primary-shadow: 0 10px 26px rgba(106, 92, 255, .22);
  --btn-primary-shadow-hover: 0 14px 34px rgba(106, 92, 255, .32);
  --brand-mark-shadow: 0 6px 18px rgba(106, 92, 255, .28);
  --form-error-bg: rgba(214, 69, 69, .1);
  --form-error-border: rgba(214, 69, 69, .35);
  --form-error-text: #b83232;
  --form-success-bg: rgba(26, 158, 110, .1);
  --form-success-border: rgba(26, 158, 110, .35);
  --form-success-text: #157a52;
  --tip-btn-bg: rgba(20, 26, 46, .06);
  --meta-theme: #f7f8fc;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

/* subtle ambient glow behind the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 12% -5%, var(--glow-brand), transparent 60%),
    radial-gradient(55% 50% at 100% 0%, var(--glow-accent), transparent 55%),
    var(--bg);
}

img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--text); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; color: var(--muted); }

main { flex: 1 0 auto; min-width: 0; max-width: 100%; overflow-x: clip; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; min-width: 0; }
.grid > * { min-width: 0; }
.section { padding: var(--space-section) 0; }
.section--tight { padding: var(--space-section-tight) 0; }
.hero + .stats-bar { margin-top: 0; }
.stats-bar + .section,
.stats-bar + .section--tight { padding-top: var(--space-section-tight); }
.hero + .section,
.hero + .section--tight { padding-top: var(--space-section-tight); }
.section + .section,
.section + .section--tight,
.section--tight + .section,
.section--tight + .section--tight { padding-top: var(--space-section-adjacent); }
.section:has(+ .section),
.section:has(+ .section--tight),
.section--tight:has(+ .section),
.section--tight:has(+ .section--tight) { padding-bottom: var(--space-section-adjacent); }
.center { text-align: center; }
.muted { color: var(--muted); }
.mx-auto { margin-left: auto; margin-right: auto; }
.maxw-640 { max-width: 640px; }
.maxw-760 { max-width: 760px; }
.mono { font-family: var(--mono); }

/* accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--ring); border-radius: 8px; }
/* forced-colors mode strips box-shadow — fall back to a real outline */
@media (forced-colors: active) { :focus-visible { outline-color: Highlight; box-shadow: none; } }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------------------- eyebrow / badges --------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  background: var(--eyebrow-bg);
  border: 1px solid var(--eyebrow-border);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.badge--brand { background: var(--grad); color: var(--on-brand); }
.badge--soft  { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

/* -------------------------------- buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap; min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--grad); color: var(--on-brand); box-shadow: var(--btn-primary-shadow); }
.btn--primary:hover { color: var(--on-brand); box-shadow: var(--btn-primary-shadow-hover); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { color: var(--text); border-color: var(--brand); background: rgba(124,108,255,.08); }
.btn--light { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn--light:hover { color: var(--text); border-color: var(--brand-2); }
.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* --------------------------------- header -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
.nav {
  display: flex; align-items: center; gap: 18px;
  height: 66px; max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  overflow: visible;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.16rem; letter-spacing: -.02em; color: var(--text);
}
.brand:hover { color: var(--text); }
.brand__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); color: var(--on-brand); font-weight: 900; font-size: 1.15rem;
  box-shadow: var(--brand-mark-shadow);
}
.brand__mark span { transform: translateY(-1px); }

.nav__menu { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 18px; margin-left: 8px; overflow: visible; }
.nav__links { display: flex; align-items: center; gap: 2px; overflow: visible; position: relative; }
.nav__link {
  color: var(--muted); font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 9px;
}
.nav__link:hover { color: var(--text); background: var(--hover-surface); }
.nav__link.is-active { color: var(--text); background: var(--nav-active-bg); }

.nav__item { position: relative; }
.nav__trigger,
.nav__direct {
  display: inline-flex; align-items: center; gap: 5px;
  font: inherit; font-weight: 600; font-size: .92rem;
  color: var(--muted); background: none; border: none; cursor: pointer;
  padding: 8px 11px; border-radius: 9px; white-space: nowrap;
}
.nav__direct { display: none; }
.nav__trigger:hover,
.nav__direct:hover { color: var(--text); background: var(--hover-surface); }
.nav__item.is-active > .nav__trigger,
.nav__item.is-active > .nav__direct { color: var(--text); background: var(--nav-active-bg); }
.nav__item.is-open > .nav__trigger { color: var(--text); background: var(--nav-active-bg); }
.nav__chevron { width: 12px; height: 12px; opacity: .7; transition: transform .2s ease; }
.nav__item.is-open .nav__chevron { transform: rotate(180deg); }

.nav__item::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px;
}

.mega__panel--item {
  position: absolute; left: 50%; top: calc(100% + 2px);
  transform: translateX(-50%) translateY(8px);
  min-width: 680px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  z-index: 120;
  padding-top: 8px;
}
.mega__host {
  display: none;
}
.mega__inner {
  position: relative;
  display: flex; flex-direction: column; gap: 0;
  min-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (min-width: 1025px) {
  .mega__panel--item { display: none; }
  .mega__host {
    display: block;
    position: absolute;
    left: 0;
    top: calc(100% + 2px);
    z-index: 120;
    padding-top: 8px;
    pointer-events: none;
  }
  .mega__host::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 16px;
  }
  .mega__host.is-open { pointer-events: auto; }
  .mega__panel--shared {
    position: relative;
    left: auto;
    right: auto;
    width: 880px;
    min-width: 880px;
    max-width: min(880px, calc(100vw - 44px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }
  .mega__host.is-open .mega__panel--shared {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .mega__panel--shared .mega__inner {
    width: 100%;
    min-width: 0;
  }
}
.mega__inner::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad);
  pointer-events: none;
}
.mega__header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--hover-surface) 0%, transparent 100%);
}
.mega__eyebrow {
  margin: 0 0 4px;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.mega__tagline {
  margin: 0;
  font-size: .92rem; font-weight: 600; color: var(--text); line-height: 1.4;
}
.mega__header-cta {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  font-size: .84rem; font-weight: 700; color: var(--brand-2);
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s ease;
  white-space: nowrap;
}
.mega__header-cta svg { width: 12px; height: 12px; transition: transform .15s ease; }
.mega__header-cta:hover {
  color: var(--text); border-color: var(--brand);
  background: var(--mega-hover-bg);
  transform: translateX(2px);
}
.mega__header-cta:hover svg { transform: translateX(2px); }
.mega__body {
  display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 0;
  padding: 8px 12px 12px;
}
.mega__col {
  padding: 12px 14px;
  min-width: 0;
}
.mega__col + .mega__col {
  border-left: 1px solid var(--border);
}
.mega__col-title {
  margin: 0 0 8px; padding: 0 6px 8px;
  font-size: .7rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
  border-bottom: 1px solid var(--border);
}
.mega__col-links { display: flex; flex-direction: column; gap: 4px; }
.mega__link {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: inherit; border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.mega__link:hover {
  background: var(--mega-hover-bg); color: var(--text);
  border-color: var(--border-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.mega__link:focus-visible {
  outline: none; box-shadow: var(--ring);
  border-color: var(--brand);
}
.mega__link--featured {
  background: var(--grad-soft);
  border-color: var(--border-2);
}
.mega__link--featured:hover {
  border-color: var(--brand);
}
.mega__link-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border-2);
  color: var(--brand);
  transition: transform .15s ease, border-color .15s ease, color .15s ease;
}
.mega__link:hover .mega__link-icon {
  transform: scale(1.05);
  border-color: var(--brand);
}
.mega__link-icon--brand { color: var(--brand); background: rgba(124, 108, 255, .12); }
.mega__link-icon--accent { color: var(--accent); background: rgba(46, 230, 200, .1); }
.mega__link-icon--success { color: var(--success); background: rgba(55, 211, 153, .1); }
.mega__link-icon--warn { color: var(--warn); background: rgba(255, 207, 92, .1); }
html[data-theme="light"] .mega__link-icon--brand { background: rgba(106, 92, 255, .1); }
html[data-theme="light"] .mega__link-icon--accent { background: rgba(13, 158, 136, .1); }
html[data-theme="light"] .mega__link-icon--success { background: rgba(26, 158, 110, .1); }
html[data-theme="light"] .mega__link-icon--warn { background: rgba(201, 138, 0, .1); }
.mega__link-icon svg { width: 20px; height: 20px; display: block; }
.mega__link-body { min-width: 0; flex: 1; }
.mega__link-label {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-weight: 700; color: var(--text); font-size: .93rem; line-height: 1.3;
}
.mega__link-desc { display: block; font-size: .79rem; color: var(--faint); margin-top: 3px; line-height: 1.45; }
.mega__badge {
  display: inline-block; font-size: .62rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; line-height: 1.4;
}
.mega__badge--popular { background: var(--grad); color: var(--on-brand); }
.mega__badge--new { background: rgba(46, 230, 200, .15); color: var(--accent); border: 1px solid rgba(46, 230, 200, .3); }
.mega__badge--live { background: rgba(55, 211, 153, .15); color: var(--success); border: 1px solid rgba(55, 211, 153, .3); }
.mega__badge--soft { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
html[data-theme="light"] .mega__badge--new { background: rgba(13, 158, 136, .1); border-color: rgba(13, 158, 136, .25); }
html[data-theme="light"] .mega__badge--live { background: rgba(26, 158, 110, .1); border-color: rgba(26, 158, 110, .25); }
.mega__footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  padding: 14px 26px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.mega__footer-link {
  font-size: .82rem; font-weight: 600; color: var(--muted);
  transition: color .15s ease;
}
.mega__footer-link:hover { color: var(--brand-2); }
.mega__footer-link + .mega__footer-link::before {
  content: "·";
  margin-right: 20px;
  color: var(--border-2);
  pointer-events: none;
}
.mega__footer-link:first-child::before { content: none; margin: 0; }

.nav__auth { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__auth .btn { padding: 9px 16px; }

.nav__toggle {
  display: none; width: 44px; height: 44px; min-width: 44px; border-radius: 10px; margin-left: auto;
  background: var(--surface); border: 1px solid var(--border); cursor: pointer;
  color: var(--text); align-items: center; justify-content: center; flex-shrink: 0;
}
.nav__toggle svg { width: 22px; height: 22px; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--muted); cursor: pointer; flex-shrink: 0;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--brand); background: var(--hover-surface); }
.theme-toggle:focus-visible { outline: none; box-shadow: var(--ring); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle__icon--moon { display: none; }
html[data-theme="light"] .theme-toggle__icon--sun { display: none; }
html[data-theme="light"] .theme-toggle__icon--moon { display: block; }

@media (max-width: 1100px) and (min-width: 1025px) {
  .nav__trigger, .nav__direct { font-size: .86rem; padding: 8px 8px; }
  .mega__panel--shared {
    width: 800px;
    min-width: 800px;
    max-width: min(800px, calc(100vw - 44px));
  }
  .mega__panel--shared .mega__body { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}

@media (max-width: 1024px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; left: 0; right: 0; top: 66px;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; margin: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 16px 16px 22px; box-shadow: var(--shadow);
    transform: translateY(-160%); transition: transform .28s ease, visibility .28s ease; z-index: 90;
    max-height: calc(100vh - 66px); overflow-x: hidden; overflow-y: auto;
    visibility: hidden;
  }
  .nav.is-open .nav__menu { transform: translateY(0); visibility: visible; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; }
  .nav__item { border-bottom: 1px solid var(--border); padding-bottom: 4px; min-width: 0; width: 100%; }
  .nav__trigger { width: 100%; justify-content: space-between; padding: 12px 8px; font-size: 1rem; min-height: 44px; }
  .mega__link { padding: 12px 14px; min-height: 44px; }
  .mega__panel--item {
    position: static; left: auto; right: auto; width: 100%;
    transform: none !important; min-width: 0; opacity: 1; visibility: hidden;
    max-height: 0; overflow: hidden; pointer-events: none;
    padding-top: 0;
    transition: max-height .32s ease, visibility .32s ease;
  }
  .nav__item.is-open .mega__panel--item {
    visibility: visible; pointer-events: auto; max-height: 1200px; margin-bottom: 8px;
    transform: none !important;
  }
  .mega__inner {
    min-width: 0; width: 100%; max-width: 100%;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: none;
  }
  .mega__inner::before { display: none; }
  .mega__header {
    flex-direction: column; gap: 12px;
    padding: 16px 16px 12px;
  }
  .mega__header-cta { align-self: flex-start; }
  .mega__body {
    grid-template-columns: 1fr; gap: 0;
    padding: 4px 8px 8px;
  }
  .mega__col { padding: 8px 8px; }
  .mega__col + .mega__col {
    border-left: none;
    border-top: 1px solid var(--border);
    margin-top: 4px; padding-top: 12px;
  }
  .mega__footer {
    flex-direction: column; align-items: flex-start; gap: 10px;
    padding: 12px 16px;
  }
  .mega__footer-link + .mega__footer-link::before { content: none; margin: 0; }
  .mega__col, .mega__link { min-width: 0; max-width: 100%; }
  .mega__link:hover { transform: none; box-shadow: none; }
  .mega__link-label, .mega__link-desc { overflow-wrap: anywhere; word-break: break-word; }
  .nav__auth { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border); }
  .nav__auth .btn { width: 100%; }
  .nav__end { flex-direction: column; align-items: stretch; width: 100%; gap: 12px; }
  .theme-toggle { align-self: flex-start; }
  .nav__item:last-of-type { border-bottom: none; }
}

/* --------------------------------- hero ---------------------------------- */
.hero { position: relative; padding: var(--space-hero-top) 0 var(--space-hero-bottom); max-width: 100%; overflow-x: clip; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start;
  min-width: 0;
}
.hero__grid > * { min-width: 0; }
.hero h1 {
  margin-bottom: 18px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}
.hero h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__leads { max-width: min(52ch, 100%); margin-bottom: 4px; }
.hero__lead {
  font-size: 1.1rem; max-width: 100%; line-height: 1.65;
  overflow-wrap: break-word; word-wrap: break-word;
}
.hero__lead + .hero__lead { margin-top: -0.25rem; }
.hero__lead strong { color: var(--text); font-weight: 700; }
.hero__aside {
  display: flex; flex-direction: column; gap: 24px; min-width: 0;
}
.hero__cta { margin-top: 4px; }

.hero__panel {
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow);
  min-width: 0; max-width: 100%;
}
.term {
  background: var(--term-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  font-family: var(--mono); font-size: clamp(0.72rem, 2.4vw, 0.86rem);
}
.term__bar { display: flex; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.term__bar i:nth-child(1) { background: #ff5f57; }
.term__bar i:nth-child(2) { background: #febc2e; }
.term__bar i:nth-child(3) { background: #28c840; }
.term__body { padding: 16px; color: var(--term-text); line-height: 1.7; white-space: pre-wrap; }
.term__body .c-green { color: var(--accent); }
.term__body .c-violet { color: var(--brand-2); }
.term__body .c-muted { color: var(--faint); }

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__leads { max-width: none; }
  .hero { padding: 56px 0 32px; }
}

/* --------------------------- section headings ---------------------------- */
.section-head { max-width: 640px; margin: 0 auto var(--space-section-head); text-align: center; }
.section-head--sub { margin-top: 20px; margin-bottom: 24px; }
.section-head p { font-size: 1.06rem; }

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

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .16s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border-2); color: var(--brand);
  margin-bottom: 16px; flex-shrink: 0;
}
.card__icon svg { width: 22px; height: 22px; display: block; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: .96rem; }

/* product split cards (home) */
.product-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; position: relative; overflow: hidden;
}
.product-card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad);
}
.product-card h3 { font-size: 1.5rem; }
.product-card ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.product-card li { color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.product-card li::before { content: "✦"; color: var(--accent); }
.product-card .price-from { margin-top: auto; font-size: .9rem; color: var(--faint); }
.product-card .price-from b { color: var(--text); font-size: 1.7rem; }

/* hero trust line */
.hero-trust {
  margin: 16px 0 0; font-size: .9rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 0;
}
.hero-trust::before { content: ""; }

/* mobile plan cards */
.plan-cards-mobile { display: none; gap: 14px; margin-bottom: 16px; }
.plan-card-mobile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.plan-card-mobile__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px;
}
.plan-card-mobile__head h3 { font-size: 1.1rem; margin: 0; }
.plan-card-mobile__price { font-weight: 800; color: var(--text); white-space: nowrap; }
.plan-card-mobile__specs {
  margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px;
}
.plan-card-mobile__specs li {
  color: var(--muted); font-size: .9rem; display: flex; gap: 8px; align-items: flex-start;
}
.plan-card-mobile__specs li::before { content: "✦"; color: var(--accent); flex-shrink: 0; }

/* control panel mockups */
.panel-showcase {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.panel-mock {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.panel-mock__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border);
  font-size: .82rem; font-weight: 700; color: var(--text);
}
.panel-mock__tag {
  font-size: .72rem; font-weight: 600; color: var(--muted);
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px;
}
.panel-mock__body { padding: 12px 16px 16px; display: grid; gap: 10px; }
.panel-mock__row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  font-size: .82rem; color: var(--muted);
}
.panel-mock__row b { color: var(--text); font-weight: 600; font-size: .8rem; }
.panel-mock__ok { color: var(--accent); font-weight: 700; font-size: .75rem; }
.panel-mock__deny { color: var(--warn); font-weight: 700; font-size: .75rem; }
.panel-mock__muted { color: var(--faint); font-weight: 600; font-size: .75rem; }
.panel-mock__hint { font-size: .75rem; color: var(--faint); margin-top: 4px; }

/* stats bar */
.stats-bar {
  background: var(--surface); border-block: 1px solid var(--border);
  padding: 20px 0;
}
.stats-bar__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stats-bar__item b {
  display: block; font-size: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -.02em;
}
.stats-bar > .container { padding-inline: 0; }
.stats-bar__item span { font-size: .88rem; color: var(--faint); }

/* world map placeholder */
.map-section { position: relative; }
.world-map {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 20px 28px; overflow: hidden;
  min-height: 280px;
}
.world-map::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(124,108,255,.12) 0%, transparent 72%);
  pointer-events: none;
}
.world-map svg {
  width: 100%; height: auto; max-height: 400px; display: block;
  margin: 0 auto; opacity: .5; color: var(--muted);
}
.world-map__bg { display: none; }
.world-map__dots { position: absolute; inset: 24px 20px 28px; pointer-events: none; }
.map-dot {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(46,230,200,.25), 0 0 20px rgba(46,230,200,.5);
  transform: translate(-50%, -50%);
  z-index: 2; pointer-events: auto; cursor: pointer; border: none; padding: 0;
}
.map-dot.is-active {
  background: #fff; box-shadow: 0 0 0 5px rgba(46,230,200,.45), 0 0 28px rgba(46,230,200,.7);
  transform: translate(-50%, -50%) scale(1.15);
}
.map-dot__label {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%); white-space: nowrap;
  font-size: .72rem; font-weight: 700; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border-2);
  padding: 4px 8px; border-radius: 6px; opacity: 0;
  pointer-events: none; transition: opacity .15s ease;
}
.map-dot:hover .map-dot__label,
.map-dot:focus-visible .map-dot__label,
.map-dot.is-active .map-dot__label { opacity: 1; }
.map-dot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(46,230,200,.4); animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}
.map-legend {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px;
}
.map-legend--cities { justify-content: flex-start; }
.chip--loc { min-height: 36px; }
.chip--loc.is-active {
  border-color: var(--accent); background: rgba(46,230,200,.08);
  box-shadow: 0 0 0 1px rgba(46,230,200,.25);
}
.loc-spec-table tr.is-highlight td { background: rgba(124,108,255,.08); }
.loc.is-highlight { border-color: var(--accent); background: rgba(46,230,200,.06); }
.loc-spec-table { min-width: 880px; }
.loc-spec-table td:first-child { font-weight: 700; color: var(--text); white-space: nowrap; }
.map-footnote { text-align: center; margin-top: 16px; font-size: .85rem; }

/* awards */
.awards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.award {
  text-align: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 18px;
  transition: transform .16s ease, border-color .2s ease;
}
.award:hover { transform: translateY(-3px); border-color: var(--border-2); }
.award__badge {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; color: var(--brand);
  background: var(--grad-soft); border: 1px solid var(--border-2);
}
.award__badge svg { width: 28px; height: 28px; display: block; }
.award h3 { font-size: .95rem; margin-bottom: 6px; }
.award p { font-size: .82rem; margin: 0; }

/* devops */
.devops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.devops-list { display: grid; gap: 18px; }
.devops-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
}
.devops-item__icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; color: var(--brand);
  background: var(--grad-soft); border: 1px solid var(--border-2);
}
.devops-item__icon svg { width: 20px; height: 20px; display: block; }
.devops-item h3 { font-size: 1rem; margin-bottom: 4px; }
.devops-item p { margin: 0; font-size: .9rem; }
.devops-visual {
  background: var(--grad-soft); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
}
.pipeline {
  display: grid; gap: 12px; font-family: var(--mono); font-size: .82rem;
}
.pipeline__step {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
}
.pipeline__step i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0;
}
.pipeline__step span { color: var(--muted); }
.pipeline__step b { color: var(--text); margin-left: auto; font-weight: 600; }

/* hero promo strip */
.hero-promo {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(124,108,255,.12); border: 1px solid rgba(124,108,255,.35);
  border-radius: 999px; padding: 8px 16px; margin-bottom: 16px; font-size: .88rem;
  max-width: 100%;
}
.hero-promo__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(124,108,255,.2); color: var(--brand-2);
}
.hero-promo__icon svg { width: 14px; height: 14px; display: block; }
.hero-promo strong { color: var(--brand-2); }
.eyebrow { max-width: 100%; }

/* product cards 3-up */
.grid--3-products { grid-template-columns: repeat(3, 1fr); }
.pricing-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; position: relative; transition: transform .16s ease, border-color .2s ease;
}
.plan:hover { transform: translateY(-4px); border-color: var(--brand); }
.plan--featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.plan--featured::before {
  content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: var(--on-brand); font-size: .72rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.plan__name { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.plan .badge + .plan__name { margin-top: 10px; }
.plan__price { margin: 12px 0 2px; font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 900; letter-spacing: -.03em; }
.plan__price span { font-size: .95rem; font-weight: 600; color: var(--faint); }
.plan__note { font-size: .82rem; color: var(--faint); margin-bottom: 18px; }
.plan__specs { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 11px; border-top: 1px solid var(--border); padding-top: 18px; }
.plan__specs li { display: flex; justify-content: space-between; gap: 14px; font-size: .92rem; color: var(--muted); }
.plan__specs li b { color: var(--text); font-weight: 700; }
.plan .btn { margin-top: auto; }

/* -------------------------------- tables --------------------------------- */
.table-wrap {
  width: 100%; min-width: 0; max-width: 100%;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: var(--radius);
}
table.pricing-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.pricing-table th, .pricing-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.pricing-table thead th { background: var(--surface-2); color: var(--text); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.pricing-table tbody tr:hover { background: rgba(124,108,255,.05); }
.pricing-table td:last-child, .pricing-table th:last-child { text-align: right; }
.pricing-table .price { font-weight: 800; color: var(--text); white-space: nowrap; }
.pricing-table .plan-name { font-weight: 700; color: var(--text); }

/* --------------------------------- specs --------------------------------- */
.spec-row { display: flex; gap: 12px; flex-wrap: wrap; }
.spec-row--center { justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 13px; font-size: .84rem; color: var(--muted);
}
.chip__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 18px; height: 18px; color: var(--brand);
}
.chip__icon svg { width: 14px; height: 14px; display: block; }
.chip b { color: var(--text); }

/* ------------------------------- locations ------------------------------- */
.region { margin-bottom: 28px; }
.region__title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.region__title h2,
.region__title h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.region__title .count { font-size: .8rem; color: var(--faint); }
.loc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.loc-grid > * { min-width: 0; }
.loc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; align-items: center; gap: 14px; min-width: 0;
  transition: transform .16s ease, border-color .2s ease;
}
.loc > div { min-width: 0; }
.loc:hover { transform: translateY(-3px); border-color: var(--brand); }
.loc__flag { font-size: 1.9rem; line-height: 1; }
.loc__name { font-weight: 700; color: var(--text); }
.loc__meta { font-size: .8rem; color: var(--faint); }
.loc__tech { font-size: .75rem; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.loc__ping { margin-left: auto; font-size: .72rem; color: var(--success); display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.loc__ping i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(55,211,153,.2); flex-shrink: 0; }
.loc__ping.is-pending i { animation: latency-pulse 1.2s ease-in-out infinite; }

.latency--good { color: var(--success); }
.latency--ok { color: var(--warn); }
.latency--high { color: var(--danger); }
.latency--pending { color: var(--faint); }

.latency-badge {
  font-size: .68rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-left: 6px;
  opacity: .9;
}
.chip--loc .latency-badge { margin-left: auto; }

.latency-you { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

@keyframes latency-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* --------------------------------- forms --------------------------------- */
.auth-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 48px 22px; }
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-card > p { margin-bottom: 24px; }

.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; max-width: 100%; font: inherit; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: var(--ring); }
.field .hint { font-size: .78rem; color: var(--faint); margin-top: 6px; }

.form-msg { display: none; padding: 12px 15px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 16px; }
.form-msg.is-error { display: block; background: var(--form-error-bg); border: 1px solid var(--form-error-border); color: var(--form-error-text); }
.form-msg.is-success { display: block; background: var(--form-success-bg); border: 1px solid var(--form-success-border); color: var(--form-success-text); }

/* dashboard subscriptions list */
.sub-list { display: grid; gap: 12px; margin-top: 8px; }
.sub-row {
  display: grid; grid-template-columns: 1.6fr 1fr 1.4fr auto; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
}
.sub-row__price { font-weight: 700; color: var(--text); }
@media (max-width: 640px) {
  .sub-row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .sub-row__renews { grid-column: 1 / -1; }
}

/* order confirmation page */
.order-card { display: grid; gap: 20px; }
.order-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.order-card__title { margin: 8px 0 4px; font-size: 1.5rem; }
.order-card__price { text-align: right; white-space: nowrap; }
.order-card__price b { font-size: 1.9rem; letter-spacing: -.02em; }
.order-card__price span { color: var(--faint); font-size: .95rem; }
.order-card__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.order-card__meta dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 4px; }
.order-card__meta dd { margin: 0; color: var(--text); font-weight: 600; }
.order-card__meta dd.mono { font-weight: 500; font-size: .85rem; word-break: break-all; }
@media (max-width: 640px) {
  .order-card__meta { grid-template-columns: 1fr; }
  .order-card__price { text-align: left; }
}

/* Reserve space for the JS-injected header/footer to prevent layout shift (CLS). */
#site-header { display: block; min-height: 66px; }
#site-footer { display: block; min-height: 200px; }

/* dashboard quick actions */
.quick-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

/* small button + warning badge */
.btn--sm { padding: 7px 14px; font-size: .85rem; }
.badge--warn { background: rgba(255, 207, 92, .16); color: var(--warn); border: 1px solid rgba(255, 207, 92, .4); }

/* dashboard service cards */
.service-list { display: grid; gap: 14px; margin-top: 8px; }
.service-card {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
}
.service-card__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.service-card__head h3 { margin: 0; font-size: 1.15rem; }
.service-card__spec { margin: 8px 0 0; font-size: .9rem; }
.service-card__note { margin: 8px 0 0; font-size: .82rem; color: var(--warn); }
.service-card__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.service-card__price b { font-size: 1.25rem; }
.service-card__renews { font-size: .82rem; }
.service-card__actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
@media (max-width: 620px) {
  .service-card { flex-direction: column; }
  .service-card__side { text-align: left; align-items: flex-start; }
}

/* order page: purchased-config spec list + price breakdown */
.order-section { border-top: 1px solid var(--border); padding-top: 18px; }
.order-section__title { font-size: 1.05rem; margin: 0 0 12px; }
.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; margin: 0; }
.spec-list > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.spec-list dt { color: var(--muted); margin: 0; }
.spec-list dd { margin: 0; color: var(--text); font-weight: 600; text-align: right; }
.price-breakdown { display: grid; gap: 2px; }
.pb-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; color: var(--muted); }
.pb-row > span:last-child { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-row--discount > span:last-child { color: var(--success); }
.pb-row--total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 12px; font-weight: 800; }
.pb-row--total > span:last-child { font-size: 1.05rem; }
@media (max-width: 620px) { .spec-list { grid-template-columns: 1fr; } }

.auth-alt { margin-top: 20px; text-align: center; font-size: .92rem; color: var(--muted); }

/* --------------------------------- misc ---------------------------------- */
.cta {
  background: var(--grad-soft); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 48px; text-align: center;
}
.cta h2 { margin-bottom: 10px; }
.cta p { max-width: 52ch; margin-inline: auto; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.prose h2 { margin-top: 40px; font-size: 1.5rem; }
.prose h3 { margin-top: 26px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 700; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose .updated { color: var(--faint); font-size: .9rem; margin-bottom: 1.25rem; }
.prose .eyebrow { margin-bottom: 14px; }
.prose pre { background: var(--pre-bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: .85rem; color: var(--pre-text); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }
.prose pre code { background: none; padding: 0; }

/* utilities */
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.content-subhead { margin-bottom: 16px; font-size: clamp(1.25rem, 3vw, 1.5rem); }
.content-subhead--spaced { margin: 32px 0 16px; }
.footnote { margin-top: 22px; font-size: .86rem; }
.mt-md { margin-top: 22px; }
.mt-lg { margin-top: 30px; }
.card-stack { display: grid; gap: 18px; }
.error-code {
  font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; letter-spacing: -.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1;
}

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 20px; transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--text); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  user-select: none; transition: color .15s ease; min-height: 44px;
}
.faq summary:hover { color: var(--brand-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 10px; height: 10px;
  border-right: 2px solid var(--brand-2); border-bottom: 2px solid var(--brand-2);
  transform: rotate(45deg); margin-top: -4px; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details > p {
  padding: 12px 0 16px; margin: 0; font-size: .96rem;
  border-top: 1px solid var(--border); color: var(--muted);
}
.faq details > p a { color: var(--brand-2); }
.faq details > p a:hover { color: var(--text); }

/* dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.dash-title { margin-bottom: 4px; }
.dash-subtitle { margin: 0; }
.dash-loading { padding: 80px 0; }
.dash-pending { margin-bottom: 24px; padding: 24px 28px; }
.dash-pending h3 { margin: 10px 0 6px; }
.dash-pending__prices { display: flex; gap: 32px; margin-top: 16px; flex-wrap: wrap; }
.dash-pending__prices span { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dash-pending__prices b { font-size: 1.25rem; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-size: 1.9rem; letter-spacing: -.02em; }
.stat span { color: var(--faint); font-size: .85rem; }
.empty-state { text-align: center; padding: 48px; border: 1px dashed var(--border-2); border-radius: var(--radius); }
.empty-state .card__icon { margin-bottom: 14px; }

/* API docs */
.api-method { display: inline-block; font-family: var(--mono); font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: 3px 9px; border-radius: 6px; margin-right: 8px; }
.api-method.get { background: rgba(46,230,200,.14); color: var(--accent); border: 1px solid rgba(46,230,200,.3); }
.api-method.post { background: rgba(124,108,255,.16); color: var(--brand-2); border: 1px solid rgba(124,108,255,.35); }
.api-endpoint {
  display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .95rem;
  color: var(--text); margin: 26px 0 8px; padding-top: 20px; border-top: 1px solid var(--border);
}
.prose h2 + .api-endpoint { border-top: none; padding-top: 0; margin-top: 16px; }

/* --------------------------------- footer -------------------------------- */
.site-footer { flex-shrink: 0; width: 100%; min-width: 0; border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 32px; overflow-x: clip; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 34px;
  width: 100%; min-width: 0;
  padding: 56px 0 34px; max-width: var(--maxw); margin: 0 auto; padding-inline: 22px;
}
.footer__grid > * { min-width: 0; }
.footer__brand p { font-size: .92rem; max-width: 32ch; margin-top: 14px; }
.footer__col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__col a { color: var(--muted); font-size: .92rem; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border); padding: 20px 22px; max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--faint); font-size: .86rem;
}

/* --------------------------- tabs & spec detail -------------------------- */
.tabs { margin-bottom: 28px; }
.tab-list {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
  padding: 6px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; width: fit-content; max-width: 100%;
}
.tab-list button {
  font: inherit; font-weight: 700; font-size: .9rem;
  padding: 10px 20px; border-radius: 999px; border: none; cursor: pointer;
  background: transparent; color: var(--muted); min-height: 44px;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.tab-list button:hover { color: var(--text); background: var(--hover-surface); }
.tab-list button.is-active {
  background: var(--grad); color: var(--on-brand);
  box-shadow: var(--btn-primary-shadow);
}
.tab-panel { animation: tab-fade .25s ease; }
.tab-panel[hidden] { display: none !important; }
@keyframes tab-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.spec-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.spec-detail-grid > * { min-width: 0; }
.spec-detail {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.spec-detail dt { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.spec-detail dd { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--text); }

.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.compare-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; position: relative;
}
.compare-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.compare-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.compare-card li { color: var(--muted); font-size: .94rem; display: flex; gap: 10px; }
.compare-card li::before { content: "✓"; color: var(--accent); font-weight: 800; }

.os-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.os-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 16px; font-size: .88rem; font-weight: 600; color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
.os-chip:hover { border-color: var(--brand); transform: translateY(-2px); }

.feature-deep {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 36px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 22px;
}
.feature-deep:nth-child(even) { direction: rtl; }
.feature-deep:nth-child(even) > * { direction: ltr; }
.feature-deep__visual {
  background: var(--grad-soft); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 28px; min-height: 200px;
  display: grid; place-items: center; text-align: center;
}
.feature-deep__stat { font-size: 2.8rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature-deep__label { color: var(--faint); font-size: .9rem; margin-top: 6px; }

.grid--2-products { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-inline: auto; }

.dc-infra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dc-infra-grid > * { min-width: 0; }
.dc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .16s ease, border-color .2s ease;
}
.dc-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.dc-card h3 { font-size: 1rem; margin-bottom: 8px; }
.dc-card p { margin: 0; font-size: .9rem; }

.loc-detail {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-top: 12px;
}
.loc-detail dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin: 12px 0 0; }
.loc-detail dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.loc-detail dd { margin: 0; font-size: .9rem; color: var(--text); font-weight: 600; }

.pricing-table--wide { min-width: 960px; }
.pricing-table .spec-yes { color: var(--accent); font-weight: 700; }

.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.support-card {
  text-align: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px;
}
.support-card__icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; color: var(--brand);
  background: var(--grad-soft); border: 1px solid var(--border-2);
}
.support-card__icon svg { width: 24px; height: 24px; display: block; }

.dc-card h3,
.region__title h2,
.region__title h3 {
  display: flex; align-items: center; gap: 10px;
}
.heading-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--grad-soft); border: 1px solid var(--border-2); color: var(--brand);
}
.heading-icon svg { width: 17px; height: 17px; display: block; }

.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
  html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

.section-divider {
  border: none; border-top: 1px solid var(--border); margin: 32px 0;
}

.anchor-target { scroll-margin-top: 88px; }

/* --------------------------- configurator page --------------------------- */

.cfg-page { padding-bottom: 140px; overflow: visible; }
.cfg-page > .container { max-width: 1240px; }
.cfg-page .card:hover { transform: none; }
.cfg-layout, .cfg-main { overflow: visible; }
body.has-cfg-bar #site-footer { padding-bottom: 120px; }

.cfg-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  font-size: .88rem; color: var(--muted); margin-bottom: 24px;
}
.cfg-breadcrumb a {
  color: var(--brand); padding: 6px 2px; margin: -6px -2px;
  min-height: 36px; display: inline-flex; align-items: center;
}
.cfg-breadcrumb a:hover { text-decoration: underline; }

.cfg-header { padding: 28px; margin-bottom: 20px; }
.cfg-header__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; flex-wrap: wrap; margin-bottom: 18px;
}
.cfg-header__title { font-size: 1.65rem; margin: 10px 0 6px; }
.cfg-header__price { text-align: right; }
.cfg-header__from { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cfg-header__amount { font-size: 1.75rem; font-weight: 700; color: var(--accent); }
.cfg-header__amount small { font-size: .95rem; font-weight: 500; color: var(--muted); }

.cfg-specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px; padding-top: 16px; border-top: 1px solid var(--border);
}

.cfg-spec span { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.cfg-spec b { font-size: .92rem; font-weight: 600; }

.cfg-section { padding: 24px 28px; margin-bottom: 16px; overflow: visible; }
.cfg-section:has(.cfg-dd.is-open) { position: relative; z-index: 20; }
.cfg-section__head { margin-bottom: 18px; }
.cfg-section__head h2 { font-size: 1.15rem; margin-bottom: 4px; }
.cfg-section__title { display: inline-flex; align-items: center; gap: 6px; }
.cfg-section__head p { font-size: .9rem; margin: 0; line-height: 1.5; }

.cfg-grid-2 {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px; margin-bottom: 14px;
}
.cfg-grid-2:last-child { margin-bottom: 0; }
.cfg-grid-2 > .cfg-field { margin-top: 0; }

.cfg-check {
  position: absolute; top: 10px; right: 10px;
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); color: #fff;
}

.cfg-term-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.cfg-term {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 22px 16px; border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg); cursor: pointer; text-align: center;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.cfg-term input { position: absolute; opacity: 0; pointer-events: none; }
.cfg-term:hover {
  border-color: rgba(124, 108, 255, .45);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}
.cfg-term.is-selected {
  border-color: var(--brand); background: rgba(124, 108, 255, .06);
  box-shadow: 0 0 0 1px rgba(124, 108, 255, .18);
}
.cfg-term__months { font-weight: 600; font-size: 1rem; margin-bottom: 8px; }
.cfg-term__price { font-size: 1.35rem; font-weight: 700; color: var(--text); }
.cfg-term__price small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.cfg-term__badge {
  margin-top: 8px; font-size: .72rem; font-weight: 600;
  color: var(--accent); background: rgba(46, 230, 200, .12);
  padding: 3px 8px; border-radius: 999px;
}
.cfg-term__setup { margin-top: 6px; font-size: .78rem; color: var(--muted); }

.cfg-region-list { display: flex; flex-direction: column; gap: 10px; }
.cfg-region {
  position: relative; display: flex; align-items: center;
  padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg); cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.cfg-region input { position: absolute; opacity: 0; pointer-events: none; }
.cfg-region:hover {
  border-color: rgba(124, 108, 255, .45);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}
.cfg-region.is-selected {
  border-color: var(--brand); background: rgba(124, 108, 255, .06);
  box-shadow: 0 0 0 1px rgba(124, 108, 255, .18);
}
.cfg-region__flag {
  font-size: 1.45rem; line-height: 1; flex-shrink: 0; margin-right: 12px;
}
.cfg-region__body { flex: 1; min-width: 0; padding-right: 28px; }
.cfg-region__name { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.cfg-region__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cfg-region__latency {
  font-size: .78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cfg-region__price { font-size: .84rem; color: var(--muted); white-space: nowrap; }

.cfg-field { margin-top: 0; margin-bottom: 10px; }
.cfg-field:last-child { margin-bottom: 0; }
.cfg-field--conditional { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.cfg-label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 8px; }
.cfg-label-row { display: inline-flex; align-items: center; gap: 5px; }

.cfg-input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text); font-size: .95rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.cfg-input:hover { border-color: rgba(124, 108, 255, .45); }
.cfg-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(124, 108, 255, .25); }

.cfg-dd { position: relative; max-width: 520px; }
.cfg-dd--full { max-width: none; }
.cfg-dd.is-open { z-index: 30; }
.cfg-dd__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text); font-size: .95rem; font-family: inherit;
  cursor: pointer; text-align: left; transition: border-color .2s, box-shadow .2s;
}
.cfg-dd__trigger:hover {
  border-color: rgba(124, 108, 255, .45);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}
.cfg-dd.is-open .cfg-dd__trigger {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(124, 108, 255, .18);
}
.cfg-dd__value {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cfg-dd__chevron { flex-shrink: 0; color: var(--muted); transition: transform .2s; }
.cfg-dd.is-open .cfg-dd__chevron { transform: rotate(180deg); color: var(--brand-2); }
.cfg-dd__menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); max-height: 280px; overflow-y: auto; padding: 6px;
  -webkit-overflow-scrolling: touch;
}
.cfg-dd__menu.is-floating { position: fixed; right: auto; z-index: 210; }
.cfg-dd__option {
  display: block; width: 100%; padding: 10px 12px; border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--text); font-size: .92rem; font-family: inherit;
  text-align: left; cursor: pointer; transition: background .15s, color .15s;
}
.cfg-dd__option:hover,
.cfg-dd__option:focus-visible { background: rgba(124, 108, 255, .1); outline: none; }
.cfg-dd__option:focus-visible { box-shadow: inset 0 0 0 2px var(--brand); }
.cfg-dd__option.is-selected {
  background: rgba(124, 108, 255, .15); color: var(--brand-2); font-weight: 600;
}

.cfg-tip { position: relative; display: inline-flex; vertical-align: middle; }
.cfg-tip__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; padding: 0; border: none; border-radius: 50%;
  background: var(--tip-btn-bg); color: var(--muted); cursor: help;
  transition: color .15s, background .15s;
}
.cfg-tip__btn:hover,
.cfg-tip__btn:focus-visible { color: var(--brand-2); background: rgba(124, 108, 255, .15); outline: none; }
.cfg-tip__btn svg { display: block; }
.cfg-tip__panel {
  position: absolute; z-index: 50; left: 50%; bottom: calc(100% + 8px);
  transform: translateX(-50%); width: min(280px, 70vw);
  padding: 10px 12px; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-size: .78rem; font-weight: 400;
  line-height: 1.45; box-shadow: var(--shadow-sm); text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s, visibility .15s;
}
.cfg-tip__panel::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--border-2);
}
.cfg-tip.is-open .cfg-tip__panel,
.cfg-tip:focus-within .cfg-tip__panel { opacity: 1; visibility: visible; }
@media (hover: hover) {
  .cfg-tip:hover .cfg-tip__panel { opacity: 1; visibility: visible; }
}

.cfg-cat-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 16px; padding: 6px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
}
.cfg-cat-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--muted);
  font-size: .85rem; font-weight: 500; font-family: inherit;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.cfg-cat-tab__icon { width: 15px; height: 15px; flex-shrink: 0; opacity: .8; }
.cfg-cat-tab__flag { font-size: 1.05rem; line-height: 1; flex-shrink: 0; }
.cfg-cat-tab__flags {
  display: inline-flex; align-items: center; gap: 1px; flex-shrink: 0;
}
.cfg-cat-tab__flags .cfg-cat-tab__flag { font-size: .92rem; }
.cfg-cat-tab:hover { color: var(--text); background: var(--hover-surface); }
.cfg-cat-tab.is-active {
  background: var(--brand); color: #fff; border-color: transparent;
  box-shadow: 0 2px 10px rgba(124, 108, 255, .35);
}
.cfg-cat-tab.is-active .cfg-cat-tab__icon { opacity: 1; }

.cfg-os-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px;
}
.cfg-os {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 14px 44px 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg); cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.cfg-os input { position: absolute; opacity: 0; pointer-events: none; }
.cfg-os:hover {
  border-color: rgba(124, 108, 255, .45);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}
.cfg-os.is-selected {
  border-color: var(--brand); background: rgba(124, 108, 255, .06);
  box-shadow: 0 0 0 1px rgba(124, 108, 255, .18);
}
.cfg-os__logo {
  flex-shrink: 0; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px; background: var(--surface);
  border: 1px solid var(--border); overflow: hidden;
}
.cfg-os__logo svg { width: 26px; height: 26px; display: block; }
.cfg-os__body { flex: 1; min-width: 0; }
.cfg-os__name {
  display: block; font-weight: 600; font-size: .9rem;
  line-height: 1.3; margin-bottom: 4px;
}
.cfg-os__price { display: block; font-size: .8rem; color: var(--muted); }
.cfg-os__price.is-paid { color: var(--accent); font-weight: 500; }
.cfg-os .cfg-check {
  top: 50%; right: 14px; transform: translateY(-50%);
}

.cfg-addon-list { display: flex; flex-direction: column; gap: 10px; }
.cfg-addon {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 14px 40px 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg); cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.cfg-addon input { position: absolute; opacity: 0; pointer-events: none; }
.cfg-addon:hover {
  border-color: rgba(124, 108, 255, .45);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}
.cfg-addon.is-selected {
  border-color: var(--brand); background: rgba(124, 108, 255, .06);
  box-shadow: 0 0 0 1px rgba(124, 108, 255, .18);
}
.cfg-addon__icon {
  flex-shrink: 0; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px; background: var(--surface);
  border: 1px solid var(--border); color: var(--brand);
}
.cfg-addon__icon svg { width: 22px; height: 22px; display: block; }
.cfg-addon__body { flex: 1; min-width: 0; }
.cfg-addon__name { display: block; font-weight: 600; font-size: .92rem; }
.cfg-addon__desc { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.cfg-addon__price { font-size: .88rem; color: var(--accent); white-space: nowrap; font-weight: 500; }

.cfg-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--cfg-bar-bg); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); box-shadow: var(--cfg-bar-shadow);
}
.cfg-bar__inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 16px 24px; min-height: 72px;
}
.cfg-bar__config { flex: 1; min-width: 180px; }
.cfg-bar__label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.cfg-bar__summary {
  font-size: .88rem; color: var(--text); line-height: 1.45;
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0;
}
.cfg-bar__summary-part { display: inline; }
.cfg-bar__summary-part:not(:last-child)::after {
  content: "·"; margin: 0 7px; color: var(--muted); font-weight: 400;
}
.cfg-bar__actions {
  display: flex; align-items: center; gap: 20px; flex-shrink: 0;
}
.cfg-bar__prices { display: flex; gap: 24px; flex-wrap: wrap; }
.cfg-bar__price { text-align: center; min-width: 72px; }
.cfg-bar__price span { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.cfg-bar__price b { font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.cfg-bar__price--due b { color: var(--accent); font-size: 1.25rem; }
.cfg-bar__ctas { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cfg-bar__share {
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0; min-width: 0; white-space: nowrap;
}
.cfg-bar__share-icon { flex-shrink: 0; opacity: .85; }
.cfg-bar__cta { flex-shrink: 0; min-width: 140px; }

.pricing-table .btn--sm {
  padding: 6px 12px; font-size: .78rem; white-space: nowrap;
}

/* ------------------------------ responsive ------------------------------- */
/* Placed after all component rules so breakpoint overrides win the cascade. */

/* Large desktop (1440px+) */
@media (min-width: 1440px) {
  :root { --maxw: 1200px; --space-section: 64px; }
}

/* Tablet & below shared (≤1024px) */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .grid--2, .pricing-grid { grid-template-columns: 1fr; }
  .grid--3-products { grid-template-columns: 1fr; }
  .grid--2-products { grid-template-columns: 1fr; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .devops-grid { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .footer__brand { grid-column: 1 / -1; }
  .spec-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr; }
  .feature-deep { grid-template-columns: 1fr; direction: ltr !important; padding: 28px 22px; }
  .feature-deep:nth-child(even) { direction: ltr !important; }
  .dc-infra-grid { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .world-map { min-height: 240px; }
}

/* Medium mobile (480–768px) */
@media (max-width: 768px) {
  .cfg-page { padding-bottom: 200px; }
  body.has-cfg-bar #site-footer { padding-bottom: 180px; }

  .cfg-breadcrumb { font-size: .92rem; margin-bottom: 16px; }
  .cfg-header { padding: 22px 20px; margin-bottom: 16px; }
  .cfg-header__top { gap: 16px; margin-bottom: 18px; }
  .cfg-header__title { font-size: 1.5rem; }
  .cfg-header__amount { font-size: 1.55rem; }
  .cfg-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; padding-top: 16px; }
  .cfg-spec span { font-size: .82rem; margin-bottom: 5px; }
  .cfg-spec b { font-size: 1rem; }

  .cfg-section { padding: 20px 18px; margin-bottom: 14px; }
  .cfg-section__head { margin-bottom: 14px; }
  .cfg-grid-2 { grid-template-columns: 1fr; gap: 12px; }
  .cfg-term-grid { grid-template-columns: 1fr; gap: 10px; }
  .cfg-term { padding: 20px 18px; min-height: 48px; }
  .cfg-cat-tab { padding: 10px 14px; min-height: 44px; font-size: .86rem; }
  .cfg-cat-tab__icon { width: 16px; height: 16px; }
  .cfg-cat-tab__flag { font-size: 1.1rem; }
  .cfg-cat-tab__flags .cfg-cat-tab__flag { font-size: .98rem; }
  .cfg-region { padding: 16px; min-height: 56px; }
  .cfg-region__flag { font-size: 1.55rem; margin-right: 14px; }
  .cfg-dd { max-width: 100%; }
  .cfg-dd__trigger { padding: 14px 16px; min-height: 48px; }
  .cfg-dd__option { padding: 12px 14px; min-height: 44px; }
  .cfg-os-grid { grid-template-columns: 1fr; gap: 10px; }
  .cfg-os { padding: 16px 44px 16px 16px; min-height: 56px; gap: 12px; }
  .cfg-os__logo { width: 42px; height: 42px; }
  .cfg-os__logo svg { width: 28px; height: 28px; }
  .cfg-addon { padding: 16px; min-height: 56px; gap: 12px; }
  .cfg-addon__icon { width: 42px; height: 42px; }
  .cfg-addon__icon svg { width: 24px; height: 24px; }

  .cfg-bar__inner {
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 14px 16px;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
  }
  .cfg-bar__config { min-width: 0; }
  .cfg-bar__summary { font-size: .9rem; }
  .cfg-bar__actions {
    flex-direction: column; align-items: stretch; gap: 12px; width: 100%;
  }
  .cfg-bar__prices {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px; width: 100%;
  }
  .cfg-bar__price { min-width: 0; text-align: center; }
  .cfg-bar__price span { font-size: .68rem; letter-spacing: .05em; }
  .cfg-bar__price b { font-size: 1.05rem; }
  .cfg-bar__price--due b { font-size: 1.15rem; }
  .cfg-bar__ctas {
    display: flex; flex-direction: row; align-items: stretch;
    gap: 10px; width: 100%;
  }
  .cfg-bar__share {
    min-height: 48px; padding-left: 16px; padding-right: 16px;
    justify-content: center;
  }
  .cfg-bar__cta {
    flex: 1; width: auto; min-width: 0; min-height: 48px;
    justify-content: center; text-align: center;
  }

  .cfg-header__top { flex-direction: column; }
  .cfg-header__price { text-align: left; }
  .container { padding: 0 16px; }
  .nav { padding: 0 16px; }
  .section { padding: 44px 0; }
  .section--tight { padding: 32px 0; }
  .stats-bar + .section,
  .stats-bar + .section--tight,
  .hero + .section,
  .hero + .section--tight { padding-top: 32px; }
  .section + .section,
  .section + .section--tight,
  .section--tight + .section,
  .section--tight + .section--tight { padding-top: 24px; }
  .section:has(+ .section),
  .section:has(+ .section--tight),
  .section--tight:has(+ .section),
  .section--tight:has(+ .section--tight) { padding-bottom: 24px; }
  .hero h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer__brand { grid-column: 1 / -1; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .stat-grid { grid-template-columns: 1fr; }
  .cta { padding: 34px 22px; }
  .plan--featured::before { top: -10px; }
  .pricing-table th, .pricing-table td { padding: 12px 14px; font-size: .85rem; }
  .product-card { padding: 24px 20px; }
  .panel-showcase { grid-template-columns: 1fr; }
  .plan-cards-mobile { display: grid; }
  .table-wrap[data-plan-set] { display: none; }
  .card { padding: 22px 20px; }
  .auth-card { padding: 28px 22px; }
  .form-card { padding: 24px 20px; }
  .hero-promo { font-size: .82rem; padding: 8px 14px; }
  .btn-row .btn--lg { padding: 14px 22px; }
  .loc { flex-wrap: wrap; gap: 10px; padding: 16px; }
  .loc__ping { margin-left: 0; }
  .world-map { min-height: 200px; padding: 16px 12px 20px; }
  .world-map__dots { inset: 16px 12px 20px; }
  .map-dot { width: 12px; height: 12px; }
  .map-dot.is-active { transform: translate(-50%, -50%) scale(1.1); }
  .map-legend { gap: 8px; }
  .chip--loc { font-size: .8rem; padding: 8px 12px; min-height: 40px; }
  .dash-head { flex-direction: column; align-items: flex-start; }
}

/* Small mobile (<480px) */
@media (max-width: 480px) {
  .cfg-page { padding-bottom: 210px; }
  body.has-cfg-bar #site-footer { padding-bottom: 190px; }
  .cfg-breadcrumb { font-size: .9rem; gap: 4px 8px; }
  .cfg-header { padding: 18px 16px; }
  .cfg-header__title { font-size: 1.35rem; }
  .cfg-specs { gap: 14px 12px; }
  .cfg-spec span { font-size: .8rem; }
  .cfg-spec b { font-size: .95rem; }
  .cfg-section { padding: 18px 16px; }
  .cfg-bar__summary { font-size: .85rem; line-height: 1.4; }
  .cfg-bar__price span { font-size: .64rem; }
  .cfg-bar__price b { font-size: 1rem; }
  .cfg-bar__price--due b { font-size: 1.1rem; }

  .container { padding: 0 16px; }
  .nav { padding: 0 16px; gap: 12px; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .grid--4 { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: 1fr; }
  .stats-bar__grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .spec-detail-grid { grid-template-columns: 1fr; }
  .dc-infra-grid { grid-template-columns: 1fr; }
  .loc-detail dl { grid-template-columns: 1fr; }
  .tab-list { width: 100%; border-radius: var(--radius); }
  .tab-list button { flex: 1; padding: 10px 12px; font-size: .82rem; }
  .hero { padding: 44px 0 28px; }
  .hero h1 { font-size: clamp(1.7rem, 8.5vw, 2.1rem); }
  .hero .btn-row { flex-direction: column; align-items: stretch; }
  .hero .btn-row .btn { width: 100%; white-space: normal; }
  .btn-row:not(.btn-row--center) { flex-direction: column; align-items: stretch; }
  .btn-row:not(.btn-row--center) .btn { width: 100%; white-space: normal; }
  .feature-deep { padding: 22px 16px; }
  .feature-deep__stat { font-size: 2.2rem; }
  .plan { padding: 22px 18px; }
  .auth-wrap { padding: 32px 16px; }
  .world-map svg { max-height: 280px; }
  .map-dot { width: 10px; height: 10px; }
  .map-dot__label { font-size: .65rem; padding: 3px 6px; }
  .region__title h2, .region__title h3 { font-size: 1.1rem; }
  .loc__tech { font-size: .72rem; }
}

/* Extra-narrow phones (≤375px) */
@media (max-width: 375px) {
  .container { padding: 0 12px; }
  .cfg-header { padding: 16px 14px; }
  .cfg-section { padding: 16px 14px; }
  .cfg-bar__inner { padding: 12px 12px; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  .cfg-bar__prices { gap: 6px; }
  .cfg-bar__summary-part:not(:last-child)::after { margin: 0 5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
