/* Base & Theme Tokens (Dark cyber theme with brown/m magenta accents) */
:root {
  --bg: #1b120d;
  --bg-2: #25120d;
  --text: #f8f2f7;
  --muted: #cdb9c9;
  --accent: #ff2bd9;
  --accent-2: #b400ce;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(0, 0, 0, 0.25);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  --focus-ring: 3px solid #fff;
  --glow: 0 6px 18px rgba(255, 0, 180, 0.35);
}

/* Base reset / helpers */
* { box-sizing: border-box; }
html, body { height: 100%; }
ul, li { padding: 0; margin: 0; list-style: none; }

/* Layered, responsive, future-cyber background (gradient + subtle scanlines) */
html, body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
body {
  margin: 0;
  color: var(--text);
  /* Brown waves vibe with a magenta accent; layered gradient + scanlines */
  background:
    linear-gradient(135deg, #2a160f 0%, #2a120e 40%, #1b0f0a 100%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
  min-block-size: 100%;
  /* prefers-color-scheme fallback handled below for light mode */
}

/* Subtle global transitions (respect reduced motion) */
* { transition: background-color .2s ease, color .2s ease; }

/* Layout primitives */
.container {
  width: min(100%, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card, .content, .product-ad {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not ( backdrop-filter: blur(10px) ) {
  .card, .content, .product-ad { background: rgba(255,255,255,.18); }
}
header, nav, main, article, aside, footer { display: block; }

/* Header / hero */
header {
  padding: 3rem 0 1.5rem;
  display: grid;
  place-items: center;
}
header h1 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem);
  line-height: 1.04;
  text-align: center;
  margin: 0;
  letter-spacing: .5px;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
main { padding: 0 1rem 2rem; }

/* Image frame (device-like presentation) */
.image-frame {
  width: min(100%, 860px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  box-shadow: 0 12px 28px rgba(0,0,0,.5);
  display: grid;
  align-items: center;
  justify-items: center;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  /* subtle glow around image */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 0 20px rgba(255, 0, 180, 0.25);
}
@media (prefers-color-scheme: light) {
  .image-frame { border-color: rgba(0,0,0,.15); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
  .image-frame img { filter: none; }
}

/* Content blocks */
.content { padding: 1rem; }

/* Utility classes */
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
}
a, button, .btn, .cta {
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Buttons (solid + outline variants) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); background: #e01bd1; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.btn--outline:hover { background: rgba(255,255,255,.08); }

/* Glass panels (fallback handled via @supports) */
.product-ad, .card, .content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem;
}
.product-ad a { display: block; text-align: center; padding: .6rem; border-radius: 10px; background: linear-gradient(135deg, rgba(255,0,180,.8), rgba(176,0,220,.8)); text-decoration: none; color: #fff; }
.product-ad a:hover { filter: brightness(1.05); }

/* Navigation (minimal, presentational) */
nav { display: flex; gap: .75rem; align-items: center; justify-content: center; padding: .5rem 0; }

/* List styles (if used) */
ul { padding-left: 0; }

/* Footer */
footer { padding: 1.75rem 1rem; display: grid; gap: .75rem; justify-items: center; text-align: center; }

/* Layout helpers for responsive sections */
@media (min-width: 760px) {
  main { display: grid; place-items: start center; padding: 0 1.5rem 2rem; }
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f0e8;
    --bg-2: #efe6dc;
    --text: #1a1a1a;
    --muted: #555;
    --surface: rgba(255,255,255,.92);
    --border: rgba(0,0,0,.15);
  }
  body {
    background: linear-gradient(135deg, #f6efe8 0%, #efe6dc 60%, #f7f0e8 100%), 
                repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  }
  header h1 { color: #1a1a1a; text-shadow: none; }
  .product-ad a { background: linear-gradient(135deg, #8a2be6, #b400ce); }
}

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

/* Print-friendly tweaks (small) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
