/* Section: Base Theme */
:root{
  --bg: #0a0f1a;
  --bg-2: #0b1220;
  --text: #e8f0ff;
  --muted: #a5b4d8;
  --accent: #4cc9f0;
  --accent-2: #9b7aff;
  --surface: rgba(12,16,28,.72);
  --surface-2: rgba(12,16,28,.5);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 28px rgba(0,0,0,.45);
  --glass: rgba(20,24,40,.18);
  --text-strong: #f6fbff;
}
html, body { height: 100%; }

/* Section: Layout & Typography (Mobile-first) */
html, body, header, nav, main, article, footer, aside { box-sizing: border-box; }
html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html, body {
  background: linear-gradient(135deg, rgba(2,6,14,.95), rgba(6,10,20,.95) 60%), 
              radial-gradient(circle at 20% 0, rgba(76, 201, 240, .04) 0 8%, transparent 8%);
  background-blend-mode: overlay, normal;
}
body {
  margin: 0;
  color: var(--text);
  min-height: 100svh;
  line-height: 1.5;
  background-image:
    linear-gradient(to bottom, rgba(2,6,14,.95), rgba(2,6,14,.95)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-repeat: repeat;
  background-attachment: fixed;
}
a, button, .btn, .cta { cursor: pointer; }

/* Section: Glass Panels & Layered UI */
header, main, article, footer {
  contain: layout style;
}
header {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(0,0,0,.28);
  border-bottom: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
header h1 {
  font-size: clamp(1.8rem, 2.6vw + 1rem, 3.6rem);
  line-height: 1.05;
  margin: 0 0 .5rem;
  letter-spacing: .2px;
  color: var(--text-strong);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
header .meta {
  font-size: clamp(0.85rem, 0.8vw + .5rem, 1rem);
  color: var(--muted);
  margin: 0;
}
main {
  display: grid;
  place-items: center;
  padding: 1rem;
}
article {
  width: 100%;
  max-width: clamp(320px, 90vw, 980px);
  padding: 0.5rem;
}
.image-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: #000;
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.content { padding: 0; }

/* Section: Typography Helpers */
h2 { font-size: clamp(1.25rem, 1vw + .9rem, 2rem); margin: .75rem 0 .25rem; color: var(--text-strong); }
p { font-size: clamp(1rem, 0.9vw + .9rem, 1.25rem); line-height: 1.6; margin: .6rem 0; color: var(--text); }
ul { padding-left: 1.25rem; margin: .6rem 0; }
li { margin: .25rem 0; }

/* Section: Cards & Tags (utility classes) */
.container { width: 100%; max-width: clamp(320px, 92vw, 1100px); padding: 0 1rem; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tag { display: inline-block; padding: .15rem .5rem; font-size: .75rem; border-radius: 999px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.25); color: var(--text); }

/* Section: Content & Ad Blocks */
.content { display: block; }

/* Section: Link & Button Styles */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  padding: .5rem 1rem;
  border-radius: 8px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(76,255,255,.6); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(76,255,255,.4);
  border-color: rgba(76,255,255,.8);
  background: rgba(255,255,255,.06);
}
.btn { font-weight: 600; }

/* Section: Menu & Ad Blocks in Footer */
.product-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1rem;
  border-radius: 10px;
  background: rgba(8,16,40,.6);
  border: 1px solid rgba(255,255,255,.25);
  text-decoration: none;
}
.sponsored-page a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1rem;
  border-radius: 10px;
  background: rgba(8,16,40,.6);
  border: 1px solid rgba(255,255,255,.25);
  text-decoration: none;
}

/* Section: Semantic Page Structure */
nav { display: none; }

/* Section: Accessibility & Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fb;
    --bg-2: #ffffff;
    --text: #0b1130;
    --muted: #49507a;
    --surface: rgba(255,255,255,.92);
    --surface-2: rgba(255,255,255,.98);
    --border: rgba(0,0,0,.15);
    --shadow: 0 6px 20px rgba(0,0,0,.12);
  }
  body {
    background: linear-gradient(to bottom, #f5f7fb, #eef2fb);
    color: #111;
  }
  header { background: rgba(255,255,255,.85); border-bottom: 1px solid rgba(0,0,0,.08); backdrop-filter: blur(6px); }
  .image-frame { border-color: rgba(0,0,0,.15); }
}
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}