/* index.css - Hacker Night Theme with Grid Paper, Frosted Glass, and Neon Maroon accents */
/* Mobile-first, responsive, accessible, lightweight (<20KB) */

:root {
  --bg: #0b0b0f;
  --bg-darker: #09090d;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.06);
  --text: #e8e8e8;
  --muted: #cbd5e1;
  --accent: #b4004e;      /* neon maroon */
  --accent-glow: 0 0 12px rgba(180,0,78,.75);
  --card-border: rgba(255,255,255,0.18);
  --radius: 14px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--bg);
  /* Black & dark grey grid paper background */
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Layout helpers */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.75rem 1rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.logo {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  background: rgba(0,0,0,.25);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 6px 20px rgba(0,0,0,.6);
}

.hero-copy h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin: 0.25rem 0;
  line-height: 1.15;
}

.subhead {
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  margin: 0.25rem 0 0.75rem;
}

.cta {
  display: inline-block;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #6a003d 0%, #b4004e 100%);
  border: 0;
  box-shadow: var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(180,0,78,0.95);
}
.cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Sections */
.section-title { font-size: 1.25rem; margin-bottom: .5rem; color: #fff; }

/* Features */
.features {
  margin-top: 1.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.22);
}

.features h2 { font-size: 1.35rem; margin-bottom: .75rem; color: #fff; }

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

.feature {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--card-border);
}
.feature h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.feature p { margin: 0; color: #e6e6e6; font-size: .95rem; }

/* Testimonials */
.testimonials {
  margin-top: 1.75rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.22);
}

.testimonials h2 { font-size: 1.25rem; margin-bottom: .75rem; }

.t-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.testimonial {
  padding: .75rem;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.18);
  color: #eaeaea;
}
.testimonial p { margin: 0; }
.testimonial footer { font-size: 0.88rem; color: #c8c8c8; margin-top: .25rem; }

/* Sponsored / Ad bottom in footer */
.site-footer { padding: 1.25rem; }
.ad-bottom { padding: 1rem; border-radius: 12px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.22); }
.ad-bottom h2 { font-size: 1.1rem; margin-bottom: .25rem; }
.ad-link { color: #fff; text-decoration: none; font-weight: 600; }
.ad-link:hover { text-decoration: underline; }

/* Focus & accessibility for links */
a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Responsive layout */
@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    display: grid;
  }
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .t-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
