:root {
  --bg: #0b0f1a;
  --bg-2: #0a1a28;
  --text: #e9feff;
  --muted: #9bd6e9;
  --accent: #00e6ff;
  --accent-2: #ffd000;
  --glass: rgba(15,23,42,.22);
  --glass-fallback: rgba(15,23,42,.72);
  --border: rgba(255,255,255,.28);
  --shadow: 0 10px 24px rgba(0,0,0,.4);
  --ring: 0 0 0 3px rgba(0, 230, 255, .55);
  --gap: 1rem;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  background-color: var(--bg);
  /* Layered background: cyan dot pattern + subtle gradient/scanlines */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,255,255,.28) 1px, transparent 1px),
    radial-gradient(circle at 9px 9px, rgba(0,255,255,.15) 1px, transparent 1px),
    linear-gradient(135deg, rgba(0,0,0,.45), rgba(0,0,0,.25));
  background-size: 20px 20px, 40px 40px, cover;
  background-attachment: fixed;
  /* Subtle scanlines overlay for depth */
  background-blend-mode: overlay;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
  transition: background .3s ease;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb;
    --bg-2: #eef4fb;
    --text: #0b1a2b;
    --muted: #345a77;
    --accent: #006c7f;
    --accent-2: #b58b00;
    --glass: rgba(255,255,255,.92);
    --glass-fallback: rgba(255,255,255,.98);
    --border: rgba(0,0,0,.12);
  }
  body {
    background-image:
      radial-gradient(circle at 1px 1px, rgba(0,0,0,.04) 1px, transparent 1px),
      radial-gradient(circle at 9px 9px, rgba(0,0,0,.02) 1px, transparent 1px),
      linear-gradient(#f9fbfe, #f0f4f8);
    background-attachment: fixed;
    color-scheme: light;
  }
  .card, .glass { background: rgba(255,255,255,.86); border: 1px solid rgba(0,0,0,.08); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
}

.container { max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding: 0 1rem; }

.grid { display: grid; gap: var(--gap); }

header, nav, main, article, aside, footer { padding: 0.25rem 0; }

header { display: grid; place-items: center; padding: 1.25rem 0; }

header h1 { font-size: clamp(1.6rem, 2.2vw + 1rem, 3rem); margin: 0; text-align: center; font-weight: 700; letter-spacing: .2px; text-shadow: 0 1px 10px rgba(0,255,255,.25); }

main { padding: 1rem 0; }
article { display: grid; justify-items: center; gap: 1rem; }

.image-frame { aspect-ratio: 16 / 9; width: 100%; min-height: 200px; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
  background: #111;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.content { padding: 1rem; }

.product-ad { display: block; margin: 1rem 0; padding: .9rem; border-radius: 12px;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25); text-align: center; }

.product-ad a { color: var(--text); text-decoration: none; display: inline-block; padding: .5rem 1rem; border-radius: 999px;
  background: rgba(0,150,150,.25); border: 1px solid rgba(0,150,150,.6);
  transition: transform .2s ease, background .3s ease;
}
.product-ad a:hover { transform: translateY(-1px); background: rgba(0,180,180,.4); }

.sponsored-page { margin-top: .5rem; }

footer { padding: 1rem 0; text-align: center; }

a, button, .btn, .cta { color: var(--accent); text-decoration: none; outline: none; }

button, .btn, .cta { cursor: pointer; padding: .55rem .9rem; border-radius: 8px; border: 1px solid rgba(0,0,0,.15);
  background: linear-gradient(180deg, rgba(0,230,255,.95), rgba(0,230,255,.75)); color: #031018; font-weight: 600;
  transition: transform .2s ease, opacity .2s ease;
}
.btn.secondary, .cta { background: transparent; border: 1px solid rgba(0,230,255,.6); color: var(--text); }

a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }

a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

ul, li { margin: 0; padding: 0; list-style: none; }

ul { padding-left: 1rem; }

.content, .card, .glass { 
  /* Glass panel styling: frosted glass with fallback */
  background: rgba(6,12,24,.22);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card:hover, .glass:hover { transform: translateY(-1px); transition: transform .2s; }

/* Utility tokens used by layout in the page */
.tag { display: inline-block; padding: .25rem .5rem; font-size: .75rem; border-radius: 999px; background: rgba(0,255,255,.15);
  color: var(--text); border: 1px solid rgba(0,255,255,.5); }

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

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .glass { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
@supports not ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .glass { background: var(--glass-fallback); }
}

@media (prefers-color-scheme: light) {
  .card, .glass { background: rgba(255,255,255,.92); border: 1px solid rgba(0,0,0,.08); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
  a, button, .btn, .cta { color: #0b1a2b; }
}
