:root {
  --bg: #041d0e;
  --bg-2: #05240f;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(0, 0, 0, 0.25);
  --text: #eafff5;
  --muted: #a6f0c9;
  --accent: #2cff7a;
  --accent-2: #2aff9f;
  --shadow: 0 12px 28px rgba(0,0,0,.32);
  --radius: 14px;
  --gap: 1.25rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
}

/* Base + layout resets */
html, body {
  height: 100%;
}
*,
*::before,
*::after { box-sizing: border-box; }
html { font-family: var(--font); }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #041f0a 0%, #041b0f 40%, #041a0f 100%);
  min-height: 100dvh;
  line-height: 1.5;
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  /* Layered background: gradient + subtle scanlines */
  background-image:
    linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.0) 60%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
    linear-gradient(135deg, #041f0a 0%, #041b0f 60%, #041a0f 100%);
  background-blend-mode: overlay, overlay, normal;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* subtle parchment-like green speckle (noise via layered gradients) */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.04) 1px, transparent 1px),
    radial-gradient(circle at 20px 20px, rgba(0,0,0,.04) 2px, transparent 2px);
  background-size: 4px 4px, 40px 40px;
  opacity: 0.25;
  mix-blend-mode: overlay;
}
main, header, footer, aside, nav, article {
  display: block;
}
a { color: #d4ffd0; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  padding-inline: 1rem;
  margin-inline: auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: calc(var(--radius) * 0.85);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  color: #eafff0;
}

/* Glass panel aesthetics (fallback included) */
.glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  padding: 1rem;
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}
@supports not (backdrop-filter: blur(10px)) {
  .glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
}

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

/* Content block */
.content {
  padding: 1rem;
  color: var(--text);
}
.content h2 { margin: .25rem 0 .5rem; font-size: clamp(1.25rem, 2.6vw + 0.6rem, 2rem); }
.content p { margin: .4rem 0 0; color: #d6ffd9; font-size: clamp(1rem, 1.2vw + 0.8rem, 1.15rem); }

/* Product ad / sponsored blocks in footer */
.product-ad,
.sponsored-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.28);
  color: #eafff5;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.product-ad:hover,
.sponsored-page:hover { transform: translateY(-1px); background: rgba(0,0,0,.32); }

/* Buttons / CTAs */
.btn,
a.btn,
.cta {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.6);
  background: var(--accent);
  color: #001a0a;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover,
a.btn:hover,
.cta:hover { transform: translateY(-1px); background: #2af08a; }
.btn:focus-visible,
a.btn:focus-visible,
.cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Outline variant for CTAs */
.btn--outline {
  background: transparent;
  color: #eafff5;
  border: 1px solid rgba(226,254,240,.6);
}
.btn--outline:hover { background: rgba(255,255,255,.08); }

/* Typography (fluid) */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
}
h1 { font-size: clamp(1.75rem, 3vw + 1rem, 3.75rem); margin: 0 0 .5rem; letter-spacing: .2px; text-shadow: 0 0 8px rgba(44,255,122,.4); }
h2 { font-size: clamp(1.25rem, 2vw + .75rem, 2rem); margin: 0 0 .5rem; }
p { margin: 0; }

/* Content scaffold on the page using the allowed selectors */
html, body, header, nav, main, article, footer, aside { scroll-behavior: smooth; }

/* Layout instance for main content to be centered with glass panel feel */
main { padding: 2rem 0; }
header { padding: 1.75rem 0; display: grid; place-items: center; }
footer { padding: 1.75rem 0; display: grid; gap: 0.75rem; justify-items: center; }

/* Images accessibility tweaks */
.image-frame img[alt] { border-radius: 0; }

/* Print styles for readability */
@media print {
  body { background: #fff; color: #000; }
  .glass { background: #fff; border: 1px solid #ddd; color: #000; }
  a { text-decoration: underline; }
}

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