/* Base + Palette */
:root{
  --bg-1: #0b1020;
  --bg-2: #1a2a8a;       /* royal blue */
  --bg-3: #0b4f2f;        /* green accent base */
  --surface: rgba(255,255,255,.08);      /* glass surface */
  --surface-soft: rgba(255,255,255,.12);
  --border: rgba(255,255,255,.25);
  --text: #eafaf0;
  --muted: rgba(234,246,232,.72);
  --accent: #2cff88;        /* neon green accent */
  --accent-2: #1be07a;
  --shadow: 0 8px 26px rgba(0,0,0,.28);
  --radius: 12px;
}

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

html, body { height: 100%; }

html { font-size: 16px; }

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(2,6,23,.95), rgba(2,6,23,.95)),
    linear-gradient(135deg, #1b2a6f 0%, #0a2a58 60%, #0b2b2a 100%),
    /* subtle noise/scanline: layered stripes for texture */
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* Layout helpers (mobile-first) */
.container {
  width: 100%;
  max-width: clamp(720px, 88vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}

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

.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

/* Glass panels (fallback if backdrop-filter unsupported) */
.glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: calc(var(--radius) + 2px);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,.14); }
}

/* Core typography scales (fluid) */
h1, h2, h3 { margin: .25rem 0; font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(1.6rem, 2.6vw + 1rem, 3rem); }
h2 { font-size: clamp(1.4rem, 1.6vw + .8rem, 2.2rem); }
h3 { font-size: clamp(1.2rem, 1.4vw + .6rem, 1.6rem); }

p { margin: .75rem 0; color: rgba(234,246,232,.92); }

/* Sections and content regions */
header, main, footer, aside { padding: 1rem 0; }

header {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 1rem;
  display: grid;
  gap: .5rem;
  place-items: center;
}

header h1 { margin: 0; letter-spacing: .3px; color: #eafbf2; text-shadow: 0 1px 0 rgba(0,0,0,.25); }

.header-sub { color: var(--muted); font-size: clamp(.9rem, .8vw + .7rem, 1rem); }

/* Navigation */
nav {
  display: inline-flex;
  gap: .5rem;
  flex-wrap: wrap;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
  font-weight: 600;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
nav a:hover,
nav a:focus-visible {
  text-decoration: underline;
  transform: translateY(-1px);
  outline: none;
}
nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background: rgba(0,0,0,.20);
}

/* Hero/content region styling (glass panels) */
main {
  display: block;
  padding: 1rem 0 2rem;
}
article {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: 1rem;
  margin: 0.75rem 0 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn .6s ease both;
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Featured image frame */
.featured-image {
  display: grid;
  place-items: center;
  padding: 0.25rem 0 1rem;
}
.image-frame {
  width: min(90vw, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 26px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: optimizeQuality;
  filter: saturate(1.05);
}

/* Content helpers */
.content { padding: 0; }

/* Lists & inline elements */
ul, li { color: rgba(235,246,238,.95); }
li { margin: .25rem 0; }

/* Image caption styling (if used) */
.figure-caption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: .25rem; }

/* The product ad and sponsor blocks (footer regions) */
.product-ad,
.sponsored-page {
  display: inline-block;
  margin: .25rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  background: rgba(27, 180, 120, .22);
  border: 1px solid rgba(34, 255, 180, .5);
}
.product-ad a,
.sponsored-page a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.product-ad:hover,
.sponsored-page:hover { background: rgba(27,180,120,.32); }

/* Footer and small print area */
footer { padding: 1.25rem 0 2rem; text-align: center; color: rgba(234,246,232,.9); }

/* CTA & button styles (solid & outline) */
.btn,
a.btn,
button.btn,
.cta {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(135deg, rgba(16,214,153,.95), rgba(0,168,120,.95));
  color: #041e0d;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.btn:hover,
a.btn:hover,
button.btn:hover,
.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.32);
}
.btn:focus-visible,
a.btn:focus-visible,
button.btn:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn.primary {
  background: linear-gradient(135deg, #0b6aff 0%, #22e07a 100%);
  color: #041e0a;
  border: 1px solid rgba(255,255,255,.45);
}
.btn.primary:hover {
  background: linear-gradient(135deg, #0a58e6 0%, #1bd07a 100%);
}
.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.6);
}
.btn.outline:hover {
  background: rgba(255,255,255,.08);
}
a.cta { display:inline-flex; align-items:center; gap:.5rem; }

/* Links: stronger focus + hover underline for accessibility */
a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a:hover, a:focus { text-decoration: underline; border-bottom: 1px solid rgba(255,255,255,.4); }

/* Accessibility: high contrast on glass surfaces for text */
@media (prefers-contrast: more) {
  :root { --text: #eafff5; }
  .glass { border-color: rgba(255,255,255,.5); }
}

/* Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  a { text-decoration: underline; color: inherit; }
  .image-frame { page-break-inside: avoid; }
}
