/* Base */
:root {
  --bg: #0a1d3a;
  --bg-2: #07182b;
  --surface: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.25);
  --text: #eaf6ff;
  --muted: #a7b5cf;
  --accent: #ff4db2;
  --accent-2: #ff7bd8;
  --glass: rgba(15, 18, 36, 0.25);
  --shadow: 0 6px 20px rgba(0,0,0,.35);
  --focus: rgba(255, 77, 178, 0.9);
}
*,*::before,*::after{box-sizing:border-box}
html, body { height: 100%; }
html { color-scheme: dark; }

/* Layered background: gradient + scanlines */
html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, rgba(6,48,132,0.95) 0%, rgba(3,14,40,0.95) 60%, rgba(0,0,0,0.95) 100%), 
              radial-gradient(circle at 75% -10%, rgba(255,0,140,0.15), transparent 40%),
              #04172a;
  color: var(--text);
}
html::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px),
    linear-gradient(to right, rgba(0,0,0,0.06) 0 1px, transparent 1px 2px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  opacity: 0.25;
  z-index: -1;
}
@media (prefers-color-scheme: light) {
  html, body {
    background: linear-gradient(135deg, #e9f0ff 0%, #dbe8ff 60%, #cfe0ff 100%);
    color: #0b1d3a;
  }
  html::after { opacity: 0.25; }
}

/* Layout helpers */
.container {
  width: min(92%, 1100px);
  margin-inline: auto;
  padding-block: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tag {
  display:inline-block;
  padding: 0.15em 0.5em;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #fff;
  background: color-mix(in oklab, #ff4db2 70%, transparent);
  border: 1px solid rgba(255,255,255,0.25);
}
.image-frame {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  background: #0a0f1a;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 400ms ease;
}
.image-frame:hover img { transform: scale(1.04); }

/* Elements */
html, body, header, nav, main, article, aside, footer {
  display: block;
}
header, main, footer, aside {
  width: 100%;
}
header {
  padding: 1rem;
  display: grid;
  place-items: center;
}
header h1 {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 0.8rem + 2.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: .2px;
  color: #fff;
}
main { padding: 0 0.5rem; }
article { padding: 0.25rem; }

/* Section: content layout */
.content { color: var(--text); }

/* Product ad blocks (footer) */
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  padding: 0.75rem;
  margin: 0.25rem 0;
  border-radius: 12px;
  background: rgba(10, 14, 28, 0.28);
  border: 1px solid rgba(255,255,255,0.25);
  text-decoration: none;
  color: #fff;
}
.product-ad a, .product-ad a:visited, .sponsored-page a, .sponsored-page a:visited {
  color: inherit;
  text-decoration: none;
}
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }
.product-ad:hover, .sponsored-page:hover { transform: translateY(-1px); transition: transform 180ms ease; }

/* Links + buttons (interactive) */
a, button, .btn, .cta {
  color: #fff;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
a { color: var(--accent-2); }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn, .cta {
  display: inline-block;
  padding: 0.65em 1.05em;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: linear-gradient(135deg, rgba(255,77,178,0.95), rgba(255,77,178,0.65) 70%);
  color: #fff;
  font-weight: 600;
  letter-spacing: .2px;
  box-shadow: 0 6px 14px rgba(255, 77, 178, 0.35);
  transition: transform 120ms ease, box-shadow 200ms ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(255, 77, 178, 0.5); }
.btn:active, .cta:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(255, 77, 178, 0.4); }

/* Utilities */
ul, li { margin: 0; padding: 0; list-style: none; }
aside { display: block; }

/* Typography tweaks */
h1, h2, h3, h4 { line-height: 1.15; }
p { margin: 0.5rem 0; color: var(--muted); }

/* Print styles (basic readability) */
@media print {
  body { background: white; color: #000; }
  a { color: #00f; text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}