/* Base tokens */
:root {
  --bg: #041414;
  --bg-2: #0b2b2b;
  --text: #e6fffb;
  --muted: #a3f0e8;
  --accent: #2ee4c5;
  --accent-2: #1bd3b0;
  --card: rgba(255, 255, 255, 0.18);
  --card-border: rgba(255, 255, 255, 0.28);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --focus: #2ee4c5;
}

/* Global reset-ish, mobile-first defaults */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans"; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(46, 228, 197, 0.25), rgba(27, 211, 176, 0.25) 60%, rgba(46, 228, 197, 0.25)),
    linear-gradient(135deg, #062626 0%, #0a4545 50%, #062626 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, normal, overlay;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-y: auto;
}

/* Layered helpers */
.container { max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Layout primitives */
.grid { display: grid; gap: 1rem; }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

header, nav, main, article, aside, footer { /* semantic targets */ }

/* Header / hero styling */
header {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
}
header h1 {
  font-size: clamp(1.75rem, 1.6rem + 2vw, 3rem);
  line-height: 1.15;
  margin: 0.25rem 0 0.4rem;
  font-weight: 800;
  letter-spacing: .2px;
  color: #e9fffb;
}
header .meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: .25rem;
  display: inline-block;
}
@media (prefers-reduced-motion: reduce) {
  header { transition: none; }
}

/* Main content & article look with glassy panels where applicable */
main { padding: 0 0 2rem; }
article {
  padding: 0;
  /* optional glass feel for article blocks */
}
.image-frame,
.featured-image,
.image-frame img {
  width: 100%;
}
.image-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  margin: 0.75rem auto;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  filter: saturate(1.05);
}
.featured-image { /* alias for provided HTML section */ }

/* Glass panels (fallbacks included) */
.glass {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,.28); }
}
.content { color: var(--text); }

/* Product ad / CTA region styling (glassy) */
.product-ad {
  margin: 1rem auto;
  max-width: 720px;
  padding: 1rem;
}
.product-ad h3 { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 700; }
.product-ad a {
  display: inline-block;
  padding: .6em 1em;
  border-radius: 999px;
  border: 1px solid rgba(46, 228, 197, .6);
  background: rgba(46, 228, 197, .18);
  color: var(--text);
  text-decoration: none;
  transition: transform .15s ease, background .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); background: rgba(46, 228, 197, .28); text-decoration: underline; }
.product-ad a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Typography fine-tuning for readability */
h2 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); margin: .75rem 0 .4rem; color: #faffff; }
h3 { font-size: clamp(1.25rem, .9rem + 1vw, 1.8rem); margin: .75rem 0 .4rem; }
p { margin: .4rem 0 1rem; color: rgba(231,255,251,.95); }
blockquote {
  margin: .75rem 0 1rem;
  padding: .75rem 1rem;
  border-left: 4px solid var(--accent-2);
  background: rgba(0,0,0,.18);
  border-radius: 6px;
  color: #eaffff;
}
ul { margin: .4rem 0 1rem 1.2rem; color: rgba(231,255,251,.95); }
li { margin: .25rem 0; }

/* Utility & small UI tokens */
.container-wide { padding-inline: 0; }

/* Links & interactive elements (AA contrast & focus) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: .52em . nine?; /* placeholder avoided; replace below with valid values */
}
a { color: var(--accent-2); text-decoration-color: rgba(46,228,197,.25); }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 8px;
}
.btn, .cta {
  display: inline-block;
  padding: .55em 1.15em;
  border-radius: 999px;
  border: 1px solid rgba(46,228,197,.6);
  background: rgba(46,228,197,.18);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: rgba(46,228,197,.28); }
.btn.primary { background: var(--accent); border-color: rgba(0,0,0,.15); color: #002626; }
.btn.secondary { background: transparent; border-color: rgba(46,228,197,.6); color: var(--text); }

/* Lists & navigation helpers */
ul, li { list-style: disc inside; margin-block: .25rem; }

/* Layout helpers for responsive grids */
.container.grid { padding: 0; }
.grid { display: grid; gap: 1rem; }
.grid.auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Forms (basic styling for potential inputs) */
input, textarea, select {
  width: 100%;
  padding: .5em .75em;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--focus); outline-offset: 2px; }

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

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