/* Base tokens */
:root {
  --bg: #0a0a0f;
  --bg-2: #11131a;
  --text: #e9f0f7;
  --muted: #b8c1cc;
  --accent: #9ee7ff;
  --accent-2: #cbd5e1;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(0, 0, 0, 0.25);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 24px rgba(0,0,0,.5);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(132, 216, 255, 0.75);
}

/* Global + Layout */
html, body, header, nav, main, article, aside, footer {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body {
  margin: 0;
  color: var(--text);
  background: 
    radial-gradient(circle at 20% -10%, rgba(120,120,120,.15), transparent 25%),
    linear-gradient(135deg, #0a0a0f 0%, #111216 50%, #0a0a0f 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }

/* Glass panel baseline (applies to main structural sections) */
header, main, footer, aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside {
    background: rgba(0,0,0,.28);
  }
}

/* Containers & grids */
.container { max-width: clamp(680px, 88vw, 1100px); margin-inline: auto; padding: 0 1rem; }
.grid { display: grid; gap: 1rem; }
.card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1rem; }

/* Hero / header text */
header { text-align: center; padding: clamp(1.25rem, 4vw, 2.5rem); }
header h1 { font-size: clamp(1.75rem, 2vw + 1rem, 3rem); margin: .25rem 0 0; line-height: 1.15; letter-spacing: .4px; }

/* Image frame styling */
.image-frame {
  width: min(100%, 720px);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Content area (optional usage) */
.content { color: var(--text); font-size: clamp(14px, 1.6vw, 16px); line-height: 1.6; }

/* Product ad / footer panels */
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad a, .sponsored-page a { display: block; text-decoration: none; color: var(--text); }

/* Footer layout and typography tweaks */
footer { padding: 1rem; text-align: center; }
footer p { margin: .5rem 0 0; color: var(--muted); font-size: .9rem; }

/* Utility classes */
.container + .container { margin-top: 1rem; }

/* Buttons & links (solid + outline variants) */
.btn, .cta, button {
  font: inherit;
  padding: .6em .95em;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: var(--accent);
  color: #041016;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn.secondary, .cta.secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,.4);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.cta { font-weight: 600; }

/* Small screen adjustments for glass panels */
@media (min-width: 640px) {
  footer { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
  header { padding: 2rem 1rem; }
}

/* Responsive typography */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef2f7;
    --bg-2: #e2e8f0;
    --text: #0b1020;
    --muted: #52607a;
    --surface: rgba(255,255,255,0.78);
    --border: rgba(0,0,0,0.12);
    --shadow: 0 6px 18px rgba(0,0,0,.08);
  }
  body { background: linear-gradient(135deg, #eef2f7 0%, #f6f7fb 100%); color: var(--text); }
  a { color: #0b4c9e; }
  header, main, footer, aside { background: rgba(255,255,255,.9); border: 1px solid rgba(0,0,0,.08); }
  .image-frame { border-color: rgba(0,0,0,.15); }
  .product-ad, .sponsored-page { background: rgba(255,255,255,.9); }
}

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

/* Print */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { border: none; box-shadow: none; background: transparent; }
}
