:root{
  --bg: #0b1020;
  --bg-2: #0a1b3a;
  --surface: rgba(255,255,255,0.10);
  --surface-2: rgba(255,255,255,0.14);
  --glass: rgba(255,255,255,0.08);
  --glass-2: rgba(255,255,255,0.12);
  --card-border: rgba(120,180,255,.32);
  --text: #eaf6ff;
  --muted: #a6c8ff;
  --accent: #2bd5ff;
  --accent-2: #7af0ff;
  --focus: #a4f0ff;
  --shadow: 0 12px 28px rgba(0,0,0,.35);
  --shadow-soft: 0 6px 16px rgba(0,0,0,.25);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --border: 1px solid rgba(120,180,255,.32);
  --container-max: clamp(320px, 88vw, 1100px);
}

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

html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Helvetica Neue", sans-serif;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.55;
  background: linear-gradient(135deg, #0b1226 0%, #0a1b3a 60%, #041028 100%);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

 /* Layered background: subtle glow and scanlines */
body::before {
  content:"";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(0,180,255,.15), transparent 25%),
              radial-gradient(circle at 75% 10%, rgba(0,255,255,.08), transparent 25%);
  z-index: -2;
  pointer-events: none;
  mix-blend-mode: screen;
}
body::after {
  content:"";
  position: fixed;
  inset: 0;
  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: 4px 4px, 4px 4px;
  opacity: .25;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}

.container { width: 100%; max-width: var(--container-max); padding: 0 1rem; margin: 0 auto; }

header {
  padding: clamp(1rem, 4vw, 2rem) 0;
  text-align: center;
  position: relative;
}
header h1 {
  font-size: clamp(1.75rem, 3.8vw, 3.5rem);
  line-height: 1.08;
  margin: 0 0 .25rem;
  letter-spacing: .2px;
  color: var(--text);
  text-shadow: 0 0 22px rgba(42, 220, 255, .25);
}
header .meta {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  margin-top: .25rem;
}
nav {
  margin-top: .75rem;
}
nav a {
  color: #e6f4ff;
  text-decoration: none;
  padding: .4rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(120,180,255,.4);
  background: rgba(8,16,40,.5);
  display: inline-block;
}
nav a:hover { text-decoration: underline; background: rgba(8,16,40,.65); }
nav a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

main { padding: 1.25rem 0 2rem; }

article {
  display: grid;
  gap: 1rem;
  align-items: start;
}

/* Featured image frame */
.image-frame {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(120,180,255,.4);
  background: #000;
  box-shadow: 0 8px 22px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.04);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

h2, h3 {
  color: var(--text);
  margin: .25rem 0 .5rem;
}
h2 { font-size: clamp(1.25rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }

p { color: #dbeaff; margin: .5rem 0; }

blockquote {
  margin: .75rem 0;
  padding: .75rem 1rem;
  border-left: 4px solid var(--accent-2);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
  color: #e8f4ff;
}

ul {
  padding-left: 1.25rem;
  margin: .5rem 0 1rem;
}
li { margin: .15rem 0; }

.product-ad, .sponsored-page {
  padding: .9rem 1rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: var(--border);
  text-align: center;
  display: block;
  color: var(--text);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad:hover, .sponsored-page:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.product-ad:focus-visible, .sponsored-page:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

footer {
  margin-top: 2rem;
  padding: 1.25rem 0 2rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

/* Glass panels in footer (responsive layout) */
footer .grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
footer p { color: var(--muted); font-size: .92rem; margin: .25rem 0 0; }

/* Content container (glass panels look) */
.content { padding: .75rem; border-radius: var(--radius-sm); background: var(--glass-2); border: var(--border); }

/* Utility classes used by page structure */
.container, .grid, .card, .tag { }

.grid { display: grid; gap: 1rem; }

/* Card-like elements (for potential widgets) */
.card {
  background: var(--glass);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

/* Tag badge */
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(110,190,255,.4);
  color: #eaffff;
  background: rgba(23, 140, 255, .25);
}

/* Links and buttons across the page */
a, button, .btn, .cta {
  color: var(--accent);
  text-decoration: none;
}
a:hover, a:focus, button:hover { text-decoration: underline; color: var(--accent-2); }
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 999px;
  padding: .75rem 1.25rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(135deg, #2b8fff 0%, #4bd3ff 100%);
  color: #04131e;
  box-shadow: 0 6px 14px rgba(0,180,255,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
button.primary { background: linear-gradient(135deg, #2bd5ff 0%, #6be8ff 100%); }
.btn.secondary {
  background: transparent;
  border: 1px solid rgba(120,180,255,.5);
  color: var(--text);
  box-shadow: none;
}
button:hover { transform: translateY(-1px); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Form elements (if present) */
input, textarea, select {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid rgba(120,180,255,.4);
  border-radius: 8px;
  padding: .65rem .75rem;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43,213,255,.25); }

/* Layout helpers (responsive) */
@media (min-width: 900px) {
  main { padding: 1.5rem 0 2.5rem; }
  article { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

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