:root {
  /* Tokenized palette (bright turquoise dawn + iridescent greens) */
  --bg: #02131a;
  --bg-2: #043a3e;
  --text: #e8fffe;
  --muted: #9be7de;
  --accent: #1ff5d7;      /* bright turquoise */
  --accent-2: #4ff2a0;    /* iridescent green */
  --glass: rgba(6,14,23,0.28);
  --glass-strong: rgba(6,14,23,0.42);
  --card: rgba(6,14,23,0.40);
  --border: rgba(255,255,255,0.25);
  --shadow: 0 10px 28px rgba(0,0,0,.28);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: 2px solid rgba(31,245,214,.95);
}

/* Base / Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: clamp(14px, 1vw + 12px, 17px); }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, rgba(0,255,212,.14) 0%, rgba(0,255,180,.12) 60%, rgba(0,0,0,0) 100%), #02141b;
  /* Layered background baseline for future cyberpunk vibe */
  background-attachment: fixed;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
html, body { scroll-behavior: smooth; }

/* Subtle, pure-CSS noise/scanlines overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  opacity: .25;
  filter: saturate(1.1);
}

/* Layout helpers */
.container { max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }

/* Section-level structure */
header, main, footer, aside, article, nav, .content, .product-ad {
  display: block;
}

/* Header / Hero */
header {
  text-align: center;
  padding: 1.25rem 1rem 0.75rem;
}
header h1 {
  font-family: ui-sans-serif, system-ui, -apple-system;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  margin: 0.25rem 0 0.5rem;
  letter-spacing: .4px;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
header .meta {
  color: var(--muted);
  font-size: clamp(.9rem, .8vw, 1.05rem);
  margin-top: 0.25rem;
}

/* Main content -> article content in glass panels */
main {
  padding: 1rem 0 2rem;
}
article {
  display: grid;
  gap: 1rem;
  align-items: start;
}
.featured-image {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: #0b1118;
  display: block;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.image-frame:hover img { transform: scale(1.03); }

h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin: .25rem 0 .25rem;
  letter-spacing: .2px;
}
p {
  color: #eaffff;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}
blockquote {
  margin: .75rem 0 1rem;
  padding: .75rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
  color: #dffeff;
}
ul { padding-left: 1.25rem; margin: .25rem 0 1rem; color: #eaffff; }
li { margin: .25rem 0; }

/* Glassy content wrapper around article text */
.content {
  background: var(--glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
}
@media (min-width: 720px) {
  article { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* Footer / Ad blocks (glass panels) */
footer {
  padding: 1rem;
}
.product-ad {
  display: inline-block;
  width: min(100%, 420px);
  margin: .25rem;
  text-align: center;
}
.product-ad a {
  display: block;
  padding: .75rem 1rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(6,14,23,.38);
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad a:hover, .product-ad a:focus-visible {
  outline: none;
  background: rgba(6,14,23,.52);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sponsored-page { display: inline-block; margin: .25rem; }

footer p {
  color: var(--muted);
  font-size: .92rem;
  text-align: center;
  margin: .75rem 0 0;
}

/* Link and button styles (interactive states) */
a, button, .btn, .cta {
  cursor: pointer;
}
a { color: #b9fffb; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: 0; text-underline-offset: 3px; }
button, .btn, .cta {
  font: inherit;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: var(--text);
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn.primary {
  background: linear-gradient(135deg, rgba(0,255,212,.95), rgba(0,255,184,.95));
  border: none;
  color: #062024;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.btn.secondary {
  background: rgba(0,0,0,.0);
  border: 1px solid rgba(0,255,212,.6);
  color: var(--text);
}
.btn:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.12); }
.btn.primary:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Utility classes (compact) */
.container { /* generic container utility */ }
.grid.auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(31,255,214,.15);
  border: 1px solid rgba(31,255,214,.45);
  color: #eaffff;
}
.image-frame + .image-caption { font-size: .85rem; color: var(--muted); display: block; }

/* Typography scale helpers (fluid) */
h1, h2, h3 { line-height: 1.25; }
p { max-width: 70ch; }

/* Forms (if present) - basic theme alignment */
input, textarea, select {
  width: 100%;
  padding: .6rem .8rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline: none;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  border-color: rgba(31,245,214,.75);
}

/* Accessibility & motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .image-frame:hover img { transform: none; }
}

/* Print styles (basic readability) */
@media print {
  body { background: white; color: #000; }
  a { text-decoration: underline; }
  .glass, .card { background: none; border: none; box-shadow: none; }
}
