/* Base & Tokens */
:root{
  --bg: #0a1020;
  --bg-2: #0b1b35;
  --text: #e9f1ff;
  --muted: #a9b8d6;
  --accent: #0ea5e9;        /* blue / AI glow */
  --accent-2: #8b1e3e;       /* burgundy */
  --glass: rgba(255,255,255,0.08);
  --glass-2: rgba(255,255,255,0.18);
  --border: rgba(255,255,255,0.25);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --radius: 14px;
  --focus: 3px solid rgba(110,180,255,.95);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: linear-gradient(135deg, #0a1a3a 0%, #0b1b35 60%, #0b1020 100%);
  position: relative;
  overflow-x: hidden;
}
/* Subtle future-cyber background texture (scanlines) */
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* two directional scanlines for a faint grid */
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  opacity: .22;
}
/* Layout helpers */
.container {
  max-width: clamp(320px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }

/* Glass panels (fallback if backdrop-filter not supported) */
.glass, header, main, footer, aside, .card, .product-ad {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(10px)) {
  .glass, header, main, footer, aside, .card, .product-ad {
    background: rgba(15,18,40,.75);
  }
}

/* Image frame */
.image-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  display: block;
  box-shadow: inset 0 0 24px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
/* Content wrapper (article body) */
.content { padding: 0; }

/* Typography & hero */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.04;
  margin: 0 0 .5rem;
  letter-spacing: .3px;
  color: var(--text);
}
h2 {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  margin: 1rem 0 .5rem;
  color: #eaf3ff;
}
p { font-size: clamp(1rem, 2.5vw, 1.125rem); line-height: 1.6; color: rgba(233,241,255,.92); margin: .5rem 0 1rem; }
blockquote {
  margin: .5rem 0; padding-left: .75rem; border-left: 3px solid var(--accent);
  color: rgba(232,240,255,.92); font-style: italic;
}
ul { padding-left: 1.25rem; }
li { margin: .25rem 0; color: rgba(233,241,255,.92); }

/* Link & buttons */
a, button, .btn, .cta {
  color: inherit;
  text-decoration: none;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
a:hover, a:focus { text-decoration: underline; text-underline-offset: 2px; color: var(--accent); }
:focus-visible { outline: 3px solid rgba(110,180,255,.95); outline-offset: 2px; border-radius: 6px; }

/* Buttons (solid and outline variants) */
.btn { display:inline-flex; align-items:center; justify-content:center; padding:.75rem 1.25rem; border-radius:999px; font-weight:700;
  background: var(--accent); color: #001b2a; border: 1px solid rgba(0,0,0,.15); transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); background: #0a95d9; }
.btn:active { transform: translateY(0); }
.btn--outline {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.cta { padding: .75rem 1.25rem; border-radius: 999px; font-weight: 700; }

/* Utilities (semantic) */
ul, li { list-style: none; padding: 0; margin: 0; }
.tag {
  display:inline-block; padding:.25em .6em; border-radius:999px; font-size:.75rem;
  background: linear-gradient(135deg, rgba(14,165,233,.9), rgba(139,30,62,.9));
  color: #fff;
}
.image-frame, .content, .product-ad { contain: layout; }

/* Layout for provided page sections */
header {
  padding: 1rem 0;
  margin: 0 auto;
  max-width: clamp(320px, 90vw, 1100px);
}
header h1 { font-weight: 800; letter-spacing:.2px; }
header nav { margin-top:.25rem; }
header nav a { padding:.25rem .5rem; border-radius:6px; }

/* Main article styling */
main { padding: 1rem 0; }
article { display:block; max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; }

/* Footer & product ad */
footer { padding: 1rem 0; margin-top: 1rem; display: grid; gap: .75rem; }
.product-ad a, .sponsored-page a {
  display: block;
  text-align: center;
  padding: .75rem;
  border-radius: var(--radius);
}
.product-ad { background: rgba(0,0,0,.0); }
.product-ad p { margin:0; font-weight: 700; }

/* Print styles */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: none; color: #000; }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
} 

/* Ensure selectors exist for required list of elements even if not semantically used */
html, body, header, nav, main, article, footer, aside { }
ul, li { }

/* Noise-friendly fallback for print readability of long lines in the article body */
@media print {
  p, li { font-size: 12pt; line-height: 1.4; }
}
