/* ============================================================
   PIXL — Landing Page Styles
   Mobile-first, pure CSS, no frameworks
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --bg:           #12050B;
  --bg-2:         #1c0812;
  --bg-card:      #1f0a15;
  --main:         #DD0067;
  --main-dim:     #990047;
  --main-glow:    rgba(221, 0, 103, 0.45);
  --gold:         #DDC700;
  --gold-glow:    rgba(221, 199, 0, 0.4);
  --text:         #DFBFCE;
  --text-dim:     #8a5f70;
  --success:      #2CDD38;
  --soft-green:   #89DD8C;
  --soft-orange:  #DD9B89;
  --soft-pink:    #D789DD;
  --soft-purple:  #9489DD;
  --border:       rgba(221, 0, 103, 0.25);
  --font-head:    'Pixelify Sans', monospace;
  --font-body:    'JetBrains Mono', monospace;
  --radius:       4px;
  --transition:   0.2s ease;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: var(--main); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: #fff;
}

/* ── Scanline texture (hero only) ─────────────────────────── */
.scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.18) 2px,
    rgba(0, 0, 0, 0.18) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ── Noise overlay ────────────────────────────────────────── */
.noise::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 64px 0; }

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--main);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-dim);
  max-width: 520px;
  font-size: 13px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--font-head);
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border-radius: var(--radius);
  text-decoration: none;
}

.btn-primary {
  background: var(--main);
  color: #fff;
  border-color: var(--main);
  box-shadow: 0 0 18px var(--main-glow);
}
.btn-primary:hover {
  background: transparent;
  color: var(--main);
  box-shadow: 0 0 28px var(--main-glow);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--main);
  color: var(--main);
  box-shadow: 0 0 14px var(--main-glow);
}

.btn svg { flex-shrink: 0; }

/* ── Header ───────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(18, 5, 11, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  border: 2px solid var(--main);
  box-shadow: 0 0 8px var(--main-glow);
}

.logo-text {
  font-family: var(--font-head);
  font-size: 22px;
  color: #fff;
  letter-spacing: 0.05em;
}

.logo-text span { color: var(--main); }

nav {
  display: none;
  gap: 28px;
}

nav a {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--transition);
}
nav a:hover { color: var(--main); }

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  nav { display: flex; }
  .header-cta { display: inline-flex; }
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(221,0,103,0.12) 0%, transparent 70%),
    var(--bg);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(221,0,103,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(221,0,103,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.hero-icon-wrap {
  position: relative;
  display: inline-block;
}

.hero-icon {
  width: 110px;
  height: 110px;
  image-rendering: pixelated;
  border: 3px solid var(--main);
  box-shadow:
    0 0 0 6px rgba(221,0,103,0.12),
    0 0 40px var(--main-glow),
    0 0 80px rgba(221,0,103,0.15);
  border-radius: var(--radius);
}

.hero-badge {
  position: absolute;
  bottom: -10px;
  right: -14px;
  background: var(--gold);
  color: #000;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px var(--gold-glow);
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  letter-spacing: 0.06em;
  text-shadow: 0 0 40px rgba(221,0,103,0.4);
}

.hero-title .accent { color: var(--main); }

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(14px, 2.5vw, 18px);
  color: var(--text);
  max-width: 420px;
  opacity: 0.85;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 460px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat strong {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--gold);
}

.hero-stat span {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hero-icon { width: 140px; height: 140px; }
}

/* ── About ────────────────────────────────────────────────── */
#about {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
}

.about-text { max-width: 580px; }

.about-text p {
  color: var(--text);
  font-size: 14px;
  margin-bottom: 14px;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.pill {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  border: 1px solid;
}

.pill-green  { color: var(--soft-green);  border-color: var(--soft-green);  background: rgba(137,221,140,0.08); }
.pill-pink   { color: var(--soft-pink);   border-color: var(--soft-pink);   background: rgba(215,137,221,0.08); }
.pill-orange { color: var(--soft-orange); border-color: var(--soft-orange); background: rgba(221,155,137,0.08); }

@media (min-width: 900px) {
  .about-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ── Categories ───────────────────────────────────────────── */
#categories { background: var(--bg); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: default;
  transition: all 0.22s ease;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, var(--main-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.cat-card:hover {
  border-color: var(--main);
  box-shadow: 0 0 20px var(--main-glow), inset 0 0 20px rgba(221,0,103,0.06);
  transform: translateY(-2px);
}

.cat-card:hover::before { opacity: 1; }

.cat-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
  position: relative;
  z-index: 1;
}

.cat-name {
  font-family: var(--font-head);
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

@media (min-width: 600px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .cat-img { width: 80px; height: 80px; }
}

/* ── Features ─────────────────────────────────────────────── */
#features {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: var(--main);
  box-shadow: 0 0 24px var(--main-glow);
}

.feature-img-wrap {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(221,0,103,0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.feature-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
}

.feature-body h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.feature-body p {
  font-size: 13px;
  color: var(--text-dim);
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }

  .feature-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── CTA strip ────────────────────────────────────────────── */
#cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 200% at 50% 50%, rgba(221,0,103,0.18) 0%, transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}

#cta .section-title { margin-bottom: 10px; }
#cta .section-sub   { margin: 0 auto 32px; }

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--main); }

.footer-copy {
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.6;
}

/* ── Privacy Policy page ──────────────────────────────────── */
.policy-hero {
  padding: 120px 0 64px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(221,0,103,0.1) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.policy-hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.policy-hero p {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 10px;
}

.policy-body {
  padding: 60px 0;
  max-width: 760px;
  margin: 0 auto;
}

.policy-body h2 {
  font-size: 18px;
  margin: 36px 0 10px;
  color: var(--main);
}

.policy-body h2:first-child { margin-top: 0; }

.policy-body p,
.policy-body li {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.8;
}

.policy-body ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.policy-body a { color: var(--main); }
.policy-body a:hover { color: var(--gold); }

/* ── Utility ──────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
