:root {
  --bg: #050b12;
  --bg-2: rgba(0, 255, 204, 0.22);
  --text: #eaffff;
  --muted: #a6ffd9;
  --accent: #00e5ff;
  --accent-2: #a8ff00;
  --surface: rgba(255, 255, 255, 0.12);
  --border: rgba(0, 255, 210, 0.4);
  --shadow: 0 8px 28px rgba(0,0,0,0.35);
  --radius: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f9f7;
    --bg-2: rgba(0, 150, 150, 0.18);
    --text: #072028;
    --muted: #2a4d4a;
    --accent: #006d7b;
    --accent-2: #2a9d1d;
    --surface: rgba(255, 255, 255, 0.88);
    --border: rgba(0, 0, 0, 0.15);
  }
}

html, body { margin: 0; }

body {
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.25), rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.85)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 15% 0%, rgba(0,255,200,0.15), transparent 40%),
    var(--bg);
  background-blend-mode: overlay, overlay, normal, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header,
nav,
main,
section,
article,
aside,
footer { display: block; }

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

.grid { display: grid; gap: 1rem; }

/* Hero header */
header { padding: clamp(1rem, 5vw, 2.5rem) 1rem; text-align: center; }
header h1 {
  font-size: clamp(1.75rem, 2.5vw + 1rem, 3rem);
  line-height: 1.12;
  margin: 0;
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}

/* Image frame */
.image-frame {
  width: min(92vw, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(0,0,0,0.25), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
}

/* Main content area */
main { display: grid; place-items: center; padding: 1rem 0 2rem; width: 100%; }

/* Glass panels (fallback if backdrop-filter unsupported) */
.glass {
  background: rgba(8,12,20,0.18);
  border: 1px solid rgba(0,255,210,0.35);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(8,12,20,0.28); }
}

/* Product ad and sponsor sections (footer area) */
.product-ad, .sponsored-page {
  width: min(90%, 720px);
  margin-block: .5rem;
  display: grid;
  place-items: center;
}
.product-ad a, .sponsored-page a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  color: var(--text);
}
.product-ad { background: rgba(8,12,20,0.22); border: 1px solid rgba(0,255,210,0.4); }
.sponsored-page { background: rgba(8,12,20,0.18); border: 1px solid rgba(0,255,210,0.35); }

/* Links & typography accessibility */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
a:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* Buttons (solid + outline) */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1rem; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; color: #041b1f; background: var(--accent); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Outline variant */
.btn--outline { background: transparent; color: var(--text); border: 2px solid var(--accent); }
.btn--outline:hover { background: rgba(0,229,255,0.08); }

/* Utility for content area (glass panels) */
.content { padding: 1rem; }

/* Lists (nav-like or bullet-safe) */
ul { padding: 0; margin: 0; list-style: none; }
li { display: inline-block; margin-inline-end: .5rem; }

/* Generic cards and tags (utility classes) */
.card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(0,255,210,0.25);
  border-radius: 12px;
  padding: .75rem;
}
.tag {
  display: inline-block;
  padding: .15em .6em;
  border-radius: 999px;
  font-size: .75rem;
  color: #041b1f;
  background: rgba(0,229,255,0.25);
  border: 1px solid rgba(0,229,255,0.4);
}

/* Layout helpers for responsive grids */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Typography scale (fluid) */
:root { --fs-base: 16px; }
html { font-size: 100%; }
@media (min-width: 600px) {
  html { font-size: 16.5px; }
}
@media (min-width: 900px) {
  html { font-size: 17px; }
}
p, h2, h3 { margin: 0 0 .75rem; }
p { color: var(--muted); }

/* Print readability (small) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}