/* Section: Base & Palette */
:root {
  --font-stack: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  /* Cyber orange + black palette */
  --bg: #0b0b0b;
  --bg-2: #141414;
  --text: #eef0f3;
  --muted: #a6a6a6;
  --accent: #ff7a1a;
  --accent-2: #ffc36b;
  --card: rgba(0,0,0,0.28);
  --glass: rgba(0,0,0,0.22);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 6px 20px rgba(0,0,0,0.45);
  --focus: 0 0 0 3px rgba(255,255,255,.6);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; }

/* Section: Global Layout (mobile-first) */
html, body { font-family: var(--font-stack); color: var(--text); background: linear-gradient(135deg, #0b0b0b 0%, #141414 40%, #0b0b0b 100%); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Layered background: gradient + subtle noise/scanlines (no JS) */
body { position: relative; min-height: 100vh; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,122,26,0.28), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(255,60,0,0.15), transparent 40%);
  mix-blend-mode: overlay;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0.08) 0 1px, transparent 1px 2px);
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.9;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7f7;
    --bg-2: #eaeaea;
    --text: #111;
    --muted: #555;
    --accent: #b45309;
    --accent-2: #d97706;
    --card: rgba(255,255,255,0.8);
    --glass: rgba(255,255,255,0.72);
    --border: rgba(0,0,0,0.15);
    --shadow: 0 6px 16px rgba(0,0,0,0.08);
  }
  body { background: linear-gradient(135deg, #f7f7f7 0%, #f0f0f0 40%, #f7f7f7 100%); }
  body::before { opacity: 0.8; }
  @supports (backdrop-filter: blur(10px)) {
    body::before { mix-blend-mode: normal; }
  }
}

/* Section: Layout primitives */
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Glass panel (with backdrop-filter) + fallback */
section, header, main, footer, aside, article {
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  section, header, main, footer, aside, article { background: rgba(0,0,0,0.5); }
}
main { padding: 1rem; }

/* Section: Typography & hero styling */
header { text-align: center; padding: 2rem 1rem; margin: 0 auto 1rem; }
header h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.08; letter-spacing: .5px; margin: .2rem 0 .5rem; }
header .meta { font-size: clamp(0.88rem, 2vw, 1rem); color: var(--muted); }

/* Section: Content blocks */
.content { padding: 0.5rem 0 0; line-height: 1.6; color: var(--text); }
.image-frame { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,0.28); box-shadow: 0 8px 22px rgba(0,0,0,0.5); margin: 0.5rem 0 1rem; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Lists & blocks */
ul, li { margin: 0 0 0.5rem 1.25rem; padding: 0; }
li { line-height: 1.6; }

/* Section: Product ad / promo blocks */
.product-ad { display: block; margin: .75rem 0; text-align: center; }
.product-ad a { display: inline-block; padding: .75rem 1rem; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--text); text-decoration: none; border: 1px solid rgba(255,255,255,0.28); }
.product-ad a:hover, .product-ad a:focus { text-decoration: underline; }

/* Section: Cards & tags (utility classes) */
.card { background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.28); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }
.tag { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; background: rgba(255,122,26,0.25); color: #fff; }

/* Section: Links & buttons (interactive) */
a, button, .btn, .cta { text-decoration: none; color: var(--text); }
a { color: var(--accent); }
a:hover, a:focus { text-decoration: underline; outline: none; color: var(--accent-2); }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Button variants */
.btn { display: inline-block; padding: .75rem 1.25rem; border-radius: 999px; border: 0; font-weight: 700; cursor: pointer; background: var(--accent); color: #111; transition: transform .15s ease, background .15s ease, filter .2s ease; }
.btn:hover { background: #ff8a3a; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.outline { background: transparent; border: 2px solid var(--accent); color: var(--text); }
.cta { display: inline-block; padding: .75rem 1.25rem; border-radius: 999px; border: 0; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #111; font-weight: 700; cursor: pointer; }

/* Focus states for interactive controls */
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 999px; }

/* Section: Misc layout helpers */
.content + .card { margin-top: .75rem; }

/* Section: Lists, navigation, forms (basics) */
nav { display: block; }

/* Section: Print (basic readability) */
@media print {
  html, body { background: #fff; color: #000; }
  header, main, footer, aside { background: transparent; border: none; box-shadow: none; }
  a { text-decoration: none; color: inherit; }
}
    
/* Section: Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}