/* BASE TOKENS */
:root {
  --bg: #0a0a0f;
  --bg-2: #0f1118;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --text: #eaf2ff;
  --muted: #a6b4cc;
  --accent: #58e6ff;
  --accent-2: #8a5cff;
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 6px 20px rgba(0,0,0,.35);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(88,230,255,.65);
  --glass: rgba(255,255,255,.08);
  --glass-deep: rgba(0,0,0,.25);
  --gap: 1rem;
}

/* RESET / BASE */
*,
*::before,
*::after { box-sizing: border-box; }
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", "Liberation Sans", sans-serif;
  color: var(--text);
  line-height: 1.5;
  background:
    radial-gradient(circle at 25% -5%, rgba(0, 230, 255, .12), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(138, 92, 255, .12), transparent 40%),
    linear-gradient(135deg, #050509 0%, #0a0b0f 60%, #0a0b0f 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: normal, normal, normal, overlay;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* LAYOUT STRUCTURE */
header, nav, main, article, aside, footer {
  display: block;
}
header {
  position: relative;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  margin: 0 auto;
  width: 100%;
  background: rgba(2, 2, 6, 0.45);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
header h1 {
  font-size: clamp(1.75rem, 4vw + 1rem, 3.5rem);
  line-height: 1.04;
  margin: 0;
  text-align: center;
  letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
main { padding: 1.5rem 1rem; }
article { display: grid; justify-items: center; }
footer {
  padding: 1.5rem 1rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
  background: rgba(2,2,6,.55);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.content { display: block; }

/* IMAGE FRAME */
.image-frame {
  width: 100%;
  max-width: min(900px, 92vw);
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.25);
  box-shadow: inset 0 0 20px rgba(0,0,0,.25), 0 8px 20px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  /* subtle halo glow */
  box-shadow: 0 0 20px rgba(90, 240, 255, .25);
}

/* GLASS PANELS / CARDS */
.card, .product-ad {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  color: var(--text);
}
@supports not (backdrop-filter: blur(12px)) {
  .card, .product-ad {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.25);
  }
}
.product-ad {
  display: inline-block;
  text-align: center;
  padding: 0.85rem 1.2rem;
}
.product-ad a {
  color: inherit;
  text-decoration: none;
}
.product-ad a:hover, .product-ad a:focus-visible {
  text-decoration: underline;
}
.sponsored-page { align-self: center; }

/* UTILITY / LAYOUT CLASSES */
.container {
  width: 100%;
  max-width: clamp(320px, 88vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card { padding: 1rem; }

/* TYPOGRAPHY */
h1, h2, h3, h4 { margin: 0 0 .5rem; color: var(--text); }
p { margin: 0 0 0.75rem; color: var(--muted); }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }

/* BUTTONS / CTAS */
.btn, .cta, button {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 0.75em 1.25em;
  display: inline-block;
  text-align: center;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  color: #041018;
  text-decoration: none;
}
.btn { font-weight: 600; }
.btn--solid {
  background: linear-gradient(135deg, rgba(88,230,255,.95), rgba(138,92,255,.95));
  color: #041018;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.btn--solid:hover { transform: translateY(-1px); }
.btn--solid:active { transform: translateY(0); opacity: .95; }
.btn--solid:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(88,230,255,.65), 0 0 0 6px rgba(0,0,0,.2); outline-offset: 2px; }
.btn--outline {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.4);
}
.btn--outline:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.cta { display: inline-flex; align-items: center; gap: .5rem; }

/* LISTS */
ul, li { margin: 0; padding: 0; list-style: none; }

/* RESPONSIVE TYPOGRAPHY / LAYOUT */
@media (max-width: 720px) {
  header { padding: 1.5rem 1rem; }
  header h1 { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

/* PRINT STYLES (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; }
  a { color: #000; text-decoration: underline; }
}
