/* Base tokens */
:root {
  --bg: #04060f;
  --bg-2: #07131e;
  --text: #eaffff;
  --muted: #a8f0ff;
  --accent: #00e5ff;
  --accent-2: #ff1744;
  --glass: rgba(255,255,255,.08);
  --glass-2: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 28px rgba(0,0,0,.28);
  --radius: 14px;
  --container: clamp(280px, 90vw, 1100px);
}

/* Layout foundation */
html, body { height: 100%; }
* { box-sizing: border-box; }
html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
}
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,.15)),
              radial-gradient(circle at 25% 20%, rgba(0,255,255,.08), transparent 40%),
              var(--bg);
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.25)),
    repeating-linear-gradient(135deg, rgba(0,255,255,.12) 0 6px, transparent 6px 12px);
  background-blend-mode: overlay, overlay;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 2px;
  mix-blend-mode: overlay;
  opacity: .22;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Glassy surfaces */
.header-glass, .card, .content, .image-frame {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(8px)) {
  .header-glass, .card, .content, .image-frame {
    background: rgba(255,255,255,.18);
  }
}

/* Global typography helpers */
.container {
  width: min(90%, 1100px);
  margin-inline: auto;
}
.grid { display: grid; gap: 1rem; }

/* Core layout */
header {
  padding: 1rem;
  margin: 1rem auto;
  max-width: var(--container);
  display: block;
}
header h1 {
  font-size: clamp(1.6rem, 2.6vw + 1rem, 3rem);
  line-height: 1.08;
  font-weight: 800;
  margin: .25rem 0 .25rem;
  letter-spacing: .2px;
}
header .meta {
  font-size: clamp(.9rem, .4vw + .8rem, 1.05rem);
  color: var(--muted);
  margin: 0 0 .6rem;
}
nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(0,230,255,.25);
}
nav a:hover { text-decoration: underline; }

/* Main content */
main { padding: 0 0 1.5rem; }
article {
  max-width: clamp(60ch, 75vw, 90ch);
  margin: 0 auto;
  padding: 0.75rem;
}
.featured-image { margin: 0 0 0.75rem; }
.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content styles */
p { margin: .75rem 0; color: #eaffff; }
h2, h3 { margin: .9rem 0; }
h2 { font-size: clamp(1.25rem, 1.6vw + 1rem, 2rem); }
h3 { font-size: clamp(1.05rem, 1.2vw + .9rem, 1.35rem); }

/* Content area (glassy panels) */
.content { padding: 1rem; }

/* Lists and inline elements */
ul { padding-left: 1.25rem; margin: .75rem 0; }
li { margin: .25rem 0; }

/* Utility helpers / components */
.tag {
  display: inline-block;
  padding: .15em .5em;
  border-radius: 999px;
  background: rgba(0,255,255,.15);
  color: var(--text);
  font-size: .8rem;
}
.card {
  padding: .75rem;
  display: block;
}
.btn, .cta {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(0,0,0,.25);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  user-select: none;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: rgba(0,0,0,.35); }
.btn:active, .cta:active { transform: translateY(0); }
.btn--primary {
  background: var(--accent);
  color: #001018;
  border-color: rgba(0,255,255,.6);
}
.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,.7);
  color: var(--text);
}
a, button, .btn, .cta {
  outline: none;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}
a:hover { text-decoration: underline; }

/* Footer / Ad sections */
footer {
  padding: 1rem 0 2rem;
  margin: 0 auto;
  width: min(90%, 1100px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.product-ad, .sponsored-page {
  display: block;
  padding: 1rem;
  text-align: center;
}
.product-ad a, .sponsored-page a { text-decoration: none; color: inherit; display: block; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, nav, footer { page-break-after: avoid; }
}
