:root {
  --bg: #0b1e2e;
  --bg-2: #12233f;
  --text: #eaf6ff;
  --muted: #a9c8e6;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --accent: #4bd2ff;
  --accent-2: #7cffb3;
  --border: rgba(255, 255, 255, 0.28);
  --ring: #7bd7ff;
  --shadow: 0 8px 28px rgba(0,0,0,.28);
}

html, body, header, nav, main, article, footer, aside {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-system, system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial;
  font-size: clamp(14px, 1.2vw + 12px, 18px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(6,20,40,.95), rgba(12,32,64,.95)),
    linear-gradient(to bottom, rgba(255,255,255,.04), rgba(255,255,255,.04)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  /* Subtle parallax-ish layering via background-attachment on capable browsers */
  background-attachment: scroll, scroll, fixed;
}

/* Section headers (noise/glass visual) */
header, main, footer, aside, nav, article, .container, .card {
  contain: paint;
}

/* Layout primitives */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}

.grid {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Typography scale */
h1 {
  font-size: clamp(1.75rem, 2.4vw + 1rem, 3rem);
  line-height: 1.08;
  margin: 0 0 .5rem;
  letter-spacing: .3px;
  font-weight: 700;
}

p { color: var(--muted); margin: 0 0 .75rem; }

.brand {
  font-weight: 700;
  letter-spacing: .4px;
}

/* Glass panels with backdrop-filter + fallback */
.card, .product-ad, .sponsored-page {
  border-radius: 14px;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: transform .25s ease, background .25s ease;
  display: block;
  text-decoration: none;
}

@supports not (backdrop-filter: blur(12px)) {
  .card, .product-ad, .sponsored-page {
    background: rgba(255,255,255,0.12);
  }
}

.header-bar {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.25rem 0;
}

/* Hero content styling inside header */
header {
  padding: 1.25rem 0;
}

header h1 {
  margin: 0 0 .25rem;
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
}

.content {
  padding: 1rem;
  color: var(--text);
}

/* Image frame styling */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 10px 26px rgba(0,0,0,.4);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08);
  transform: translateZ(0);
  transition: transform .4s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Link, button and CTA styling */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  outline: none;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  padding: .65rem 1rem;
  display: inline-block;
  background: rgba(255,255,255,.08);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
}
a:hover, button:hover, .btn:hover, .cta:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-1px);
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Utility + components */
ul { margin: 0; padding: 0; list-style: none; }
li { margin: 0; padding: 0; }

/* Small UI elements */
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.35);
  color: #eaffff;
  line-height: 1;
}

/* Specific selectors required by the page structure */
.content { /* demo container for content blocks if needed */ padding: 1rem 0; }
.product-ad { text-align: center; margin: .75rem 0; }
.product-ad a { text-align: center; display: inline-block; width: 100%; padding: .75rem 1rem; }
.sponsored-page { text-align: center; margin: .75rem 0; }

/* Layout specifics for semantic regions */
main { display: grid; place-items: start; padding: 1rem 0; }
article { width: 100%; }

/* Print styles for readability */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  header, footer { display: none; }
  .card { background: #f2f2f2; border: 1px solid #ccc; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .image-frame img { transform: none !important; }
}
