/* Base Tokens */
:root{
  --bg: #0a1a35;
  --bg-2: #0b2a60;
  --text: #e8f0ff;
  --muted: #b8caff;
  --accent: #7ff5c1;
  --accent-2: #b0ffd2;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.12);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 6px 18px rgba(0,0,0,.25);
  --radius: 14px;
}

/* Reset & Global */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    radial-gradient(circle at 20% 0%, rgba(120,220,255,.08), transparent 25%),
    radial-gradient(circle at 80% 20%, rgba(0,120,170,.05), transparent 25%),
    linear-gradient(135deg, #0a1a35 0%, #112b64 60%, #0a1020 100%);
  background-size: 4px 4px, 4px 4px, 100% 100%, 100% 100%, cover;
  background-attachment: fixed;
  overflow-y: auto;
}

/* Section: Layout Helpers */
.container {
  width: min(100%, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  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: .25rem .5rem;
  font-size: .75rem;
  color: var(--text);
  background: rgba(127,255,210,.15);
  border: 1px solid rgba(127,255,210,.35);
  border-radius: 999px;
}
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
ul, li { margin: 0 0 0.5rem 1.25rem; padding: 0; }
li { line-height: 1.6; }

/* Section: Glass panels (fallback-friendly) */
header,
footer,
.product-ad,
.sponsored-page,
.main-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  header,
  footer,
  .product-ad,
  .sponsored-page,
  .main-panel {
    background: rgba(255,255,255,.14);
  }
}

/* Section: Image frame */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  background: rgba(255,255,255,.04);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

/* Section: Typography */
h1, h2 {
  color: var(--text);
  margin: 0.25rem 0;
}
h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: .5px;
}
h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-top: .75rem;
}
p { margin: .5rem 0; color: var(--text); }
.meta { color: var(--muted); font-size: .875rem; }

/* Hero & content layout */
header {
  width: 100%;
  padding: 1rem 0;
  display: grid;
  justify-items: center;
  gap: .25rem;
  margin-bottom: 1rem;
}
nav { margin-top: .25rem; }
nav a {
  color: var(--accent);
  padding: .25rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(127,255,210,.4);
  background: rgba(0,0,0,.15);
}
nav a:hover,
nav a:focus-visible {
  text-decoration: underline;
  outline: none;
}
main { display: grid; place-items: center; padding: 1rem 0 2rem; }

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(127,255,210,.6);
  background: linear-gradient(to right, rgba(0,0,0,.0), rgba(255,255,255,.12));
  color: var(--text);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.18); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cta { font-weight: 600; }

/* Focus for all links/text controls */
a:focus-visible, button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 6px;
}
a:hover { text-decoration: underline; }

/* Print styles (readable) */
@media print {
  body { background: #fff; color: #000; }
  header, nav, footer { display: none; }
  main { display: block; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
