/* Section: Tokens & Baseline */
:root {
  --bg: #0b0e14;
  --bg-2: #0e1220;
  --text: #f5f3e9;
  --muted: #c8c2a3;
  --accent: #d4a017;
  --accent-2: #f2c14e;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-2: rgba(240, 235, 210, 0.12);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 24px rgba(0,0,0,0.45);
  --radius: 14px;
  --focus: 3px solid #ffffff;
}

/* Section: Base & Layout */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif; line-height: 1.4; }
body {
  margin: 0;
  color: var(--text);
  background:
    /* Noise/scanlines: subtle, GPU-friendly */
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.03) 0 1px, transparent 1px 2px),
    /* Nebula gradient layering */
    linear-gradient(135deg, rgba(12,14,20,0.92) 0%, rgba(10,12,20,0.96) 60%, rgba(16,14,20,0.94) 100%),
    radial-gradient(circle at 25% 15%, rgba(212,176,60,0.15), transparent 40%),
    radial-gradient(circle at 75% 40%, rgba(120,110,40,0.20), transparent 35%),
    #05060a;
  background-blend-mode: overlay, normal, normal, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

header, nav, main, article, aside, footer { display: block; }

/* Section: Containers & Helpers */
.container {
  width: 100%;
  max-width: clamp(640px, 90vw, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .card { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }
}
.tag {
  display: inline-block;
  padding: .25em .6em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(212,160,23,0.15);
  color: var(--text);
  border: 1px solid rgba(212,160,23,0.55);
}

/* Section: Glass Pattern Components */
.image-frame {
  aspect-ratio: 16/9;
  width: min(92%, 860px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: inset 0 0 12px rgba(0,0,0,0.25), 0 6px 20px rgba(0,0,0,0.25);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.0);
  transition: transform 0.25s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Section: Typography Scale (Fluid) */
h1, h2, h3 { margin: 0 0 .5em 0; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 3vw + 1rem, 4rem); line-height: 1.08; letter-spacing: .2px; }
p { margin: .5em 0 0.9em; font-size: clamp(1rem, 0.9vw + 0.8rem, 1.25rem); color: var(--muted); }

/* Section: Navigation & Header Aesthetics */
header {
  padding: 1.25rem 0;
  text-align: center;
}
header h1 { font-size: clamp(1.5rem, 2.5vw + 1rem, 2.6rem); margin: .25em 0 0.4em; color: var(--text); }

/* Section: Core Interactive Elements (a, button, .btn, .cta) */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  display: inline-block;
  padding: .75rem 1.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.5);
  /* minimal focus cue without inseparable ring */
}
a:hover, button:hover, .btn:hover, .cta:hover {
  text-decoration: underline;
}
.btn {
  background: var(--accent);
  color: #0b0b0b;
  border-color: rgba(212,160,23,0.9);
  box-shadow: 0 6px 14px rgba(212,160,23,0.45);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--outline, .cta {
  background: transparent;
  color: var(--text);
  border-color: rgba(212,160,23,0.65);
}
.btn--outline:hover, .cta:hover {
  background: rgba(212,160,23,0.15);
}
.cta {
  /* alias for emphasis use in hero */
  background: rgba(212,160,23,0.12);
  border-color: rgba(212,160,23,0.5);
}
a, .link { color: var(--accent-2); }

/* Section: Content Areas & Hero Layout */
.content {
  padding: 1rem;
  text-align: left;
  max-width: 60ch;
}
.main { padding: 2rem 0; }

/* Section: Lists & Misc */
ul { margin: 0.5rem 0 1rem; padding-left: 1.25rem; }
li { margin: .25rem 0; }

/* Section: Media & Footer */
.image-frame { margin: 0 auto 1rem; }
footer {
  padding: 1.25rem 0 2rem;
  text-align: center;
}
.product-ad, .sponsored-page {
  margin: .5rem auto;
  width: min(720px, 92%);
}
.product-ad a, .sponsored-page a {
  display: block;
  padding: .95rem 1rem;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
}
.product-ad { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.product-ad a { color: var(--text); }

/* Section: UX Details */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .image-frame img { transform: none !important; }
}
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { page-break-after: avoid; }
}
@supports (backdrop-filter: blur(8px)) {
  .card, .product-ad, .image-frame { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
@supports not (backdrop-filter: blur(8px)) {
  .card, .product-ad, .image-frame { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }
}