:root {
  --bg: #0f141b;
  --bg-2: #1a1f28;
  --text: #e8feff;
  --muted: #a0b9c5;
  --accent: #2ee5e3;
  --accent-2: #00c4a7;
  --card: rgba(15, 20, 28, 0.65);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --focus: 2px solid rgba(0, 212, 183, 0.9);
  --gap: 1rem;
}

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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(15,20,28,.96) 0%, rgba(18,24,38,.96) 60%, rgba(15,20,28,.96) 100%),
    linear-gradient(to bottom right, rgba(0,0,0,.25), rgba(0,0,0,.05));
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}

/* Layered honeycomb background (pure CSS) + subtle scanlines */
html, body {
  --layer: 1;
}
body {
  position: relative;
  isolation: isolate;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
/* Hexagonal honeycomb pattern (stylized) */
body::before {
  background-size: 40px 69px;
  background-image:
    linear-gradient(30deg, rgba(110,125,140,.25) 2px, transparent 2px),
    linear-gradient(-30deg, rgba(110,125,140,.25) 2px, transparent 2px),
    linear-gradient(0deg, rgba(110,125,140,.25) 1px, transparent 1px);
  background-position: 0 0, 20px 10px, 0 0;
  opacity: .25;
  /* tuned to resemble steel hex grid without heavy images */
  mix-blend-mode: overlay;
}
body::after {
  /* subtle scanlines for depth */
  background: linear-gradient(to bottom, rgba(0,0,0,.04) 0 2px, transparent 2px 100%);
  background-size: 100% 2px;
  opacity: .12;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(640px, 90vw, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: var(--gap);
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #0b0f14;
  display: block;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Typography scale (fluid) */
h1, h2, h3 {
  margin: 0 0 .5rem;
  line-height: 1.15;
}
h1 {
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3.25rem);
  letter-spacing: .3px;
}
p { margin: 0 0 0.75rem; }

/* Sectioning styling to respect the required selectors */
html, body, header, nav, main, article, footer, aside {
  /* basic structural rules; additional styling follows per element */
}
header {
  padding: 2rem 1rem 1rem;
  text-align: center;
}
header h1 {
  font-size: clamp(1.75rem, 3.5vw + .5rem, 3rem);
  margin: 0;
  letter-spacing: .4px;
}
main {
  padding: 0 1rem 2rem;
}
article { display: block; }
footer {
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  background: transparent;
}
aside { display: none; }

/* Content region with glass panels */
.content {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(8, 12, 20, 0.55);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  color: var(--text);
}
.product-ad {
  display: inline-block;
  width: auto;
  padding: .75rem 1rem;
  margin: .25rem 0;
  text-align: center;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.6);
  color: #d7fbff;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.product-ad p { margin: 0; font-weight: 600; }
.product-ad:hover { transform: translateY(-1px); background: rgba(2,132,199,.25); }
.sponsored-page {
  display: inline-block;
  padding: .75rem 1rem;
  margin: .25rem 0;
  text-align: center;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
  color: #e7fbff;
}
footer p { margin-top: .5rem; font-size: .9rem; }

/* Links and CTAs (accessible, high contrast) */
a, button, .btn, .cta {
  text-decoration: none;
  color: var(--text);
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  padding: .75rem 1.15rem;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
a:hover, a:focus, .btn:hover, .btn:focus, .cta:hover, .cta:focus {
  text-decoration: underline;
  outline: none;
}
a:focus-visible, button:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}
.btn {
  background: linear-gradient(135deg, rgba(34,211,238,.95), rgba(0,196,167,.95));
  color: #041b1f;
  border: 1px solid rgba(255,255,255,.35);
}
.btn:hover { transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(34,211,238,.8);
}
.btn:focus-visible {
  outline: var(--focus);
}
.cta { composes: btn; }

/* Lists and small helpers */
ul, li { margin: 0; padding: 0; list-style: none; }
li + li { margin-top: .25rem; }

.tag {
  display: inline-block;
  padding: .15rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
  background: rgba(46, 229, 227, .18);
}

/* Responsive utilities */
@media (min-width: 720px) {
  .container { padding-inline: 0; }
}
@media (min-width: 860px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .image-frame img { transform: none !important; }
  .btn, .product-ad, .sponsored-page { transition: none !important; }
}

/* Print styles for basic readability */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
