/* Base tokens & reset */
:root {
  --bg: #0a0a12;
  --bg-2: #0e1120;
  --text: #eaf6ff;
  --muted: #b5c7d9;
  --accent: #ff2d95;     /* hot pink */
  --accent-2: #1ee6d8;    /* turquoise */
  --glass: rgba(255, 255, 255, 0.18);
  --glass-strong: rgba(255, 255, 255, 0.28);
  --border: rgba(255, 255, 255, 0.35);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg) 0%, #0b0d1a 60%, var(--bg) 100%), 
              radial-gradient(circle at 25% 15%, rgba(255,45,149,.15), transparent 40%),
              radial-gradient(circle at 80% 40%, rgba(30, 230, 216, .12), transparent 40%);
  background-blend-mode: overlay, overlay, overlay;
  position: relative;
  overflow-x: hidden;
  /* Hot pink low-poly triangle overlay (CSS-only approximation) */
  --tri1: rgba(255, 45, 149, .25);
  --tri2: rgba(30, 230, 216, .20);
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(135deg, var(--tri1) 25%, transparent 25%),
    linear-gradient(315deg, var(--tri2) 25%, transparent 25%);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
body::after {
  /* subtle scanlines */
  content: "";
  position: fixed; inset: 0;
  background-image: linear-gradient(to bottom, rgba(0,0,0,.0) 0 60%, rgba(0,0,0,.08) 60% 61%, rgba(0,0,0,.0) 61% 100%);
  background-size: 100% 2px;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}

/* Layout helpers */
.container {
  max-width: clamp(320px, 86vw, 1100px);
  margin-inline: auto;
  padding-block: 1rem;
  position: relative;
  z-index: 1;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Section elements (required selectors) */
html, body, header, nav, main, article, footer, aside { }
header {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.15);
  background: rgba(6,10,24,.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
header h1 { 
  font-size: clamp(1.4rem, 2.5vw + 1rem, 2.4rem);
  line-height: 1.15;
  margin: .25rem 0 .5rem;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 0.8vw + 0.4rem, 1rem);
}
nav {
  margin-top: .25rem;
  display: inline-flex;
  gap: .5rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .25rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
}
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: none; }

/* Main content */
main { padding: 1rem 0 2rem; }
article { padding: 0 .25rem; }

/* Image frame */
.image-frame {
  aspect-ratio: 16 / 9;
  border-radius: .75rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
  margin: .5rem 0 1rem;
  background: #000;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content styling hook */
.content { padding: 0; }

/* Text & typography */
p, li, h2, h3 {
  color: #eaf5ff;
}
h2 { font-size: clamp(1.25rem, 1.4rem + 1vw, 2rem); margin: .75rem 0 .5rem; }
h3 { font-size: clamp(1.05rem, .9rem + .9vw, 1.25rem); margin: .5rem 0; }
blockquote {
  border-left: 3px solid var(--accent);
  padding: .25rem 0 .25rem .75rem;
  color: #eaffff;
  margin: .5rem 0;
  font-style: italic;
  opacity: .95;
}

/* Lists & helper UI */
ul, ol { padding-left: 1.25rem; margin: .5rem 0 1rem 0; color: #eaf6ff; }
li { margin: .25rem 0; }

/* Glass panels (fallback if backdrop-filter unsupported) */
.glass {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius);
  padding: .75rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.no-backdrop .glass { background: rgba(255,255,255,.85); opacity: .98; }

/* Product ad / footer blocks (glass panels) */
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  padding: .75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.15);
  margin: .5rem 0;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s ease, background .2s ease;
}
.product-ad:hover, .sponsored-page:hover { transform: translateY(-1px); background: rgba(255,255,255,.22); text-decoration: none; }
.product-ad a, .sponsored-page a { color: inherit; text-decoration: none; }

/* Links & buttons (interactive states) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
a { cursor: pointer; }
a:hover, a:focus-visible { text-decoration: underline; color: var(--accent); outline: none; }
.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Outline variant */
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
}
.btn--outline:hover { background: rgba(255,255,255,.08); }

/* Utility chips / tags */
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.4);
  color: #e8feff;
}

/* Image & content helpers */
.image-frame { outline: none; }

/* Layout helpers for potential aside usage */
aside { display: none; }

/* Responsive tweaks */
@media (min-width: 700px) {
  main { padding: 1.25rem 0 2rem; }
  .container { padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print styles */
@media print {
  body { background: white; color: black; }
  nav, .image-frame { display: none; }
  a { color: black; text-decoration: underline; }
}
