/* Base tokens */
:root{
  --bg: #0b1020;
  --bg-2: #0a1b3b;
  --text: #eaf6ff;
  --muted: #a9c8ff;
  --accent: #4bd3ff;
  --accent-2: #a6e0ff;
  --glass: rgba(255,255,255,.08);
  --glass-2: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.25);
  --shadow: 0 8px 28px rgba(0,0,0,.28);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; color-scheme: dark; }
html, body {
  font-family: ui-system, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: 
    radial-gradient(circle at 15% 0, rgba(0,180,255,.20), transparent 25px),
    radial-gradient(circle at 85% 15%, rgba(0,120,255,.15), transparent 28px),
    linear-gradient(135deg, rgba(5,10,25,.95), rgba(8,14,32,.92) 60%, rgba(5,10,25,.95)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, overlay, overlay;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}
/* Layout helpers */
.container { width: 100%; max-width: clamp(680px, 88vw, 1100px); padding-inline: 1rem; margin-inline: auto; }

/* Header / hero */
header {
  padding: 3rem 1rem 2rem;
  text-align: center;
}
header h1 {
  font-size: clamp(2rem, 1.2rem + 4vw, 3.75rem);
  line-height: 1.08;
  margin: 0 0 .4rem;
  color: #eaffff;
  text-shadow: 0 0 14px rgba(75,211,255,.6);
}
header .meta {
  font-size: 0.9rem;
  color: var(--muted);
  opacity: .95;
}
header, main, footer { contain: layout; }

/* Main content */
main { padding: 0 0 2rem; display: grid; place-items: center; }
article {
  width: 100%;
  max-width: clamp(700px, 92vw, 1000px);
  padding: 1rem;
}
.featured-image { margin: 1rem 0 1rem; }

/* Image frame (gallery/hero image) */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(160, 210, 255, .55);
  background: #000;
  box-shadow: 0 6px 24px rgba(0, 120, 255, .45);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.image-frame:hover img { transform: scale(1.04); }

/* Content panels (glassmorphism) */
.content {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: 1rem 1rem 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .content { background: rgba(255,255,255,.12); }
}
.section { margin: .75rem 0 1rem; }

/* Sections and typography */
h2 { font-size: clamp(1.25rem, 0.8rem + 2vw, 2rem); margin: .25rem 0 .5rem; color: #eaffff; }
p { margin: .5rem 0; color: #e6f1ff; }
ul { padding-left: 1.25rem; margin: .25rem 0 0.75rem; }
li { margin: .25rem 0; }

/* Product ad / footer blocks as glass panels */
.product-ad, .sponsored-page {
  display: block;
  padding: .75rem 1rem;
  margin: .5rem 0;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.25);
  text-align: left;
}
.product-ad a, .sponsored-page a { display: block; color: var(--text); text-decoration: none; }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }
.product-ad:hover, .sponsored-page:hover { transform: translateY(-1px); transition: transform .2s ease; }

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

/* Links and buttons (accessibility) */
a, button, .btn, .cta {
  text-decoration: none;
  color: var(--accent-2);
  cursor: pointer;
  outline: none;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
a:hover, a:focus { text-decoration: underline; color: var(--accent); }

/* Button variants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: var(--accent);
  color: #04131e;
  font-weight: 700;
}
.btn.primary { background: var(--accent); color: #04131e; }
.btn.secondary { background: rgba(75,211,255,.15); color: #eaffff; border-color: rgba(125,210,255,.45); }
.btn.outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(139, 208, 255, .8);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Helpers / utilities */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: .9rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .2s ease, background-color .2s ease;
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .card { background: rgba(255,255,255,.14); }
}
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(0,0,0,.25);
  color: #cfe8ff;
  border: 1px solid rgba(255,255,255,.25);
}
kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace; font-size: .8em; }

/* Print styles */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  .image-frame { page-break-inside: avoid; }
}

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