/* Section: Tokens */
:root {
  --bg: #0a0220;
  --bg-2: #2a0a4a;
  --bg-3: #141028;
  --text: #eef2ff;
  --muted: #cbd5e1;
  --accent: #ff7a1a;
  --accent-2: #ffb067;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --radius: 14px;
  --focus: 2px solid color-mychosen;
}
:root {
  --c1: rgba(88, 0, 255, 0.40);
  --c2: rgba(255, 122, 26, 0.55);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  :root { --has-backdrop: 1; }
}
html, body {
  height: 100%;
}
*,
*::before,
*::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
  background: 
    radial-gradient(circle at 20% 0%, rgba(88,0,255,.25), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255,122,26,.20), transparent 40%),
    linear-gradient(135deg, #0a0620 0%, #180a2a 40%, #0a0b2b 100%);
  background-blend-mode: screen, overlay, normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

/* Subtle noise/scanline (pure CSS) */
body {
  background-image:
    linear-gradient(rgba(255,255,255,.03), rgba(255,255,255,.03)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.012) 0 1px, transparent 1px 2px);
  background-size: auto;
  background-attachment: fixed;
}

/* Section: Layout & Background */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
header {
  padding: 1.25rem 0;
  text-align: center;
}
header h1 {
  font-size: clamp(1.4rem, 1.2rem + 2vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0.5rem;
  font-weight: 700;
  letter-spacing: .2px;
}
nav {
  margin-top: .5rem;
}
nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 122, 26, .5);
}
nav a:hover { text-decoration: underline; }
nav a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  border-radius: 6px;
}
main { padding: 1.25rem 0 0; }

/* Section: Glass Panels */
.image-frame {
  width: min(100%, 860px);
  aspect-ratio: 16 / 9;
  margin: 0.75rem auto 1.25rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  display: block;
  position: relative;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transform: scale(1);
}
.image-frame { backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .image-frame {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.4);
  }
}
.product-ad {
  display: block;
  margin: 1rem auto;
  padding: .9rem 1rem;
  border-radius: 12px;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.product-ad:hover { text-decoration: none; }
.product-ad p { margin: 0; font-weight: 600; }

/* Section: Typography & Buttons */
a, button, .btn, .cta { cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }
.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(0,0,0,.28);
  color: #fff;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  user-select: none;
}
.btn + .btn { margin-left: .5rem; }
.btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.btn:hover { transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,.6);
}
.hero {
  display: grid;
  gap: .75rem;
  justify-items: center;
  text-align: center;
  padding: 1rem;
}
h1, h2, h3 { color: var(--text); }
p { color: var(--muted); }

/* Section: Utilities & Helpers */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tag {
  display: inline-block;
  padding: .25em .6em;
  font-size: .72rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* Section: Layout helpers (selectors listed) */
html, body, header, nav, main, article, footer, aside,
.image-frame, .image-frame img,
.content,
.product-ad,
a, button, .btn, .cta,
ul, li,
.container, .grid, .card, .tag {
  /* ensure predictable rendering across pages */
  -webkit-tap-highlight-color: transparent;
}

/* Section: Accessibility & Motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  body { color: #000; background: #fff; }
  a { text-decoration: underline; }
}
footer {
  padding: 1.25rem 0 2rem;
  text-align: center;
}
footer p { margin: .5rem 0 0; color: var(--muted); }

/* Section: Responsive refinements */
@media (min-width: 720px) {
  header { padding: 1.5rem 0; }
  main { padding: 1.75rem 0; }
}
@media (min-width: 980px) {
  .container { padding-inline: 0; }
  .hero { padding: 2rem 0; }
}
