/* ─── Google Fonts (loaded in HTML) ─────────────────────────────── */
/* Press Start 2P | Inter | JetBrains Mono */

/* ─── Design Tokens ──────────────────────────────────────────────── */
:root {
  --bg:      #0a0a0f;
  --surface: #12121a;
  --border:  #1e1e2e;
  --green:   #00ff88;
  --purple:  #7c3aed;
  --orange:  #ff6b35;
  --text:    #e2e8f0;
  --muted:   #8896a8;
}

/* ─── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ─── Navbar ─────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  color: var(--green);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
  letter-spacing: 0.05em;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s;
  font-family: 'JetBrains Mono', monospace;
}
.nav-links a:hover { color: var(--text); }

/* ─── Hero ───────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.pixel-brick {
  position: absolute;
  width: 16px; height: 16px;
  background: var(--orange);
  box-shadow:
    inset -3px -3px 0 rgba(0,0,0,0.4),
    inset 3px 3px 0 rgba(255,255,255,0.15);
  animation: float-brick 10s linear infinite;
}
@keyframes float-brick {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}
.hero-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(2rem, 8vw, 5rem);
  color: var(--green);
  text-shadow:
    0 0 7px #00ff88,
    0 0 20px #00ff88,
    0 0 40px rgba(0,255,136,0.5);
  animation: glow-pulse 3s ease-in-out infinite;
  margin-bottom: 1.5rem;
  position: relative;
  letter-spacing: 0.05em;
}
@keyframes glow-pulse {
  0%, 100% {
    text-shadow:
      0 0 7px #00ff88,
      0 0 20px #00ff88,
      0 0 40px rgba(0,255,136,0.5);
  }
  50% {
    text-shadow:
      0 0 10px #00ff88,
      0 0 30px #00ff88,
      0 0 60px #00ff88,
      0 0 80px rgba(0,255,136,0.3);
  }
}
.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.pixel-divider {
  font-size: 1rem;
  letter-spacing: 0.5rem;
  margin-bottom: 2rem;
  color: rgba(0,255,136,0.25);
}
.btn-pixel {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: var(--bg);
  background: var(--green);
  border: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0,255,136,0.25);
  transition: transform 0.1s, box-shadow 0.1s;
  letter-spacing: 0.05em;
}
.btn-pixel:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0,255,136,0.25);
}
.btn-pixel:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(0,255,136,0.25);
}

/* ─── Sections (shared) ──────────────────────────────────────────── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25rem;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.8;
}
.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.875rem, 2.5vw, 1.5rem);
  color: var(--text);
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* ─── Products ───────────────────────────────────────────────────── */
#products { border-top: 1px solid var(--border); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.product-card:hover { border-color: rgba(0,255,136,0.35); transform: translateY(-4px); }
.product-card:hover::before { transform: scaleX(1); }
.product-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--green);
  border: 1px solid rgba(0,255,136,0.3);
  padding: 0.2rem 0.5rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.15rem;
}
.product-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.product-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.75;
}
.product-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}
.product-link:hover { gap: 0.75rem; }

/* ─── About ──────────────────────────────────────────────────────── */
#about { border-top: 1px solid var(--border); }
.about-body {
  max-width: 680px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.9;
}
.about-body p + p { margin-top: 1.25rem; }

/* ─── Contact ────────────────────────────────────────────────────── */
#contact { border-top: 1px solid var(--border); }
.contact-email {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--green);
  display: inline-block;
  margin-top: 0.5rem;
  transition: text-shadow 0.3s ease;
}
.contact-email:hover {
  text-shadow: 0 0 15px rgba(0,255,136,0.6);
}

/* ─── Footer ─────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ─── Legal Pages ────────────────────────────────────────────────── */
.legal-page {
  padding-top: 6rem;
  min-height: 100vh;
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.legal-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--green);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.legal-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.legal-body h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  line-height: 1.6;
}
.legal-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1rem;
}
.legal-body ul {
  margin: 0.75rem 0 1rem 1.5rem;
}
.legal-body ul li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 0.4rem;
}
.legal-body a { color: var(--green); }
.legal-body a:hover { text-decoration: underline; }

/* ─── Focus Visible ──────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.btn-pixel:focus-visible {
  outline: 2px solid var(--bg);
  outline-offset: -4px;
  box-shadow: 0 0 0 4px var(--green), 4px 4px 0 rgba(0,255,136,0.25);
}

/* ─── Scroll Reveal ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.65rem; }
  .section-inner { padding: 4rem 1.25rem; }
  .hero-title { letter-spacing: 0; }
}
@media (max-width: 420px) {
  .nav-links { display: none; }
}

/* ─── Reduced Motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .pixel-brick { display: none; }
}
