/* Base palette & utilities */
:root{
  --bg: #0b0f14;
  --bg-2: #11161c;
  --text: #eaffff;
  --muted: #bdefff;
  --accent: #2af2ff;
  --accent-2: #7ff1ff;
  --glass: rgba(0,255,255,.14);
  --glass-border: rgba(255,255,255,.28);
  --shadow: 0 6px 18px rgba(0,0,0,.45);
  --radius: 14px;
  --focus: 3px solid var(--accent);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  line-height: 1.5;
  background: 
    linear-gradient(135deg, rgba(0,255,255,.08), rgba(0,0,0,.25) 60%),
    radial-gradient(circle at 20% -10%, rgba(0,255,255,.12), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0 1px, transparent 1px 2px);
  background-color: #03070b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  /* Reduced motion safeguard */
  transition: background 0.3s ease;
}
img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; outline: none; }

/* Layout primitives */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
  padding: 1.25rem;
}
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Glass / card panels */
.card, .content, .image-frame, .product-ad {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: var(--shadow);
}
.card, .content { padding: 1rem; }
.image-frame { padding: 0; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-ad { display: block; padding: .75rem 1rem; text-align: center; }
.product-ad a { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: .75rem 1rem; border-radius: 999px; font-weight: 700; background: rgba(42,242,255,.95); color: #042028; border: 1px solid rgba(255,255,255,.4); text-decoration: none; }
.product-ad a:hover { background: rgba(42,242,255,.9); }

/* Section-specific helpers */
.header, header { text-align: center; padding: 1.75rem 0 1.25rem; }
header h1 { margin: 0; font-size: clamp(1.75rem, 2.2vw + 1rem, 3.75rem); line-height: 1.04; font-weight: 700; letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: clamp(0.9rem, 0.4vw + 0.8rem, 1.05rem); margin-top: .25rem; }

/* Content blocks */
.content { max-width: 70ch; margin: 0 auto; padding: 1rem 0; }

/* Typography scale */
h2, h3 { margin: .75rem 0 .5rem; font-weight: 700; }
p { margin: 0 0 1rem; color: rgba(235,255,255,.92); }
blockquote { margin: .5rem 0 1rem; padding: .75rem 1rem; border-left: 3px solid var(--accent); color: #dffcff; background: rgba(0,0,0,.08); border-radius: 6px; }

/* Lists */
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; }

/* CTAs & controls */
.btn, .cta, button, a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.25rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(42,242,255,.95); color: #041c1b;
  font-weight: 700; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover, .cta:hover, a.btn:hover, button:hover { transform: translateY(-1px); }
.btn:focus-visible, .cta:focus-visible, a.btn:focus-visible, button:focus-visible {
  outline: var(--focus); outline-offset: 2px;
}
.btn--outline {
  background: transparent; color: var(--text);
  border: 1px solid rgba(120,255,255,.8);
}
.btn--outline:hover { background: rgba(120,255,255,.15); }

/* Utilities for layout blocks */
.content + .content { margin-top: .75rem; }

/* Responsive helpers */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .card, .image-frame { will-change: transform; }
}

/* Dark-mode friendly tweaks (default is dark cyber theme) */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3fbfe;
    --bg-2: #e9f6fb;
    --text: #0b1b1f;
    --muted: #315a66;
    --glass: rgba(0, 170, 180, 0.15);
    --glass-border: rgba(0,0,0,.15);
    --shadow: 0 6px 14px rgba(0,0,0,.12);
  }
  body {
    background: 
      linear-gradient(135deg, rgba(0,170,180,.08), rgba(0,0,0,.08) 60%),
      radial-gradient(circle at 20% -10%, rgba(0,170,180,.15), transparent 40%),
      repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
    color: var(--text);
  }
  a { color: #0b6b8a; }
  .btn, .btn--outline { border-color: rgba(0,0,0,.2); }
  .product-ad a { background: rgba(0,170,170,.95); color: #062028; border-color: rgba(0,0,0,.3); }
  .image-frame { border-color: rgba(0,0,0,.2); }
}
 
/* Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  a { color: black; text-decoration: none; }
  .card, .content { background: none; border: none; box-shadow: none; }
}
