/* Theme Tokens */
:root {
  --bg: #0a0b14;
  --bg-2: #14182b;
  --text: #eaf6ff;
  --muted: #a6c6e9;
  --rose: #e57ea6;
  --rose-2: #ffd3e1;
  --accent: #6bd8ff;
  --accent-2: #b1eaff;
  --panel: rgba(255,255,255,.08);
  --panel-strong: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 28px rgba(0,0,0,.28);
  --radius: 0.75rem;
}

/* Base / Reset */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: 
    radial-gradient(circle at 20% 10%, rgba(225,122,166,.25), transparent 25%),
    radial-gradient(circle at 75% 60%, rgba(107,216,255,.22), transparent 25%),
    linear-gradient(135deg, rgba(10,10,20,.95), rgba(16,19,38,.95) 60%, rgba(10,10,20,.95));
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  opacity: .55;
  animation: none;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  color: #041018;
  background: rgba(107,216,255,.25);
  border: 1px solid rgba(107,216,255,.55);
  letter-spacing: .3px;
}
.image-frame {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.04);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  filter: saturate(1.05);
  transition: transform .3s ease;
}
.image-frame:hover img {
  transform: scale(1.02);
}

/* Core elements styling */
header, nav, main, article, aside, footer {
  display: block;
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  margin-block: .75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header {
  text-align: center;
  padding: 1.25rem 1rem;
}
header h1 {
  margin: .25rem 0 0;
  font-size: clamp(1.6rem, 2.4vw + 0.8rem, 2.6rem);
  line-height: 1.15;
  color: #fff;
}
main { padding: 1rem; }
article { display: block; padding: 0; }

/* Content area (for potential copy blocks) */
.content {
  color: var(--text);
  padding: 0.25rem 0;
}
.content p { color: var(--muted); margin: .5rem 0; }

/* Product ad / CTAs in footer */
.product-ad, .sponsored-page {
  display: block;
  padding: .75rem;
  border-radius: .75rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
}
.product-ad a, .sponsored-page a {
  display: block;
  text-decoration: none;
  color: var(--text);
  padding: .25rem;
}
.product-ad a:hover, .sponsored-page a:hover {
  text-decoration: underline;
}
footer {
  display: grid;
  gap: .75rem;
  justify-items: center;
  padding: 1rem;
}
footer p { margin: 0; color: var(--muted); }

/* Links & interactive controls */
a, button, .btn, .cta {
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border: 1px solid transparent;
}
a { color: var(--accent-2); }
a:hover { text-decoration: underline; color: #fff; }
button, .btn, .cta {
  background: var(--accent);
  color: #04131f;
  border: 1px solid rgba(107,216,255,.6);
}
.btn {
  background: var(--accent);
}
.btn:hover { background: #7bd6ff; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .cta:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px color-mash(white, transparent, 0);
}
.product-ad a, .sponsored-page a { color: #eaffff; }

/* Accessibility: focus states on links for high contrast */
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Typography scale (responsive) */
h2, h3 { color: #fff; }

/* Utilities (headers to ensure selectors exist) */
ul { list-style: none; padding: 0; margin: 0; }
li { margin: 0; padding: 0; }

/* Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  header, main, footer { background: transparent; border: none; border-radius: 0; }
  a { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}