:root {
  --bg: #041018;
  --bg-2: #021016;
  --text: #eaffff;
  --muted: #b6f6f0;
  --accent: #00e9d6;     /* bright turquoise */
  --accent-2: #ff3a3a;   /* red accents */
  --card: rgba(12, 24, 32, 0.56);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 28px rgba(0,0,0,0.28);
}

html, body { height: 100%; }
html, body, header, nav, main, article, aside, footer { box-sizing: border-box; }

html, body { margin: 0; padding: 0; color: var(--text); background: #000; }

/* Layered background: gradient + turquoise starfield hints + subtle scanlines */
body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
  background-image:
    /* turquoise starfield hints */
    radial-gradient(circle at 8px 12px, rgba(0, 255, 212, 0.95) 1px, transparent 1.5px),
    radial-gradient(circle at 34px 64px, rgba(0, 255, 212, 0.75) 1px, transparent 1.5px),
    radial-gradient(circle at 72px 20px, rgba(0, 255, 212, 0.6) 1px, transparent 1.5px),
    /* subtle fade to black to give depth */
    linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.75)),
    linear-gradient(135deg, var(--bg), var(--bg-2) 60%, #000 100%);
  background-size: 40px 40px, 60px 60px, 80px 60px, 100% 100%, 100% 100%;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  background-repeat: repeat, repeat, repeat, no-repeat, no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: dark;
  overflow-x: hidden;
}

/* Global layout helpers */
.container { width: 100%; max-width: clamp(860px, 92vw, 1200px); margin-inline: auto; padding-inline: 1rem; }

/* Grid utility (responsive) */
.grid { display: grid; gap: 1rem; }

/* Card / glass panel utility with frosted glass fallback */
.card, article {
  background: rgba(12, 24, 32, 0.56);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@supports not (backdrop-filter: blur(12px)) {
  .card, article {
    background: rgba(12, 24, 32, 0.75);
  }
}

/* Typography scales (fluid) */
h1 { font-size: clamp(1.75rem, 2.5vw + 1rem, 3.25rem); line-height: 1.15; margin: 0 0 .5rem; }
h2 { font-size: clamp(1.25rem, 1.6vw + 1rem, 1.8rem); margin: .75rem 0 0.25rem; }
h3 { font-size: clamp(1rem, 1vw + .9rem, 1.25rem); margin: .75rem 0 0.25rem; }
p, li { font-size: clamp(0.95rem, 0.8vw + 0.8rem, 1.1rem); color: #eaffff; }
.meta { color: var(--muted); font-size: .92rem; margin: .25rem 0 0; }

.image-frame { aspect-ratio: 16/9; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 8px 20px rgba(0,0,0,.4); background: rgba(255,255,255,.04); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Main content structure styling targets */
header, main, footer, aside { padding: 0; }

/* Header styling (glassy emphasis) */
header {
  padding: 1.25rem;
  margin: 1rem auto;
  width: min(100%, 1200px);
  text-align: left;
}
header h1 { color: #eaffff; }

/* Main article styling to ensure readable layout on glass panels */
main { display: block; padding: 0 0 1rem; }
article { padding: 1rem; margin: 0.75rem auto; }

/* Content helper (when used) */
.content { max-width: 72ch; color: var(--text); }

/* Image-related helper */
.utility { display: inline-flex; gap: 0.5rem; align-items: center; }

/* Product ad / footer ad styling */
.product-ad { display: block; padding: .75rem; border-radius: 12px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.28); text-align: center; }
.product-ad a { color: var(--text); text-decoration: none; font-weight: 600; display: inline-block; padding: .25rem .5rem; border-radius: 999px; }

/* Links and buttons (interactive states) */
a, button, .btn, .cta { color: var(--text); text-decoration: none; outline: none; border: none; background: none; font: inherit; cursor: pointer; }

/* Link defaults and focus states for accessibility */
a { color: var(--accent); }
a:focus-visible, a:hover { text-decoration: underline; text-underline-offset: 3px; }

button, .btn, .cta {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn { cursor: pointer; }
.btn--solid {
  background: var(--accent);
  color: #00211a;
  border-color: rgba(0,0,0,.15);
}
.btn--solid:hover { transform: translateY(-1px); background: #00d4c8; }
.btn--solid:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  border: 2px solid var(--accent-2);
  color: var(--text);
}
.btn--outline:hover { background: rgba(255, 58, 58, 0.15); }

/* Glass panel helpers for sections that resemble cards (e.g., hero blocks) */
.section-glass { padding: 1rem; border-radius: 14px; }

/* List styling */
ul { padding-left: 1.25rem; }
li { margin: .25rem 0; }

/* Utility tag pills */
.tag { display:inline-block; padding: .15em .6em; border-radius: 999px; font-size: .75em; border: 1px solid rgba(0,255,212,.45); background: rgba(0,255,212,.15); color: #eaffff; }

/* Print-friendly adjustments */
@media print {
  body { background: #fff; color: #000; }
  a { color: #00a; text-decoration: underline; }
  .card, article { background: #fff; border: 1px solid #ccc; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}