:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --surface: rgba(20, 20, 20, 0.62);
  --surface-2: rgba(18, 18, 18, 0.78);
  --text: #f5f5f5;
  --muted: #b9b9b9;
  --accent: #ff7a00;
  --accent-2: #ffb347;
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  --radius: 14px;
  --focus: 2px solid #fff;
  --focus-offset: 4px;
}

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

html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial; }
html, body { margin: 0; color-scheme: dark; }

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, #0b0b0f 0%, #141414 60%, #0b0b0f 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0 1px, transparent 1px 2px);
  min-height: 100%;
  background-color: #0b0b0f;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Layout primitives (section selectors) */
html, body, header, nav, main, article, aside, footer { display: block; }

/* Container utilities */
.container { width: min(1100px, 92%); margin-inline: auto; }

/* Grid / card / tag utilities */
.grid { display: grid; gap: 1rem; }
.card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.tag {
  display: inline-block;
  font-size: .75rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  color: var(--muted);
}

/* Hero / Glass panels */
header {
  width: min(1100px, 92%);
  margin: 1rem auto;
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.55);
  box-shadow: var(--shadow), inset 0 0 20px rgba(255,255,255,.04);
}

/* Title typography (responsive) */
header h1 {
  margin: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: .2px;
  color: #fff;
}

/* Main content */
main { padding: 1rem 0; }

/* Media image frame */
.image-frame {
  width: min(92%, 900px);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  box-shadow: 0 10px 28px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.05);
  display: grid;
  place-items: center;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Subtle glow-like enhancement on image */
  filter: saturate(1.08);
  outline: 1px solid rgba(255,255,255,.15);
}
@media (prefers-reduced-motion: reduce) {
  .image-frame { transition: none; }
  .image-frame img { transition: none; }
}

/* Footer / product ads */
footer {
  padding: 1.5rem;
  display: grid;
  gap: .75rem;
  place-items: center;
  border-top: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.25);
}
.product-ad, .sponsored-page {
  display: inline-block;
  padding: .6rem .95rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.product-ad:hover, .sponsored-page:hover { transform: translateY(-1px); background: rgba(255,255,255,.12); }
.product-ad p, .sponsored-page p { margin: 0; }
footer p { margin: .4rem 0 0; color: var(--muted); }

/* Link / button styling */
a, button, .btn, .cta {
  color: var(--accent);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}
a:hover { text-decoration: underline; color: var(--accent-2); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
  border-radius: 6px;
}

/* Forms baseline (if present) */
input, button {
  font: inherit;
  color: inherit;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  padding: .5rem .75rem;
  outline: none;
}
input:focus-visible, button:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }

/* Light mode adjustments (better legibility) */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7f7;
    --bg-2: #ffffff;
    --text: #111;
    --muted: #444;
    --accent: #d35400;
    --accent-2: #e67e22;
  }
  body {
    background:
      linear-gradient(135deg, #f7f7f7 0%, #eeeeee 60%, #f7f7f7 100%),
      repeating-linear-gradient(to bottom, rgba(0,0,0,.03) 0 2px, transparent 2px 4px);
    color: var(--text);
  }
  header {
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(0,0,0,.1);
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
  }
  .image-frame {
    border-color: rgba(0,0,0,.2);
    background: rgba(255,255,255,.95);
  }
  .product-ad, .sponsored-page {
    background: rgba(0,0,0,.05);
    border-color: rgba(0,0,0,.15);
  }
  a:hover { color: var(--accent-2); text-decoration: underline; }
}

/* Print */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; box-shadow: none; border: none; }
  .image-frame { page-break-inside: avoid; }
}