/* Base */
/* Section: Palette & Core Tokens */
:root {
  --bg: #080c10;
  --bg-2: #0b1117;
  --text: #e8fbff;
  --muted: #a9cbd8;
  --accent: #12f6e3;      /* bright turquoise energy */
  --accent-2: #e5e9ee;    /* platinum / light neutral */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 10px 28px rgba(0,0,0,.28);
  --radius: 12px;
  --focus: 3px solid rgba(18, 246, 214, 0.9);
}

/* Section: Resets & Typography */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(6,12,14,.95) 0%, rgba(4,8,12,.95) 60%),
    radial-gradient(circle at 20% 0%, rgba(16, 255, 245, .12), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.04), transparent 40%);
  background-blend-mode: overlay, screen, overlay;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* Subtle scanlines / noise pattern (pure CSS) */
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  mix-blend-mode: overlay;
  opacity: 0.25;
}

/* Section: Layout helpers */
.container { width: 100%; max-width: clamp(720px, 88vw, 1120px); margin-inline: auto; padding-inline: 1rem; }

/* Section: Layout primitives (grid, cards, tags) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tag { display: inline-block; padding: .15em .6em; font-size: .75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: var(--text); }

/* Section: Elements */
a, button, .btn, .cta { cursor: pointer; text-decoration: none; color: inherit; }

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

/* Section: Content container for article text blocks */
.content { padding: 0; max-width: 60ch; color: var(--text); }

/* Section: Product ad zone (glass panel) */
.product-ad { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius); padding: 1rem; text-align: center; box-shadow: var(--shadow); }

/* Section: Typographic scale */
h1, h2, h3 { line-height: 1.15; margin: 0.5rem 0; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw + 1rem, 4rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

/* Section: Paragraphs & lists */
p { color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.125rem); line-height: 1.6; margin: .6rem 0 1rem; }
blockquote { margin: .75rem 0; padding: .75rem 1rem; border-left: 3px solid var(--accent); color: #eaf6f9; background: rgba(0,0,0,.15); border-radius: 6px; }

/* Section: List visuals */
ul { padding-left: 1.25rem; margin: .5rem 0; color: var(--muted); }
li { margin: .25rem 0; }

/* Section: Header & navigation chrome */
header { padding: 1rem; display: grid; gap: .5rem; justify-items: center; text-align: center; }

/* Section: Global links & focus states (WCAG AA-ish) */
a { color: var(--accent); }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
:focus-visible { outline: 3px solid rgba(18,246,212,.9); outline-offset: 2px; border-radius: 6px; }

/* Section: Buttons (variants) */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.25); color: #eaffff; font-weight: 600; transition: transform .15s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.14); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(32, 246, 214, .9); outline-offset: 2px; }

/* Primary/Secondary button variants */
.btn--primary { background: linear-gradient(135deg, rgba(18,246,212,.95), rgba(14,210,194,.95)); border: 1px solid rgba(255,255,255,.75); color: #003731; }
.btn--secondary { background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.6); color: var(--text); }

/* Hero emphasis for header CTAs if present as buttons/links */
.cta { display: inline-flex; align-items: center; padding: .75rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.25); color: var(--text); font-weight: 600; }

/* Section: Structural sections (semantic) */
main { padding: 1rem 0; }
article { padding: 0; }

/* Section: Footer layout tweaks (glass panel feel) */
footer { padding: 1rem; display: grid; gap: .75rem; justify-items: center; text-align: center; }

/* Section: Print (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, nav, footer { display: none; }
  article { padding: 0; }
}
 
/* Section: Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}