:root {
  --bg: #0a1410;
  --bg-2: #122018;
  --text: #eafff0;
  --muted: #c8e6d0;
  --accent: #7bd6a4;      /* seafoam */
  --accent-2: #9bd3b4;    /* sage */
  --card: rgba(15, 26, 22, 0.22);   /* glass panel base */
  --card-2: rgba(15, 26, 22, 0.28);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 20px rgba(0,0,0,.25);
  --focus: 0 0 0 3px rgba(123,214,164,.6);
  --radius: 12px;
  --button-text: #0a1f0e;
  --button-glow: rgba(123,214,164,.6);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  font-size: clamp(14px, 2.2vw, 18px);
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(9, 18, 14, 0.82) 0%, rgba(6, 12, 10, 0.88) 60%, rgba(9, 18, 14, 0.85) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.015) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(to right, rgba(255,255,255,.012) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, overlay;
  min-height: 100%;
}

/* Layout helpers (mobile-first) */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .75rem;
  color: #06220f;
  background: rgba(123,214,164,.75);
  border: 1px solid rgba(255,255,255,.4);
}
a, button, .btn, .cta {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
ul { padding-left: 0; margin: 0; }
li { list-style: none; }

/* Header / hero */
header {
  padding: 1rem 0;
  position: relative;
}
header h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
  text-shadow: 0 0 14px rgba(123,214,164,.25);
}
nav {
  display: inline-flex;
  gap: .5rem;
}
nav a {
  padding: .35rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(123,214,164,.4);
  color: var(--text);
  background: rgba(0,0,0,.15);
}
nav a:hover { text-decoration: underline; }

/* Image frame styling */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.28);
  background: #0b1b14;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: crisp-edges;
  /* Subtle glow to enhance cyberpunk vibe */
  filter: saturate(1.05);
  mix-blend-mode: normal;
}

/* Content areas */
.content {
  padding: 1rem;
  color: var(--muted);
}
.product-ad, .sponsored-page {
  display: block;
  padding: .9rem 1rem;
  border-radius: 12px;
  text-align: center;
  background: rgba(9, 18, 14, 0.28);
  border: 1px solid rgba(255,255,255,.28);
  margin: .75rem 0;
}
.product-ad a, .sponsored-page a { color: var(--text); display: inline-block; padding: .25rem 0; }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }

/* Glass panels (frosted glass) */
.glass {
  background: rgba(15, 26, 22, 0.18); /* 0.18 opacity per spec (0.08–0.22) */
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(15, 26, 22, 0.82); }
}

/* Buttons (solid and outline variants) */
.btn, .cta {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(123,214,164,.75);
  background: linear-gradient(135deg, rgba(123,214,164,.95), rgba(155,211,178,.85));
  color: #041b0b;
  font-weight: 700;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
  text-shadow: 0 1px 0 rgba(0,0,0,.1);
}
.btn:hover, .cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.btn:active, .cta:active { transform: translateY(0); }
.btn-outline, .cta-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(123,214,164,.75);
}
.btn:focus-visible, .cta:focus-visible, a:focus-visible, button:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}
a:hover { text-decoration: underline; }

/* Form controls (if present) */
input, select, textarea, button {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  padding: .5rem .75rem;
}
button { cursor: pointer; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; border: 1px solid #ccc; }
}

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

/* Accessibility helpers (focus for navigable regions) */
:focus { outline: none; }
:focus-visible { outline: 3px solid rgba(123,214,164,.85); outline-offset: 2px; border-radius: 6px; }