:root {
  --rose: #e89bbf;
  --rose-2: #d15a92;
  --turq: #2bd4c7;
  --turq-2: #1fb8ad;

  --bg: #0a0f1a;
  --bg-2: #0b1220;
  --text: #eaffff;
  --muted: #a8cbdc;

  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(0, 0, 0, 0.25);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.28);
  --shadow-soft: 0 6px 20px rgba(0,0,0,.22);

  --max: clamp(520px, 90vw, 1120px);
  --radius: 12px;
  --focus: 3px solid #fff;
}

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

html, body {
  height: 100%;
}

/* Global typography */
html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Inter", Arial, sans-serif;
  line-height: 1.55;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  /* Layered background: gradient + subtle turquoise glow + scanlines */
  background: 
    linear-gradient(135deg, rgba(8,12,34,0.98), rgba(6,9,26,0.98)),
    radial-gradient(circle at 75% 15%, rgba(43,212,199,.08), transparent 40%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0px, rgba(0,0,0,.08) 1px, transparent 1px, transparent 4px);
  background-blend-mode: screen, overlay, normal;
  min-height: 100%;
  overflow-x: hidden;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax: 240px, 1fr);
}
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .card {
    background: rgba(255,255,255,0.14);
  }
}
.tag {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(43,212,199,0.18);
  color: var(--text);
  border: 1px solid rgba(43,212,199,0.4);
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform .6s ease;
}
.image-frame:hover img { transform: scale(1.04); }

/* Glass panels (sections) */
header, main, footer, aside, nav {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  margin: 1rem auto;
  box-shadow: var(--shadow-soft);
}
header {
  text-align: center;
  padding: 2rem 1rem;
}
header h1 {
  font-size: clamp(1.75rem, 2.8vw + 0.5rem, 3.25rem);
  line-height: 1.04;
  margin: 0.25rem 0 0.5rem;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 1.6vw, 1rem);
}
nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}
main { padding: 1rem; }
article { padding: 0; }

/* Content area styling */
.content {
  color: var(--text);
  max-width: 72ch;
  margin: 0 auto;
}
.content h1, .content h2 {
  color: #eaffff;
}
.content h1 {
  font-size: clamp(1.6rem, 3.6vw + 1rem, 2.6rem);
  margin: 0.25rem 0 0.5rem;
}
.content h2 {
  font-size: clamp(1.15rem, 2.5vw + 0.6rem, 1.6rem);
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}
.content p {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.6;
  color: var(--text);
  margin: 0.75rem 0;
}
.content ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 0.75rem;
  color: var(--text);
}
.content li {
  margin: 0.25rem 0;
}
blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--turq);
  background: rgba(43,212,199,.12);
  border-radius: 6px;
  color: var(--text);
}

/* Links and buttons (interactive states) */
a, button, .btn, .cta {
  text-decoration: none;
  color: inherit;
}
a:hover, a:focus { text-decoration: underline; outline: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}
.btn {
  display: inline-block;
  padding: .72em 1.1em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(135deg, var(--turq), var(--turq-2));
  color: #041817;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.btn:active { transform: translateY(0); }
.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(43,212,199,.6);
}
.btn.small { padding: .5em .8em; font-size: .9rem; }

.cta { composes: .btn; }

/* Utility: readable print styles */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: #fff; border: none; box-shadow: none; }
  a { text-decoration: underline; }
}

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

/* Footer / ad blocks */
footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}
.product-ad, .sponsored-page {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px;
  padding: .75rem;
}
.product-ad a, .sponsored-page a {
  display: block;
  text-align: center;
  padding: .5rem;
}
footer p { text-align: center; color: var(--muted); font-size: .9rem; margin: .5rem 0 0; }

/* Aside placeholder styling (if used) */
aside { padding: 0.75rem; }

/* Image framing helper for standalone visuals elsewhere */
.image-frame + .image-frame { margin-top: .75rem; }