/* Palette */
/* Palette and tokens derived from hot pink + copper accents for a cyberpunk/hacker aesthetic */
:root {
  --bg: #0b0b12;
  --bg-2: #14101a;
  --text: #e8e0ff;
  --muted: #c9b9e0;
  --accent: #ff1e9a;       /* hot pink */
  --accent-2: #e07a2e;     /* copper/orange */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 214, 120, 0.45);
  --shadow: 0 8px 24px rgba(0,0,0,.28);
  --focus: 0 0 0 3px rgba(255, 30, 154, 0.4);
}

/* Layout & Background (layered gradient + pure CSS scanlines/noise) */
html, body {
  height: 100%;
}
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: 
    radial-gradient( circle at 20% -10%, rgba(255,30,154,.25) 0%, transparent 40% ),
    radial-gradient( circle at 90% 10%, rgba(192, 92, 0,.20) 0%, transparent 40% ),
    linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,.15) 60%, rgba(0,0,0,.0) 100%),
    linear-gradient(#0b0b12, #0b0b12);
  background-blend-mode: overlay;
  min-height: 100vh;
  position: relative;
  z-index: 0;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  /* subtle scanlines for depth */
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.05) 0 1px,
    transparent 1px 2px
  );
  mix-blend-mode: overlay;
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  body::before { /* keep scanlines but allow glass to glow behind it if supported */ }
}

/* Helpers & Utilities */
.container {
  width: 100%;
  max-width: clamp(640px, 86vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .15em .5em;
  border-radius: 999px;
  font-size: .75rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,0,122,.95), rgba(184,97,40,.95));
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  display: block;
  margin: 0 auto 1rem;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Base typography (fluid) */
h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: .2px;
}
h1 { font-size: clamp(1.8rem, 3vw + 1rem, 3rem); margin: 0 0 .25rem; color: #fff; }
h2 { font-size: clamp(1.4rem, 2.5vw + .5rem, 2.25rem); margin: .75rem 0 .25rem; }
h3 { font-size: clamp(1.1rem, 2vw + .25rem, 1.25rem); margin: .75rem 0; }
p { font-size: clamp(0.95rem, 1.6vw + .25rem, 1.125rem); line-height: 1.6; color: #e9e3f5; margin: .5rem 0 1rem; }

/* Anchor & button treatments (WCAG AA‑level contrast on glass) */
a, button, .btn, .cta {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  padding: .6rem 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255,30,154,.95), rgba(224,122,46,.95));
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; color: var(--accent-2); outline: none; }
.btn, .cta { background: linear-gradient(135deg, var(--accent), #ff6fbf); }
.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn:hover, .cta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.btn:active, .cta:active { transform: translateY(0); opacity: .95; }

/* Focus visibility for accessibility */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header styling (light glassy feel) */
header {
  padding: 1rem 0 0.75rem;
  position: relative;
  z-index: 1;
}
header h1 {
  font-weight: 700;
  margin: 0;
}
header .meta {
  color: var(--muted);
  font-size: .92rem;
  margin: .25rem 0 0;
}
nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: .25rem .5rem;
  border-radius: 6px;
}
nav a:hover, nav a:focus-visible { text-decoration: underline; }

/* Page sections & content */
main { padding: 1rem 0; position: relative; z-index: 1; }
article { display:block; }

/* Content helper (document sections) */
.content { color: var(--text); }

/* Product ad / footer blocks */
.product-ad {
  display: inline-block;
  padding: .4rem .6rem;
  border-radius: 8px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
}
footer { padding: 1rem 0; text-align: center; color: var(--muted); }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a, .btn, .cta { color: #000; background: transparent; border: none; }
  .image-frame { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}