/* 01. Tokens & Base */
:root{
  --bg: #0b0f14;           /* obsidian base */
  --bg-2: #141923;          /* subtle secondary */
  --text: #e6f0f7;           /* platinum-ish light text */
  --muted: #a9b3c0;          /* muted text */
  --accent: #66e6ff;         /* cyber platinum cyan */
  --accent-2: #c6a8ff;       /* violet/platinum accent */
  --glass: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.25);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --radius: 12px;
  --radius-sm: 8px;
}

/* 02. Global resets & layered background (mobile-first) */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", system-ui, sans-serif;
  font-size: clamp(14px, 1.2vw + 12px, 18px);
  line-height: 1.6;
  min-height: 100dvh;
  /* Layered background: gradient + subtle weave & scanlines (pure CSS) */
  background:
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%),
    linear-gradient(to bottom, rgba(255,255,255,0.04), rgba(0,0,0,0.04)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.03) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, overlay, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }

/* 03. Layout helpers & utilities */
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); margin: 0 auto; padding: 0 1rem; }
.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); }

/* 04. Glass panels (fallback included) */
article {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  article {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}
.product-ad {
  display: grid;
  gap: .5rem;
  padding: 1rem;
  align-items: center;
  justify-content: start;
  max-width: 420px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.image-frame {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  background: rgba(0,0,0,.15);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 05. Typography scale */
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.15; }
h1 { font-size: clamp(1.75rem, 3vw + 1rem, 3.5rem); font-weight: 700; letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 2vw + 0.75rem, 2rem); font-weight: 700; color: #eaf4ff; }
h3 { font-size: clamp(1rem, 1.5vw + 0.75rem, 1.25rem); font-weight: 700; }

/* 06. Content & text tweaks */
.meta { color: var(--muted); font-size: clamp(0.8rem, 1vw, 1rem); margin: .25rem 0 1rem; }
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; }

/* 07. Links & controls */
.btn, .cta { display: inline-block; padding: 0.75em 1.25em; border-radius: 8px; border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.08); color: var(--text); text-align: center; cursor: pointer; text-decoration: none; }
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:focus-visible, .cta:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn.primary { background: linear-gradient(135deg, rgba(102,230,255,0.25), rgba(198,168,255,0.25)); border-color: rgba(102,230,255,0.6); }

/* 08. Header, main, footer scaffolding */
header { padding: 1rem 0 0.75rem; }
header h1 { font-size: clamp(1.75rem, 3vw + 1rem, 3.5rem); margin: 0 0 .25rem; font-weight: 800; }
main { padding: 1rem 0; }
footer { padding: 1rem 0; }

/* 09. Image + content rhythm helpers */
.featured-image { width: 100%; display: block; margin: 0 0 1rem; }
@media (min-width: 720px) {
  main { padding: 2rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* 10. Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  article, header, footer { background: transparent; box-shadow: none; border: none; }
  a { text-decoration: underline; }
}

/* 11. Utility pieces for structure (non-critical layout hooks) */
aside { display: none; } /* hidden by default to keep layout lean on pages without side panels */

/* 12. Structural selectors (presentational targets) */
html, body, header, nav, main, article, footer, aside { /* reserved for direct styling as requested */ }
.content { /* optional glass-panel helper if content blocks use this class */ 
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 1rem;
}
.tag {
  display: inline-block;
  padding: 0.15em 0.5em;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: var(--text);
}