/* TOKENS */
:root{
  --bg: #0a0f1d;
  --bg-2: #0f1730;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.14);
  --text: #e9f5ff;
  --muted: #b9ccf0;
  --accent: #ff4db3;
  --accent-2: #7bdfff;
  --ring: #ffffff;
}
:root, * { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; font-size: 16px; }
html, body { height: auto; }
button, [role="button"] { cursor: pointer; }

/* LAYERS: BACKGROUND & BASE */
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background: linear-gradient(135deg, rgba(10,18,40,.95), rgba(18,28,60,.88) 60%), 
              radial-gradient(circle at 75% -10%, rgba(123,223,255,.25), transparent 40%), 
              #0a0f1d;
  background-blend-mode: overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* LAYOUT UTILITIES */
.container { max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding: 0 1rem; }
.grid { display: grid; gap: 1rem; }
.card { background: var(--surface); border: 1px solid rgba(255,255,255,.28); border-radius: 12px; padding: 1rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

/* TYPOGRAPHY */
html { line-height: 1.4; }
body { line-height: 1.6; }
h1, h2 { line-height: 1.1; }
h1 { font-size: clamp(1.6rem, 2.2vw + 1rem, 2.8rem); margin: .25rem 0 0.5rem; text-shadow: 0 0 8px rgba(255,0,170,.25); }
p { font-size: clamp(1rem, 0.6vw + .9rem, 1.125rem); color: var(--text); margin: 0.25rem 0; }
.tag { display:inline-block; padding:.25em .6em; font-size:.75rem; border-radius:999px; background: rgba(0,0,0,.25); border:1px solid rgba(255,255,255,.25); color: var(--text); }

/* HELPER SECTIONS (MUST STYLE SELECTORS) */
header { padding: 1rem 0; text-align: center; position: relative; z-index: 1; }
header h1 { font-size: clamp(1.6rem, 2.6vw + 1rem, 2.8rem); margin: .25rem 0 0.5rem; color: var(--text); text-shadow: 0 0 10px rgba(255, 70, 180, .25); }
nav { margin-top: .25rem; }
nav a { color: var(--accent-2); text-decoration: none; padding: .25rem .5rem; border-radius:6px; }
nav a:hover, nav a:focus { text-decoration: underline; }

/* MAIN CONTENT & ARTICLES */
main { padding: 1rem 0 2rem; position: relative; z-index: 1; }
article { display: grid; justify-items: center; padding: .5rem 0; }

/* IMAGE FRAME SPEC & IMAGE */
.image-frame { width: min(860px, 92%); aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); box-shadow: 0 12px 28px rgba(0,0,0,.4); display: block; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* GLASS PANELS & FALLBACKS */
.content { padding: 1rem; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
@supports not (backdrop-filter: blur(12px)) {
  .content { background: rgba(255,255,255,.14); }
}

/* FOOTER & AD BLOCKS */
footer { padding: 1rem 0; text-align: center; color: var(--muted); }
.product-ad, .sponsored-page { display: block; margin: .25rem auto; padding: 0; }
.product-ad a, .sponsored-page a { display: block; padding: .75rem 1rem; margin: .25rem auto; max-width: 520px; border-radius: 10px; text-align: center; color: var(--text); text-decoration: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }
.product-ad a:hover, .sponsored-page a:hover { background: rgba(255,255,255,.14); }

/* INTERACTIVE ELEMENTS (BUTTONS & LINKS) */
a, button, .btn, .cta { transition: color .2s ease, background .2s ease, transform .2s ease; }
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
.btn { display: inline-block; padding: .6em .95em; border-radius: 8px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,70,170,.25); color: var(--text); text-decoration: none; font-weight: 600; }
.btn:hover { background: rgba(255,70,170,.35); transform: translateY(-1px); }
.btn--outline { background: transparent; border: 1px solid var(--accent); color: var(--text); }

/* FORM ELEMENTS (IF PRESENT) */
input, textarea { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 6px; color: var(--text); padding: .5rem; outline: none; }
input:focus, textarea:focus { border-color: rgba(123,223,255,.9); box-shadow: 0 0 0 3px rgba(123,223,255,.25); }
label { display: block; font-size: .9rem; color: var(--muted); }

/* LAYOUT RESPONSES */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

/* PRINT-FRIENDLY */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}