/* Section: Base */
:root{
  --bg: #0b001a;
  --bg-2: #140322;
  --text: #e9e8ff;
  --muted: #c2b4d1;
  --accent: #ff4db8;
  --accent-2: #4c6fff;
  --card: rgba(18, 10, 34, 0.28);
  --border: rgba(255,255,255,0.25);
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --radius: 14px;
  --focus: 2px solid rgba(125, 211, 255, 0.9);
}
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255,0,170,.14) 0%, transparent 35%),
    radial-gradient(circle at 70% 60%, rgba(60,0,120,.18) 0%, transparent 40%),
    linear-gradient(135deg, #0b001a 0%, #160229 40%, #0b001a 100%),
    #0b001a;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255,0,170,.04), rgba(0,0,0,.04) 40%, rgba(255,0,170,.04) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0px, rgba(255,255,255,.035) 1px, transparent 1px, transparent 2px);
  mix-blend-mode: overlay;
  animation: drift 12s linear infinite;
  opacity: 0.9;
}
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-2px); } }

@media (prefers-reduced-motion: reduce){
  body::before { animation: none; }
}
@media print{
  body::before { display: none; }
  * { color-adjust: exact; }
}
@section-header{}

/* Section: Layout helpers */
.container{ width: 100%; max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding: 0 1rem; }

/* Section: Glass panels (background + blur) */
header, main, footer, aside {
  background: rgba(16,6,28,0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside { background: rgba(16,6,28,0.62); }
}
header { display: grid; gap: .5rem; justify-items: center; text-align: center; padding: 1.75rem 1rem; }
header h1{ font-size: clamp(1.8rem, 2.6vw + 1rem, 3.5rem); line-height: 1.15; margin: .15rem 0 0.25rem; letter-spacing: .2px; }
header .meta{ color: var(--muted); font-size: 0.95rem; margin: 0.25rem 0 0; }

/* Section: Typography + content layout */
main { padding: 1rem 0 2rem; }
article { max-width: 760px; margin-inline: auto; padding: 0; }

/* Section: Images */
.image-frame{ width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); background: #0b0b14; box-shadow: inset 0 0 12px rgba(0,0,0,.45), 0 6px 20px rgba(0,0,0,.25); }
.image-frame img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Content helpers */
.content{ padding: .5rem 0; }
h2, h3{ margin: .75rem 0 .25rem; line-height: 1.25; }
p{ margin: .5rem 0 1rem; color: #eae0ff; }
blockquote{ margin: .75rem 0; padding: .75rem 1rem; border-left: 4px solid var(--accent); color: #fff; background: rgba(255,255,255,.04); border-radius: 8px; }

/* Section: Lists */
ul, li{ margin: .25rem 0; padding: 0; }
ul{ padding-left: 1.25rem; }
li{ margin: .25rem 0; }

/* Section: Utility components */
.card{ background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: .75rem; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.tag{ display:inline-block; padding: .15em .55em; border-radius: 999px; background: rgba(76,107,255,.15); color: #eaf0ff; font-size: .75rem; border: 1px solid rgba(76,107,255,.3); }

/* Section: Navigation & CTAs */
a, button{ font-family: inherit; color: inherit; text-decoration: none; }
a{ color: #e9e8ff; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible{ outline: 0; box-shadow: 0 0 0 3px rgba(125,211,255,.65); outline-offset: 2px; border-radius: 6px; }

/* Button variants */
.btn{ display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.5);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); color: var(--text);
  cursor: pointer; transition: transform .15s ease, background .2s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn--primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 0;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.btn--outline{
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
}
.cta{ padding: .6rem 1rem; border-radius: 8px; }

/* Section: Global defaults for lists in content blocks */
.article, .content, main article{ color: #eef1ff; }

/* Section: Responsive utilities (grid) */
.grid{ display: grid; gap: 1rem; }
.grid--cols{ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Section: Misc accessibility tweaks */
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}
@media (min-width: 960px){
  header{ padding: 1.75rem 1.5rem; }
  main{ padding: 1.25rem 0 2rem; }
}
footer{ margin-top: 2rem; padding: .75rem; display: grid; gap: .5rem; justify-items: center; text-align: center; }
.product-ad{ display: inline-block; padding: .5rem 1rem; border-radius: 10px; }
.product-ad a{ display: inline-flex; align-items: center; justify-content: center; min-width: 180px; text-align: center; }
.sponsored-page{ display: inline-block; padding: .5rem 1rem; border-radius: 10px; }
.sponsored-page a{ display: inline-flex; align-items: center; justify-content: center; min-width: 180px; text-align: center; }

/* Section: Print readability */
@media print{
  body{ background: #fff; color: #000; }
  header, main, footer{ background: #fff; border: none; box-shadow: none; border-radius: 0; }
}
