:root {
  --bg: #0b0a08;
  --bg-2: #141412;
  --text: #eaffff;
  --muted: #aab6bd;
  --accent: #20f0d7;
  --accent-2: #0cc2a0;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(0, 0, 0, 0.15);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  --radius: 12px;
  --focus: 2px solid var(--accent);
}

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

html, body { height: 100%; }
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
  /* Layered background: gradient + subtle turquoise glow + scanlines */
  background-image:
    linear-gradient(135deg, rgba(11,10,8,.95) 0%, rgba(20,18,16,.95) 60%, rgba(14,12,10,.95) 100%),
    radial-gradient(circle at 20% -5%, rgba(32, 208, 184, 0.18), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(0,0,0,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: normal, screen, overlay, overlay;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: light) {
  html, body { color: #111; }
}

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

/* Base layout helpers */
.container {
  width: min(100%, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
}

@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,0.14); }
}

.header, nav, main, article, aside, footer { display: block; }

header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  position: relative;
  z-index: 1;
}

header h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.75rem, 2.5vw + 1rem, 3rem);
  line-height: 1.05;
  letter-spacing: .3px;
  font-weight: 700;
  color: var(--text);
}

nav { padding-bottom: 0.75rem; }

nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(32,240,215,.35);
  transition: color .2s ease, background .2s ease;
}
nav a:hover, nav a:focus-visible { text-decoration: underline; color: var(--accent-2); outline: none; }

/* Main content and image frame styling */
main { padding: 0 0 2rem; }
article { display: grid; place-items: center; padding: 1rem 0 2rem; width: 100%; }

.image-frame {
  width: min(100%, 720px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.image-frame:focus-within img { transform: scale(1.03); }

/* Content blocks and glass panels */
.content {
  display: block;
  max-width: 60ch;
  margin: 0 auto;
  padding: 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .content { background: rgba(255,255,255,0.15); }
}
.content h2 { margin: .25rem 0 .5rem; font-size: clamp(1.25rem, 2vw + .75rem, 1.75rem); color: var(--text); }
.content p { margin: 0 0 .75rem; color: var(--muted); font-size: clamp(0.95rem, 1vw + .5rem, 1.1rem); }

/* Product ad / CTAs */
.product-ad {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(32, 240, 215, 0.12);
  border: 1px solid rgba(32, 240, 215, 0.32);
  text-align: center;
}
.product-ad a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.product-ad a:hover { text-decoration: underline; }

footer {
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,0.15);
}
footer .sponsored-page a { color: var(--text); text-decoration: none; }

/* Links, buttons and interactive elements */
a, button, .btn, .cta {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(32,240,215,.5);
  background: var(--accent);
  color: #041a12;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: color-mix(in oklch, var(--accent) 85%, black); }
.btn:active { transform: translateY(0); }

.btn.secondary, .cta {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(32,240,215,.6);
}
.btn.secondary:hover, .cta:hover { background: rgba(32,240,215,.08); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* utility-ish elements */
ul, li { padding: 0; margin: 0; list-style: none; }
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(32,208,184,.18);
  color: var(--accent);
  border: 1px solid rgba(32,208,184,.38);
}

aside { padding: .75rem; }

/* Print-friendly */
@media print {
  html, body { background: #fff; color: #000; }
  a { color: #00f; text-decoration: underline; }
}
