:root {
  --bg: #0a0f1a;
  --bg-2: rgba(0, 210, 210, 0.25);
  --text: #eaffff;
  --muted: #a8f0e6;
  --accent: #00e6ff;
  --accent-2: #1e3a8a;
  --glass: rgba(255,255,255,.08);
  --glass-2: rgba(255,255,255,.12);
  --border: rgba(255,255,255,.25);
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.12);
  --shadow: 0 6px 18px rgba(0,0,0,.28);
  --radius: 12px;
  --focus: 3px solid rgba(0,230,255,.75);
  --focus-offset: 2px;
}

html, body { height: 100%; }
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  font-size: clamp(14px, 2.2vw, 18px);
  line-height: 1.5;
  min-height: 100dvh;
  background:
    /* gradient overlay (teal sunset + cobalt) */
    linear-gradient(135deg, rgba(0, 255, 204, .15), rgba(28,58,168,.15) 60%, rgba(0,0,0,.25)),
    /* teal/cobalt base gradient */
    linear-gradient(#0b1020, #0b1020),
    /* subtle noise / scanlines */
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
  background-blend-mode: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body, header, main, footer { display: block; }

/* Section headers (no prose comments in CSS beyond sections) */
@media (prefers-reduced-motion: no-preference) {
  /* no extra animation baggage; subtle transforms used sparsely */
}

/* Layout & sections */
header {
  padding: 1rem 1rem;
  text-align: center;
}

header h1 {
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  margin: 0.25rem 0 0.25rem;
  letter-spacing: .2px;
}

nav {
  margin-top: .25rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.15);
  display: inline-block;
}
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: 0; }

/* Content container */
.container {
  width: min(92%, 1100px);
  margin-inline: auto;
  padding: 0 0.5rem;
}

/* Main grid / content areas */
main { padding: 1rem 0; }

/* Image frame styling */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 24px rgba(0,0,0,.38);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.04);
}

/* Glass panel/card aesthetics for content blocks */
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: .75rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .card { background: rgba(255,255,255,.12); }
}

/* Content area utility */
.content { padding: .75rem; }

/* Image caption / helpers */
.tag {
  display: inline-block;
  padding: .15em .6em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(2,132,199,.25);
  color: #eaffff;
  border: 1px solid rgba(2,132,199,.6);
}

/* Product/ad sections in footer */
footer {
  padding: 1rem 0;
  display: grid;
  gap: .75rem;
  align-items: center;
  justify-items: center;
  color: var(--muted);
  background: transparent;
}
.product-ad, .sponsored-page {
  width: min(90%, 720px);
  display: block;
  text-align: center;
  padding: .75rem;
  border-radius: .75rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
}
.product-ad a, .sponsored-page a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(0,204,204,.45);
  border: 1px solid rgba(0,204,204,.85);
}
.product-ad a:hover, .sponsored-page a:hover {
  background: rgba(0,204,204,.65);
}
footer p { margin: .25rem 0 0; font-size: .9rem; }

/* Global content grid & cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: start;
}
.card + .card { margin-top: .5rem; }

/* Link & button treatments */
a, button, .btn, .cta {
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: 0; color: var(--accent-2); }

button, .btn, .cta {
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: .6rem 1rem;
  background: rgba(0,0,0,.25);
  color: #fff;
  font-weight: 600;
}
.btn.primary, .cta {
  background: linear-gradient(135deg, rgba(0,212,255,.95), rgba(30,58,168,.95));
  border: 1px solid rgba(255,255,255,.9);
}
.btn.secondary { background: rgba(0,0,0,.25); color: var(--text); }

/* Focus visuals for accessibility (focus-visible) */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,214,255,.5);
  border-radius: 8px;
}

/* Accessibility + print */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
[hidden] { display: none !important; }