/* Base */
:root {
  --bg: #0a0f1e;
  --bg-2: #050812;
  --text: #eaf4ff;
  --muted: #a9c6ff;
  --accent: #4db6ff;
  --accent-2: #1e90ff;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.25);
  --shadow-soft: 0 8px 28px rgba(0,0,0,.45);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(77, 189, 255, 0.55);
  --text-contrast: #f6fbff;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Layered background: gradient + subtle scanlines/noise */
  background:
    radial-gradient(circle at 70% 20%, rgba(80,140,255,.08), transparent 40%),
    radial-gradient(circle at 20% 85%, rgba(10,60,180,.05), transparent 40%),
    linear-gradient(135deg, #030816 0%, #0b1020 60%, #00020a 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
}
img { display: block; max-width: 100%; height: auto; }

/* Layout helpers */
.container { width: 100%; max-width: clamp(320px, 92vw, 1100px); padding-inline: 1rem; margin-inline: auto; }
.grid { display: grid; gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-soft); }

/* Core page regions */
header, nav, main, article, aside, footer {
  display: block;
}
header {
  padding: 1.25rem 1rem;
  text-align: center;
}
header h1 {
  margin: .25rem 0 0;
  font-size: clamp(1.4rem, 1.6vw + 1rem, 2.4rem);
  letter-spacing: .2px;
}
nav { padding: 0.5rem 1rem; }

/* Hero/content frame */
.image-frame {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 40px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.04);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Content area (generic) */
.content { padding: 1rem; color: var(--text); }

/* Product/ads sections (footer) */
.product-ad, .sponsored-page {
  display: block;
  width: 100%;
  margin: .5rem 0;
  padding: .75rem 1rem;
  border-radius: .75rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  text-align: center;
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .5ch; width: 100%; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Links & controls */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}
a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Buttons (solid + outline variants) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.25rem; border-radius: 999px;
  border: 1px solid rgba(125, 180, 255, 0.8);
  background: linear-gradient(135deg, rgba(0,180,255,.9), rgba(0,110,200,.9));
  color: white; font-weight: 600;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  border: 1px solid rgba(125, 180, 255, 0.9);
  color: var(--text);
}
.cta { font-weight: 600; }

/* Utility & components */
.ul, ul { margin: 0; padding: 0; list-style: none; }
.li { margin: 0; padding: 0; }
.tag {
  display: inline-flex; align-items: center; gap: .4ch;
  padding: .25rem .6rem; font-size: .75rem; border-radius: 999px;
  background: rgba(0,0,0,.28); color: #dff4ff;
  border: 1px solid rgba(120,200,255,.6);
}
.card + .card { margin-top: .75rem; }

/* Responsiveness & layout utilities */
@media (min-width: 640px) {
  .container { padding-inline: 1.25rem; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7ff;
    --bg-2: #eef3ff;
    --text: #0a1a2a;
    --muted: #35507a;
    --card: rgba(255,255,255,.95);
    --card-border: rgba(0,0,0,.08);
    --shadow-soft: 0 6px 18px rgba(20,40,90,.15);
    --focus: 0 0 0 3px rgba(70,130,255,.55);
  }
  body {
    background: a linear-gradient(#f7f9ff, #eef3ff);
  }
  .image-frame { background: rgba(255,255,255,.95); border: 1px solid rgba(0,0,0,.08); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: inherit; }
}
