/* ============================================================
   GLOBAL SOS — Stylesheet
   ============================================================ */

/* === TOKENS === */
:root {
  --red:          #E63946;
  --red-dark:     #C1121F;
  --red-dim:      rgba(230, 57, 70, 0.12);
  --red-glow:     rgba(230, 57, 70, 0.25);

  --bg:           #050B14;
  --surface:      #0D1B2A;
  --surface-2:    #132333;
  --surface-3:    #1C3248;

  --white:        #FFFFFF;
  --muted:        #7A8FA6;
  --subtle:       #4A6278;

  --border:       rgba(255, 255, 255, 0.07);
  --border-mid:   rgba(255, 255, 255, 0.12);
  --border-red:   rgba(230, 57, 70, 0.3);

  --header-bg:    rgba(5, 11, 20, 0.88);
  --shadow-lg:    rgba(0, 0, 0, 0.50);

  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r-sm:         8px;
  --r-md:         12px;
  --r-lg:         20px;
  --r-pill:       100px;

  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --fast:         0.15s;
  --mid:          0.25s;
}

/* === LIGHT THEME === */
[data-theme="light"] {
  --bg:           #F0F4F9;
  --surface:      #FFFFFF;
  --surface-2:    #F5F8FC;
  --surface-3:    #E8EDF5;

  --white:        #111827;
  --muted:        #6B7280;
  --subtle:       #9CA3AF;

  --border:       rgba(0, 0, 0, 0.07);
  --border-mid:   rgba(0, 0, 0, 0.13);
  --border-red:   rgba(230, 57, 70, 0.25);
  --red-dim:      rgba(230, 57, 70, 0.08);
  --red-glow:     rgba(230, 57, 70, 0.15);

  --header-bg:    rgba(240, 244, 249, 0.90);
  --shadow-lg:    rgba(0, 0, 0, 0.12);
}

/* Smooth theme transitions */
body,
.header,
.mobile-nav,
.country-card,
.feature-card,
.search-input-wrap,
.search-history,
.country-chip,
.filter-chip,
.footer,
.lang-btn,
.copy-btn,
.call-btn,
.number-item {
  transition:
    background-color 0.25s var(--ease),
    border-color     0.25s var(--ease),
    color            0.25s var(--ease),
    box-shadow       0.25s var(--ease);
}

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

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

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

img, svg {
  display: block;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

/* === TYPOGRAPHY === */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 500px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.section-header--left {
  text-align: left;
  margin-bottom: 32px;
}

.section-header--left .section-subtitle {
  margin: 0;
}

/* === LOGO === */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.logo__img {
  border-radius: 7px;
  flex-shrink: 0;
  display: block;
}

.logo__text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
}

.logo__sos {
  color: var(--red);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--mid) var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  padding: 13px 24px;
  font-size: 0.95rem;
}

.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--red-glow);
}

.btn--outline {
  border-color: var(--border-mid);
  color: var(--white);
  padding: 9px 18px;
  font-size: 0.875rem;
}

.btn--outline:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-dim);
}

.btn--ghost {
  color: var(--muted);
  padding: 13px 20px;
  font-size: 0.95rem;
}

.btn--ghost:hover {
  color: var(--white);
}

.btn--large {
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--r-md);
}

.btn--small {
  font-size: 0.825rem;
  padding: 8px 16px;
}

/* ================================================================
   HEADER
   ================================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--mid) var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.header.scrolled {
  box-shadow: 0 4px 32px var(--shadow-lg);
}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--muted);
  flex-shrink: 0;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}

.theme-toggle:hover {
  color: var(--white);
  background: var(--surface-3);
}

/* Dark mode: show sun (click → go light) */
.theme-toggle__moon { display: none; }

/* Light mode: show moon (click → go dark) */
[data-theme="light"] .theme-toggle__sun  { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }

.header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 64px;
}

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--fast) var(--ease);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--fast) var(--ease);
}

.nav__link:hover {
  color: var(--white);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.header__cta {
  flex-shrink: 0;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  margin-left: auto;
  border-radius: var(--r-sm);
  transition: background var(--fast);
}

.menu-toggle:hover {
  background: var(--surface);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--mid) var(--ease), opacity var(--mid);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--mid) var(--ease);
}

.mobile-nav.open {
  max-height: 240px;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  padding: 12px 24px 20px;
  gap: 4px;
}

.mobile-nav__link {
  display: block;
  padding: 12px 16px;
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--r-sm);
  transition: all var(--fast);
}

.mobile-nav__link:hover {
  background: var(--surface-2);
  color: var(--white);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: calc(100dvh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0 120px;
  overflow: hidden;
}

/* Background layers */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  opacity: 0.4;
}

/* Radar rings */
.radar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
}

.radar__ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--red);
  border-radius: 50%;
  opacity: 0;
  animation: ring-pulse 5s var(--ease) infinite;
}

.radar__ring:nth-child(2) { animation-delay: 1.6s; }
.radar__ring:nth-child(3) { animation-delay: 3.2s; }

@keyframes ring-pulse {
  0%   { transform: scale(0.05); opacity: 0.6; }
  100% { transform: scale(1);    opacity: 0; }
}

/* Hero content */
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--red-dim);
  border: 1px solid var(--border-red);
  color: var(--red);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 16px;
  border-radius: var(--r-pill);
}

.badge__pulse {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: badge-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.text-gradient {
  background: linear-gradient(135deg, #E63946 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 4px;
}

/* Stats */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-top: 8px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.stat__number {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat__sep {
  width: 1px;
  height: 36px;
  background: var(--border-mid);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--subtle);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: scroll-bounce 2.5s ease-in-out infinite;
  transition: color var(--fast), border-color var(--fast);
}

.scroll-cue:hover {
  color: var(--white);
  border-color: var(--border-mid);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ================================================================
   SEARCH SECTION
   ================================================================ */
.search-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Search box */
.search-box {
  position: relative;
  margin-bottom: 20px;
}

/* Recent searches dropdown */
@keyframes historyFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.search-history {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  overflow: hidden;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  animation: historyFadeIn 0.15s var(--ease);
}

.search-history__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  cursor: pointer;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--fast);
  user-select: none;
}

.search-history__item:hover {
  background: var(--surface-3);
}

.search-history__clock {
  color: var(--subtle);
  flex-shrink: 0;
  display: flex;
}

.search-history__footer {
  display: flex;
  justify-content: flex-end;
  padding: 8px 20px;
  border-top: 1px solid var(--border-mid);
}

.search-history__clear {
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  padding: 2px 0;
  transition: color var(--fast);
}

.search-history__clear:hover {
  color: var(--red);
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  font-family: var(--font);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--red);
  color: var(--white);
  background: var(--red-dim);
}

.filter-chip--active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.filter-chip--active:hover {
  opacity: 0.85;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  padding: 0 20px;
  transition: border-color var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}

.search-input-wrap:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-dim);
}

.search-icon {
  color: var(--subtle);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
  padding: 20px 0;
}

.search-input::placeholder {
  color: var(--subtle);
  font-weight: 400;
}

/* Remove default search clear button */
.search-input::-webkit-search-cancel-button { display: none; }

.search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--muted);
  transition: color var(--fast), background var(--fast);
  flex-shrink: 0;
}

.search-clear:hover {
  color: var(--white);
  background: var(--surface-3);
}

/* Featured label */
.results-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

/* Chip buttons */
.country-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  font-family: var(--font);
}

.country-chip:hover {
  border-color: var(--red);
  background: var(--red-dim);
  color: var(--red);
  transform: translateY(-1px);
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.country-chip--skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--surface-3) 50%,
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-color: transparent;
  color: transparent;
  pointer-events: none;
  user-select: none;
}

/* Results grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* Country card */
.country-card {
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  padding: 22px;
  animation: card-appear var(--mid) var(--ease) both;
  transition: border-color var(--mid) var(--ease), transform var(--mid) var(--ease);
}

.country-card:hover {
  border-color: var(--border-red);
  transform: translateY(-3px);
}

@keyframes card-appear {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.country-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.country-flag {
  font-size: 1.9rem;
  line-height: 1;
}

.country-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.country-continent {
  font-size: 0.775rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Number items */
.numbers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.number-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--r-sm);
  transition: background var(--fast);
}

.number-item:hover {
  background: var(--surface);
}

.number-service {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.825rem;
  color: var(--muted);
  font-weight: 500;
  flex: 1 0 55%;
  min-width: 0;
}

.number-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
  padding-top: 2px;
}

.number-name {
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.number-call {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.number-value {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--red-dim);
  border: 1px solid var(--border-red);
  border-radius: 50%;
  color: var(--red);
  transition: all var(--fast) var(--ease);
  flex-shrink: 0;
}

.call-btn:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  transform: scale(1.1);
}

.call-btn svg {
  width: 13px;
  height: 13px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  flex-shrink: 0;
}

.copy-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-mid);
  transform: scale(1.1);
}

.copy-btn svg {
  width: 13px;
  height: 13px;
  pointer-events: none;
}

.copy-btn__check {
  display: none;
}

.copy-btn--copied {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
  color: #22c55e;
  transform: scale(1.1);
}

.copy-btn--copied .copy-btn__icon {
  display: none;
}

.copy-btn--copied .copy-btn__check {
  display: block;
}

/* No results state */
.no-results {
  text-align: center;
  padding: 64px 24px;
  color: var(--muted);
}

.no-results__icon {
  margin: 0 auto 20px;
  width: 56px;
  height: 56px;
  background: var(--surface-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--subtle);
}

.no-results h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.no-results p {
  font-size: 0.9rem;
}

/* ================================================================
   FEATURES
   ================================================================ */
.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: border-color var(--mid) var(--ease), transform var(--mid) var(--ease);
  opacity: 0;
  transform: translateY(24px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color var(--mid) var(--ease);
}

.feature-card:hover {
  border-color: var(--border-red);
  transform: translateY(-5px);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  background: var(--red-dim);
  border: 1px solid var(--border-red);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 20px;
}

.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.feature-card__text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ================================================================
   APP SECTION
   ================================================================ */
.app-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.app-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* App feature list */
.app-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 40px;
}

.app-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.925rem;
  color: var(--muted);
  font-weight: 500;
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--red-dim);
  border: 1px solid var(--border-red);
  border-radius: 50%;
  color: var(--red);
  flex-shrink: 0;
}

/* App download buttons */
.app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--r-md);
  transition: all var(--mid) var(--ease);
  font-family: var(--font);
}

.app-btn:hover {
  border-color: var(--red);
  background: var(--red-dim);
  color: var(--red);
  transform: translateY(-2px);
}

.app-btn__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.app-btn__sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1;
}

.app-btn:hover .app-btn__sub {
  color: var(--red);
}

.app-btn__main {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Phone mockup */
.app-section__visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 240px;
  background: var(--surface-2);
  border: 1.5px solid var(--border-mid);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
}

.phone-mockup__notch {
  width: 72px;
  height: 6px;
  background: var(--border-mid);
  border-radius: 3px;
  margin: 0 auto 10px;
}

.phone-mockup__screen {
  background: var(--bg);
  border-radius: 26px;
  overflow: hidden;
}

.phone-app {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-app__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.phone-app__flag {
  font-size: 1.6rem;
  line-height: 1;
}

.phone-app__country {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.phone-app__region {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 1px;
}

.phone-app__numbers {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.phone-num-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border-radius: 10px;
  padding: 9px 12px;
}

.phone-num-service {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.phone-num-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.02em;
}

.phone-app__footer {
  text-align: center;
  font-size: 0.7rem;
  color: var(--subtle);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 200px;
}

.footer__links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col-title {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--fast);
}

.footer__link:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.825rem;
  color: var(--muted);
}

.footer__disclaimer {
  font-size: 0.775rem;
  color: var(--subtle);
}

/* ================================================================
   NAV ACTIVE STATE
   ================================================================ */
.nav__link--active {
  color: var(--red) !important;
}

.nav__link--active::after {
  transform: scaleX(1) !important;
  background: var(--red);
}

/* ================================================================
   PAGE HERO (interior pages)
   ================================================================ */
.page-hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(230,57,70,0.07) 0%, transparent 70%),
              var(--bg);
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.page-hero__icon {
  width: 72px;
  height: 72px;
  background: var(--red-dim);
  border: 1px solid var(--border-red);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 4px;
}

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.page-hero__subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
}

.page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-top: 4px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ================================================================
   POLICY LAYOUT
   ================================================================ */
.policy-wrap {
  padding: 72px 0 96px;
}

.policy-container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}

/* TOC sidebar */
.policy-toc {
  position: sticky;
  top: 88px;
}

.toc-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--subtle);
  margin-bottom: 14px;
}

.policy-toc nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
  transition: all var(--fast);
  line-height: 1.4;
}

.toc-link:hover {
  color: var(--white);
  background: var(--surface);
}

.toc-link.active {
  color: var(--red);
  border-left-color: var(--red);
  background: var(--red-dim);
}

/* Article */
.policy-content {
  display: flex;
  flex-direction: column;
  gap: 56px;
  min-width: 0;
}

.policy-section {
  scroll-margin-top: 96px;
}

.policy-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.policy-section p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.policy-section p:last-child { margin-bottom: 0; }

.policy-section em { color: var(--white); font-style: normal; font-weight: 500; }
.text-red { color: var(--red); }

/* Summary highlight box */
.policy-highlight {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-red);
  border-radius: var(--r-lg);
  margin-bottom: 24px;
}

.policy-highlight__icon {
  width: 36px;
  height: 36px;
  background: var(--red-dim);
  border: 1px solid var(--border-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.policy-highlight strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.policy-highlight p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Lists */
.policy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.policy-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
}

.policy-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.policy-list li strong { color: var(--white); }

code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.82em;
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--white);
}

/* No-collect grid */
.no-collect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.no-collect-item {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  transition: border-color var(--fast);
}

.no-collect-item:hover { border-color: var(--border-mid); }

.no-collect-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.no-collect-item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.no-collect-item p {
  font-size: 0.825rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 !important;
}

/* Permissions table */
.perm-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 16px 0;
}

.perm-row {
  display: grid;
  grid-template-columns: 160px 1fr 110px;
  gap: 16px;
  padding: 14px 20px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.perm-row:last-child { border-bottom: none; }

.perm-row--header {
  background: var(--surface-2);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.perm-name {
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.perm-desc { color: var(--muted); line-height: 1.5; }

.perm-status {
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.perm-status--no {
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.perm-status--min {
  background: rgba(241, 196, 15, 0.12);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.3);
}

/* Note */
.policy-note {
  font-size: 0.85rem !important;
  color: var(--subtle) !important;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  line-height: 1.6 !important;
}

/* Links */
.policy-link {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--fast);
}

.policy-link:hover { opacity: 0.75; }

/* Contact block */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.contact-item span:first-child { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ================================================================
   LANGUAGE SWITCHER
   ================================================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 3px;
  flex-shrink: 0;
}

.lang-btn {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 4px 7px;
  border-radius: 5px;
  transition: color var(--fast), background var(--fast);
  font-family: var(--font);
  line-height: 1;
}

.lang-btn:hover {
  color: var(--white);
  background: var(--surface-2);
}

.lang-btn.active {
  background: var(--red);
  color: var(--white);
}

/* Mobile lang switcher inside mobile-nav */
.mobile-lang-switcher {
  display: flex;
  gap: 4px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.mobile-lang-switcher .lang-btn {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.8rem;
}

.mobile-lang-switcher .lang-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .app-section__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .app-section__visual {
    order: -1;
  }
}

@media (max-width: 900px) {
  .policy-container {
    grid-template-columns: 1fr;
  }

  .policy-toc {
    display: none;
  }

  .no-collect-grid {
    grid-template-columns: 1fr;
  }

  .perm-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .perm-row--header { display: none; }
  .perm-status { align-self: flex-start; }
}

@media (max-width: 768px) {
  /* Header */
  .nav,
  .header__cta,
  .lang-switcher {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  /* Hero */
  .hero__stats {
    gap: 20px;
    padding: 16px 28px;
  }

  section {
    padding: 72px 0;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: 36px;
  }

  .footer__links {
    gap: 36px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 540px) {
  .hero {
    padding: 56px 0 96px;
    min-height: auto;
  }

  .hero__title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero__stats {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .stat__sep {
    width: 32px;
    height: 1px;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── 404 ──────────────────────────────────────────────────────────── */
.not-found {
  min-height: calc(100vh - 72px - 200px);
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.not-found__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
}

.not-found__code {
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--red) 0%, rgba(230,57,70,0.3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
}

.not-found__icon {
  color: var(--muted);
  margin-top: -8px;
}

.not-found__title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.not-found__subtitle {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.not-found__cta {
  margin-top: 12px;
}

/* ── Keyboard focus indicator ────────────────────────────────────
   Only shown when navigating by keyboard (not mouse/touch).       */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Search input uses focus-within on the wrapper — suppress default */
.search-input:focus-visible {
  outline: none;
}
