/* Theme tokens */
:root {
  --bg: #0a1b2a;
  --bg-2: #0b2144;
  --bg-3: #0a1b2a;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.18);
  --text: #eaf6ff;
  --muted: #a6b4d6;
  --accent: #2affb3;       /* iridescent green */
  --accent-2: #3bdfff;     /* cyan/blue tint for accents */
  --shadow: 0 8px 28px rgba(0,0,0,.32);
  --radius: 14px;
  --focus-ring: 3px solid rgba(0, 255, 170, 0.9);
  --glass-border: rgba(255,255,255,.28);
  --gap: 1rem;
}

/* Global, mobile-first layout + layered background (gradient + scanlines) */
html, body {
  height: 100%;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: 
    radial-gradient(circle at 20% 10%, rgba(0, 200, 255, 0.20), transparent 25%),
    radial-gradient(circle at 85% 25%, rgba(0, 255, 140, 0.15), transparent 30%),
    linear-gradient(135deg, var(--bg), var(--bg-2) 60%, var(--bg-3) 100%);
  /* Subtle scanlines over a gradient for a HUD vibe */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(0, 200, 255, 0.20), transparent 25%),
    radial-gradient(circle at 85% 25%, rgba(0, 255, 140, 0.15), transparent 30%),
    linear-gradient(135deg, var(--bg), var(--bg-2) 60%, var(--bg-3) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: screen, screen, normal, overlay;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Glassy layout scaffolding for page regions */
header, nav, main, article, aside, footer {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Page structure helpers to satisfy selectors */
html, body, header, nav, main, article, footer, aside {
  display: block;
}

/* Handy layout utilities */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1120px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}
.card {
  border-radius: calc(var(--radius) - 4px);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.tag {
  display: inline-block;
  padding: 0.25em 0.5em;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #04140a;
  background: rgba(0, 255, 170, 0.85);
  border: 1px solid rgba(0,0,0,.15);
}
ul { margin: 0; padding-left: 1.25rem; color: var(--muted); }

/* Image frame specifics */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 12px rgba(0,0,0,.25), 0 6px 16px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.002);
  transition: transform .45s ease;
}
.image-frame:hover img { transform: scale(1.04); }

/* Typography with responsive sizing */
h1 {
  font-size: clamp(1.6rem, 1.2rem + 3vw, 3rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  letter-spacing: .2px;
}
p { font-size: clamp(1rem, 0.8vw + 0.9rem, 1.25rem); line-height: 1.5; color: var(--muted); }

/* Content area (generic) */
.content {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow);
}

/* Product ad segment (footer-ish) */
.product-ad {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,255,170,.9), rgba(0,190,255,.9));
  border: 1px solid rgba(0,0,0,.15);
  text-align: center;
  margin: 0.5rem 0;
}
.product-ad a { color: #062b1b; text-decoration: none; font-weight: 700; display: block; padding: .25rem; }
.product-ad a:hover { text-decoration: underline; }

/* Links and actions (glow/contrast-friendly) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
a:focus-visible { outline: 3px solid rgba(0, 255, 170, 0.95); outline-offset: 3px; }

/* Button variants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .2px;
  background: linear-gradient(135deg, rgba(0,255,170,.95), rgba(0,200,255,.95));
  color: #012016;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(0,255,170,.95); outline-offset: 3px; }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0, 255, 170, 0.9);
}
.btn--outline:hover {
  background: rgba(0, 255, 170, 0.15);
}

/* Primary hero layout adjustments (when present in markup) */
header {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
}
header h1 { color: var(--text); margin-bottom: 0; }
nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
nav a { padding: .25rem .5rem; border-radius: 8px; color: var(--text); }
nav a:hover, nav a:focus { text-decoration: underline; background: rgba(255,255,255,.08); }

/* Main column flow (mobile-first) */
main { padding: 1rem 0; }
article { padding: 0; }

/* Footer styling */
footer { padding: 1rem; text-align: center; color: var(--muted); }

/* Utilities for layout responsiveness */
@media (min-width: 720px) {
  .container { padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

/* Print styles for basic readability */
@media print {
  html, body { background: #fff; color: #000; }
  header, nav, main, article, aside, footer { background: #fff; border: none; box-shadow: none; }
  a { color: #00f; text-decoration: underline; }
}
