:root{
  --bg: #0a0a0f;
  --bg-2: #0f0f14;
  --text: #e9e9f7;
  --muted: #a6a6b8;
  --accent: #ff2fae;       /* neon pink */
  --accent-2: #b66a2c;     /* copper */
  --card: rgba(255,255,255,0.08);
  --card-2: rgba(255,255,255,0.12);
  --border: rgba(255,255,255,0.25);
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --focus: 0 0 0 3px rgba(255,255,255,.9);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

html { text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: #0a0a0f;
  min-height: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  /* Layered background base to support glow + contrast */
  background-image: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.0) 60%), 
                    radial-gradient(circle at 20% 0%, rgba(255,0,160,.25), transparent 40%),
                    radial-gradient(circle at 70% 10%, rgba(182,106,44,.25), transparent 40%);
  background-blend-mode: screen, normal, normal;
}

/* Subtle neon/copper glow behind content (no external assets) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 15% 0%, rgba(255,0,140,.25), transparent 40%),
              radial-gradient(circle at 75% 15%, rgba(182,106,44,.25), transparent 40%);
  mix-blend-mode: screen;
  filter: saturate(1.1);
}

/* Subtle scanline overlay for "neon cyber" feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
                to bottom,
                rgba(255,255,255,.04) 0px,
                rgba(255,255,255,.04) 1px,
                transparent 1px,
                transparent 3px
             );
  mix-blend-mode: overlay;
  opacity: .6;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  padding-inline: 1rem;
  margin-inline: auto;
}

/* Sections and typography */
header {
  text-align: center;
  padding-block: 2rem;
  position: relative;
  z-index: 1;
}
header h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.5vw + 1rem, 3rem);
  letter-spacing: .2px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(255,0,140,.55);
}
main {
  display: grid;
  place-items: center;
  padding: 1rem 0 2rem;
  position: relative;
  z-index: 1;
}
article { width: 100%; }

/* Image frame styling (glass-border + glow) */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: #0b0b0f;
  box-shadow: 0 12px 28px rgba(0,0,0,.42);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* mild color punch without heavy filtering */
  image-rendering: auto;
  filter: saturate(1.05) contrast(1.05);
}

/* Glass panel utility (fallback included) */
.content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}
@supports not (backdrop-filter: blur(12px)) {
  .content {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.4);
  }
}

/* Footer / ad sections */
footer {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  align-items: center;
  justify-items: center;
  position: relative;
  z-index: 1;
}
.product-ad a,
.sponsored-page a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease, background .2s;
}
.product-ad a:hover,
.sponsored-page a:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.product-ad a:focus-visible,
.sponsored-page a:focus-visible { outline: var(--focus); outline-offset: 2px; }

/* Text in footer */
footer p { color: var(--muted); font-size: 0.9rem; text-align: center; grid-column: 1 / -1; }

/* Utility elements common styles */
ul, li { margin: 0; padding: 0; list-style: none; }
.btn,
a.btn,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.6);
  padding: .75rem 1.2rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: rgba(255,255,255,.12);
  transition: transform .2s ease, background .2s ease, box-shadow .2s;
}
.btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.18); }
.btn:active { transform: scale(0.98); }
.cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.btn:focus-visible,
.cta:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 2px;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* Tag badge */
.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,.35);
  color: #fff;
}

/* Localized grid utility for content blocks */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  width: 100%;
}

/* Link colour safety for high-contrast over glass */
@media (prefers-contrast: more) {
  a, .btn, .cta { text-decoration-thickness: 0.3px; }
}

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

/* Print styles for readability */
@media print {
  body { background: white; color: black; }
  header, main, footer { text-align: left; }
  .image-frame { break-inside: avoid; border: 1px solid #000; }
}
