html, body, header, nav, main, article, footer, aside {
  box-sizing: border-box;
}

:root {
  --bg: #000000;
  --bg-2: #0a0f12;
  --surface: rgba(6, 14, 14, 0.34);
  --surface-2: rgba(6, 14, 14, 0.22);
  --text: #e6fffe;
  --muted: #9bdad7;
  --accent: #2ee6c7;
  --accent-2: #00ffd0;
  --border: rgba(46, 230, 199, 0.65);
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0,0,0,.45);
  --focus: 3px solid #00ffd6;
  --shadow-soft: 0 6px 14px rgba(0,0,0,.35);
  --glass: rgba(16, 28, 28, 0.28);
  --glass-border: rgba(46, 230, 199, 0.55);
}

* { box-sizing: inherit; }

html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #000 0%, #03090a 60%, #021012 100%);
  min-height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 255, 210, 0.08) 0 60px, transparent 60px),
    radial-gradient(circle at 80% 30%, rgba(0, 170, 170, 0.06) 0 80px, transparent 80px),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 100%);
  mix-blend-mode: overlay;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.03) 0 1px, transparent 1px 2px);
  opacity: 0.35;
  z-index: 0;
  mix-blend-mode: overlay;
}

header {
  padding: clamp(1rem, 4vw, 2rem) 1rem;
  text-align: center;
  background: rgba(2, 6, 6, 0.42);
  border-bottom: 1px solid rgba(46, 230, 199, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 5;
}
header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw + 0.8rem, 2.8rem);
  line-height: 1.08;
  letter-spacing: .2px;
  color: var(--text);
  text-shadow: 0 0 12px rgba(0, 255, 208, 0.4);
}

main { padding: 0.75rem 1rem 1.25rem; }
article { display: grid; place-items: center; padding: 0.5rem 0; }

.image-frame {
  width: min(92vw, 720px);
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  border: 1px solid rgba(46, 230, 199, 0.65);
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.04);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Subtle glow for depth on image */
  filter: saturate(1.08);
}
.image-frame:focus { outline: none; }

footer {
  padding: 1rem;
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: stretch;
  background: linear-gradient(to top, rgba(0,0,0,0.25), rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.0) 100%);
}
.product-ad, .sponsored-page {
  background: rgba(6, 12, 12, 0.32);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.75rem;
  text-align: center;
  width: 100%;
  max-width: 680px;
  color: var(--text);
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: block; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }
footer p { margin: 0; color: var(--muted); font-size: .92rem; }

@media (min-width: 700px) {
  footer {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .product-ad, .sponsored-page { justify-self: stretch; }
}

/* Content helpers that may be present in the page or future additions */
.content { padding: 0.75rem; color: var(--muted); }

/* Utility grid / card / tag styles */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin: 0 auto;
  padding: 0 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid rgba(46,230,199,0.6);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .15em .6em;
  border-radius: 999px;
  font-size: .75rem;
  color: #041c1a;
  background: linear-gradient(135deg, #2ee6c7, #00ffd0);
  border: 1px solid rgba(0,0,0,.15);
}

/* Link and button treatments with clear focus visibility */
a, button, .btn, .cta {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--accent-2);
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
  outline: none;
}
button, .btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75em 1.15em;
  border-radius: 999px;
  border: 1px solid rgba(46,230,199,0.85);
  background: rgba(32, 214, 179, 0.25);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.btn { padding: .75em 1.25em; }
.btn.primary {
  background: linear-gradient(135deg, rgba(0,255,210,.95), rgba(46,230,199,.85));
  color: #00201a;
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.btn.outline {
  background: transparent;
  border-color: rgba(46,230,199,.9);
  color: var(--text);
}
button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  outline: var(--focus);
  outline-offset: 3px;
}
button:hover, .btn:hover, .cta:hover {
  transform: translateY(-1px);
  background: rgba(32,214,179,0.34);
}
.btn:active, .cta:active {
  transform: translateY(0);
  background: rgba(32,214,179,0.28);
}

/* Layout helpers */
ul, li { list-style: none; padding: 0; margin: 0; }

/* Typography rhythm */
h1, h2, h3, h4 {
  margin: 0 0 .5rem;
  line-height: 1.15;
}
p { margin: 0 0 1rem; }

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Light mode variant for readability when user prefers light scheme */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fb;
    --bg-2: #eef2f5;
    --surface: rgba(255,255,255,0.72);
    --surface-2: rgba(255,255,255,0.9);
    --text: #0b1220;
    --muted: #4b5563;
    --accent: #0a7a7a;
    --accent-2: #0a9;
    --glass: rgba(255,255,255,0.9);
    --glass-border: rgba(0,0,0,0.15);
  }
  body {
    background: linear-gradient(135deg, #f7f9fb 0%, #eef3f6 60%, #e9f0f3 100%);
    color: var(--text);
  }
  header {
    background: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    backdrop-filter: blur(6px);
  }
  .image-frame { border-color: rgba(0,0,0,.15); background: rgba(255,255,255,0.95); }
  .card { background: rgba(255,255,255,0.9); border-color: rgba(0,0,0,.15); }
  a { color: #0b4a4a; }
}

/* Print styles for readability */
@media print {
  body { background: #fff; color: #000; }
  header, footer { display: none; }
  .image-frame { border: 1px solid #000; }
}