:root {
  --bg: #0a0a1a;
  --bg-2: #0b0a2a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.28);
  --text: #eaeaff;
  --muted: #bdb7d9;
  --rose: #B76E79;
  --rose-2: #E6A289;
  --neon: #7ef0ff;
  --neon-2: #9d5cff;
  --focus: #7af5ff;
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --radius: 14px;
  --radius-sm: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif;
  --gap: 1rem;
}

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

html, body { height: 100%; }
html { line-height: 1.15; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  min-height: 100%;
  position: relative;
  background: linear-gradient(135deg, rgba(15,0,25,.95) 0%, rgba(4,0,20,.95) 60%, rgba(6,0,18,.95) 100%), #000;
  /* Layered backdrop for ultraviolet cyberpunk vibe */
  background-image:
    radial-gradient(circle at 20% -10%, rgba(122, 251, 255, 0.18) 0%, rgba(122,251,255,0) 40%),
    radial-gradient(circle at 80% 10%, rgba(214, 110, 121, 0.25) 0%, rgba(214,110,121,0) 40%);
  background-blend-mode: screen, normal;
  isolation: isolate;
  overflow-x: hidden;
}

/* Subtle scanline/noise texture (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 6px 6px;
  mix-blend-mode: overlay;
  opacity: .22;
  filter: saturate(1.1);
}

/* Layout helpers */
.container {
  width: min(92%, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
  position: relative;
  z-index: 1;
}

.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

/* Frosted glass panels (fallback included) */
.glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255, 255, 255, 0.18); }
}

/* Typography
   Fluid, accessible with clamp() and legible line-height
*/
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.15;
}
p { margin: 0; }

/* Header (hero) */
header {
  padding: clamp(1.25rem, 2.6vw, 2.5rem) 0;
  display: grid;
  place-items: center;
  text-align: center;
}
header > .content {
  padding: 1rem;
}
header h1 {
  font-size: clamp(1.6rem, 2.4vw + 1rem, 3rem);
  line-height: 1.08;
  letter-spacing: .2px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
header.glass-wrap {
  width: min(92%, 900px);
}
header.glass-wrap + main { margin-top: 0.5rem; }

/* Main content */
main { padding: 1rem 0 2rem; }
article { display: grid; place-items: center; padding: 1rem 0; }

/* Image frame */
.image-frame {
  position: relative;
  width: min(92%, 760px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .3s ease;
}
.image-frame:focus-within img,
.image-frame:hover img {
  transform: scale(1.02);
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* subtle inner glow */
  box-shadow: inset 0 0 60px rgba(183,110,121,.65);
  pointer-events: none;
}
.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* soft outer glow to hint neon edge */
  box-shadow: 0 0 40px rgba(183,110,121,.4);
  pointer-events: none;
}

/* Content area under hero if used */
.content {
  padding: 1rem;
  text-wrap: pretty;
  color: var(--text);
}
.tag { display: inline-block; padding: .25rem .6rem; border-radius: 999px; background: rgba(183,110,121,.25); color: #fff; font-size: .75rem; }

/* Product ad / footer-like blocks */
footer {
  padding: 1.5rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  align-items: center;
  justify-items: center;
  border-top: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.22);
}
.product-ad, .sponsored-page {
  width: min(90%, 520px);
  padding: .75rem;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
}
.product-ad a, .sponsored-page a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: .6rem .8rem;
  border-radius: 999px;
  color: #fff;
}
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }

/* Link and button styles (accessibility: focus-visible) */
a, button, .btn, .cta {
  outline: none;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
a:hover { text-decoration: underline; }
a { color: #fff; }

.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-2) 100%);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 6px 16px rgba(183,110,121,.45);
}
.btn:hover, .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(183,110,121,.55);
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(183,110,121,.9);
  color: #fff;
  box-shadow: none;
}
.btn.small { padding: .5rem .9rem; font-size: .9rem; }

.cta { /* alias for primary action variants if used in markup */
  /* same styling as .btn to maintain visual consistency */
}

/* Lists (ul, li) */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Image scaling helper (if used in grid) */
img { max-width: 100%; height: auto; display: block; }

/* Print styles — basic readability */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { page-break-after: avoid; }
  .image-frame { page-break-inside: avoid; }
}

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