/* Section: Base Variables */
:root {
  --bg: #120033;
  --bg-2: #240046;
  --bg-3: #390066;
  --text: #e9f7ff;
  --muted: #a8c4ff;
  --accent: #19e6d8;
  --accent-2: #3af0f0;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.16);
  --border: rgba(0, 255, 235, 0.40);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: 2px solid rgba(25, 230, 216, 0.9);
}

/* Section: Layout & Global Styles */
* { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.5;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(56,0,60,.55), rgba(0,60,80,.55)),
    radial-gradient(circle at 15% -10%, rgba(0,255,235,.08), transparent 20%),
    #0a001a;
  background-blend-mode: normal, overlay, normal;
  min-height: 100%;
  isolation: isolate;
  position: relative;
}
body::before {
  /* Subtle crosshatch + scanlines (pure CSS) */
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(45deg, rgba(0,0,0,.04) 0 2px, transparent 2px 4px);
  opacity: 0.55;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 0;
  filter: saturate(0.95);
}

/* Section: Container / Grid Utilities */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: var(--shadow);
}

/* Section: Typography & Elements */
h1, h2, h3 { color: var(--text); margin: 0 0 .5rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Section: Header / Nav / Main / Article / Footer (Glass Panels) */
header, main, footer, aside {
  display: block;
}
header {
  padding: 1.75rem 1rem;
  margin: 1rem auto;
  max-width: clamp(320px, 90vw, 1100px);
  background: rgba(8,6,20,0.60);
  border: 1px solid rgba(0, 255, 235, 0.35);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  z-index: 1;
}
header h1 { font-size: clamp(1.4rem, 2.2vw, 2.75rem); line-height: 1.15; margin-bottom: .25rem; }
header .meta { color: var(--muted); font-size: .92em; margin-bottom: .5rem; }
nav a { display: inline-block; padding: .25rem .6rem; border-radius: 6px; border: 1px solid rgba(0,255,235,.35); color: var(--accent); }

/* Article content styling inside main */
main { padding: 0; }
article {
  margin: 1rem auto;
  padding: 1rem;
  max-width: clamp(320px, 90vw, 1100px);
  background: rgba(16, 11, 28, 0.50);
  border: 1px solid rgba(0, 255, 235, 0.35);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.featured-image { padding: 0 0 1rem; }
.image-frame, .image-frame img { }
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 720px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 235, 0.4);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  margin: 0 auto 1rem;
  background: #000;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Image & Content helpers */
.content { padding: 1rem; }

/* Section: Lists / Tags */
ul, li { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.tag { display: inline-block; padding: .25em .6em; border-radius: 999px; font-size: .75em; color: #001f1f; background: rgba(25, 230, 216, 0.25); border: 1px solid rgba(0, 255, 235, 0.5); }

/* Section: Product Ad / Footer blocks */
.product-ad { background: rgba(12, 8, 20, 0.6); border: 1px solid rgba(0, 255, 235, .35); border-radius: var(--radius-sm); padding: .75rem; display: inline-block; margin: .5rem 0; }
.product-ad a { color: var(--text); text-decoration: none; font-weight: 600; }
.product-ad a:hover { text-decoration: underline; }

/* Footer specifics (additional sections) */
footer { padding: 1rem; text-align: center; color: var(--muted); }

/* Section: Interactive Controls (buttons / CTA) */
.btn, .cta { padding: .65rem 1rem; border-radius: 999px; border: 1px solid rgba(0,255,235,.4); background: rgba(25,230,216,.25); color: var(--text); text-decoration: none; display: inline-block; font-weight: 700; }
.btn:hover, .cta:hover { background: rgba(25,230,216,.40); color: #001b1b; }
button { cursor: pointer; background: var(--accent); color: #001b1b; border: none; padding: .6rem .95rem; border-radius: 999px; font-weight: 700; }
button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Section: Accessibility & Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: Print Styles (basic readability) */
@media print {
  body { background: white; color: black; }
  header, main, footer { background: transparent; box-shadow: none; }
  a { color: black; text-decoration: none; }
  .image-frame, .image-frame img { image-rendering: auto; }
}