/* 1. Tokens & Palette */
:root{
  --bg: #0a0f24;
  --bg-2: #102a8e;
  --text: #eaf0ff;
  --muted: #cbd5e1;
  --accent: #4a7cff;     /* royal blue */
  --accent-2: #c9a6ff;   /* soft lilac */
  --glass: rgba(255,255,255,0.08);
  --glass-strong: rgba(255,255,255,0.18);
  --shadow: 0 6px 18px rgba(0,0,0,.25);
  --radius: 14px;
  --focus: #7bd3ff;
  --focus-offset: 2px;
}

/* 2. Layered Background (gradient + subtle noise/scanlines) */
html, body { height: 100%; }
html {
  color-scheme: dark;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  color: var(--text);
  background:
    linear-gradient(135deg, #071a3a 0%, #0b2b7f 55%, #6f4df9 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 3px);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 3. Glass panels (fallback included) */
.glass, header, section.product-ad, section.sponsored-page {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  padding: 1rem;
  overflow: hidden;
}
@supports not (backdrop-filter: blur(12px)) {
  .glass, header, section.product-ad, section.sponsored-page {
    background: rgba(255,255,255,0.14);
  }
}

/* 4. Layout primitives */
.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
  padding-inline: 0.5rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 1rem;
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25em 0.5em;
  border-radius: 999px;
  background: rgba(106, 146, 255, 0.25);
  color: #eaf0ff;
  border: 1px solid rgba(170, 190, 255, 0.5);
}

/* 5. Core components: typography, links, buttons, inputs */
h1, h2, h3 { margin: 0 0 0.5rem; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.75rem, 2.5vw + 1rem, 3.5rem); line-height: 1.05; letter-spacing: .2px; }
p { color: var(--muted); margin: 0 0 0.75rem; }

a, button, .btn, .cta {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
a { color: #cfe0ff; }
a:hover, a:focus { text-decoration: underline; outline: none; }

/* Focus visibility (WCAG AA) */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: var(--focus-offset);
  border-radius: 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #2b6ee8);
  color: #fff;
  font-weight: 600;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 14px rgba(74,124,255,.42);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(74,124,255,.55); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.btn--outline {
  background: transparent;
  color: #e9f0ff;
  border: 1px solid rgba(170, 180, 255, 0.55);
  box-shadow: none;
}
.btn--outline:hover {
  background: rgba(255,255,255,0.08);
}
.cta { font-weight: 700; }

/* 6. Media & image presentation */
.image-frame {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  background: rgba(255,255,255,.08);
  margin: 2rem auto;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 7. Specific sections to satisfy selectors */
header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: 1rem;
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;
}
header h1 { font-size: clamp(1.4rem, 2vw + 1rem, 2.6rem); margin: 0; }
nav { display: flex; gap: .5rem; align-items: center; justify-content: end; }

main { padding: 1rem 0; }
article { display: grid; place-items: center; padding: 0.25rem 0 1rem; }
footer {
  padding: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.product-ad, .sponsored-page { padding: .75rem; }
.product-ad a, .sponsored-page a { display: block; text-align: center; padding: .75rem; color: inherit; text-decoration: none; }

aside { display: none; }

/* 8. Print & motion preference */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* 9. Helpers (utility-ish) */
.container--tight { max-width: clamp(320px, 90vw, 760px); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) {
  .container--tight { max-width: 720px; }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  header { padding: 1.25rem 0; }
} 

/* 10. Accessibility niceties for contrast on glass */
header, .glass { color: var(--text); }

/* 11. Module hooks (optional semantic targets) */
.content { padding: 0.75rem; color: var(--muted); }

/* End of stylesheet */