:root {
  --bg: #0b0f12;
  --bg-2: #0e141a;
  --text: #e8fbf7;
  --muted: #a8d2c7;
  --accent: #7cffb1;
  --accent-2: #cbd6e3;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.14);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --radius: 14px;
  --focus: 2px solid rgba(124, 255, 177, 0.95);
  --gap: 1rem;
}

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

html, body { height: 100%; }

html {
  /* Optional minimal font size scaling on tiny devices */
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% -10%, rgba(60,255,180,.18), transparent 25%),
    linear-gradient(135deg, rgba(60,255,180,.20), rgba(170,190,210,.12) 60%, rgba(200,210,210,.10) 100%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 2px, transparent 2px 4px);
  background-blend-mode: overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body, header, nav, main, article, aside, footer {
  /* structural selectors are reset to predictable defaults */
  padding: 0;
  margin: 0;
}

header, main, footer, aside {
  display: block;
}

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

.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.3); }
}

.image-frame {
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: #000;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.04);
  /* subtle inner glow */
  box-shadow: inset 0 0 12px rgba(0,0,0,.25);
}

.content {
  color: var(--text);
  line-height: 1.55;
  font-size: clamp( wondered, 1rem);
}
@media (min-width: 700px) {
  .content { font-size: clamp(0.95rem, 0.95vw + 0.9rem, 1.1rem); }
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 .5em 0;
  letter-spacing: .2px;
}
h1 { font-size: clamp(1.8rem, 4vw + 1rem, 3.4rem); color: var(--text); }
h2 { font-size: clamp(1.25rem, 2.6vw + .5rem, 2rem); color: #eaf6f0; }
h3 { font-size: clamp(1.05rem, 2vw + .4rem, 1.5rem); color: #eaf6f0; }

.meta {
  color: var(--muted);
  font-size: clamp(0.9rem, 0.8vw + .4rem, 1.05rem);
}

a, button, .btn, .cta {
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; text-decoration: underline; }

.btn, .cta {
  display: inline-block;
  padding: .75rem 1.125rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: var(--text);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn { font-weight: 600; }
.btn--solid {
  background: linear-gradient(135deg, rgba(60,255,180,.9) 0%, rgba(60,255,180,.75) 100%);
  border: 1px solid rgba(120,255,180,.9);
  color: #062018;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.btn--solid:hover { transform: translateY(-1px); }
.btn--solid:active { transform: translateY(0); }
.btn--outline {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(124,255,177,.9);
  color: var(--text);
}
.btn--outline:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }

.cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
}
.cta:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 6px; }

ul, li {
  margin: 0;
  padding: 0;
  list-style: disc;
  padding-left: 1.25rem;
}
li { margin: .25em 0; }

.product-ad {
  display: block;
  margin: .5rem 0;
  padding: .75rem;
  text-align: center;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
}
.product-ad a { color: var(--accent-2); }
.product-ad p { margin: 0; font-weight: 600; }

.sponsored-page {
  display: block;
  margin: .5rem 0;
  padding: .75rem;
  text-align: center;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
}
.sponsored-page a { color: var(--accent-2); }

header {
  width: min(100%, 1200px);
  margin: 2rem auto;
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  text-align: center;
}
@media (prefers-color-scheme: light) {
  header { background: rgba(255,255,255,.25); }
}
header h1 { margin-bottom: .25rem; }

footer {
  padding: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
}
footer p { margin: .25rem 0; font-size: .95rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  body { color: #000; background: #fff; }
  header, main, footer { background: transparent !important; box-shadow: none !important; }
}

/* Layout helpers for explicit selectors */
html, body, header, nav, main, article, footer, aside { line-height: 1.5; }
nav a { display: inline-block; padding: .25rem .5rem; border-radius: 6px; }
nav a:hover { text-decoration: underline; }

/* Specific selector targets from the HTML */
.image-frame, .image-frame img { }

.product-ad, .sponsored-page { min-width: 0; }

@supports not (backdrop-filter: blur(8px)) {
  header { background: rgba(255,255,255,.08); }
  .card { background: rgba(255,255,255,.08); }
}