/* Base tokens */
:root {
  --bg: #0b0f14;
  --bg-2: #0a0e14;
  --text: #eaf2ff;
  --muted: #a9b6cf;
  --accent: #ffd60a;      /* cyber yellow */
  --accent-2: #f2b9cf;    /* powder rose */
  --card: rgba(255, 255, 255, 0.08);
  --card-2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.28);
  --radius: 14px;
  --focus-ring: 0 0 0 3px rgba(255, 214, 10, .65);
}

/* Section headers (sectioning only) */
 /* Base reset & global */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
:where(img) { max-width: 100%; display: block; }

/* Layered background: gradient + subtle noise/scanline */
html, body {
  height: 100%;
}
body {
  margin: 0;
  color: var(--text);
  background: #0b0f14;
  background-image:
    linear-gradient(to bottom right, rgba(0,0,0,.22), rgba(0,0,0,.0) 60%),
    radial-gradient(circle at 20% -10%, rgba(255,214,10,.16), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0px, rgba(255,255,255,.04) 1px, transparent 1px, transparent 2px);
  background-blend-mode: overlay, screen, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 88vw, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
}
@supports not (backdrop-filter: blur(8px)) {
  .card { background: rgba(255,255,255,.12); }
}
.tag {
  display: inline-block;
  padding: .25em .5em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(255, 214, 10, .25);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
}
ul { margin: 0; padding: 0; list-style: none; }
li { margin: 0; }

/* Glass panels: headers, cards, sections */
header, footer, .card, .product-ad, .sponsored-page {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  padding: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(8px)) {
  header, footer, .card, .product-ad, .sponsored-page { background: rgba(255,255,255,.14); }
}

/* Structural selectors (must style) */
html, body, header, nav, main, article, footer, aside {
  /* Ensure basic layout intent without removing semantics */
}
main { padding: 1rem 0; display: block; }

/* Header / hero typography */
header {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 4rem) 1rem;
}
header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw + 1rem, 4rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: .2px;
  color: #fff;
  text-align: center;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}

/* Main content: image frame */
.image-frame {
  width: min(92vw, 760px);
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
  margin: 0 auto;
  background: rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
}
main article { display: grid; place-items: center; padding: 1rem 0 2rem; }

/* Content helper */
.content {
  color: var(--muted);
  padding: 0.25rem 0;
}
a, button, .btn, .cta {
  text-decoration: none;
  color: #fff;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}
a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; color: var(--accent-2); }

/* Buttons & CTAs (solid and outline variants) */
.btn {
  display: inline-block;
  padding: .75rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.14);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn.secondary { background: rgba(0,0,0,.25); border-color: rgba(255,255,255,.6); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #ffd83a);
  border: none;
  color: #1d1d1d;
  text-shadow: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Link variants within the theme */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.12);
  color: #fff;
}
.cta:hover { background: rgba(255,255,255,.18); }

/* Product ad / footer sections */
.product-ad, .sponsored-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem;
}
.product-ad a, .sponsored-page a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.10);
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.product-ad a:hover, .sponsored-page a:hover { transform: translateY(-1px); background: rgba(255,255,255,.14); }

/* Footer text */
footer {
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}
footer p { margin: .25rem 0 0; }

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

/* Print-friendly */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; box-shadow: none; }
}
