/* Base tokens */
:root {
  --bg: #0a0a14;
  --bg-2: #0b0f28;
  --text: #eaf0ff;
  --muted: #b5c0e6;
  --surface: rgba(14, 12, 36, 0.55);
  --surface-2: rgba(12, 9, 28, 0.6);
  --border: rgba(120, 100, 240, 0.55);
  --accent: #4b6dfb;
  --accent-2: #ff2a5e;
  --shadow: 0 8px 28px rgba(0,0,0,.45);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(75,109,251,.5);
}

/* Global resets & typography (mobile-first) */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100%;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,0,64,.25) 0 25%, transparent 26%),
    radial-gradient(circle at 75% 60%, rgba(68,0,255,.18) 0 30%, transparent 31%),
    linear-gradient(to bottom right, rgba(10,6,40,.9), rgba(2,2,20,.9)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0 1px, transparent 1px 2px);
  background-blend-mode: screen, screen, normal, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Respect reduced motion where possible for background animation */
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Layered, glassy layout primitives */
header, nav, main, article, aside, footer { display: block; }

/* Header / hero area */
header {
  padding: clamp(1rem, 2vw, 1.5rem);
  text-align: center;
  border-bottom: 1px solid rgba(120, 100, 240, .4);
  background: rgba(13, 9, 28, 0.5);
  backdrop-filter: blur(6px);
}
header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw + 1rem, 2.6rem);
  color: #eef2ff;
  letter-spacing: .2px;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

/* Main content */
main { padding: 1rem; }

/* Image frame styling */
.image-frame {
  width: 100%;
  max-width: 920px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(120, 100, 240, 0.5);
  background: rgba(0,0,0,.25);
  box-shadow: 0 10px 24px rgba(0,0,0,.4), inset 0 0 20px rgba(70,0,140,.2);
  display: block;
  margin: 0 auto;
  animation: frameIn .6s ease both;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.05);
}
@keyframes frameIn { from { transform: scale(0.98); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Content text block (glass panel friendly) */
.content {
  padding: 0.75rem 0 1.25rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 0.9vw + 0.9rem, 1.18rem);
}

/* Product ad blocks in footer */
.product-ad, .sponsored-page {
  display: inline-block;
  width: 100%;
  margin: .25rem 0;
  padding: .75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(120, 100, 240, .45);
  background: rgba(12, 9, 28, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.product-ad a, .sponsored-page a {
  color: #e9eaff;
  text-decoration: none;
  display: block;
  padding: .25rem;
}
.product-ad:hover, .sponsored-page:hover { transform: translateY(-1px); transition: transform .2s ease; }

/* Interactive controls */
a, button, .btn, .cta {
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* Button variants (solid) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.25rem; border-radius: 999px;
  border: 1px solid rgba(75,109,251,.65);
  background: linear-gradient(to bottom, rgba(75,109,251,.95), rgba(75,109,251,.75));
  color: #fff; text-decoration: none; font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 18px rgba(75,109,251,.5);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(75,109,251,.6); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(75,109,251,.6), 0 0 0 6px rgba(0,0,0,.5);
  outline-offset: 2px;
}

/* Button outline variant */
.btn--outline {
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(130,160,255,.6);
  color: #eaf0ff;
}
.btn--outline:hover { background: rgba(255,255,255,.04); }

/* CTA alias (stands in for .cta class) */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.25rem; border-radius: 999px;
  border: 1px solid rgba(75,109,251,.65);
  background: linear-gradient(to bottom, rgba(75,109,251,.95), rgba(75,109,251,.75));
  color: #fff; text-decoration: none; font-weight: 600;
  font-size: 1rem; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 18px rgba(75,109,251,.5);
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(75,109,251,.6); }
.cta:active { transform: translateY(0); }
.cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(75,109,251,.6), 0 0 0 6px rgba(0,0,0,.5);
  outline-offset: 2px;
}

/* Glass panel cards & tags */
.card {
  background: rgba(14, 12, 36, 0.5);
  border: 1px solid rgba(120, 100, 240, 0.45);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .8rem;
  color: #e7eaff;
  background: rgba(75,109,251,.25);
  border: 1px solid rgba(75,109,251,.5);
}

/* Utilities / layout helpers */
ul, li { margin: 0; padding: 0; list-style: none; }
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin: 0 auto;
  padding: 0 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

/* Accessibility: motion preferences */
@media (prefers-reduced-motion: reduce) {
  .image-frame, .btn, .cta { animation: none !important; transition: none !important; transform: none !important; }
  * { animation: none !important; transition: none !important; }
}

/* Small devices tweaks */
@media (max-width: 768px) {
  header { padding: 0.9rem 1rem; }
  .image-frame { border-radius: 14px; }
}

/* Print accessibility */
@media print {
  body { color: #000; background: #fff; }
  header, main, footer { display: block; }
  .image-frame { page-break-inside: avoid; }
}