:root {
  --bg: #0a1020;
  --bg-2: #0b1a2b;
  --text: #eaf4ff;
  --muted: #a6b3cf;
  --accent: #4de8ff;      /* neon blue */
  --accent-2: #ff85c8;    /* pastel pink */
  --glass: rgba(255,255,255,.08);
  --glass-strong: rgba(255,255,255,.18);
  --glass-border: rgba(255,255,255,.28);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --radius: 12px;
  --btn-radius: 8px;
  --focus: 2px solid var(--accent);
}

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

html, body { height: 100%; }

html {
  font-family: 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;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(0, 20, 60, 0.95), rgba(10, 8, 25, 0.95) 60%, rgba(0,0,0,0.95)),
    radial-gradient(circle at 20% 0%, rgba(0,140,255,.10), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Layout containers */
header, nav, main, article, aside, footer {
  width: 100%;
}

.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1120px);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Header / Hero */
header {
  text-align: center;
  padding: 1.25rem 0;
  position: relative;
}
header h1 {
  font-size: clamp(1.4rem, 1.2rem + 3vw, 2.6rem);
  line-height: 1.15;
  margin: .25rem 0 0.4rem;
  letter-spacing: .2px;
  color: var(--text);
}
header .meta {
  font-size: clamp(0.8rem, 0.4vw + 0.6rem, 0.95rem);
  color: var(--muted);
  margin-top: .25rem;
}
nav {
  margin-top: .5rem;
}
nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .25rem .6rem;
  border-radius: 6px;
  display: inline-block;
}
nav a:hover, nav a:focus-visible {
  text-decoration: underline;
  outline: none;
}
nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Main content */
main {
  flex: 1 1 auto;
}
article {
  display: grid;
  gap: 1rem;
  padding: 0;
}
.featured-image {
  width: 100%;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
  background: #000;
}
.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 18px rgba(0,0,0,.25), 0 0 24px rgba(77,232,255,.25) inset;
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
article h1 {
  font-size: clamp(1.4rem, 0.8vw + 1.6rem, 2.6rem);
  margin: .75em 0 .25em;
  color: var(--text);
}
article p, article li {
  font-size: clamp(0.95rem, 0.6vw + 0.95rem, 1.15rem);
  line-height: 1.6;
  color: rgba(234,246,255,.95);
}
article h2 {
  font-size: clamp(1.1rem, 0.6vw + 1.0rem, 1.6rem);
  margin: 1rem 0 .5rem;
  color: #eaffff;
}
ul, li {
  padding-left: 1.25rem;
}
ul { margin: .5rem 0 1rem; }
li { margin: .25rem 0; }

/* Glass panels & cards (feels like frosted glass) */
.card, .content, .product-ad {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem;
}
@supports not (backdrop-filter: blur(8px)) {
  .card, .content, .product-ad {
    background: rgba(255,255,255,.12);
  }
}

.content { padding: 1rem; }

/* Utilities (grid, container, tags) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card { padding: 1rem; }

/* Product ad blocks in footer */
.product-ad {
  display: inline-block;
  margin: .25rem;
}
.product-ad a {
  display: block;
  text-decoration: none;
  color: var(--text);
  padding: .75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(135deg, rgba(0,0,0,.15), rgba(255,255,255,.08));
}
.product-ad a:hover, .product-ad a:focus-visible {
  text-decoration: underline;
  outline: none;
}
footer {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}
footer p {
  margin: .5rem 0;
}
footer section + section { margin-left: .5rem; }

/* Links & forms (focus visibility, contrast) */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--btn-radius);
  text-decoration: none;
  color: #001018;
  background: transparent;
  border: 0;
  padding: .55em .95em;
  display: inline-block;
  transition: transform .15s ease, background-color .2s ease, color .2s ease;
}
a { color: var(--accent); }
a:hover, a:focus-visible { text-decoration: underline; outline: none; color: var(--accent); }
.btn, .cta {
  background: var(--accent);
  color: #04131b;
  border: 1px solid rgba(255,255,255,.4);
  padding: .65em 1em;
  border-radius: var(--btn-radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 14px rgba(0,0,0,.25);
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:focus-visible, .cta:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255,255,255,.6);
}
.btn--outline:hover { background: rgba(255,255,255,.08); }

/* Lists: clear bullets for readability on glass */
ol, ul { padding-left: 1.25rem; }

/* Responsiveness & accessibility */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  html, body {
    background: #fff;
    color: #000;
  }
  header, nav, main, footer { page-break-after: auto; }
}
aside { display: none; }

/* Small tweaks for mobile readability */
@media (max-width: 560px) {
  header h1 { font-size: clamp(1.25rem, 1.2vw + 1rem, 2rem); }
  .container { padding-inline: 0.75rem; }
  .image-frame { border-radius: 10px; }
}
