/* Base + Tokens
   CSS: production-ready, mobile-first cyberpunk glass UI
*/
:root{
  --bg: #0b0f14;            /* obsidian-ish base */
  --bg-2: #141821;           /* pewter-ish accent */
  --surface: rgba(18, 20, 28, 0.65);
  --surface-2: rgba(0,0,0,0.25);
  --text: #eaf4fb;
  --muted: #a6b8cd;
  --accent: #4bd6ff;          /* primary neon cyan */
  --accent-2: #7affd4;         /* secondary neon mint */
  --card: rgba(18, 20, 28, 0.6);
  --radius: 14px;
  --shadow: 0 6px 18px rgba(0,0,0,.35);
  --focus: 0 0 0 3px rgba(255,255,255,.9);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Reset + base
   Keeps footprint small; relies on modern layout tech
*/
* { box-sizing: border-box; }
html, body { height: 100%; }
html { line-height: 1.15; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  /* Layered background: gradient + subtle scanlines/noise (pure CSS) */
  background: linear-gradient(135deg, rgba(11,15,20,0.92) 0%, rgba(20,22,28,0.78) 60%, rgba(8,9,12,0.92) 100%);
  background-image:
    linear-gradient(135deg, rgba(22,24,28,.35), rgba(8,10,12,.55)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0px, rgba(255,255,255,.04) 1px, transparent 1px, transparent 2px);
  background-blend-mode: overlay, overlay;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  body {
    /* Slightly translucent base for glass panels when supported */
  }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Layout helpers
   Utilities used by the provided HTML selectors
*/
.container { max-width: clamp(320px, 88vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { padding: 1rem; border-radius: var(--radius); background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.22); }

/* Sectioning
   Typographic scale with fluid typography
*/
header, nav, main, article, aside, footer { display: block; }

/* Glass panels (fallback + backdrop-filter)
   Base styling for all "glass" surfaces: header/main/article/footer/aside
*/
:where(header, main, article, aside, footer) {
  background: rgba(18, 20, 28, 0.65);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--text);
  box-shadow: var(--shadow);
  overflow: hidden;
}
@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  :where(header, main, article, aside, footer) {
    background: rgba(18, 20, 28, 0.25);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-color: rgba(255,255,255,0.28);
  }
}

/* Header
   Title prominence + meta
*/
header {
  text-align: center;
  padding: 2rem 1rem;
}
header h1 {
  font-size: clamp(1.75rem, 2.4vw + 1rem, 3rem);
  line-height: 1.15;
  margin: 0.25rem 0 0.4rem;
  letter-spacing: .2px;
}
.meta { font-size: .95rem; color: var(--muted); margin-top: .25rem; }

/* Main layout + article content
   Centered content with readable line length
*/
main { padding: 1rem 0 2rem; display: block; }
article { max-width: clamp(520px, 90vw, 860px); margin-inline: auto; }

/* Featured image frame
   aspect-ratio, frame glow, clean containment
*/
.image-frame { aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 18px rgba(0,0,0,.35); margin: .75rem 0; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content helper
*/
.content { padding-inline: 0; }

/* Headings + text rhythm
*/
h1, h2, h3 { color: var(--text); margin: .75rem 0 .25rem; }
h1 { font-size: clamp(1.5rem, 3vw + 1rem, 2.75rem); line-height: 1.15; }
h2 { font-size: clamp(1.25rem, 2.4vw + .75rem, 2rem); }
h3 { font-size: clamp(1.05rem, 2vw + .5rem, 1.4rem); }

/* Paragraphs + blockquotes
*/
p { margin: .5rem 0 1rem; font-size: clamp(1rem, 0.9vw + 0.5rem, 1.125rem); color: #e8f0fb; }
blockquote { margin: .75rem 0; padding: .75rem 1rem; border-left: 3px solid var(--accent); color: #eaffff; background: rgba(0,0,0,.15); border-radius: 8px; }

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

/* Product ad (glass panel)
*/
.product-ad { padding: 1rem; border-radius: calc(var(--radius) - 2px); background: rgba(20,20,28,.6); border: 1px solid rgba(255,255,255,.25); display: block; }
.product-ad h3 { margin: 0 0 .5rem; }
.product-ad a { display: inline-block; padding: .5rem 1rem; border-radius: 999px; background: rgba(0,0,0,.15); color: var(--text); text-decoration: none; border: 1px solid rgba(255,255,255,.25); }

/* Links + buttons
*/
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
button, .btn, .cta { font-family: inherit; font-size: 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); cursor: pointer; padding: .65em 1.1em; background: rgba(0,0,0,.25); color: var(--text); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .5em; transition: transform .15s ease, background .2s ease, color .2s ease; }
.btn { background: var(--accent); color: #041018; border: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .cta:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Utility: .tag
*/
.tag { display: inline-block; padding: .15em .5em; font-size: .8em; border-radius: 999px; background: rgba(75, 214, 255, .15); border: 1px solid rgba(125, 214, 255, .4); color: var(--text); }

/* Typography helpers
   Fluid base text sizing for multiple viewports
*/
html { font-size: 16px; }
@media (max-width: 720px) {
  header { padding: 1.25rem 1rem; }
  article { padding: 0 0.25rem; }
}
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
