/* Section: Base & Palette */
:root {
  --bg: #0b1020;
  --bg-2: #0a1a2a;
  --text: #e6f0ff;
  --muted: #a8b4cb;
  --accent: #ff7a00;
  --accent-2: #ffb366;
  --glass: rgba(14, 22, 40, 0.28);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: 0 0 0 3px rgba(0, 190, 255, 0.35);
}

html, body { height: 100%; }
* { box-sizing: border-box; }

/* Section: Layout & Background (mobile-first) */
html, body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: cobalt spiral vibe + subtle noise/scanlines */
  background-image:
    radial-gradient(circle at 70% 20%, rgba(0,0,0,.18), transparent 40%),
    conic-gradient(from 180deg at 50% 50%, rgba(0,0,0,.12), rgba(0,0,0,0) 60%, rgba(0,0,0,.12) 120%, rgba(0,0,0,0) 180%),
    linear-gradient(135deg, rgba(6,12,28,.95), rgba(6,12,28,.92)),
    repeating-linear-gradient(0deg, rgba(255,111,0,.04) 0, rgba(255,111,0,.04) 2px, transparent 2px, transparent 4px);
  background-blend-mode: overlay, overlay, normal, overlay;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Section: Global Interactions */
a, button, .btn, .cta {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a:hover { text-decoration: underline; }
:where(*:focus-visible) { outline: none; outline: none; }

/* Section: Glass panels (fallbacks included) */
header, footer, .card, .product-ad {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  header, footer, .card, .product-ad { background: rgba(14,22,40,.72); }
}
.image-frame {
  aspect-ratio: 16/9;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  background: #111;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}
.content { padding: 1rem; }

/* Section: Core typography */
h1, h2 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .2px;
}
h1 { font-size: clamp(1.75rem, 4vw + 0.5rem, 3.5rem); margin: 0 0 .25rem; }
h2 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); margin: .75rem 0 0; color: #eaf2ff; }

/* Section: Utility containers & layout helpers */
.container {
  width: 100%;
  max-width: clamp(680px, 86vw, 1200px);
  margin-inline: auto;
  padding: 0 1rem;
}
.grid { display: grid; gap: 1rem; }

/* Responsive grid utility (auto-fit) */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* Section: Cards, tags, lists */
.card { padding: .9rem; border-radius: var(--radius-sm); background: rgba(0,0,0,.15); border: 1px solid rgba(255,255,255,.15); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.tag { display:inline-block; padding: .25rem .5rem; border-radius:999px; font-size: .75rem; background: rgba(255, 122, 0, .15); color: #ffd9b0; border: 1px solid rgba(255,122,0,.4); }

/* Section: Lists & navigation tweaks */
ul { margin: 0 0 1rem 1.25rem; padding: 0; list-style: disc; color: var(--muted); }
li { margin: .25rem 0; }
ol { margin: 0 0 1rem 1.25rem; padding: 0; }

/* Section: CTAs (buttons, links) */
.btn {
  display: inline-block;
  padding: .65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.6);
  background: var(--accent);
  color: #111;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { background: #ff952e; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgba(0, 170, 255, 0.9); outline-offset: 3px; }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.6);
}
.btn--outline:hover { background: rgba(255,255,255,.04); }

/* Links as CTAs with accessible focus */
a.cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(0,0,0,.18);
  color: var(--text);
}
a.cta:hover { text-decoration: underline; background: rgba(255,255,255,.04); }
a:focus-visible { outline: 3px solid rgba(0, 190, 255, 0.9); outline-offset: 2px; }

/* Section: Typography scale (fluid typography) */
p { color: var(--muted); line-height: 1.5; }
p + h2 { margin-top: 1rem; }

/* Section: Structural elements targets (mandatory selectors) */
html, body, header, nav, main, article, footer, aside { /* structural targets left as baseline styling hooks */ }

/* Section: Print styles */
@media print {
  body { background: white; color: black; }
  header, footer { background: transparent; border: none; box-shadow: none; }
  a { text-decoration: underline; }
}

/* Section: Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: Minor responsive adjustments */
@media (max-width: 520px) {
  header { padding: .75rem; }
  .image-frame { border-radius: 12px; }
}
