/* Base */
:root {
  --bg: #0b0f14;
  --bg-2: #11161d;
  --text: #eaffff;
  --muted: #a6d5d9;
  --accent: #1ee8d3;
  --accent-2: #00e6c8;
  --glass: rgba(14, 22, 28, 0.22);
  --glass-2: rgba(14, 22, 28, 0.42);
  --border: rgba(150, 255, 255, 0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { line-height: 1.4; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;

  /* Layered background: gradient + subtle turquoise glow + scanlines/noise */
  background: #0b0f14;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(0,255,235,0.08), transparent 40%),
    radial-gradient(circle at 70% 10%, rgba(0,255,235,0.05), transparent 40%),
    linear-gradient(to bottom right, rgba(0,0,0,0.25), rgba(0,0,0,0.0) 40%),
    repeating-linear-gradient(to bottom, rgba(0,255,235,0.04) 0 1px, transparent 1px 2px),
    linear-gradient(#0b0f14, #0b0f14);
  background-blend-mode: overlay, overlay, normal, normal, normal;
  min-height: 100vh;
  padding-block: 0.5rem;
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

/* Layout helpers */
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; }
.card, article, .glass { }

/* Section structure styling */
html, body, header, nav, main, article, aside, footer { margin: 0; padding: 0; }
header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}
header h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.8rem, 4vw + 1rem, 3.0rem);
  letter-spacing: .3px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 2vw, 0.95rem);
}

/* Hero content (article) styling with glass panels */
main { display: block; padding: 0 0 2rem; }
article {
  margin: 1.25rem auto;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(12, 22, 28, 0.22); /* glass fallback */
  border: 1px solid rgba(100, 240, 240, 0.40);
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
  color: var(--text);
}
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  article {
    background: rgba(12, 22, 28, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}
@supports not (backdrop-filter: blur(12px)) {
  article { background: rgba(12, 22, 28, 0.66); } /* stronger fallback */
}
article h2 { font-size: clamp(1.25rem, 2.5vw + 0.25rem, 1.75rem); margin: 0.75rem 0 0.5rem; color: #eaffff; }
article p { color: #eaffff; opacity: 0.95; margin: 0.5rem 0; }
article ul { margin: 0.75rem 0; padding: 0 0 0 1.05rem; }
article li { margin: 0.25rem 0; }

/* Featured image framing with glow */
.featured-image { margin: 1rem auto; width: min(100%, 860px); border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.28); box-shadow: 0 8px 28px rgba(0,0,0,0.36); }
.featured-image img { width: 100%; height: auto; display: block; object-fit: cover; }

/* Extra image-frame utility (for potential usage) */
.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,0.35); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content/body helpers */
.content { line-height: 1.6; font-size: clamp(0.95rem, 1.2vw + 0.6rem, 1.05rem); }

/* Glass panels (fallback + backdrop) for internal blocks like aside/product-ad areas */
.product-ad, aside { display: block; margin: 0.75rem auto; padding: 0.5rem 0; }
.product-ad a, .cta, .btn { display: inline-block; padding: 0.75rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600; border: 1px solid rgba(0, 255, 255, 0.45); color: #041c1a; background: var(--accent); transition: transform 0.2s ease, background 0.2s ease; }
.product-ad a:hover, .btn:hover, a.cta:hover { transform: translateY(-1px); background: #13d9c8; }
.btn--outline { background: transparent; color: var(--text); border-color: rgba(0,255,255,0.55); }
.btn, .cta { cursor: pointer; }

/* Focus/keyboard accessibility */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

/* Link styling for accessibility over glass */
a, button, .btn, .cta { color: inherit; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }

/* Utilities */
ul { padding-left: 1.25rem; }
li { margin: 0.25rem 0; }

/* Sections & cards */
.card { background: rgba(13, 22, 28, 0.22); border: 1px solid rgba(100, 240, 240, 0.40); border-radius: 12px; padding: 1rem; }

/* Print styles for readability */
@media print {
  body { background: white; color: #000; }
  a { color: #000; text-decoration: underline; }
  article { box-shadow: none; border: 1px solid #bbb; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Simple entry fade (GPU-friendly) */
header, main, footer { opacity: 0; transform: translateY(6px); animation: fadeInUp 0.6s ease forwards; animation-delay: 0.04s; }
@media (prefers-reduced-motion: reduce) {
  header, main, footer { animation: none; opacity: 1; transform: none; }
}