:root {
  --bg: #0b0f1a;
  --bg-2: #1a0f2b;
  --text: #e9f2ff;
  --muted: #a9b8d9;
  --accent: #6ec8ff;
  --accent-2: #8a2f6b;
  --panel: rgba(14,18,40,.72);
  --panel-2: rgba(14,18,40,.54);
  --border: rgba(255,255,255,.25);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --ring: 0 0 0 4px rgba(110,200,255,.55);
  --radius: 14px;
}

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

html, body, header, nav, main, article, aside, footer {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
}

/* Global surface */
html, body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, rgba(20,10,40,.95) 0%, rgba(20,10,40,.95) 60%, rgba(8,12,28,.95) 100%), #0b0b11;
  min-height: 100%;
  position: relative;
  isolation: isolate;
}

/* Layered pastel blue hex honeycomb vibe + subtle noise/scanlines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 25px 25px, rgba(110,200,255,.14) 2px, transparent 2px),
    radial-gradient(circle at 85px 45px, rgba(110,200,255,.10) 2px, transparent 2px),
    linear-gradient(60deg, rgba(110,200,255,.08) 0 1px, transparent 1px),
    linear-gradient(-60deg, rgba(180,210,255,.08) 0 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 20px 20px, 20px 20px;
  mix-blend-mode: overlay;
  opacity: .6;
  filter: saturate(1.15);
}

/* Page scaffolding */
header, main, footer { position: relative; z-index: 1; }

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

/* Header / hero */
header { padding-block: 2rem; text-align: center; }
header h1 { margin: 0; font-size: clamp(2rem, 4vw + 1rem, 4rem); line-height: 1.05; letter-spacing: .2px; font-weight: 800; color: var(--text); text-shadow: 0 1px 0 rgba(0,0,0,.25); }

/* Main content */
main { padding: 1.5rem 0 2rem; display: grid; place-items: center; }

/* Image frame with glass look */
.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.04);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Cards & content helpers (where present) */
.content { padding: 1rem; color: var(--muted); line-height: 1.6; font-size: clamp(1rem, 0.4vw + 0.95rem, 1.125rem); }

/* Product ad / footer panels (glass panels) */
.product-ad, .sponsored-page {
  display: block;
  width: 100%;
  max-width: 680px;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  background: rgba(12,16,32,.72);
  border: 1px solid rgba(110,180,255,.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  margin: .5rem 0;
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: inline-block; padding: .25rem .5rem; border-radius: 8px; }
.product-ad:hover, .sponsored-page:hover { transform: translateY(-1px); }

/* Footer baseline */
footer { padding: 1.5rem; text-align: center; color: var(--muted); }

p { margin: 0.5rem 0; }

/* Link and button primitives */
a, button, .btn, .cta {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  padding: .75rem 1.1rem;
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; outline: none; }

/* Solid + outline button variants */
.btn { border: 1px solid rgba(110,180,255,.55); border-radius: 12px; }
.btn--solid {
  background: linear-gradient(to bottom right, #3ea1ff, #2a7bd8);
  border: 1px solid rgba(255,255,255,.25);
  color: #05111a;
}
.btn--solid:hover { transform: translateY(-1px); }
.btn--solid:focus-visible { outline: none; box-shadow: var(--ring); }

/* Outline style variant for buttons */
.btn--outline {
  background: transparent;
  border: 1px solid rgba(110,180,255,.65);
  color: var(--text);
}
.btn--outline:hover { background: rgba(110,180,255,.15); }
.btn--outline:focus-visible { outline: none; box-shadow: var(--ring); }

/* Focus rings for links and interactive elements */
:focus-visible { outline: 0; box-shadow: var(--ring); border-radius: 12px; }

/* Glass panel fallbacks for older browsers */
@supports not (backdrop-filter: blur(8px)) {
  .product-ad, .image-frame { background: rgba(12,16,32,.92); border: 1px solid rgba(255,255,255,.25); }
}

/* Grid utilities (responsive) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: .75rem;
}

/* Small utility tag */
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(110,180,255,.25);
  border: 1px solid rgba(110,180,255,.5);
  color: #eaf6ff;
}

/* Print styles (basic readability) */
@media print {
  body::before { display: none; }
  html, body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

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