:root {
  --bg: #0a1020;
  --bg-2: #0b1220;
  --text: #e6f2ff;
  --muted: #a8b9d6;
  --accent: #1ae7ff;
  --accent-2: #7affff;
}

/* Global reset and base typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(2, 8, 25, 1) 0%, rgba(7, 12, 28, 0.95) 60%, rgba(2, 8, 25, 1) 100%),
    repeating-linear-gradient(to bottom, rgba(0,255,255,0.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(0,255,255,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, overlay;
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }

/* Layout containers and surfaces */
header, nav, main, article, aside, footer {
  display: block;
}
.container { width: min(92%, 1200px); margin-inline: auto; padding-inline: 1rem; }

/* Glassy panels with backdrop (fallback below) */
.glass {
  background: rgba(18, 60, 120, 0.22);
  border: 1px solid rgba(110, 210, 255, 0.40);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(18, 60, 120, 0.40); }
}

/* Header & hero chrome styling */
header {
  margin: 1rem auto;
  padding: 1.25rem;
  text-align: center;
  max-width: clamp(320px, 90vw, 1100px);
}
header h1 {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 3.5rem);
  line-height: 1.12;
  margin: 0 0 .25rem;
  color: var(--text);
  letter-spacing: .2px;
}
nav {
  margin-top: .25rem;
}
nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 6px;
}
nav a:hover, nav a:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* Main content area */
main {
  display: grid;
  place-items: center;
  padding: 1rem 0 2rem;
}
.image-frame {
  width: min(82vw, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(110, 210, 255, 0.6);
  background: rgba(5, 15, 35, 0.6);
  box-shadow: 0 8px 28px rgba(0, 230, 255, 0.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Footer / product ad blocks (glass panels) */
footer {
  padding: 1.25rem 1rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.product-ad, .sponsored-page {
  composes: glass;
  padding: .75rem 1rem;
  text-align: center;
}
.product-ad a, .sponsored-page a {
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 6px;
  transition: transform .2s ease;
}
.product-ad a:hover, .sponsored-page a:hover { transform: translateY(-1px); text-decoration: underline; }

/* Utility & content helpers */
.content { padding: .75rem 0; }

/* Link & button styles */
a, button, .btn, .cta {
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); text-decoration: none; }
a:focus-visible { outline: 3px solid rgba(26, 231, 255, 0.95); outline-offset: 2px; text-decoration: underline; }

/* Buttons (solid and outline variants) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75em 1.25em;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  color: #00334a;
  background: linear-gradient(135deg, var(--accent) 0%, #0ab7ff 100%);
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 6px 16px rgba(0, 180, 255, 0.55);
}
.btn.secondary, .cta {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(110, 210, 255, 0.6);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid rgba(0, 230, 255, 0.9); outline-offset: 2px; }

/* Simple utility chips */
.tag {
  display: inline-block;
  padding: .15em .5em;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
  background: rgba(26, 231, 255, 0.25);
  border: 1px solid rgba(110, 210, 255, 0.5);
}

/* Layout helpers (grid utilities) */
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: rgba(12, 28, 66, 0.28);
  border: 1px solid rgba(110, 210, 255, 0.4);
  border-radius: 12px;
  padding: 1rem;
}

/* Lists */
ul { margin: 0; padding: 0; }
li { list-style: none; }

/* Responsiveness */
@media (min-width: 700px) {
  main { padding: 2rem 0 3rem; }
  .image-frame { width: min(60vw, 860px); }
  footer { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print friendly */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .glass { background: #fff; border: 1px solid #ccc; box-shadow: none; }
}
