/* ==========================================================================
   OneShot VPN — Production Stylesheet
   Brand Board v0.1 + site_prompt.txt Implementation
   Clean, spacious header + restored full-viewport hands + AdBlock tokens
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Theme Variables
   -------------------------------------------------------------------------- */
:root {
  /* Dark theme is the default brand aesthetic (Void) */
  --bg: #090B0F;
  --bg-subtle: #0E1218;
  --surface: #12161D;
  --surface-raised: #171D26;
  --surface-hover: #1E2532;
  --border: #2A313C;
  --border-subtle: #1B212A;

  --text-main: #EEF1F5;       /* Bone */
  --text-muted: #8A94A3;      /* Mist */
  --text-sub: #636F80;

  --accent: #FF5A1F;          /* Muzzle Orange */
  --accent-hover: #FF723F;
  --accent-contrast: #090B0F; /* Void */
  --accent-glow: rgba(255, 90, 31, 0.4);
  --accent-subtle: rgba(255, 90, 31, 0.12);

  --status-ping: #4CC9F0;     /* Ping Cyan */
  --status-ping-subtle: rgba(76, 201, 240, 0.14);

  /* Hero Underglow: Signature OneShot Palette (Muzzle, Amber, Ping — NO green/purple) */
  --hero-glow: linear-gradient(90deg, #FF5A1F 0%, #FF8533 25%, #FFB020 50%, #4CC9F0 75%, #FF5A1F 100%);
  --hero-headline-dim: #8A94A3;
  --canvas-dots: #EEF1F5;

  --nav-bg: rgba(9, 11, 15, 0.78);
  --card-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  --card-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.6);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --font-brand: 'Exo 2', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Light Theme Variables (Bone) */
:root[data-theme="light"] {
  --bg: #EEF1F5;              /* Bone */
  --bg-subtle: #E2E8F0;
  --surface: #FFFFFF;
  --surface-raised: #F8FAFC;
  --surface-hover: #EDF2F7;
  --border: #CBD5E1;
  --border-subtle: #E2E8F0;

  --text-main: #090B0F;       /* Void */
  --text-muted: #4A5260;      /* Mist on light */
  --text-sub: #64748B;

  --accent: #E5470C;          /* Muzzle Ink */
  --accent-hover: #C83C08;
  --accent-contrast: #FFFFFF;
  --accent-glow: rgba(229, 71, 12, 0.35);
  --accent-subtle: rgba(229, 71, 12, 0.1);

  --status-ping: #0284C7;     /* High contrast cyan/sky */
  --status-ping-subtle: rgba(2, 132, 199, 0.12);

  --hero-glow: linear-gradient(90deg, #E5470C 0%, #FF6633 25%, #FFB020 50%, #0284C7 75%, #E5470C 100%);
  --hero-headline-dim: #64748B;
  --canvas-dots: #090B0F;

  --nav-bg: rgba(238, 241, 245, 0.88);
  --card-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --card-shadow-hover: 0 20px 48px rgba(15, 23, 42, 0.14);
}

/* System theme handling via media query when no data-theme override is forced */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #EEF1F5;
    --bg-subtle: #E2E8F0;
    --surface: #FFFFFF;
    --surface-raised: #F8FAFC;
    --surface-hover: #EDF2F7;
    --border: #CBD5E1;
    --border-subtle: #E2E8F0;

    --text-main: #090B0F;
    --text-muted: #4A5260;
    --text-sub: #64748B;

    --accent: #E5470C;
    --accent-hover: #C83C08;
    --accent-contrast: #FFFFFF;
    --accent-glow: rgba(229, 71, 12, 0.35);
    --accent-subtle: rgba(229, 71, 12, 0.1);

    --status-ping: #0284C7;
    --status-ping-subtle: rgba(2, 132, 199, 0.12);

    --hero-glow: linear-gradient(90deg, #E5470C 0%, #FF6633 25%, #FFB020 50%, #0284C7 75%, #E5470C 100%);
    --hero-headline-dim: #64748B;
    --canvas-dots: #090B0F;

    --nav-bg: rgba(238, 241, 245, 0.88);
    --card-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    --card-shadow-hover: 0 20px 48px rgba(15, 23, 42, 0.14);
  }
}

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

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

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img, svg {
  display: block;
  max-width: 100%;
}

::selection {
  background-color: var(--accent);
  color: var(--accent-contrast);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation (Clean, Spacious, Un-crammed)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 32px;
  max-width: 1360px;
  margin: 0 auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  text-decoration: none;
  margin-right: clamp(24px, 4vw, 56px);
  flex-shrink: 0;
}

.brand-mark-svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-badge {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent-contrast);
  background-color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

:root[data-theme="light"] .brand-badge {
  background-color: var(--text-main);
  color: var(--bg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  list-style: none;
  margin: 0 auto 0 0;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Compact, Minimal Language Switcher */
.lang-switch-group {
  display: flex;
  align-items: center;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 2px 3px;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.lang-btn {
  padding: 4px 8px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all 0.2s ease;
  font-weight: 600;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background-color: var(--border);
  color: var(--accent);
}

/* Compact, Single-Button Theme Toggle */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s ease;
  cursor: pointer;
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--text-main);
  color: var(--bg);
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: transform 0.25s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.btn-nav-cta:hover {
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   4. Hero Section & Dot-Matrix Hands Canvas (Restored Visual Centerpiece)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(92vw, 800px);
  margin: 0 auto;
  padding-top: clamp(100px, 15vh, 150px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-meta-badge {
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 0.12em;
  color: var(--status-ping);
  text-transform: uppercase;
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ping-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--status-ping);
  box-shadow: 0 0 8px var(--status-ping);
  animation: pulse-ping 2s infinite ease-in-out;
}

@keyframes pulse-ping {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.hero-headline {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(42px, 5.5vw, 86px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-align: center;
  margin-bottom: 22px;
}

.hero-headline .line-1 {
  display: block;
  color: var(--hero-headline-dim);
  text-shadow: 0 2px 24px var(--bg), 0 0 50px var(--bg);
}

.hero-headline .line-2 {
  display: block;
  color: var(--text-main);
  text-shadow: 0 4px 30px var(--bg), 0 0 70px var(--bg);
}

.hero-subtitle {
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-main);
  opacity: 0.9;
  max-width: 540px;
  margin: 0 auto 36px;
  text-shadow: 0 2px 20px var(--bg), 0 0 40px var(--bg);
}

/* CTA Pill with Signature Brand Underglow */
.cta-wrapper {
  position: relative;
  display: inline-block;
  z-index: 3;
}

.cta-underglow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -6px;
  height: 20px;
  border-radius: 50%;
  background: var(--hero-glow);
  filter: blur(10px);
  opacity: 0.85;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.btn-primary-pill {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--text-main);
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(14px, 1.1vw, 16px);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: transform 0.25s ease, background-color 0.2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cta-wrapper:hover .btn-primary-pill {
  transform: translateY(-2px);
}

.cta-wrapper:hover .cta-underglow {
  opacity: 1;
  filter: blur(14px);
  bottom: -9px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-ghost-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: clamp(14px, 1.1vw, 16px);
  padding: 14px 24px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-ghost-pill:hover {
  background-color: var(--surface-hover);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.hero-micro-metrics {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.micro-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.micro-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   5. Hero Bottom / Partner & Protocol Row (Optimized Modern Stack)
   -------------------------------------------------------------------------- */
.hero-protocols-bar {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-bottom: clamp(24px, 4.5vh, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.protocols-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-sub);
  text-transform: uppercase;
}

.protocols-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.2vw, 48px);
  flex-wrap: wrap;
  padding: 0 20px;
}

.protocol-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
  user-select: none;
}

.protocol-item:hover {
  color: var(--text-main);
}

.protocol-icon-svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   6. Sections General
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(64px, 9vw, 110px) 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(36px, 5.5vw, 60px);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-desc {
  font-size: clamp(15px, 1.2vw, 17.5px);
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. How It Works (3 Simple Steps to Contact)
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.step-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background-color: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.step-title {
  font-family: var(--font-brand);
  font-size: 21px;
  font-weight: 700;
  color: var(--text-main);
}

.step-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. Strict No-Logs Policy Section + Auto AdBlock
   -------------------------------------------------------------------------- */
.nologs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.nologs-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.25s ease;
}

.nologs-card:hover {
  border-color: var(--status-ping);
  transform: translateY(-3px);
}

.nologs-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--status-ping-subtle);
  color: var(--status-ping);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nologs-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 19px;
  color: var(--text-main);
}

.nologs-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. Telegram Bot Showcase
   -------------------------------------------------------------------------- */
.bot-showcase-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.bot-info-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bot-feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bot-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.bot-feature-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--status-ping-subtle);
  color: var(--status-ping);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.bot-feature-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.bot-feature-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.phone-mockup-frame {
  width: 100%;
  max-width: 400px;
  height: 640px;
  margin: 0 auto;
  background-color: var(--surface);
  border: 2px solid var(--border);
  border-radius: 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.phone-header-notch {
  height: 28px;
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-speaker {
  width: 60px;
  height: 4px;
  background-color: var(--border);
  border-radius: 2px;
}

.tg-bot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 12px;
  background-color: var(--surface-raised);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.tg-bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tg-bot-info {
  display: flex;
  flex-direction: column;
}

.tg-bot-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
}

.tg-bot-role {
  font-size: 12px;
  color: var(--text-muted);
}

.tg-chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: var(--bg);
}

.tg-bubble {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
  animation: fadeInBubble 0.25s ease-out;
}

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

.tg-bubble-user {
  align-self: flex-end;
  background-color: var(--border);
  color: var(--text-main);
  border-radius: 16px 16px 4px 16px;
}

.tg-bubble-bot {
  align-self: flex-start;
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 16px 16px 16px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tg-code-box {
  font-family: var(--font-mono);
  font-size: 11px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text-muted);
  word-break: break-all;
  user-select: all;
}

.tg-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--status-ping);
}

.tg-inline-keyboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.tg-btn {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.tg-btn-primary {
  background-color: var(--accent);
  color: var(--accent-contrast);
}

.tg-btn-primary:hover {
  filter: brightness(1.1);
}

.tg-btn-secondary {
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.tg-btn-secondary:hover {
  background-color: var(--border);
}

.tg-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.tg-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background-color: var(--surface-raised);
  border-top: 1px solid var(--border);
}

.tg-input-fake {
  flex: 1;
  height: 38px;
  border-radius: 19px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0 14px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
}

/* --------------------------------------------------------------------------
   10. Tariffs & Pricing (Free Forever + Plans + Auto AdBlock on all)
   -------------------------------------------------------------------------- */
.pricing-placeholder-callout {
  background-color: var(--surface);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  max-width: 860px;
  margin: 0 auto 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}

.pricing-placeholder-callout strong {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Carousel & Overflow Navigation for Tariffs & Configurator
   -------------------------------------------------------------------------- */
.pricing-carousel-container {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.pricing-cards-track {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 32px 6px 24px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-sizing: border-box;
}

.pricing-cards-track::-webkit-scrollbar {
  display: none;
}

.pricing-cards-track .pricing-card {
  flex: 1 1 0;
  min-width: 220px;
  scroll-snap-align: start;
  box-sizing: border-box;
}

@media (max-width: 960px) {
  .pricing-cards-track .pricing-card {
    flex: 0 0 80%;
    min-width: 250px;
  }
}

.carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.carousel-arrow:hover:not(:disabled):not(.disabled) {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: scale(1.08);
}

.carousel-arrow:disabled,
.carousel-arrow.disabled {
  opacity: 0.22;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 768px) {
  .carousel-arrow {
    width: 36px;
    height: 36px;
  }
}

/* Server Configs Selector in Configurator */
.custom-servers-nav-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.servers-carousel-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.servers-carousel-btn:hover:not(:disabled):not(.disabled) {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.08);
  box-shadow: 0 0 12px var(--accent-glow);
}

.servers-carousel-btn:disabled,
.servers-carousel-btn.disabled {
  opacity: 0.22;
  cursor: not-allowed;
  pointer-events: none;
}

.custom-servers-track {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 14px 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.custom-servers-track::-webkit-scrollbar {
  display: none;
}

.server-choice-card {
  flex: 0 0 auto;
  min-width: 200px;
  max-width: 240px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.server-choice-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.server-choice-card.selected {
  background: var(--surface-raised);
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1.5px var(--accent), 0 4px 16px rgba(255, 90, 31, 0.25) !important;
}

.server-choice-card * {
  pointer-events: none;
}

.server-choice-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.server-choice-flag {
  font-size: 26px;
  line-height: 1;
}

.server-choice-check {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  color: transparent;
  transition: all 0.15s ease;
}

.server-choice-card.selected .server-choice-check {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

.server-choice-country {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.server-choice-city {
  font-size: 12px;
  color: var(--text-muted);
}

.server-choice-name {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-choice-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.server-proto-badge {
  background: rgba(255, 90, 31, 0.12);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
}

.pricing-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-muted);
}

/* Free plans get a badge + soft tint only. The highlight OUTLINE belongs to
   the admin's bestseller flag (is_featured) — never inferred from price — so
   deleting and recreating a free plan cannot silently regrow a ring. */
.pricing-card.free-tier {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(76, 201, 240, 0.04) 100%);
}

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-raised) 100%);
  /* Inset ring — a spread shadow paints outside the card box and collides
     with the neighbours in the scroll track. */
  box-shadow: inset 0 0 0 1px var(--accent), 0 12px 32px rgba(255, 90, 31, 0.22);
  z-index: 2;
}

.pricing-card.featured:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 16px 40px rgba(255, 90, 31, 0.35);
}

/* Badge row holds up to two pills side by side so "Free" and "Most Popular"
   never stack on top of each other. */
.pricing-badge-row {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  white-space: nowrap;
}

.pricing-badge-top {
  background-color: var(--accent);
  color: var(--accent-contrast);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 16px;
  line-height: 1.2;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.pricing-badge-top.free {
  background-color: var(--status-ping);
  color: #090B0F;
}

.pricing-header {
  margin-bottom: 18px;
}

.pricing-plan-name {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.pricing-plan-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  min-height: 38px;
  line-height: 1.45;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 16px 0 8px;
}

.pricing-currency {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.pricing-amount {
  font-family: var(--font-brand);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.pricing-period {
  font-size: 13.5px;
  color: var(--text-muted);
}

.pricing-total-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--status-ping);
  min-height: 18px;
}

.pricing-divider {
  height: 1px;
  background-color: var(--border);
  margin: 18px 0;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-main);
}

.pricing-feature-check {
  width: 15px;
  height: 15px;
  color: var(--status-ping);
  flex-shrink: 0;
}

.btn-pricing-cta {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14.5px;
  text-align: center;
  transition: all 0.2s ease;
  display: block;
}

.btn-pricing-cta.primary {
  background-color: var(--accent);
  color: var(--accent-contrast);
}

.btn-pricing-cta.primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-pricing-cta.secondary {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-pricing-cta.secondary:hover {
  background-color: var(--border);
}

/* --------------------------------------------------------------------------
   11. Interactive Custom Configurable Tariff Builder
   -------------------------------------------------------------------------- */
.custom-tariff-builder {
  margin-top: 48px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.custom-builder-header {
  margin-bottom: 28px;
}

.custom-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.custom-controls-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.custom-control-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-control-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-main);
}

.custom-control-val {
  font-family: var(--font-mono);
  color: var(--accent);
}

.custom-btn-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.custom-select-btn {
  flex: 1;
  min-width: 80px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background-color: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.custom-select-btn:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.custom-select-btn.active {
  background-color: var(--surface-raised);
  border-color: var(--accent);
  color: var(--text-main);
  font-weight: 600;
}

.custom-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
}

.custom-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
}

.custom-result-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.custom-result-title {
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
}

.custom-result-price {
  font-family: var(--font-brand);
  font-size: 44px;
  font-weight: 800;
  color: var(--text-main);
}

.custom-result-period {
  font-size: 14px;
  color: var(--text-muted);
}

.custom-result-summary {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--status-ping);
}

/* --------------------------------------------------------------------------
   12. Supported Devices & Platforms
   -------------------------------------------------------------------------- */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.device-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.2s ease;
}

.device-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.device-icon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.device-os-icon {
  width: 32px;
  height: 32px;
  fill: var(--text-main);
}

.device-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: var(--border);
  color: var(--text-muted);
}

.device-title {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.device-apps-list {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.device-apps-list strong {
  color: var(--text-main);
}

.device-link-placeholder {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--status-ping);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   13. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--text-muted);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-main);
  background: none;
  cursor: pointer;
  gap: 16px;
}

.faq-arrow {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  stroke: var(--accent);
}

.faq-answer-body {
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  display: none;
}

.faq-item.open .faq-answer-body {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

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

/* --------------------------------------------------------------------------
   14. Telemetry / Status Bar Section
   -------------------------------------------------------------------------- */
.telemetry-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--card-shadow);
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.telemetry-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-main);
}

.telemetry-uptime {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--status-ping);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.node-item {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.node-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.node-flag {
  font-size: 16px;
}

.node-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.node-ping {
  color: var(--status-ping);
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-tagline {
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.5;
}

.footer-links-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   16. Responsive Rules (<= 1100px, <= 1024px, <= 768px & Landscape Short)
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .pricing-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card.featured {
    transform: none;
  }
  .custom-builder-grid {
    grid-template-columns: 1fr;
  }
}

/* Collapse desktop links at 1024px so tablets & 800-1000px viewports never overflow */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 20px;
  }
  .brand-logo {
    margin-right: 0;
  }
  .nav-links {
    display: none;
  }
  .nav-actions {
    margin-left: auto;
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .steps-grid, .nologs-grid {
    grid-template-columns: 1fr;
  }
  .bot-showcase-wrapper {
    grid-template-columns: 1fr;
  }
  .devices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-container {
    height: 58px;
    padding: 0 16px;
  }
  .brand-logo {
    margin-right: 0;
  }
  .brand-name {
    font-size: 20px;
  }
  .nav-links {
    display: none;
  }
  .nav-actions {
    gap: 8px;
  }
  .lang-btn {
    padding: 3px 6px;
    font-size: 10.5px;
  }
  .theme-toggle-btn {
    width: 30px;
    height: 30px;
  }
  .btn-nav-cta {
    padding: 6px 13px;
    font-size: 12px;
  }

  /* Responsive Hero for Mobile Portrait */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .hero-content {
    padding-top: 76px;
    padding-bottom: 8px;
  }
  .hero-meta-badge {
    font-size: 10.5px;
    padding: 4px 12px;
    margin-bottom: 12px;
  }
  .hero-headline {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.08;
    margin-bottom: 12px;
  }
  .hero-subtitle {
    font-size: 14px;
    line-height: 1.45;
    max-width: 320px;
    margin: 0 auto 20px;
  }
  .hero-actions {
    gap: 10px;
  }
  .btn-primary-pill {
    padding: 10px 22px;
    font-size: 13.5px;
  }
  .btn-ghost-pill {
    padding: 10px 18px;
    font-size: 13.5px;
  }
  .hero-micro-metrics {
    margin-top: 14px;
    padding: 5px 14px;
    font-size: 11px;
    gap: 8px;
  }
  .hero-protocols-bar {
    padding-bottom: 16px;
    gap: 8px;
  }
  .hero-protocols-bar .protocols-list {
    gap: 8px 14px;
    padding: 0 10px;
  }
  .protocol-item {
    font-size: 12px;
  }
  .protocol-icon-svg {
    width: 15px;
    height: 15px;
  }

  .pricing-grid-4 {
    grid-template-columns: 1fr;
  }
  .devices-grid {
    grid-template-columns: 1fr;
  }
  .nodes-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Landscape Viewports with Low Height (e.g. 871x484) */
@media (max-height: 560px) {
  .site-header {
    height: 52px;
  }
  .nav-container {
    height: 52px;
    padding: 0 16px;
  }
  .brand-name {
    font-size: 19px;
  }
  .nav-links {
    display: none;
  }
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .hero-content {
    padding-top: 60px;
    padding-bottom: 4px;
  }
  .hero-meta-badge {
    margin-bottom: 8px;
    font-size: 10px;
    padding: 3px 10px;
  }
  .hero-headline {
    font-size: clamp(26px, 4.2vw, 36px);
    margin-bottom: 8px;
    line-height: 1.05;
  }
  .hero-subtitle {
    font-size: 13px;
    line-height: 1.35;
    max-width: 440px;
    margin: 0 auto 14px;
  }
  .hero-actions {
    gap: 8px;
  }
  .btn-primary-pill, .btn-ghost-pill {
    padding: 8px 18px;
    font-size: 13px;
  }
  .hero-micro-metrics {
    margin-top: 10px;
    padding: 4px 12px;
    font-size: 10.5px;
    gap: 8px;
  }
  .hero-protocols-bar {
    padding-bottom: 10px;
    gap: 4px;
  }
  .protocols-caption {
    font-size: 9.5px;
  }
  .protocols-list {
    gap: 8px 16px;
  }
  .protocol-item {
    font-size: 11px;
    gap: 5px;
  }
}

/* --------------------------------------------------------------------------
   17. Legal Document Pages (Privacy Policy & Terms of Service)
   -------------------------------------------------------------------------- */
.legal-page-body {
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-doc-container {
  width: 100%;
  max-width: 860px;
  margin: 100px auto 60px;
  padding: 0 24px;
  flex: 1;
}

.legal-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.legal-back-link:hover {
  color: var(--accent);
}

.legal-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: var(--radius-full);
}

.legal-tab-btn {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.legal-tab-btn:hover {
  color: var(--text-main);
}

.legal-tab-btn.active {
  background-color: var(--border);
  color: var(--accent);
  font-weight: 600;
}

.legal-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--card-shadow);
}

.legal-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.legal-title {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(26px, 3.8vw, 36px);
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
}

.legal-intro {
  background-color: var(--bg);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal-section {
  margin-bottom: 32px;
}

.legal-h2 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--text-main);
  margin-bottom: 14px;
}

.legal-p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-list {
  padding-left: 24px;
  margin-bottom: 14px;
}

.legal-list li {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.legal-list li strong {
  color: var(--text-main);
}

.legal-contact-box {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.legal-contact-box a {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .legal-doc-container {
    margin-top: 80px;
    padding: 0 16px;
  }
  .legal-card {
    padding: 24px 18px;
  }
}


/* Responsive controls use their real size; the page itself is never scaled. */
[hidden]{display:none!important}
#serviceBanner{position:relative;z-index:4;margin:90px auto 0;max-width:1100px;padding:14px 20px;border:1px solid var(--accent);border-radius:12px;background:var(--surface);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.account-nav-link{font-size:14px;white-space:nowrap;padding:10px 12px;min-height:44px;display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:24px}
a[aria-disabled=true],.sales-closed{opacity:.55;cursor:not-allowed}
.custom-result-card,.pricing-card,.phone-mockup-frame{min-width:0}
.custom-control-label{gap:10px;flex-wrap:wrap}
@media(max-width:768px){
  .container{padding-inline:16px}.section{padding-block:60px}
  .hero{min-height:740px;min-height:max(720px,100svh)}
  .hero-content{width:100%;padding:100px 20px 30px;box-sizing:border-box}
  .hero-headline{font-size:clamp(32px,8.5vw,48px);overflow-wrap:anywhere}
  .hero-subtitle{font-size:16px;line-height:1.55;max-width:38ch}
  .hero-meta-badge{max-width:100%;font-size:10px;letter-spacing:.04em;white-space:normal;text-align:center}
  .hero-actions{display:flex;flex-wrap:wrap;justify-content:center;width:100%}
  .hero-actions a,.btn-nav-cta,.lang-btn,.theme-toggle-btn,.custom-select-btn,.btn-pricing-cta{min-height:44px}
  .hero-micro-metrics{max-width:100%;flex-wrap:wrap;justify-content:center;font-size:12px;line-height:1.5;white-space:normal}
  .hero-protocols-bar{position:relative;margin-top:auto;padding:20px 16px;box-sizing:border-box}
  .protocols-list{flex-wrap:wrap;justify-content:center}
  .nav-container{height:auto;min-height:68px;flex-wrap:wrap;padding:10px 16px;gap:8px}
  .nav-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px}
  .brand-name{font-size:18px}.brand-logo{gap:6px}.brand-mark-svg{width:26px;height:26px}
  .account-nav-link{font-size:12px;padding:8px 10px}
  .btn-nav-cta{padding:8px 10px;display:inline-flex;align-items:center}
  .custom-builder-grid{grid-template-columns:minmax(0,1fr)}
  .custom-result-price{font-size:clamp(30px,10vw,48px);white-space:nowrap}
  .custom-control-label{font-size:15px}.custom-control-val{white-space:nowrap}
  .custom-slider{min-height:44px;touch-action:pan-y}
  .pricing-cards-track,.custom-servers-track{max-width:100%;scroll-padding-inline:4px}
  .phone-mockup-frame{width:min(100%,360px);margin-inline:auto}
  .bot-showcase-wrapper{min-width:0}.bot-chat-body{overflow-wrap:anywhere}
  #serviceBanner{margin:110px 16px 0}
}
@media(max-width:390px){
  .nav-container{display:grid;grid-template-columns:auto 1fr;align-items:center}
  .nav-actions{gap:5px}.nav-actions .btn-nav-cta{display:none}
  .theme-toggle-btn{width:36px}.lang-btn{padding-inline:5px}
  .hero-content{padding-top:100px}.hero-headline{font-size:32px}
  .pricing-nav-arrow,.custom-server-nav-arrow{width:36px;min-width:36px}
}
@media(max-height:560px) and (orientation:landscape){
  .hero{min-height:640px}.hero-content{padding-top:100px}.hero-headline{font-size:38px}.hero-subtitle{font-size:16px}
}

/* November 2026 layout correction: controls and artwork reserve their own space. */
@font-face{font-family:'Exo 2';src:url('/assets/fonts/Exo2-Bold.ttf') format('truetype');font-weight:700 900;font-display:swap}
@font-face{font-family:'JetBrains Mono';src:url('/assets/fonts/JetBrainsMono.ttf') format('truetype');font-display:swap}
.site-header{position:sticky;top:0}
#serviceBanner{margin:16px auto 0;width:calc(100% - 32px);max-width:1100px;box-sizing:border-box;z-index:1}
.hero{min-height:0;overflow:hidden;justify-content:flex-start}
.hero-content{width:min(100%,1000px);padding:40px 24px 24px;box-sizing:border-box}
.hero-art{position:relative;width:min(100vw,1200px);height:clamp(160px,24vw,280px);flex:none;margin:0 calc((100% - min(100vw,1200px))/2) 8px}
.hero-art #dots{position:absolute;inset:0;width:100%;height:100%;opacity:1}
.hero-actions{margin-top:0;flex-shrink:0}
.hero-protocols-bar{position:relative;bottom:auto;inset-inline:auto;margin-top:16px;width:100%}
.brand-logo{flex-shrink:0;white-space:nowrap}
.account-header .brand-logo,.support-page-header .brand-logo{margin-right:auto;color:var(--text-main)}
.account-header .brand-logo .brand-name,.support-page-header .brand-name{font-size:24px;margin:0}
.pricing-carousel-container{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center}
.pricing-cards-track{grid-column:1/-1;grid-row:1;width:100%;padding-inline:2px;scroll-padding-inline:2px}
.pricing-carousel-container>.carousel-arrow:first-child{grid-column:1;justify-self:end}
.pricing-carousel-container>.carousel-arrow:last-child{grid-column:2;justify-self:start}
.pricing-cards-track .pricing-card{flex:1 0 calc((100% - 64px)/4);min-width:220px;overflow-wrap:anywhere}
.pricing-card .btn-pricing-cta{white-space:normal;text-align:center;max-width:100%;box-sizing:border-box}
@media(max-width:1100px){.nav-container{padding-inline:16px;gap:12px}.nav-actions{gap:8px}.brand-logo{margin-right:0}}
@media(max-width:960px){
 .pricing-cards-track .pricing-card{flex:0 0 calc((100% - 24px)/2);min-width:0}
 .nav-container>nav{display:none}
}
@media(max-width:768px){
 .nav-container{display:flex;flex-wrap:wrap;gap:10px;height:auto;min-height:0;padding:12px 16px}
 .nav-container>.brand-logo{margin-right:auto}
 .nav-actions{display:grid;grid-template-columns:auto 44px minmax(0,1fr);gap:10px;flex:0 0 100%;width:100%;align-items:center}
 .nav-actions .btn-nav-cta{display:none}
 .lang-switch-group{height:44px;box-sizing:border-box;align-items:stretch;border-radius:12px;padding:2px}
 .lang-btn{min-height:0;min-width:36px;padding:0 8px;border-radius:9px;flex:none}
 .theme-toggle-btn{width:44px;height:44px;min-height:44px;flex:none}
 .account-nav-link{justify-content:center;padding:8px;font-size:13px;min-width:0;min-height:44px;box-sizing:border-box}
 .brand-name{font-size:22px}.brand-mark-svg{width:32px;height:32px}
 .hero-content{padding:28px 16px 16px;width:100%}
 .hero-headline{font-size:clamp(32px,8.5vw,48px);margin-bottom:14px}
 .hero-meta-badge{margin-bottom:14px}
 .hero-subtitle{font-size:16px;line-height:1.5;margin-bottom:0}
 .hero-art{height:clamp(150px,42vw,240px);margin-bottom:4px}
 .hero-actions{gap:12px;flex-wrap:wrap;width:100%}
 .hero-actions .cta-wrapper{max-width:100%}
 .btn-primary-pill{padding:14px 18px;min-height:48px;font-size:15px;max-width:100%;box-sizing:border-box}
 .btn-ghost-pill{padding:12px 22px;min-height:44px}
 .hero-micro-metrics{margin-top:18px;padding:10px 14px;font-size:11px;gap:8px 12px}
 .hero-protocols-bar{padding:14px 16px;margin-top:0}
 .pricing-cards-track .pricing-card{flex:0 0 100%;min-width:0;padding:28px 22px;scroll-snap-align:start;scroll-snap-stop:always}
 .pricing-cards-track{gap:20px;padding-inline:0;scroll-padding-inline:0}
 .pricing-card .pricing-plan-desc{min-height:0}
 #serviceBanner{margin:12px 16px 0;padding:12px 16px}
}

:root[data-theme=light] .brand-badge,.brand-badge{background:#FF5A1F;color:#090B0F}

.pricing-actions{display:flex;flex-direction:column;gap:12px;margin-top:24px}

@media(max-width:768px){.support-page-header{flex-wrap:wrap;gap:12px}.support-page-header .brand-logo{margin-right:auto}}

@media(max-width:768px){html{scroll-padding-top:124px}}

/* Desktop artwork dissolves into the page at both sides; mobile stays unmasked. */
@media(min-width:960px){
 .hero-art #dots{-webkit-mask-image:linear-gradient(to right,transparent 0%,#000 14%,#000 86%,transparent 100%);mask-image:linear-gradient(to right,transparent 0%,#000 14%,#000 86%,transparent 100%)}
}

/* Public navigation and interaction states */
.skip-link {
  position: fixed;
  z-index: 110;
  inset: 8px auto auto 8px;
  padding: 10px 14px;
  color: var(--bg);
  background: var(--text-main);
  border-radius: var(--radius-sm);
  transform: translateY(calc(-100% - 16px));
}

.skip-link:focus { transform: translateY(0); }

:where(a, button, summary, input, textarea, select):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-menu,
.site-menu-panel,
.site-preferences { min-width: 0; }

.site-menu {
  flex: 1;
}

.site-menu > summary {
  display: none;
}

.site-menu-panel,
.site-preferences {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-menu-panel { justify-content: space-between; }

.site-menu .nav-links {
  display: flex;
  gap: clamp(14px, 1.9vw, 26px);
}

.site-menu-panel .theme-toggle-btn {
  width: 44px;
  height: 44px;
}

.nav-container:has(.site-menu) {
  gap: clamp(12px, 2vw, 26px);
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.nav-container:has(.site-menu) .brand-logo { margin-right: 0; }

.hero-headline, .section-title { text-wrap: balance; }
.hero-subtitle, .section-desc, .step-text, .faq-answer-body { text-wrap: pretty; }
.hero-subtitle { opacity: 1; margin-bottom: 0; }
.hero-micro-metrics {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.protocols-caption {
  font: 600 13px var(--font-body);
  text-transform: none;
  letter-spacing: normal;
}

/* Price and location tracks keep their own scroll boundaries. */
.pricing-cards-track,
.custom-servers-track { overscroll-behavior-inline: contain; }

@media (max-width: 1100px) {
  .site-header:has(.site-menu) { height: auto; }

  .nav-container:has(.site-menu) {
    min-height: 60px;
    height: auto;
    gap: 8px;
    padding: 8px 12px;
  }

  .nav-container:has(.site-menu) .brand-logo { margin-inline-end: auto; }
  .nav-container:has(.site-menu) .brand-name { font-size: clamp(18px, 5vw, 22px); }
  .nav-container:has(.site-menu) .brand-mark-svg { width: 28px; height: 28px; }

  .site-menu {
    flex: 0 0 auto;
  }

  .site-menu > summary,
  .nav-container:has(.site-menu) .account-nav-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font: 600 13px var(--font-body);
    cursor: pointer;
  }

  .site-menu[open] > summary {
    background: var(--surface-raised);
    border-color: var(--text-sub);
  }

  .site-menu-panel {
    position: absolute;
    inset: 100% 12px auto auto;
    display: grid;
    gap: 10px;
    width: min(calc(100% - 24px), 360px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--card-shadow);
  }

  .site-menu-panel nav { display: block; }
  .site-menu .nav-links { display: grid; gap: 0; }
  .site-menu .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 8px;
    color: var(--text-main);
  }

  .site-preferences {
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }

  .site-preferences .lang-btn { min-height: 44px; min-width: 44px; }

  html:has(.site-menu) { scroll-padding-top: 72px; }
}

@media (max-width: 520px) {
  .hero-art { height: clamp(130px, 42vw, 190px); }
  .hero-actions .btn-ghost-pill { padding-inline: 14px; }
  .faq-question-btn { padding: 16px; font-size: 16px; }
  .faq-answer-body { padding: 0 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq-item.open .faq-answer-body { animation: none; }
  .faq-arrow { transition: none; }
}
