/* Section: Base & Tokens */
:root {
  --bg: #000;
  --bg-2: #0a0a0a;
  --text: #eaf6ff;
  --muted: #a6b4c8;
  --surface: rgba(255, 255, 255, 0.08);
  --panel: rgba(20, 20, 26, 0.34);
  --panel-strong: rgba(20, 20, 26, 0.58);
  --accent: #00f5ff;
  --accent-2: #8affc1;
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  --radius: 14px;
  --focus-ring: 0 0 0 4px rgba(0, 255, 255, 0.55);
  --grid-gap: 1rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif;
}
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-family: var(--font); color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Layered background: gradient + subtle lens flare + scanlines */
  background: 
    radial-gradient(circle at 25% -10%, rgba(0,255,255,.25) 0 28%, transparent 28%),
    linear-gradient(135deg, #000 0%, #0a0a0a 40%, #111 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
}

/* Section: Layout & Foundations */
header, nav, main, article, aside, footer {
  display: block;
}
.container { width: 100%; max-width: clamp(640px, 90vw, 1100px); padding-inline: 1rem; margin-inline: auto; }

/* Section: Typography & Helpers */
h1, h2, h3 { line-height: 1.15; letter-spacing: .2px; margin: .25rem 0 0.5rem; color: #eaf6ff; }
h1 { font-size: clamp(1.75rem, 2.4vw + 1rem, 3.5rem); font-weight: 700; text-wrap: pretty; }
h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.5rem); margin-top: .75rem; }
h3 { font-size: clamp(1.15rem, .8vw + .95rem, 1.6rem); margin-top: .75rem; }
p { color: var(--text); margin: 0 0 1rem; font-size: clamp(16px, .4vw + 14px, 18px); line-height: 1.6; }
ul { margin: .75rem 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Section: Glass panels (fallback) */
.panel, .card, .content, .product-ad, .image-frame {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.no-backdrop { background: rgba(255,255,255,.14); }

/* Section: Image framing */
.image-frame {
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  background: #0b0b0b;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: auto;
}
.featured-image { max-width: 100%; margin: 1rem auto; }

/* Section: Content wrapper (article content) */
.content { padding: 0; color: var(--text); }

/* Section: Cards & Grids */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--grid-gap); }
.card { padding: 1rem; }

/* Section: Navigation & interactive elements */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}
a { color: var(--accent); }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
  outline-offset: 2px;
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1rem; border-radius: 999px; border: 1px solid rgba(0,255,255,.8);
  background: linear-gradient(135deg, rgba(0,0,0,.4), rgba(20,20,24,.9));
  color: #eaffff; transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: linear-gradient(135deg, rgba(0,0,0,.5), rgba(20,20,26,.92)); }
.btn:active { transform: translateY(0); }
.btn--solid { background: linear-gradient(135deg, rgba(0,255,255,.9), rgba(0,255,255,.6)); color: #001b22; border: 1px solid rgba(0,255,255,.95); }
.btn--outline { background: transparent; border: 1px solid rgba(0,255,255,.95); color: var(--text); }

/* Section: Product Ad (footer) */
.product-ad { padding: 1rem; text-align: left; width: 100%; max-width: 520px; margin: 0 auto 1rem; }
.product-ad h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.product-ad a { display: inline-block; width: 100%; padding: .6rem .8rem; border-radius: 8px;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25); text-align: center;
}
.product-ad p { margin: 0; color: #eaffff; }

/* Section: Lists & tags */
.tag { display: inline-block; padding: .15em .5em; border-radius: 999px; font-size: .82em;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #eaffff; }

/* Section: Layout utilities (basic) */
.nav { display: flex; gap: .75rem; align-items: center; justify-content: space-between; }

/* Section: Footer text */
footer { padding: 1.5rem 1rem; text-align: center; color: var(--muted); }

/* Section: Responsiveness & motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media (max-width: 720px) {
  .container { padding-inline: .75rem; }
  .product-ad { padding: .75rem; }
}
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
