:root {
  --bg: #0b1417;
  --bg-2: #061018;
  --text: #e6fbff;
  --muted: #a8d6d9;
  --accent: #00e5d0;       /* teal */
  --accent-2: #ff2d2d;     /* red */
  --glass: rgba(11, 24, 32, 0.22);
  --border: rgba(255, 255, 255, 0.32);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 6px 18px rgba(0,0,0,.25);
}

/* Section: Global & Layout */
html, body {
  height: 100%;
}
* { box-sizing: border-box; }
html {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  color: var(--text);
  /* Layered background: gradient + teal/red accents + subtle noise/scanlines */
  background:
    radial-gradient(circle at 20% 15%, rgba(0, 210, 180, 0.25), transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(255, 45, 45, 0.18), transparent 40%),
    conic-gradient(from 180deg at 50% 50%, rgba(0, 255, 240, 0.08), rgba(255, 0, 0, 0.08) 25%, rgba(0,0,0,0) 25% 50%, rgba(0,255,240,0.08) 50% 75%, rgba(0,0,0,0) 75% 100%);
  background-blend-mode: overlay, overlay, normal;
  /* Subtle scanline */
  background-image: 
    linear-gradient(to bottom, rgba(0,0,0,0) 0 1px, rgba(0,0,0,0.04) 1px 2px),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.06) 41%, rgba(0,0,0,0) 42%);
  background-size: auto, auto;
  min-height: 100%;
}
a { color: inherit; text-decoration: none; }

/* Section: Utilities / primitives used by selectors */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card, .glass, .product-ad {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  transition: transform 0.2s ease, background 0.3s ease;
}
.card:hover, .glass:hover {
  transform: translateY(-2px);
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  filter: saturate(1.05);
}
.content {
  padding: 0.25rem 0.5rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.6);
  color: #eaffff;
  background: rgba(0, 224, 208, 0.25);
}
ul, li { margin: 0; padding: 0; list-style-position: inside; }
ul { padding-left: 1.25rem; color: var(--muted); }

/* Section: Header / hero */
header {
  padding: clamp(1.25rem, 4vw, 2rem) 0;
  text-align: center;
}
header h1 {
  font-size: clamp(1.75rem, 2.6vw, 3rem);
  line-height: 1.15;
  margin: 0.25rem 0 0.5rem;
  letter-spacing: .2px;
  background: linear-gradient(135deg, #eaffff 0%, #b8fffb 40%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 1.7vw, 0.95rem);
}

/* Section: main content and article layout */
main {
  padding: 0.5rem 0 1rem;
}
article {
  display: block;
  padding: 0;
}
.featured-image { margin: 0.75rem 0; }
article h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  margin: 0.75rem 0 0.25rem;
  color: var(--accent);
}
article p {
  color: #eaf7f7;
  margin: 0.5rem 0;
  text-wrap: pretty;
}
blockquote {
  margin: 0.75rem 0;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,0.15);
  border-radius: 6px;
  color: #eaffff;
}
footer {
  padding: 1rem 0 2rem;
}
.product-ad, .sponsored-page {
  display: block;
  margin: 0.5rem 0;
  text-align: center;
}
.product-ad a, .sponsored-page a {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.6);
  background: linear-gradient(to bottom right, rgba(0, 224, 208, 0.25), rgba(0,0,0,0.08));
  color: #eaffff;
  text-decoration: none;
  transition: transform .15s ease, background .3s ease;
}
.product-ad a:hover, .sponsored-page a:hover { transform: translateY(-1px); background: rgba(0, 224, 208, 0.4); }
footer p { text-align: center; color: var(--muted); font-size: .9rem; margin: .6rem 0 0; }

/* Section: interactive controls (buttons, links) */
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
a:hover, button:hover, .btn:hover, .cta:hover {
  text-decoration: underline;
}
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
}
.btn, .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.6);
  background: linear-gradient(to bottom right, rgba(0, 224, 208, 0.28), rgba(0,0,0,0.08));
  text-transform: none;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.25s ease;
}
.btn.secondary {
  background: transparent;
  border-color: rgba(0, 255, 255, 0.8);
}
.btn:active, .cta:active { transform: translateY(1px); }

/* Section: list styling adjustments */
ul { margin-block: 0.25rem 0.75rem; padding-left: 1.15rem; }
li { margin: 0.25rem 0; }

/* Section: responsive typography helpers (fluid) */
h1, h2, h3 { line-height: 1.2; }

/* Section: accessibility & motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  .card, .glass { background: #fff; border: 1px solid #ccc; box-shadow: none; }
}
@supports not (backdrop-filter: blur(12px)) {
  .glass, .card {
    background: rgba(11, 24, 32, 0.85);
    backdrop-filter: none;
  }
}
