:root{
  --bg: #0a0a14;
  --bg-2: #0b0a1a;
  --text: #eaf4ff;
  --muted: #a9b7d9;
  --accent: #00e6ff;
  --accent-2: #7a2bd3;
  --card: rgba(255,255,255,0.08);
  --card-strong: rgba(255,255,255,0.12);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 6px 20px rgba(0,0,0,0.35);
  --radius: 12px;
  --focus: 3px solid var(--accent);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body, header, nav, main, article, aside, footer { height: auto; }

html, body { height: 100%; }

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  /* Layered background: gradient + subtle noise/scanlines */
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(0,226,255,0.08), transparent 40%),
    linear-gradient(135deg, rgba(0,226,255,0.08) 0%, rgba(122,43,211,0.08) 50%, rgba(0,0,0,0) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px),
    linear-gradient(180deg, rgba(3,7,20,0.4), rgba(3,7,20,0.3) 60%, rgba(3,7,20,0.5) 100%);
  background-blend-mode: overlay, overlay, normal, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

a, button, .btn, .cta {
  color: inherit;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

header, main, footer, aside, nav, article { display: block; }

header { padding: 1.25rem 0; }

nav { margin-top: 0.25rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }

a { color: var(--text); }

.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}

.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: var(--shadow);
  background: #000;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform 0.25s ease;
}
.image-frame:hover img { transform: scale(1.02); }

.content { padding: 0; }

.product-ad {
  display: block;
  text-align: center;
  padding: .75rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.product-ad a { display: inline-block; padding: .5rem 1rem; border-radius: 8px; color: #fff; background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.25); }
.product-ad a:hover { background: rgba(0,0,0,0.35); }

.sponsored-page { margin-top: .75rem; }

header h1 {
  font-size: clamp(1.6rem, 1.8rem + 2.5vw, 3rem);
  line-height: 1.08;
  margin: 0 0 .25rem;
  letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.meta { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.75rem; }

main { padding: 0 0 2rem; }
article { display: block; }

h2 {
  font-size: clamp(1.25rem, 0.8rem + 2.5vw, 2.2rem);
  margin: 0.75rem 0 0.5rem;
  color: var(--text);
}
h3 {
  font-size: clamp(1rem, 0.8rem + 1.2vw, 1.25rem);
  margin: 0.75rem 0 0.4rem;
  color: var(--text);
}
p { color: var(--muted); margin: 0 0 1rem; }

ul, li { margin: 0 0 0.5rem; padding: 0 0 0 1.25rem; }
li { color: var(--muted); }

blockquote { margin: 1rem 0; padding: .75rem 1rem; border-left: 3px solid var(--accent); background: rgba(0,0,0,0.15); border-radius: 6px; color: #e9f7ff; }

ol { padding-left: 1.25rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.tag { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.25); color: #fff; }

.card, .glass {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,0.18); color: #e8f1ff; }
}

.btn, .cta {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.25);
  color: #fff;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: rgba(0,0,0,0.32); }
.btn:active, .cta:active { transform: translateY(0); }

.btn--solid {
  background: linear-gradient(135deg, rgba(0,230,255,0.9) 0%, rgba(122,43,211,0.9) 100%);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn--outline {
  background: rgba(0,0,0,0.0);
  border: 1px solid rgba(0, 230, 255, 0.8);
  color: #eaffff;
}
a.btn, button.btn, .cta { color: #eaffff; }

a:focus-visible, button:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

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

@media print {
  body { background: white; color: black; }
  .image-frame { page-break-inside: avoid; }
}
