/* Theme Tokens */
:root {
  --bg: #0b0a14;
  --bg-2: #1a1138;
  --text: #e9f6ff;
  --muted: #a7b5d6;
  --accent: #39ff14;
  --accent-2: #b57aff;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(0, 0, 0, 0.25);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

/* Base & Layout */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  /* Layered background: gradient + lavender vibes + neon accents */
  background-image:
    linear-gradient(135deg, rgba(58,0,90,0.88) 0%, rgba(20,0,60,0.92) 60%, rgba(0,0,0,0.95) 100%),
    radial-gradient(circle at 25% 0%, rgba(155, 63, 255, 0.25), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(57, 255, 52, 0.15), transparent 40%);
  background-blend-mode: normal, screen, overlay;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::before {
  /* Subtle scanline noise: pure CSS */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.04) 0px,
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 2px
  );
  mix-blend-mode: overlay;
  opacity: 0.75;
}
main { position: relative; z-index: 1; padding: 1rem 0 2rem; }

/* Containers & Utilities */
.container { width: min(92%, 1100px); margin-inline: auto; padding: 0 0.5rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }

/* Typography */
h1, h2 { margin: 0 0 0.5rem; font-weight: 700; letter-spacing: .2px; }
h1 { font-size: clamp(1.8rem, 4vw + 0.25rem, 3.4rem); line-height: 1.08; color: #f7fbff; text-shadow: 0 0 12px rgba(57,255,20,0.25); }
h2 { font-size: clamp(1.25rem, 1vw + 1rem, 2rem); color: #eaffff; }
p { margin: 0 0 1rem; font-size: clamp(1rem, 0.8vw + 0.95rem, 1.125rem); line-height: 1.6; color: #e8f4ff; }
.meta { color: var(--muted); font-size: 0.95rem; }

blockquote { margin: 0.75rem 0 1rem; padding-left: 1rem; border-left: 3px solid var(--accent); color: #dbe8ff; font-style: italic; }

/* Images & Visuals */
.image-frame, .featured-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(180, 255, 180, 0.5);
  background: rgba(0,0,0,0.25);
  display: block;
  box-shadow: inset 0 0 0 rgba(0,0,0,0.0), 0 8px 22px rgba(0,0,0,0.3);
}
.image-frame img, .featured-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: auto;
}
.image-frame { filter: saturate(1.05); }

/* Glass panels (fallback if backdrop-filter not supported) */
.header, .content, .image-frame, .product-ad, aside, footer, article {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
@supports not (backdrop-filter: blur(12px)) {
  .header, .content, .image-frame, .product-ad, aside, footer, article {
    background: rgba(255,255,255,0.14);
  }
}
.section { padding: 0.75rem 0; }

/* Header & Intro Section */
header { padding: 1rem 0.75rem; }
header h1 { color: #f1faff; text-shadow: 0 0 8px rgba(57,255,20,0.25); }

/* Content Layout */
.content { padding: 0; }

/* Product Ads & Sections in footer */
.product-ad, .sponsored-page { padding: 0.75rem; margin: 0.75rem 0; }
.product-ad a, .sponsored-page a { display: block; padding: 0.6rem 0.75rem; color: var(--text); text-decoration: none; border-radius: 8px; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; background: rgba(0,0,0,0.15); }

/* Links & Buttons (interactive elements) */
a, button { color: var(--text); text-decoration: none; outline: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* CTA & Primary Styles */
.btn, .cta {
  display: inline-block;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.cta {
  background: linear-gradient(135deg, #2cff6f 0%, #39ff14 60%, #00e86b 100%);
  border: none;
  color: #041f0b;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
  box-shadow: 0 6px 18px rgba(57,255,20,0.45);
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:focus-visible, .cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Lists & Tags */
ul { padding-left: 1.25rem; color: #eaf6ff; }
li { margin: 0.25rem 0; }

/* Misc helpers */
.tag { display: inline-block; padding: 0.25em 0.55em; border-radius: 999px; font-size: 0.75rem; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: var(--text); }

/* Print readability */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  .image-frame, .featured-image { border: 1px solid #000; }
}
  
/* Responsiveness: ensure mobile-first scales gracefully with clamp-based typography already in place */
@media (max-width: 640px) {
  .container { width: 92%; }
  .image-frame, .featured-image { border-radius: 12px; }
} 

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}