/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #0a0a14;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3 { font-family: 'Press Start 2P', cursive; }
.section-title {
  font-size: clamp(1rem, 3vw, 1.5rem);
  text-align: center;
  margin-bottom: 2.5rem;
  color: #c4b5fd;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* ===== Container ===== */
.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}
.nav-brand {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.9rem;
  color: #a78bfa;
}
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  color: #ccc; text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #a78bfa; }
.nav-toggle { display: none; background: none; border: none; color: #ccc; font-size: 1.5rem; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #0a0a14 0%, #1a0a2e 40%, #0d1a3a 70%, #0a0a14 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}
.particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute; width: 3px; height: 3px;
  background: rgba(196, 181, 253, 0.6);
  border-radius: 50%;
  animation: float linear infinite;
}
@keyframes float {
  from { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  to { transform: translateY(-10vh) scale(1); opacity: 0; }
}
.hero-content {
  position: relative; z-index: 1;
  padding: 2rem;
  max-width: 900px;
}
.hero-content h1 {
  font-size: clamp(1.5rem, 5vw, 3rem);
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.4);
}
.hero-content h2, .hero-content h3 {
  color: #c4b5fd;
  margin: 1.5rem 0 0.5rem;
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #b0b0c0;
  max-width: 600px;
  margin: 0 auto 1rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: none; border-radius: 8px;
  font-size: 1rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}
.btn-primary:hover { box-shadow: 0 6px 30px rgba(124, 58, 237, 0.6); }
.btn-secondary {
  background: #1a1a2e;
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.btn-secondary:hover { background: #2a2a3e; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-copy {
  background: #7c3aed; color: #fff;
  padding: 0.5rem 1.25rem; font-size: 0.9rem;
  border-radius: 6px;
}

/* ===== Sections ===== */
.section { padding: 5rem 0; background: #0a0a14; }
.section.section-alt { background: #0f0f1a; }

/* ===== IP Box ===== */
.ip-box {
  max-width: 420px; margin: 0 auto;
  background: linear-gradient(135deg, #1a1a2e, #16162a);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.ip-label {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.65rem;
  color: #a78bfa;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ip-row { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.ip-address {
  font-size: 1.15rem;
  color: #e9d5ff;
  background: rgba(139, 92, 246, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}
.ip-note { font-size: 0.8rem; color: #888; }

/* ===== Block types ===== */
.block-text { color: #b0b0c0; margin-bottom: 1rem; }
.block-text h1, .block-text h2, .block-text h3 { color: #c4b5fd; margin: 1.5rem 0 0.5rem; font-size: clamp(0.7rem, 2vw, 1rem); }
.block-text p { margin-bottom: 0.75rem; }
.block-text ul, .block-text ol { padding-left: 1.5rem; margin-bottom: 0.75rem; }
.block-text li { margin-bottom: 0.4rem; color: #ccc; }
.block-text code { background: #1a1a2e; padding: 0.15em 0.4em; border-radius: 4px; }

.block-image { margin: 1.5rem 0; text-align: center; }
.block-image img { max-width: 100%; height: auto; border-radius: 8px; }

.block-divider { border: none; border-top: 1px solid rgba(139, 92, 246, 0.2); margin: 2rem 0; }

.block-columns { display: flex; gap: 2rem; margin: 1.5rem 0; }
.block-columns .col-1 { flex: 1; }
.block-columns .col-2 { flex: 1; }
@media (max-width: 640px) {
  .block-columns { flex-direction: column; gap: 1rem; }
}

.section-marker { scroll-margin-top: 80px; }

/* ===== Footer ===== */
.footer {
  padding: 2.5rem 0;
  text-align: center;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  background: #0a0a14;
}
.footer-brand {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
  color: #7c3aed;
  margin-bottom: 0.5rem;
}
.footer p { font-size: 0.85rem; color: #666; }

/* ===== Fade-in animation ===== */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Mobile ===== */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10,10,20,0.95); padding: 1rem 2rem; gap: 1rem; }
  .nav-toggle { display: block; }
  .section { padding: 3.5rem 0; }
  .ip-row { flex-direction: column; gap: 0.5rem; }
}
