/* Base & Tokens */
:root {
  --bg: #0b0f14;
  --bg-2: #0f1620;
  --text: #eafcff;
  --muted: #a6f0c2;
  --accent: #39ff6b;      /* lime */
  --accent-2: #ff3fa6;     /* pink */
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.12);
  --glass-border: rgba(255,255,255,.25);
  --glass-strong: rgba(0,0,0,.25);
  --shadow: 0 8px 28px rgba(0,0,0,.45);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: 2px solid #9af;
  --focus-offset: 2px;
  --container-max: clamp(320px, 92vw, 1100px);
}

/* Global reset & typography (mobile-first) */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.4;
  color: var(--text);
  background:
    /* Gradient foundation */
    linear-gradient(135deg, rgba(6,10,15,.88) 0%, rgba(6,10,15,.78) 60%, rgba(6,10,15,.88) 100%),
    /* Subtle scanlines / noise overlay (pure CSS) */
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0px, rgba(255,255,255,.04) 1px, transparent 1px, transparent 3px);
  background-color: #000;
  background-blend-mode: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  overflow-x: hidden;
}

/* Layered, glassy surfaces for sections */
header, main, aside, article, footer {
  display: block;
}

/* Glass panels (with backdrop-filter) */
.glass {
  background: rgba(8, 12, 18, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(8, 12, 18, 0.85); }
}

/* Layout helpers */
.container { max-width: var(--container-max); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; }
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-sm); padding: 1rem; }

/* Hero/typography styling */
header {
  padding: 2rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.15);
  /* subtle glow around header for cyber vibe */
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.15) 60%, rgba(0,0,0,.35));
}
header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw + 1rem, 3.6rem);
  line-height: 1.05;
  letter-spacing: .5px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 12px rgba(57,255,107,.25);
}
nav { display: flex; justify-content: center; gap: .75rem; padding: .5rem 0; }

/* Image frame styling */
.image-frame {
  width: min(100%, 720px);
  aspect-ratio: 16/9;
  margin: 1.25rem auto 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 28px rgba(0,0,0,.55);
  background: #0b0f14;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

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

/* Product ad sections in footer */
.product-ad, .sponsored-page {
  display: block;
  width: calc(50% - 1rem);
  margin: .5rem;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.product-ad { --mix: rgba(0,0,0,.0); }
.product-ad a { color: inherit; text-decoration: none; display: block; }
.sponsored-page { display: block; }

footer {
  padding: 1.5rem 0;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.1);
}
footer p { margin: .25rem 0; }

@media (min-width: 680px) {
  .container { padding-inline: 1rem; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .product-ad, .sponsored-page { width: 100%; }
}

/* Link & button styling */
a, button, .btn, .cta { cursor: pointer; color: var(--text); text-decoration: none; }

a:hover, a:focus { text-decoration: underline; }

/* Button variants */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1rem; border-radius: 999px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); transition: transform .2s ease, background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn.primary, .cta { background: linear-gradient(135deg, #1cff7a 0%, #00ff88 100%); color: #04140e; border: none; }
.btn.primary:hover, .cta.primary:hover { transform: translateY(-1px); }
.btn.outline { background: transparent; border: 1px solid rgba(255,255,255,.6); color: var(--text); }

/* Focus treatment (focus-visible for accessibility) */
button:focus-visible, a:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
  border-radius: 999px;
}

/* Utility: tag pill */
.tag { display: inline-block; padding: .25em .6em; border-radius: 999px; font-size: .75rem; background: rgba(57,255,107,.25);
  color: #d9ffd7; border: 1px solid rgba(57,255,107,.55); }

/* Lists (ul, li) */
ul { padding-left: 1.25rem; margin: 0.25rem 0; }
li { margin: .25rem 0; }

/* Glass panel wrappers for sections (applied where needed) */
.aside, .section { padding: .75rem; }

/* Content wrappers for potential sections */
.content + .content { margin-top: .75rem; }

/* Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  header, main, footer { background: transparent; }
  .image-frame { border: none; box-shadow: none; }
  a, .btn { text-decoration: underline; color: inherit; }
}
  
/* Color scheme tweak for light preference (improve legibility) */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fb;
    --bg-2: #eef2f7;
    --text: #0a1b2a;
    --muted: #4b5a66;
    --accent: #0f7a3b;
    --accent-2: #c01280;
  }
  body {
    background:
      linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.92) 60%, rgba(255,255,255,.95) 100%),
      repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0px, rgba(0,0,0,.04) 1px, transparent 1px, transparent 3px);
    color: var(--text);
  }
  header { background: rgba(255,255,255,.8); border-bottom: 1px solid rgba(0,0,0,.08); }
  header h1 { background: linear-gradient(90deg, var(--accent-2), var(--accent)); color: transparent; -webkit-background-clip: text; background-clip: text; }
  .image-frame { border-color: rgba(0,0,0,.15); background: #fff; }
  .glass { background: rgba(255,255,255,.9); color: #0a1b2a; }
  .btn.primary { background: #2e7d32; color: #fff; }
  .btn.outline { border-color: rgba(0,0,0,.2); color: #111; }
}
