/* Section: Reset & Baseline */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  min-height: 100%;
  /* Layered: gradient base + subtle scanlines + iridescent green glow overlay + dark parchment feel */
  background: 
    linear-gradient(135deg, rgba(50,180,90,.22), rgba(0,0,0,.00) 60%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, rgba(0,0,0,0) 1px 2px),
    linear-gradient(#0b0f12 0%, #0a0f12 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-backdrop-filter: none;
  -webkit-tap-highlight-color: transparent;
  color-scheme: dark;
}

/* Section: Tokens */
:root {
  /* Palette derived from iridescent green and holographic silver */
  --bg: #0b1117;
  --bg-2: #0a0f12;
  --surface: rgba(255,255,255,.12);
  --surface-2: rgba(255,255,255,.08);
  --text: #e8f7e9;
  --muted: #b7d8ba;
  --accent: #2ffb74;        /* iridescent green */
  --accent-2: #cfe8ff;      /* holographic silver-blue */
  --border: rgba(255,255,255,.28);
  --shadow: 0 6px 18px rgba(0,0,0,.25);
  --radius: 14px;
}

/* Section: Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  margin-inline: auto;
  padding: 0 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  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,.18); }
}
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(47,251,116,.25);
  color: #eafff0;
  border: 1px solid rgba(47,251,116,.6);
}
.image-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 0 12px rgba(0,0,0,.25);
  display: block;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}
.content { color: var(--text); font-size: clamp(15px, 1.2vw + 10px, 18px); }

ul { margin: .75rem 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Section: Typography (hero hierarchy) */
h1, h2, h3, h4 {
  margin: .25rem 0;
  line-height: 1.15;
}
h1 {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 3.6rem);
  font-weight: 800;
  letter-spacing: .2px;
  text-align: center;
  /* iridescent gradient text to feel futuristic/holographic */
  background: linear-gradient(90deg, #d6fff1 0%, #b6ffd8 40%, #cfe8ff 70%), linear-gradient(#fff0, #fff0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(0,255,150,.45);
}
h2 {
  font-size: clamp(1.25rem, 1.6vw + 1rem, 2.25rem);
  font-weight: 700;
  color: var(--text);
}
h3 {
  font-size: clamp(1rem, 1.2vw + .8rem, 1.4rem);
  font-weight: 700;
  color: var(--text);
}
p { color: #eaf7ee; }

/* Section: Header/Navigation (glass panels) */
header, nav, main, aside, article, footer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: .75rem auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header { text-align: center; padding: 1.25rem; }
header .meta { color: var(--muted); font-size: 0.92rem; margin-top: .25rem; }
nav { display: inline-block; margin-top: .5rem; }
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: 6px;
  border: 1px solid transparent;
}
nav a:hover { text-decoration: underline; text-underline-offset: 2px; }
nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Section: Hero content alignment within container */
main { padding: 0; }
article { display: block; max-width: 72ch; margin-inline: auto; padding: 1rem; }
.featured-image { margin: .5rem 0 1rem; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); }

/* Section: Content styling inside article */
article h2 + p { margin-top: .25rem; }

/* Section: ProductAd / Sponsored blocks in footer */
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  padding: .75rem;
  margin: .5rem 0;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: inline-block; width: 100%; }
.product-ad:hover, .sponsored-page:hover { transform: translateY(-1px); }

/* Section: Link and Button treatments (interaction states) */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  color: #041a0d;
  text-decoration: none;
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: linear-gradient(135deg, rgba(47,251,116,.95), rgba(39,199,110,.9));
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s;
}
a:hover, button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn.secondary, .cta {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.5);
}
a, button { text-decoration-skip-ink: auto; }

/* Section: List tweaks */
ul { padding-left: 1rem; }
li { margin: .25rem 0; }

/* Section: Utility primitives */
.container + .container { margin-top: 0; }
.image-frame { width: 100%; aspect-ratio: 16 / 9; }

/* Section: Accessibility + motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

/* Section: Print (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, nav, main, article, footer { background: transparent; border: none; padding: 0; box-shadow: none; border-radius: 0; }
  a { text-decoration: underline; color: #000; }
}
