/* Section: Tokens */
:root {
  --bg: #0b0a0a;
  --bg-2: #141210;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.25);
  --text: #e8fff7;
  --muted: #a8c7be;
  --accent: #2fe6d8;
  --accent-2: #e6d8c9;
  --focus: #6bded6;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* Section: Base resets & background (layered) */
html, body { height: 100%; }
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  /* Layered background: gradient + subtle noise/scanlines (pure CSS) */
  background:
    linear-gradient(135deg, rgba(255,235,205,.08), rgba(20,40,40,.08) 40%, rgba(0,0,0,.28) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 20% -10%, rgba(255,235,205,.15), transparent 25%);
  background-color: var(--bg);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
  overflow-x: hidden;
  animation: fadeIn 300ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Section: Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 88vw, 1100px);
  padding-inline: 1rem;
  margin: 0 auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(47,230,216,.20);
  color: var(--accent);
  border: 1px solid rgba(47,230,216,.45);
}

/* Section: Global element styling (semantic targets) */
html, body, header, nav, main, article, footer, aside { /* semantic targets kept lean */ }

header {
  padding: 2rem 0 1rem;
  text-align: center;
}
header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 1.2rem + 2.8vw, 2.8rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
}

/* Section: Image frame styling */
.image-frame {
  width: min(100%, 900px);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: #111;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 12px 28px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  filter: saturate(1.05);
}

/* Section: Main content area */
main {
  display: grid;
  place-items: start center;
  padding: 1rem 0 2rem;
}
article { width: 100%; }

/* Section: Footer / glass panels */
footer {
  padding: 1.5rem 1rem 3rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.product-ad, .sponsored-page {
  width: min(100%, 900px);
  text-align: center;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.25);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: inline-block; width: 100%; }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }

/* Section: Interactive controls (buttons/links) */
a, button, .btn, .cta {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: linear-gradient(135deg, rgba(47,230,216,.95), rgba(47,230,216,.75));
  color: #062a22;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
button:hover, .btn:hover, .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.btn--outline {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(46,230,216,.8);
  color: var(--text);
}
.btn + .btn { margin-left: .5rem; }

/* Section: Utility primitives */
ul { margin: 0; padding: 0; list-style: none; }
li { margin: 0; padding: 0; }

/* Section: Typography cadence for hero / supporting text */
.subtitle {
  color: var(--muted);
  font-size: clamp(0.95rem, 0.8rem + 1vw, 1.05rem);
  line-height: 1.5;
  text-align: center;
}
.hero {
  display: grid;
  gap: .75rem;
  justify-items: center;
  padding: 1rem 0 0;
}
.hero .lead {
  font-size: clamp(1.05rem, 0.8rem + 1.4vw, 1.25rem);
  color: var(--text);
  text-align: center;
  max-width: 54rem;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .hero .lead { padding: 0 0.5rem; }
  .image-frame { border-radius: 10px; }
}

/* Section: Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  .image-frame { border: 1px solid #ccc; box-shadow: none; }
  .glass, .surface { backdrop-filter: none; }
}

/* Section: Dark mode defaults with light-mode variant */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f2e9;
    --bg-2: #ffffff;
    --surface: rgba(0,0,0,.04);
    --surface-2: rgba(0,0,0,.08);
    --border: rgba(0,0,0,.12);
    --text: #0a1b17;
    --muted: #555;
    --accent: #0b5f50;
    --accent-2: #a57a58;
    --focus: #235a5b;
  }
  body {
    background: linear-gradient(135deg, rgba(246,238,225,.60), rgba(210,230,240,.40)),
                repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
                #f7f2e9;
    color: var(--text);
  }
  .image-frame { border-color: rgba(0,0,0,.15); }
  .product-ad, .sponsored-page { background: rgba(255,255,255,.92); border: 1px solid rgba(0,0,0,.08); }
}
