/* SECTION: RESET & TOKENS */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
:root {
  --bg: #0b0f14;
  --bg-2: #11161c;
  --text: #e8f0f6;
  --muted: #b6c3d0;
  --accent: #FF7A1A;      /* sunset orange */
  --accent-2: #C0C0C0;     /* silver */
  --glass: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.25);
  --card: rgba(255,255,255,0.08);
  --card-border: rgba(255,255,255,0.25);
  --radius: 14px;
  --shadow: 0 6px 28px rgba(0,0,0,.28);
}
/* SECTION: BASE */
* { margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  background: 
    linear-gradient(135deg, rgba(9,10,12,.95) 0%, rgba(12,16,22,.95) 60%, rgba(5,7,12,.95) 100%),
    radial-gradient(circle at 20% 0%, rgba(60,60,60,.25), transparent 25%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-color: var(--bg);
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* SECTION: LAYOUT HELPERS */
.container { width: min(1100px, 92vw); margin-inline: auto; padding-block: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: 1rem; }
.tag { display: inline-block; padding: .25rem .6rem; font-size: .75rem; border-radius: 999px; background: rgba(255,255,255,.12); color: var(--text); border: 1px solid rgba(255,255,255,.25); }

/* SECTION: TYPOGRAPHY & LINKS */
h1, h2, h3 { color: var(--text); line-height: 1.15; }
h1 { font-size: clamp(1.4rem, 1.2rem + 2.5vw, 2.4rem); font-weight: 700; letter-spacing: .4px; }
p { font-size: clamp(1rem, 0.8rem + 0.6vw, 1.125rem); color: var(--text); }
a { color: var(--text); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; }

/* FOCUS STATES (WCAG AA where possible) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* SECTION: IMAGE FRAME */
.image-frame { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); width: 100%; aspect-ratio: 16 / 9; box-shadow: 0 6px 18px rgba(0,0,0,.25); background: #111; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* SECTION: GLASS PANELS (WITH FALLBACK) */
header, footer, article, aside { background: transparent; }
.glass { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: .75rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); }
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.4); }
}

/* SECTION: STRUCTURE SELECTORS (required) */
html, body, header, nav, main, article, footer, aside {
  /* basic structural styling via box model defaults (no extra defaults) */
}
 ul, li { list-style: none; padding: 0; margin: 0; }

/* SECTION: LAYOUT SPECIFICS FOR PAGE (mobile-first) */
header {
  display: grid; place-items: center;
  padding: 1rem; margin: 1rem auto; width: min(100%, 1100px);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
header h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); margin: .25rem 0; text-align: center; }

main { display: grid; place-items: center; padding: 1rem 0 2rem; width: 100%; }
article { width: min(860px, 92vw); }

/* SECTION: FOOTER / AD SECTIONS */
footer { display: grid; gap: .75rem; padding: 1rem 0 2rem; width: min(100%, 1100px); margin: 0 auto; }

/* Glass sections in footer */
.product-ad, .sponsored-page { background: var(--glass); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: .75rem; text-align: center; }
.product-ad a, .sponsored-page a { display: inline-flex; align-items: center; justify-content: center; padding: .5rem 1rem; gap: .5rem; border-radius: 8px; color: var(--text); text-decoration: none; transition: transform .2s ease, background .2s ease; }
.product-ad a:hover, .sponsored-page a:hover { transform: translateY(-1px); background: rgba(255,255,255,.12); }
.product-ad a:focus-visible, .sponsored-page a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* FOOTER TEXT */
footer p { text-align: center; color: var(--muted); font-size: 0.9rem; }

/* SECTION: FORMS (generic) */
input, button { font: inherit; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); padding: .6rem 1rem; color: var(--text); background: rgba(255,255,255,.08); }
button, .btn, .cta { cursor: pointer; }
button:hover, .btn:hover, .cta:hover { background: rgba(255,255,255,.12); transform: translateY(-0.5px); }
button:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* LEGACY/FALLBACK TREATMENTS (no backdrop) for tiny devices */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* SECTION: PRINT */
@media print {
  body { background: white; color: black; }
  header, main, footer { background: transparent; box-shadow: none; }
  a { color: black; text-decoration: underline; }
}
