/***************************************
  Palette & Global
***************************************/
:root{
  --bg: #1a0033;           /* violet base */
  --bg-2: #2b0b43;         /* deeper violet accent */
  --text: #eaffff;          /* high-contrast text on glass */
  --muted: #b7ffd9;         /* muted/secondary text */
  --accent: #00C853;         /* emerald green primary action */
  --accent-2: #2cff7a;       /* emerald glow accent */
  --glass: rgba(20,0,40,.28);/* frosted glass base */
  --glass-border: rgba(180,120,255,.45);
  --shadow: 0 8px 24px rgba(0,0,0,.28);
  --border: rgba(255,255,255,.25);
  --radius: 14px;
}

html, body, header, nav, main, article, footer, aside { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

/***************************************
  Layered Background (gradient + noise/scanlines)
***************************************/
html, body {
  height: 100%;
}
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  font-size: clamp(14px, 2.4vw, 18px);
  background: 
    radial-gradient(circle at 20% -10%, rgba(0,255,140,.15) 0 20%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(128,0,255,.15) 0 20%, transparent 40%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 60%, #0b0010 100%);
  position: relative;
  isolation: isolate;
  /* Subtle pattern for performance-friendly noisiness */
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 2px 2px, 2px 2px;
  mix-blend-mode: overlay;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/***************************************
  Layout & Utilities
***************************************/
.container {
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding: 0 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .card { background: rgba(18,0,40,.72); }
}
.tag {
  display: inline-block;
  padding: .15em .55em;
  border-radius: 999px;
  font-size: .75em;
  color: #062b22;
  background: #a7ffd1;
  border: 1px solid rgba(0,0,0,.15);
}
.image-frame { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 16/9; }

/***************************************
  Typography & Structure
***************************************/
html, body, header, nav, main, article, footer, aside { margin: 0; padding: 0; }
header {
  padding: 2rem 1rem 1rem;
  text-align: center;
}
header h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 .5rem;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(.9rem, 2vw, 1rem);
}
nav {
  margin-top: .75rem;
}
nav a {
  color: var(--accent-2);
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: 8px;
}
nav a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/***************************************
  Hero & Content
***************************************/
main { padding: 1rem; }
article { display: grid; gap: 1rem; }

/* Content blocks inside article */
.content { padding: .25rem; }
h2, h3 { color: var(--text); margin: .75rem 0 .25rem; }
p { color: #eafff2; margin: .5rem 0; }
ul, li { color: #eafff2; margin: .25rem 0; padding-left: 1.25rem; }
ol { margin: .25rem 0 0 1.25rem; padding: 0; }

/***************************************
  Interactions: Buttons & Links
***************************************/
a, button, .btn, .cta {
  text-decoration: none;
  color: #eafff2;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
a:hover, a:focus-visible { text-decoration: underline; color: var(--accent-2); }
button, .btn, .cta {
  border: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(to bottom, rgba(255,255,255,.12), rgba(0,0,0,.18));
  padding: .75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Primary/Outline variants */
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #00a862);
  border: 0;
  color: #041e0a;
  box-shadow: 0 6px 14px rgba(0,200,115,.35);
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(0, 200, 120, .8);
  color: var(--text);
}
.cta { display: inline-flex; gap: .5rem; align-items: center; }

/***************************************
  Sections: Ad & Sponsored
***************************************/
footer { padding: 1.25rem; display: grid; gap: 1rem; }
.product-ad, .sponsored-page { padding: .75rem; border-radius: 12px; }
.product-ad a, .sponsored-page a { display: block; padding: .75rem; text-align: center; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25); color: #eaffff; }
footer p { text-align: center; color: var(--muted); }

/***************************************
  Print & Accessibility Helpers
***************************************/
@media (prefers-reduced-motion: reduce) {
  html, body, * { animation: none !important; transition: none !important; }
}
@media (min-width: 720px) {
  main { padding: 1.5rem 0; }
  article { grid-auto-flow: row; }
  .grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (min-width: 860px) {
  .container { padding-inline: 2rem; }
}
aside { display: none; } /* reserved for future side content / glass panel if needed */