/* Base Tokens */
:root {
  --bg: #000000;
  --bg-2: #0a0f12;
  --text: #e6fff4;
  --muted: #9bdad0;
  --accent: #2ee8d7;
  --accent-2: #11c0ad;
  --glass: rgba(12, 20, 22, 0.28);
  --glass-ink: rgba(255,255,255,0.75);
  --glass-border: rgba(46, 231, 208, 0.32);
  --shadow: 0 8px 28px rgba(0,0,0,.45);
  --radius: 14px;
  --focus: 2px solid var(--accent-2);
  --maxw: clamp(320px, 92vw, 1100px);
}

/* Light-mode variant for legibility */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7f7;
    --bg-2: #ffffff;
    --text: #0b1b1b;
    --muted: #3a3a3a;
    --accent: #0f7a83;
    --accent-2: #0b6f7b;
    --glass: rgba(255,255,255,0.75);
    --glass-ink: #01201a;
    --glass-border: rgba(0, 122, 120, 0.35);
  }
  body { background: #f7f7f7; color: var(--text); }
  .card, header, main, footer, .image-frame { border-color: rgba(0,0,0,0.08); }
}

/* Reset & base */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, #000 0%, #0b0f12 60%, #000 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* Pure CSS noise/scanlines effect + teal glow */
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 1px),
    repeating-linear-gradient(to bottom, rgba(46,231,208,0.04) 0 2px, transparent 2px 4px);
  background-size: auto 2px;
  mix-blend-mode: overlay;
  opacity: 0.6;
  transform: translateZ(0);
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-block: 1rem;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Section wrappers as glass panels (fallback-friendly) */
header, main, footer, aside, article {
  background: linear-gradient(to bottom right, rgba(2,6,8,0.28), rgba(2,6,8,0.18));
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
}
header { margin: 1rem auto; text-align: center; }
main { margin: 0.5rem auto 1rem; }
footer { margin: 1rem auto; padding: 1rem; }

/* Typography & hero */
h1 {
  font-size: clamp(2rem, 2.5rem + 2vw, 3.75rem);
  line-height: 1.05;
  margin: 0.25rem 0 0.25rem;
  letter-spacing: .4px;
  color: var(--text);
}
h2 {
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  margin: .75rem 0 0.25rem;
  color: var(--text);
}
p { margin: .5rem 0 1rem; color: var(--muted); font-size: clamp(1rem, 0.9rem + 0.4vw, 1.125rem); line-height: 1.6; }
.meta { font-size: .95rem; color: var(--muted); margin-top: .25rem; }

/* Visual image frame styling */
.image-frame, .image-frame img { display: block; width: 100%; height: auto; }
.image-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(46,231,208,0.4);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  margin: .5rem 0;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.01);
  transition: transform .5s ease;
}
.image-frame:hover img { transform: scale(1.04); }

/* Content & utilities */
.content { padding: 0.5rem 0; }

/* Ad block / footer cards */
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: .6rem;
  border-radius: 10px;
  background: rgba(2, 6, 8, 0.25);
  border: 1px solid rgba(46,231,208,0.4);
}
.product-ad p, .sponsored-page p { margin: 0; color: var(--text); font-weight: 600; }

/* Links & buttons (interactive) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  outline: none;
}
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
:focus-visible { outline: var(--focus); outline-offset: 2px; }

/* Buttons (solid + outline variants) */
.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(46,231,208,.7);
  background: linear-gradient(135deg, rgba(46,231,208,.95), rgba(17, 196, 173, .95));
  color: #003a33;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active, .cta:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(46,231,208,.8);
}
.btn--outline:hover { background: rgba(46,231,208,.15); }

/* Glass panel text emphasis for headers */
header h1, footer p { text-shadow: 0 1px 0 rgba(0,0,0,.25); }

/* Sections & layout tweaks for responsiveness */
@media (min-width: 640px) {
  .container { padding-inline: 1.25rem; }
}
@media (min-width: 900px) {
  main { display: block; }
  .grid { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: #fff; border: none; box-shadow: none; }
}
