/* Tokens */
:root {
  --bg: #0a0f0a;
  --bg-2: #0b1b0b;
  --surface: rgba(14, 24, 12, 0.72);
  --surface-2: rgba(245, 238, 226, 0.14);
  --text: #e7f5e9;
  --muted: #a6c79b;
  --accent: #2be178;
  --accent-2: #e6d8b0;
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: 0 0 0 3px rgba(43, 225, 120, 0.6);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7f0;
    --bg-2: #f0efe4;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-2: rgba(0, 0, 0, 0.08);
    --text: #0b1a0b;
    --muted: #5f6b50;
    --accent: #1a6c24;
    --accent-2: #d8c89b;
    --border: rgba(0, 0, 0, 0.15);
    --shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }
}

/* Global */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark light; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  /* Layered background: gradient + subtle noise/scanlines */
  background-image:
    radial-gradient(circle at 22% 0%, rgba(60, 180, 60, 0.28), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.04) 0 2px, transparent 2px 4px),
    linear-gradient(135deg, var(--bg), var(--bg-2) 60%, #04120d 100%);
  background-attachment: fixed;
  background-size: cover;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout helpers */
.container { width: 100%; max-width: clamp(320px, 86vw, 1200px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; }
.card { background: rgba(255,255,255,.08); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; box-shadow: var(--shadow); }

/* Header / Hero */
header { padding: 2rem 0; display: grid; place-items: center; }
header h1 {
  font-size: clamp(1.6rem, 2.5vw + 1rem, 2.8rem);
  line-height: 1.15;
  text-align: center;
  margin: 0;
  letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}

/* Main content / glass panels */
main { display: grid; place-items: center; padding: 1rem; }
article {
  width: min(100%, 860px);
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px) saturate(110%);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
}
@supports not (backdrop-filter: blur(10px)) {
  article { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); }
}
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  transition: transform .3s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Content helper (in case used) */
.content { padding: 0.75rem 0; color: var(--text); }

/* Image & typography tweaks for readability on glass */
.image-frame + .content,
.content + .image-frame { margin-top: .5rem; }

/* Links, buttons, utilities */
a, button, .btn, .cta {
  text-decoration: none;
  color: inherit;
  font: inherit;
}
a { color: var(--accent); }
a:hover, a:focus { text-decoration: underline; outline: none; }
a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--focus); outline-offset: 2px; border-radius: 6px; }

/* Buttons (solid and outline variants) */
.btn,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6em 1.05em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.30);
  background: rgba(43, 225, 120, 0.25);
  color: var(--text);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: rgba(43, 225, 120, 0.42); }
.btn:active, .cta:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #1a9a40);
  border-color: rgba(0,0,0,.25);
  color: #062;
}
.btn.secondary {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.28);
  color: var(--text);
}
.cta { padding-inline: 1.25em; }

/* Sections in footer / product ad blocks */
footer { padding: 1rem; display: grid; gap: .75rem; justify-items: center; color: var(--muted); }
.product-ad, .sponsored-page { width: min(100%, 700px); padding: .75rem; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); box-shadow: var(--shadow); text-align: center; }
.product-ad a, .sponsored-page a { display: inline-flex; align-items: center; justify-content: center; gap: .5ch; padding: .5em 1em; font-weight: 600; border-radius: 999px; }

/* Lists */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Misc UI helpers / utilities */
.tag {
  display: inline-block;
  padding: .15em .6em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(43, 225, 120, .25);
  border: 1px solid rgba(43, 225, 120, .6);
  color: #dfffe2;
}

/* Layout responsiveness */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
