/* AMNESIA VPN — amnesia.pw — Design System */
:root {
  --bg-main: #050505;
  --bg-secondary: #0A0F0D;
  --bg-soft: #0F1A17;
  --card-bg: rgba(12, 20, 18, 0.65);
  --card-bg-hover: rgba(15, 26, 23, 0.85);

  --primary: #7FFFE1;
  --primary-soft: #6CF2D5;
  --glow: #9FFFF0;
  --accent-teal: #00C9A7;
  --accent-cyan: #0BBCD6;
  --accent-blue: #00E5FF;

  --text-main: #EFFFFA;
  --text-secondary: #A6E5D6;
  --text-muted: #7FAFA3;
  --disabled: #4A6F66;

  --glass-bg: rgba(15, 26, 23, 0.6);
  --glass-border: rgba(127, 255, 225, 0.18);
  --glass-glow: rgba(127, 255, 225, 0.35);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-glow: 0 0 30px rgba(127, 255, 225, 0.15);
  --shadow-glow-strong: 0 0 50px rgba(127, 255, 225, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: linear-gradient(180deg, #050505 0%, #0A0F0D 35%, #0F1A17 70%, #050505 100%);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container { padding: 0 1.5rem; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 5, 5, 0.75);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s, border-color 0.3s;
}

.header.scrolled {
  background: rgba(5, 5, 5, 0.9);
  border-color: rgba(127, 255, 225, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(127, 255, 225, 0.35))
          drop-shadow(0 0 25px rgba(127, 255, 225, 0.2));
  animation: logo-breathing 4s ease-in-out infinite;
}

.logo-link:hover .logo-img {
  filter: drop-shadow(0 0 15px rgba(127, 255, 225, 0.5))
          drop-shadow(0 0 40px rgba(159, 255, 240, 0.35));
  animation: logo-pulse 1.5s ease-in-out infinite;
}

.logo-link:hover {
  transform: scale(1.03);
}

@keyframes logo-breathing {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 1; }
}

@keyframes logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(127, 255, 225, 0.5)); }
  50% { filter: drop-shadow(0 0 25px rgba(127, 255, 225, 0.65)); }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  color: var(--primary);
  transition: transform 0.3s;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 769px) {
  .nav-toggle { display: none; }
}

.nav-links {
  display: none;
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  bottom: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 1rem 1.25rem 1.5rem;
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-links.open {
  display: flex;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(127, 255, 225, 0.08);
  transition: color 0.2s;
}

.nav-links a:last-of-type {
  border-bottom: none;
}

.nav-links a:hover {
  color: var(--primary);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(127, 255, 225, 0.08);
}

.lang-btn {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--primary);
}

.lang-divider {
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (min-width: 769px) {
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
    gap: 1.75rem;
  }

  .nav-links a {
    padding: 0;
    border-bottom: none;
  }

  .nav-links .lang-switcher {
    padding: 0;
    border: none;
  }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Space Grotesk', sans-serif;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
  color: var(--bg-main);
  box-shadow: 0 0 25px rgba(127, 255, 225, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(127, 255, 225, 0.55),
              0 0 60px rgba(127, 255, 225, 0.2);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--glass-glow);
  color: var(--primary);
}

.btn-secondary:hover {
  box-shadow: 0 0 20px rgba(127, 255, 225, 0.3);
  border-color: var(--primary);
}

.btn-telegram {
  background: transparent;
  border: 1px solid var(--glass-glow);
  color: var(--primary);
}

.btn-telegram:hover {
  box-shadow: 0 0 20px rgba(127, 255, 225, 0.35);
  color: var(--glow);
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
}

.btn-device {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  border: 1px solid var(--glass-border);
  background: rgba(15, 26, 23, 0.6);
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  width: 100%;
}

.btn-device:hover {
  border-color: var(--glass-glow);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(127, 255, 225, 0.15);
}

.btn-device-alt {
  margin-bottom: 0;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cyber-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(127, 255, 225, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 255, 225, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.gradient-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-teal) 0%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  animation: orb-float 12s ease-in-out infinite;
}

.gradient-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  bottom: 10%;
  right: 10%;
  animation: orb-float 15s ease-in-out infinite reverse;
  animation-delay: -3s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.hero-logo-wrap::before,
.hero-logo-wrap::after {
  content: '';
  position: absolute;
  inset: -25px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 255, 240, 0.12) 0%, transparent 70%);
  animation: aura-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

.hero-logo-wrap::after {
  inset: -45px;
  background: radial-gradient(circle, rgba(127, 255, 225, 0.06) 0%, transparent 60%);
  animation-delay: -1.5s;
}

.hero-logo {
  height: clamp(80px, 18vw, 120px);
  width: auto;
  filter: drop-shadow(0 0 20px rgba(127, 255, 225, 0.4))
          drop-shadow(0 0 50px rgba(159, 255, 240, 0.25));
  animation: logo-breathing 4s ease-in-out infinite;
}

.hero-logo-wrap:hover .hero-logo {
  filter: drop-shadow(0 0 30px rgba(127, 255, 225, 0.6))
          drop-shadow(0 0 70px rgba(159, 255, 240, 0.4));
  animation: logo-pulse 1.5s ease-in-out infinite;
}

@keyframes aura-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.hero-tagline {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== Sections ========== */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section { padding: 5rem 0; }
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* ========== Features (blocks) ========== */
.blocks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 540px) {
  .blocks-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .blocks-grid { grid-template-columns: repeat(4, 1fr); }
}

.block-card {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--card-bg);
  border: 1px solid rgba(127, 255, 225, 0.12);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 0 30px rgba(127, 255, 225, 0.06);
  transition: all 0.35s ease;
}

.block-card:hover {
  border-color: rgba(127, 255, 225, 0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
  background: var(--card-bg-hover);
}

.block-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--primary);
  opacity: 0.9;
}

.block-icon svg {
  width: 100%;
  height: 100%;
}

.block-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.block-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========== How it works ========== */
.how-section {
  background: linear-gradient(180deg, transparent 0%, rgba(10, 15, 13, 0.5) 50%, transparent 100%);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step-card {
  position: relative;
  backdrop-filter: blur(12px);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: rgba(127, 255, 225, 0.28);
  box-shadow: 0 0 35px rgba(127, 255, 225, 0.1);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--bg-main);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.step-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.2s, text-shadow 0.2s;
}

.step-link:hover {
  color: var(--glow);
  text-shadow: 0 0 12px rgba(127, 255, 225, 0.4);
}

.conditions-box {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem;
  background: rgba(127, 255, 225, 0.05);
  border: 1px solid rgba(127, 255, 225, 0.2);
  border-radius: var(--radius-md);
}

.conditions-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.conditions-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== Downloads ========== */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.device-card {
  backdrop-filter: blur(12px);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.device-card:hover {
  border-color: rgba(127, 255, 225, 0.3);
  box-shadow: 0 0 30px rgba(127, 255, 225, 0.08);
}

.device-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.device-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.device-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ========== Documents ========== */
.docs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .docs-grid { grid-template-columns: repeat(2, 1fr); max-width: none; }
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.doc-card:hover {
  border-color: rgba(127, 255, 225, 0.35);
  background: rgba(127, 255, 225, 0.06);
  color: var(--primary-soft);
}

.doc-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.doc-label {
  flex: 1;
}

.doc-arrow {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* ========== Links section ========== */
.links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 480px) {
  .links-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .links-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .links-grid { grid-template-columns: repeat(5, 1fr); }
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.link-card:hover {
  border-color: rgba(127, 255, 225, 0.35);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.link-card-primary:hover {
  box-shadow: var(--shadow-glow-strong);
}

.link-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.link-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.link-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.link-url {
  font-size: 0.8rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.cta-block {
  text-align: center;
  padding: 2rem 1rem;
}

.cta-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ========== Footer ========== */
.footer {
  position: relative;
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 5, 0.95) 100%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(127, 255, 225, 0.3));
  animation: logo-breathing 4s ease-in-out infinite;
}

.footer-logo-link:hover .footer-logo {
  filter: drop-shadow(0 0 18px rgba(127, 255, 225, 0.5));
  animation: logo-pulse 1.5s ease-in-out infinite;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.footer-legal {
  color: var(--disabled);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-link {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, text-shadow 0.2s;
}

.footer-link:hover {
  color: var(--glow);
  text-shadow: 0 0 12px rgba(127, 255, 225, 0.4);
}

/* ========== Document modal ========== */
.doc-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

.doc-modal[hidden] {
  display: none !important;
}

.doc-modal.visible {
  visibility: visible;
  opacity: 1;
}

.doc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.85);
  cursor: pointer;
}

.doc-modal-content {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  margin: 0 auto;
  background: var(--card-bg);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  border-bottom: none;
  box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}

.doc-modal.visible .doc-modal-content {
  transform: translateY(0);
}

.doc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.doc-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.doc-modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.doc-modal-close:hover {
  color: var(--primary);
  border-color: var(--glass-glow);
}

.doc-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.doc-modal-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  color: var(--primary);
  margin: 1rem 0 0.5rem;
}

.doc-modal-body h3:first-child {
  margin-top: 0;
}

.doc-modal-body p {
  margin: 0 0 0.75rem;
}

.doc-modal-body ul {
  margin: 0.5rem 0 1rem 1.25rem;
}

.doc-modal-body li {
  margin-bottom: 0.35rem;
}

.doc-modal-body a {
  color: var(--primary);
  text-decoration: none;
}

.doc-modal-body a:hover {
  text-decoration: underline;
}

/* ========== Particles ========== */
.particles-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.25;
  animation: float-particle 15s infinite;
}

@keyframes float-particle {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.2;
  }
  25% {
    transform: translate(20px, -30px) scale(1.2);
    opacity: 0.35;
  }
  50% {
    transform: translate(-15px, -60px) scale(0.8);
    opacity: 0.2;
  }
  75% {
    transform: translate(25px, -90px) scale(1);
    opacity: 0.3;
  }
}

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
