/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif; line-height: 1.4; font-size: clamp(14px, 1.4vw, 16px); color: var(--text); }
:root {
  --bg: #04121b;
  --bg-2: #0b232b;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.12);
  --text: #eaf7ff;
  --muted: #97d8d3;
  --accent: #2bd4c7;     /* retro teal */
  --accent-2: #7fd7d1;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 24px rgba(0,0,0,0.4);
  --glass-outline: rgba(255,255,255,0.28);
}
html, body { margin: 0; padding: 0; background: #031119; min-height: 100%; }
body {
  position: relative;
  background: linear-gradient(135deg, #03161f 0%, #041b22 40%, #051018 100%), #021018;
  color: var(--text);
  overflow-x: hidden;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0) 2px),
    repeating-linear-gradient(to bottom, rgba(43,212,199,0.05) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}
main, header, footer, aside, article, nav { position: relative; z-index: 1; }

/* Layout utilities */
.container { width: 100%; max-width: clamp(28rem, 60rem, 1200px); padding: 0 1rem; margin-inline: auto; }
.grid { display: grid; gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }

/* Section elements */
header, main, footer, aside { padding: 1rem 0; }
header { padding-block: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.15); border-radius: 12px; margin: 0.5rem auto; }
header h1 { font-size: clamp(1.4rem, 1.6vw + 1rem, 2.4rem); margin: 0; letter-spacing: .2px; }
nav a { color: var(--text); text-decoration: none; padding: .25rem .6rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.25); }
nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Glass panels and focus states */
.glass {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-outline);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }
}
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}
a:hover, .btn:hover, .cta:hover { text-decoration: underline; }

/* Image frame styling */
.image-frame {
  width: min(100%, 760px);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
  background: rgba(255,255,255,0.08);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: auto;
  filter: saturate(1.05);
}
main { display: grid; place-items: center; padding: 1.5rem 0; }

/* Content area and typography */
.content { padding: 0.75rem 0; color: var(--text); }

/* Product/ad blocks and links */
.product-ad { display: inline-block; padding: .5rem 0; }
.product-ad a { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; background: rgba(43,212,199,0.15); border: 1px solid rgba(43,212,199,0.5); text-decoration: none; color: var(--text); }
.product-ad a:hover { background: rgba(43,212,199,0.25); }

/* CTAs and buttons */
.btn, .cta { display: inline-flex; align-items: center; justify-content: center; padding: .6rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.25); background: rgba(0,0,0,0.0); color: var(--text); }

/* Primary vs outline buttons */
.btn.primary { background: linear-gradient(135deg, var(--accent) 0%, #1b8f86 100%); border: none; color: #041b1a; font-weight: 600; }
.btn.primary:hover { transform: translateY(-1px); }
.btn.secondary { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); color: var(--text); }
.btn.secondary:hover { background: rgba(255,255,255,0.14); }

/* Tags and chips */
.tag { display: inline-flex; align-items: center; padding: .25rem .5rem; font-size: .75rem; border-radius: 999px; background: rgba(43,212,199,0.25); color: #d8fbf7; border: 1px solid rgba(43,212,199,0.5); }

/* List styling for UL/LI (accessibility defaults improved) */
ul { margin-block: 1rem; padding-left: 1.25rem; }
li { margin: .25rem 0; }

/* Print styles */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
@media (max-width: 720px) {
  header { flex-wrap: wrap; align-items: flex-start; }
  header h1 { font-size: clamp(1.25rem, 4vw, 2rem); }
  .image-frame { width: 100%; }
}