:root{
  /* Palette tokens (soft lilac + pastel pink) */
  --bg: #0b0b14;
  --bg-2: #191027;
  --bg-3: #2d1d3a;
  --text: #f2f0f9;
  --muted: #d6c7e0;
  --accent: #f6b8d9;    /* pastel pink */
  --accent-2: #c7a7e0;  /* lilac */
  --card: rgba(255,255,255,0.08);
  --card-strong: rgba(255,255,255,0.14);
  --border: rgba(255,255,255,0.25);
  --focus: #ffffff;
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --glass: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.5;
  background: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(140,92,235,.25) 0%, rgba(255,180,200,.15) 50%, rgba(140,92,235,.25) 100%),
    radial-gradient(circle at 20% 0%, rgba(120,90,180,.25), transparent 40%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 2px, transparent 2px 4px);
  background-blend-mode: overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .75rem;
  color: var(--text);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
}
a, button, .btn, .cta {
  text-decoration: none;
  color: inherit;
}
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Glass panels (fallback included) */
.backdrop {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .backdrop {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.35);
  }
}

/* Header / Hero */
header {
  padding: 1rem;
}
header h1 {
  margin: .25rem 0 0;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: .2px;
  color: #fff;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  margin: .25rem 0 0;
}
nav {
  margin-top: .5rem;
}
nav a {
  display: inline-block;
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: var(--text);
}
nav a:hover { text-decoration: underline; }

/* Main content */
main { padding: 1rem 0; }
article {
  display: block;
  margin: 0 auto;
  max-width: clamp(420px, 85%, 900px);
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
h2 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  margin: .75rem 0 0.25rem;
  color: #fff;
}
p { margin: .5rem 0; color: #e9e0f6; }
blockquote {
  margin: .5rem 0;
  padding: .5rem 1rem;
  border-left: 3px solid var(--accent-2);
  color: #f8f3ff;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
}
section[aria-label] { margin: .75rem 0; }

/* Footer / ads as glass panels */
footer {
  padding: 1rem;
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
}
.product-ad, .sponsored-page {
  display: block;
}
.product-ad a, .sponsored-page a {
  display: block;
  padding: .95rem 1rem;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
}
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Typography helpers for future-cyberpunk vibe */
.hero-sub {
  color: var(--muted);
}
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
a:focus-visible { text-decoration: underline; }

/* Buttons (solid & outline variants) */
.btn {
  display: inline-block;
  padding: .6em 1.1em;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn.primary {
  color: #0a0616;
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 60%, #b69bd6);
  box-shadow: 0 6px 16px rgba(230,180,230,.4);
}
.btn.primary:hover { transform: translateY(-1px); }
.btn.outline {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
}
.btn.outline:hover { background: rgba(255,255,255,.08); }

/* Images wrapper (frame with glow) */
.image-frame { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); }

/* Global responsive tweaks */
@media (min-width: 700px) {
  footer { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

/* Print styles for readability */
@media print {
  body { background: #fff; color: #000; }
  header, nav, main, footer { page-break-inside: avoid; }
  a { text-decoration: underline; color: #000; }
}
