/* Tokens */
:root {
  --bg: #0b1f14;
  --bg-2: #122916;
  --surface: rgba(9, 40, 28, 0.72);
  --surface-2: rgba(18, 64, 46, 0.62);
  --text: #eafff5;
  --muted: #b6f2db;
  --accent: #2ee6c5;
  --accent-2: #15c9a2;
  --outline: rgba(46, 230, 197, 0.75);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass: rgba(255, 255, 255, 0.08);
  --shadow: 0 6px 20px rgba(0,0,0,.35);
}

/* Base & layout helpers */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + forest-green stripes + subtle scanlines */
  background-image:
    linear-gradient(to bottom right, rgba(0,0,0,.25), rgba(0,0,0,0)),
    repeating-linear-gradient(90deg,
      rgba(18, 64, 46, .25) 0 6px,
      rgba(18, 64, 46, 0) 6px 12px),
    linear-gradient(#0b1f14, #0b1f14);
  background-blend-mode: overlay, overlay, normal;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-y: auto;
}
a, button, .btn, .cta { color: inherit; text-decoration: none; cursor: pointer; }
ul, li { margin: 0; padding: 0; list-style: none; }

/* Structural selectors */
html, body, header, nav, main, article, footer, aside {
  /* keep simple defaults; specific sections styled below */
}
header { padding: 1.75rem 1rem; text-align: center; position: relative; z-index: 1; }
header h1 { font-size: clamp(1.9rem, 2vw + 1rem, 3.6rem); line-height: 1.08; margin: 0.25rem 0 0.5rem; letter-spacing: .2px; }
nav { margin-top: .25rem; }
nav a { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .65rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); color: var(--text); background: rgba(0,0,0,.18); }
main { padding: 1rem; display: block; }

/* Content containers/utilities */
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding: 0 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.20); border-radius: 12px; padding: 1rem; position: relative; overflow: hidden; }
.tag { display: inline-block; padding: .125rem .5rem; font-size: .75rem; border-radius: 999px; border: 1px solid rgba(46,230,197,.5); background: rgba(46,230,197,.15); color: var(--text); }

/* Image frame styling */
.image-frame { width: 100%; max-width: 860px; margin: 0 auto; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: var(--shadow); }
.image-frame img { width: 100%; height: auto; display: block; object-fit: cover; }

/* Glass panels (frosted glass) */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: .85rem;
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .glass { background: rgba(255,255,255,.12); }
}

/* Product ad / footer sections */
.product-ad, .sponsored-page { display: grid; gap: .5rem; justify-items: center; text-align: center; padding: .75rem; }
.product-ad a, .sponsored-page a { display: inline-block; padding: .5rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); color: var(--text); background: rgba(0,0,0,.25); }
.product-ad { /* subtle glassy container in footer */ }
.sponsored-page { }

/* Interaction styles (buttons/links) */
.btn, .cta { display: inline-flex; align-items: center; justify-content: center; padding: .55rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); font-weight: 600; transition: transform .15s ease, box-shadow .15s ease; }
.btn { cursor: pointer; }
.btn.primary { background: var(--accent); color: #041c13; border: 1px solid rgba(0,0,0,.0); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid rgba(46,230,197,.6); }
.cta { text-decoration: none; color: var(--text); }

/* Focus states (AA) */
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--outline);
  outline-offset: 2px;
  border-radius: 8px;
}
a:focus-visible { text-decoration: underline; }

/* Typography */
h1, h2, h3 { line-height: 1.15; font-weight: 700; }
p { margin: 0.5rem 0; }

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

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

/* Footer layout */
footer { padding: 1.25rem; display: grid; gap: 1rem; align-items: start; justify-items: center; text-align: center; background: linear-gradient(to top, rgba(0,0,0,.15), rgba(0,0,0,.0)); }
@media (min-width: 640px) {
  footer { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  footer { grid-template-columns: repeat(3, 1fr); }
}

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