:root {
  --bg: #0a0615;
  --bg-2: #25142e;
  --text: #f7f5ff;
  --muted: #c9b5ff;
  --accent: #1f7a3a;      /* forest green */
  --accent-2: #4bd37a;    /* lighter green for accents */
  --glass: rgba(13, 15, 28, 0.28);
  --border: rgba(255,255,255,0.25);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(28,14,40,.9), rgba(16,8,28,.9)),
    radial-gradient(circle at 20% 10%, rgba(180,140,255,.15), transparent 40%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

/* Layout primitives */
.container { width: 100%; max-width: clamp(320px, 92vw, 1100px); padding: 0 1rem; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Structural elements (semantic) */
header, nav, main, article, aside, footer { display: block; }

/* Glassy surfaces with graceful fallback */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem;
  margin: 0.75rem auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(12px)) {
  header { background: rgba(13,15,28,.62); }
}
header h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.6vw + 1rem, 2.2rem);
  font-weight: 700;
  letter-spacing: .2px;
}
header nav { display: flex; gap: .5rem; align-items: center; }

/* Link/Button styling system */
a { color: color-m-mix(in oklab, var(--accent) 50%, black); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}
button, .btn { font: inherit; cursor: pointer; }

/* Button variations */
.btn {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.25);
  color: var(--text);
  text-align: center;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Primary and ghost/outline CTAs */
.btn.primary {
  background: linear-gradient(to bottom right, rgba(46, 139, 69, 0.95), rgba(28, 92, 52, 0.95));
  border: 1px solid rgba(255,255,255,.6);
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
}
.cta { text-decoration: none; }

/* Main content region */
main { padding: 1rem 0; }

/* Image frame with aspect ratio, glow and border */
.image-frame {
  width: min(92%, 980px);
  aspect-ratio: 16 / 9;
  margin: 2rem auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* subtle lift on focus for accessibility if image is interactive in context */
}
.image-frame:hover { filter: saturate(1.05); }

/* Glass content blocks within the page */
.content { padding: 1rem; }

/* Product/ad panels in footer area (glass panels) */
.product-ad, .sponsored-page {
  padding: 0;
  min-height: 72px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12,14,24,.28);
  text-align: center;
  box-shadow: var(--shadow);
}
.product-ad a, .sponsored-page a { display: inline-block; padding: .75rem 1rem; text-decoration: none; color: var(--text); width: 100%; }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }

/* Footer layout with responsive columns */
footer {
  padding: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  justify-items: center;
}
@media (min-width: 560px) {
  footer { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  footer { grid-template-columns: 1fr 1fr 1fr; }
}

/* Simple typography scale for sections */
h2, h3 { margin: .25rem 0; font-weight: 700; }
p { margin: .6rem 0; color: color-mix(in oklab, var(--text) 70%, black); }

/* Lists and inline elements styling */
ul, li { margin: 0; padding: 0; list-style: none; }
li { padding-left: 0; }

/* Utility visuals for content chips/tags */
.tag {
  display: inline-block;
  padding: .15em .6em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(30, 144, 255, .15);
  color: #cde6ff;
  border: 1px solid rgba(120,180,255,.25);
}

/* Print-friendly basics */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
