:root {
  --bg: #0a0e1a;
  --bg-2: #0b1020;
  --text: #e9e6ff;
  --muted: #bfb7ff;
  --accent: #8a7bff;       /* lavender-indigo */
  --accent-2: #b197ff;     /* lighter lavender */
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.14);
  --border: rgba(130,110,255,.45);
  --shadow: 0 8px 22px rgba(0,0,0,.28);
  --radius: 14px;
  --focus: #a28bff;
}

html, body {
  height: 100%;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(60,0,120,.85) 0%, rgba(20,0,60,.9) 60%, rgba(2,2,6,.95) 100%),
    #050613;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  isolation: isolate;
  position: relative;
}
html { font-size: 16px; }
@media (min-width: 720px) {
  html { font-size: 17px; }
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    repeating-linear-gradient(to bottom, rgba(130,110,255,.18) 0 2px, transparent 2px 4px);
  mix-blend-mode: overlay;
  opacity: 0.65;
  z-index: 0;
}

* { box-sizing: border-box; }

a, button, .btn, .cta {
  -webkit-tap-highlight-color: transparent;
}

.header, nav, main, article, aside, footer {
  z-index: 1;
}

.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1120px);
  margin-inline: auto;
  padding-inline: 1rem;
}

header {
  margin: 1rem auto;
  padding: .9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
header h1 {
  font-size: clamp(1.4rem, 1.6rem + 1vw, 2.6rem);
  margin: 0 0 .25rem;
  letter-spacing: .2px;
}
nav {
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(180,160,255,.25);
  transition: background .2s ease, color .2s ease;
}
nav a:hover,
nav a:focus-visible {
  background: rgba(140,120,255,.25);
  outline: none;
  text-decoration: underline;
}
main { padding: 1rem 0; }
article {
  display: block;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(180,160,255,.28);
  box-shadow: var(--shadow);
}
.image-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(140,120,255,.45);
  background: #0b0f1e;
  aspect-ratio: 16 / 9;
  display: block;
  width: 100%;
  max-width: 100%;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transform: translateZ(0);
}
.content {
  padding: 0.75rem;
}
.product-ad {
  display: block;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(180,160,255,.35);
  box-shadow: var(--shadow);
  margin: .5rem 0;
}
.product-ad a {
  display: block;
  color: var(--text);
  text-decoration: none;
}
.product-ad a:hover,
.product-ad a:focus-visible {
  text-decoration: underline;
  outline: none;
  color: var(--accent-2);
}
.sponsored-page {
  display: block;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(180,160,255,.35);
  box-shadow: var(--shadow);
}
footer {
  margin: 1rem auto 2rem;
  padding: 0.75rem;
}
footer p {
  margin: .25rem 0;
  color: var(--muted);
}
ul { padding-left: 1.25rem; }
li { margin: .25rem 0; }

/* Utilities / tokens */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(180,160,255,.35);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.tag {
  display: inline-block;
  padding: .18rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(180,160,255,.5);
  background: rgba(120,90,255,.25);
  color: #f7f4ff;
}
.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(140,120,255,.6);
  background: linear-gradient(135deg, rgba(120,90,255,.95), rgba(110,70,255,.85));
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(180,160,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.08);
}
.cta {
  background: linear-gradient(135deg, rgba(180,160,255,.9), rgba(120,90,255,.9));
  text-decoration: none;
}
a, button, .cta {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
aside { display: none; }

/* Typography + hierarchy */
h1, h2, h3 { font-weight: 700; letter-spacing: .2px; margin: .25rem 0; }
p { margin: .5rem 0; color: var(--text); }
.muted { color: var(--muted); }

/* Responsive tweaks */
@media (min-width: 700px) {
  footer { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  html, body {
    background: #fff;
    color: #000;
  }
  header, nav, main, article, footer { page-break-inside: avoid; }
}
