/* ============================================================
   MTProto Proxy — Cyberpunk UI
   Design system: Dark cyberpunk / neon accent
   Palette: #0a0a1a bg, #00f5ff cyan, #b300ff purple, #ff0099 pink
   Fonts: Space Mono (headings/code), Inter (body)
   ============================================================ */

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

:root {
  /* Colors */
  --bg-0:       #050509;
  --bg-1:       #0a0a1a;
  --bg-2:       #0f0f24;
  --bg-card:    #111128;
  --bg-card-h:  #16163a;

  --cyan:       #00f5ff;
  --cyan-dim:   #00b8c4;
  --purple:     #b300ff;
  --purple-dim: #7b00b0;
  --pink:       #ff0099;
  --green:      #00ff88;
  --yellow:     #ffd700;

  --text-primary:   #e8e8ff;
  --text-secondary: #8888bb;
  --text-dim:       #555580;

  --border:     rgba(0, 245, 255, 0.12);
  --border-h:   rgba(0, 245, 255, 0.35);

  /* Typography */
  --font-mono: 'Space Mono', 'JetBrains Mono', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  /* Shadows / glows */
  --glow-cyan:   0 0 20px rgba(0, 245, 255, 0.3);
  --glow-purple: 0 0 20px rgba(179, 0, 255, 0.3);
  --glow-pink:   0 0 20px rgba(255, 0, 153, 0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in:  cubic-bezier(0.4, 0.0, 1, 1);
  --t-fast:   150ms;
  --t-mid:    250ms;
  --t-slow:   350ms;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--cyan);
  color: var(--bg-0);
  padding: var(--sp-2) var(--sp-4);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  z-index: 9999;
  border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--sp-4); }

/* ---------- Scan lines overlay ---------- */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.07) 3px,
    rgba(0, 0, 0, 0.07) 4px
  );
}

/* ---------- Grid background ---------- */
.grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-6);
  position: relative;
  z-index: 1;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-mono); line-height: 1.2; }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(0, 245, 255, 0.08);
  color: var(--cyan);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

a { color: var(--cyan); text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
a:hover { color: #fff; }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
  text-decoration: none;
  user-select: none;
  min-height: 44px;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.btn--primary {
  background: var(--cyan);
  color: var(--bg-0);
  border-color: var(--cyan);
}
.btn--primary:hover {
  background: #fff;
  color: var(--bg-0);
  box-shadow: var(--glow-cyan);
}

.btn--outline {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}
.btn--outline:hover {
  background: rgba(0, 245, 255, 0.08);
  box-shadow: var(--glow-cyan);
  color: var(--cyan);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-h);
  background: rgba(255,255,255,0.03);
}

.btn--sm  { padding: var(--sp-2) var(--sp-3); font-size: 0.75rem; min-height: 36px; }
.btn--lg  { padding: var(--sp-4) var(--sp-8); font-size: 1rem; min-height: 52px; }
.btn--danger { border-color: var(--pink); color: var(--pink); }
.btn--danger:hover { background: rgba(255,0,153,0.1); box-shadow: var(--glow-pink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(5, 5, 9, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-4);
  gap: var(--sp-6);
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.logo-bracket { color: var(--text-dim); }
.logo-text    { color: var(--text-primary); }
.logo-accent  { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--t-fast) var(--ease-out);
}
.nav-link:hover { color: var(--cyan); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: background var(--t-fast);
}
.nav-toggle:hover span { background: var(--cyan); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--sp-16) 0 var(--sp-12);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-6);
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.25);
  padding: var(--sp-1) var(--sp-3);
  border-radius: 99px;
  letter-spacing: 0.04em;
}

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,255,136,0.5); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0,255,136,0); }
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.hero__year {
  font-size: 0.45em;
  color: var(--cyan);
  letter-spacing: 0.15em;
}

/* Glitch effect */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.glitch::before {
  color: var(--pink);
  animation: glitch-1 3.5s steps(2) infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.glitch::after {
  color: var(--cyan);
  animation: glitch-2 3.5s steps(2) infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0%, 90%, 100% { transform: translateX(0); }
  92%            { transform: translateX(-3px); }
  94%            { transform: translateX(3px); }
  96%            { transform: translateX(-2px); }
}
@keyframes glitch-2 {
  0%, 90%, 100% { transform: translateX(0); }
  93%            { transform: translateX(3px); }
  95%            { transform: translateX(-3px); }
  97%            { transform: translateX(2px); }
}

@media (prefers-reduced-motion: reduce) {
  .glitch::before, .glitch::after { animation: none; }
  .pulse-dot { animation: none; }
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}
.hero__subtitle strong { color: var(--cyan); font-weight: 600; }

/* Stats row */
.hero__stats {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 110px;
}

.stat-card__value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.stat-card__label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__cta {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* Hero canvas */
.hero__visual {
  position: absolute;
  right: 0; top: 0;
  width: 45%;
  height: 100%;
  pointer-events: none;
  opacity: 0.25;
}
#matrix-canvas { width: 100%; height: 100%; }

/* ---------- Sections ---------- */
.section { padding: var(--sp-16) 0; }

.section-header {
  text-align: center;
  margin-bottom: var(--sp-10);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: #fff;
  margin-bottom: var(--sp-4);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.65;
}

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-6);
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--sp-2) var(--sp-4);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 99px;
  cursor: pointer;
  transition:
    background var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out);
  min-height: 36px;
}
.filter-btn:hover { color: var(--cyan); border-color: var(--border-h); }
.filter-btn.active {
  background: rgba(0, 245, 255, 0.1);
  color: var(--cyan);
  border-color: var(--cyan);
}
.filter-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- Proxy Grid ---------- */
.proxy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.proxy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition:
    border-color var(--t-mid) var(--ease-out),
    box-shadow var(--t-mid) var(--ease-out),
    background var(--t-mid) var(--ease-out);
}
.proxy-card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  box-shadow: 0 4px 24px rgba(0, 245, 255, 0.08);
}

.proxy-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.proxy-card__server {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proxy-status {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}
.proxy-status--online {
  color: var(--green);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.25);
}
.proxy-status--slow {
  color: var(--yellow);
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.25);
}
.proxy-status--offline {
  color: var(--pink);
  background: rgba(255, 0, 153, 0.1);
  border: 1px solid rgba(255, 0, 153, 0.25);
}

.proxy-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

.proxy-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.proxy-meta-item__label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.proxy-meta-item__value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.proxy-card__secret {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--purple);
  overflow: hidden;
}
.proxy-card__secret span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.proxy-card__actions {
  display: flex;
  gap: var(--sp-2);
}
.proxy-card__actions .btn { flex: 1; justify-content: center; }

.proxies__actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Steps + Visual ---------- */
.how-to-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--sp-10);
  align-items: center;
  margin-bottom: var(--sp-10);
}

.how-to-steps {
  display: flex;
  flex-direction: column;
}

.step-item {
  display: flex;
  gap: var(--sp-4);
  position: relative;
  padding-bottom: var(--sp-7);
}
.step-item--last { padding-bottom: 0; }

.step-item:not(.step-item--last)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(0,245,255,0.3) 0%, rgba(0,245,255,0.04) 100%);
}

.step-item__badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid rgba(0,245,255,0.4);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-item__badge--done {
  background: rgba(0,245,255,0.1);
  font-size: 1rem;
}

.step-item__body { padding-top: 9px; }

.step-item__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.step-item__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.step-item__desc strong { color: var(--text-primary); }

/* ---------- Browser Mockup ---------- */
.browser-mockup {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(0,0,0,0.6);
}
.browser-mockup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1a1d2e;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.browser-mockup__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}
.browser-mockup__url {
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  opacity: 0.7;
}
.browser-mockup__imgwrap {
  position: relative;
  display: block;
  line-height: 0;
}
.browser-mockup__img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.browser-mockup__shield {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: default;
}

/* ---------- Platform Tabs ---------- */
.platform-tabs {
  display: flex;
  gap: var(--sp-1);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.platform-tab {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--sp-3) var(--sp-5);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--t-fast), border-color var(--t-fast);

  margin-bottom: -1px;
  min-height: 44px;
}
.platform-tab img {
  filter: brightness(0) invert(0.45);
  transition: filter var(--t-fast);
}
.platform-tab:hover { color: var(--cyan); }
.platform-tab:hover img {
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(155deg);
}
.platform-tab.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.platform-tab.active img {
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(155deg);
}
.platform-tab:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }

.platform-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: var(--sp-6);
}

.tab-panel { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
.tab-panel strong { color: var(--text-primary); }
.tab-panel[hidden] { display: none; }

/* ---------- Features ---------- */
.features { background: linear-gradient(to bottom, var(--bg-1), var(--bg-0)); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-5);
}

.feature-card {
  padding: var(--sp-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--t-mid), box-shadow var(--t-mid);
}
.feature-card:hover {
  border-color: rgba(179, 0, 255, 0.4);
  box-shadow: 0 4px 24px rgba(179, 0, 255, 0.1);
}

.feature-card__icon {
  width: 52px; height: 52px;
  background: rgba(179, 0, 255, 0.1);
  border: 1px solid rgba(179, 0, 255, 0.25);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  color: var(--purple);
}

.feature-card h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- SEO Text Block ---------- */
.seo-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
}
.seo-block h2 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: var(--sp-5);
}
.seo-block p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}
.seo-block p:last-child { margin-bottom: 0; }
.seo-block strong { color: var(--cyan); }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-mid);
}
.faq-item[open] { border-color: var(--border-h); }
.faq-item:hover { border-color: var(--border-h); }

.faq-item__q {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  padding: var(--sp-5) var(--sp-6);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  transition: color var(--t-fast);
  min-height: 52px;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--cyan);
  transition: transform var(--t-mid) var(--ease-out);
  flex-shrink: 0;
}
.faq-item[open] .faq-item__q::after { transform: rotate(45deg); }
.faq-item__q:hover { color: var(--cyan); }
.faq-item__q:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }

.faq-item__a {
  padding: 0 var(--sp-6) var(--sp-5);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-8) 0;
  background: var(--bg-1);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.footer__copy small { font-size: 0.75rem; }

.footer__links {
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.footer__links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color var(--t-fast);
}
.footer__links a:hover { color: var(--cyan); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 900;
  background: var(--bg-card);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  box-shadow: var(--glow-cyan);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity var(--t-mid) var(--ease-out),
    transform var(--t-mid) var(--ease-out);
  max-width: 280px;
}
.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.toast.error {
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: var(--glow-pink);
}

/* ---------- Skeleton loading ---------- */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    rgba(0, 245, 255, 0.05) 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-wave 1.4s ease-in-out infinite;
  border-radius: var(--r-md);
}
@keyframes skeleton-wave {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  height: 200px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

/* ---------- noscript fallback ---------- */
.noscript-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-3);
}
.noscript-card strong { color: var(--text-primary); }
.noscript-card p { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: var(--sp-2); }
.noscript-card a { color: var(--cyan); font-family: var(--font-mono); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  :root { --sp-6: 20px; }

  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-0); border-bottom: 1px solid var(--border); padding: var(--sp-4) var(--sp-6); gap: var(--sp-4); z-index: 400; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }

  .hero { padding: var(--sp-12) 0 var(--sp-10); min-height: auto; }
  .hero__visual { display: none; }
  .hero__inner { max-width: 100%; }

  .proxy-grid { grid-template-columns: 1fr; }
  .how-to-layout { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }

  .toast { left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); max-width: none; }
}

@media (max-width: 480px) {
  .hero__stats { flex-direction: column; }
  .features-grid { grid-template-columns: 1fr; }
  .platform-tabs { overflow-x: auto; }
  .proxy-card__actions { flex-direction: column; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}
