/* Base Tokens & Layout*/
:root {
  --bg: #0b0f1a;
  --bg-2: #141a2f;
  --text: #e9e2ff;
  --muted: #b3a4cc;
  --accent: #8a2be2;      /* neon purple */
  --accent-2: #7df9ff;     /* accent cyan for hover contrast */
  --glass: rgba(18, 16, 32, 0.22);
  --glass-strong: rgba(18, 16, 32, 0.36);
  --border: rgba(138, 43, 226, 0.42);
  --shadow: 0 8px 28px rgba(0,0,0,.32);
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  line-height: 1.5;
  background: 
    radial-gradient(circle at 20% -10%, rgba(138, 43, 226, .25), transparent 40%),
    linear-gradient(135deg, #0b1020 0%, #141a2f 60%, #0b1020 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: scroll;
  min-height: 100%;
}
html:focus-within { outline: none; }

/* Layout helpers */
.container {
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

/* Sectionial structure styling */
header, main, footer, aside, article, nav { display: block; }

/* Subtle glass panels (fallback included) */
.content,
.card,
.product-ad,
.sponsored-page {
  background: rgba(18, 16, 32, 0.22);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(10px)) {
  .content,
  .card,
  .product-ad,
  .sponsored-page {
    background: rgba(18, 16, 32, 0.42);
  }
}

/* Image frame specifics */
.image-frame {
  width: min(90%, 720px);
  aspect-ratio: 16 / 9;
  margin: 1rem auto 2rem;
  border-radius: 14px;
  padding: 0.4rem;
  background: rgba(10, 8, 20, 0.28);
  border: 1px solid rgba(138, 63, 226, 0.38);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  /* Subtle neon glow */
  filter: saturate(1.05);
  box-shadow: 0 0 14px rgba(138,63,226,.25);
}

/* Typography & hero emphasis */
header {
  text-align: center;
  padding: 2rem 1rem 1.25rem;
}
header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 0.9rem + 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: .4px;
  color: var(--text);
  text-shadow: 0 0 14px rgba(138,63,226,.45);
}

/* Main content region (kept lean for hero focus) */
main { padding: 0; }

/* CTA & links styling (fits both buttons and links) */
a,
button,
.btn,
.cta {
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(138,63,226,.6);
  background: rgba(138,63,226,.25);
  padding: .6rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
a:hover, button:hover, .btn:hover, .cta:hover {
  transform: translateY(-1px);
  text-decoration: underline;
  background: rgba(141, 69, 226, .92);
  border-color: rgba(141, 69, 226, .95);
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a:focus-visible { text-decoration: underline; }

/* Button variants */
.btn.primary {
  background: var(--accent);
  border-color: rgba(138,43,226,.7);
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(138,63,226,.8);
  color: var(--text);
}
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.25); }

/* Utilities & components */
.card { padding: 1rem; }

/* Lists & tags */
ul { padding-left: 1.25rem; }
li { margin: .25rem 0; }
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(138,63,226,.35);
  color: #fff;
}

/* Product/ad blocks in footer */
.product-ad,
.sponsored-page {
  display: inline-block;
  margin: .25rem;
  padding: .75rem 1rem;
  text-align: center;
}
.product-ad a,
.sponsored-page a { color: var(--text); text-decoration: none; }

/* Footer layout */
footer {
  padding: 1.75rem 1rem 2rem;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
}
footer p { margin: 0; color: var(--muted); }

/* Interactions & accessibility */
:focus { outline: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Responsive refinements */
@media (max-width: 640px) {
  header { padding: 1.5rem 0 1.25rem; }
  .image-frame { width: 92%; }
  footer { grid-template-columns: 1fr; }
}

/* Print styles for readability */
@media print {
  body { background: #fff; color: #000; }
  a { color: #00f; text-decoration: underline; }
}
