/* Base */
:root {
  --bg: #0a0a12;
  --bg-2: #0f1020;
  --text: #eaf4ff;
  --muted: #a4b0e6;
  --accent: #00e5ff;
  --accent-2: #ff0bd6;
  --card: rgba(255, 255, 255, 0.08);
  --card-2: rgba(0, 0, 0, 0.25);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 10px 25px rgba(0,0,0,.35);
}
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + subtle scanlines + soft noise */
  background-image:
    linear-gradient(135deg, rgba(255, 0, 170, 0.08), rgba(0, 230, 255, 0.08) 60%, rgba(0,0,0,0) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 2px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 2px);
  background-blend-mode: overlay;
  min-height: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
}
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Layout helpers */
.container { max-width: clamp(320px, 92vw, 1120px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .card { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); }
}
.header, header, nav, main, aside, article, footer { display: block; }

/* Typography scale (responsive) */
h1 { margin: 0 0 .25rem; font-size: clamp(2rem, 4vw + 1rem, 3.5rem); line-height: 1.05; letter-spacing: .2px; }
h2 { margin: 1.25rem 0 .5rem; font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem); }
h3 { margin: .75rem 0; font-size: clamp(1.05rem, 0.8vw + .9rem, 1.35rem); }
p { margin: 0 0 1rem; color: var(--text); }
blockquote { margin: .75rem 0 1rem; padding: .75rem 1rem; border-left: 3px solid var(--accent); background: rgba(0,0,0,.25); border-radius: 6px; }

/* Header / Hero styling with glass panel feel */
header {
  padding: 1.5rem;
  text-align: center;
  margin: 1rem auto;
  border-radius: 16px;
  background: rgba(20, 20, 40, 0.5);
  border: 1px solid rgba(120, 60, 190, 0.4);
  box-shadow: 0 10px 25px rgba(0,0,0,.4);
  max-width: min(1120px, 92%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
header h1 { color: #e8f6ff; text-shadow: 0 1px 0 rgba(0,0,0,.2); }

/* Main structure */
main { padding: 1rem 0; }
article { display: block; gap: 1rem; }

/* Image frame styling */
.image-frame { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 8px 18px rgba(0,0,0,.25); width: 100%; aspect-ratio: 16/9; background: #111; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content area (article body) */
.content { font-size: clamp(1rem, 0.9vw + 0.5rem, 1.125rem); color: var(--text); }

/* Product ad / footer sections styled as glass panels */
.product-ad, .sponsored-page { padding: .75rem; border-radius: 12px; border: 1px solid var(--border); background: rgba(0,0,0,.25); }
.product-ad a, .sponsored-page a { display: block; padding: .5rem 0; color: #fff; text-decoration: none; transition: transform .2s ease; }
.product-ad a:hover, .sponsored-page a:hover { transform: translateY(-1px); text-decoration: underline; }

/* Links & interactive elements */
a, button, .btn, .cta {
  text-decoration: none;
  color: #fff;
  border-radius: 10px;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
a { color: var(--accent); }
a:hover { text-decoration: underline; color: var(--accent-2); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Button variants */
.btn, .cta { display: inline-block; padding: .75rem 1.25rem; font-weight: 700; border: 1px solid rgba(255,255,255,.25); background: var(--accent); color: #00131d; cursor: pointer; border-radius: 8px; }
.btn { background: var(--accent); color: #00131d; }
.btn:hover { transform: translateY(-1px); background: #00ccff; }
.btn:active { transform: translateY(0); opacity: .95; }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Outline variant for buttons */
.btn--outline, .cta--outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--text);
}
.btn--outline:hover, .cta--outline:hover { background: rgba(0,0,0,.25); }

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

/* Utility / glass panels */
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  color: #eaffff;
  border: 1px solid rgba(255,255,255,.25);
}

/* Layout utilities for responsive content blocks */
@media (min-width: 720px) {
  .container { padding-inline: 2rem; }
  header { padding: 2rem; }
}
@media (min-width: 980px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .content { font-size: 1.125rem; }
}

/* Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  header, main, footer { page-break-inside: avoid; }
}
  
/* Accessibility: respect reduced motion across animations */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}