/* Base Theme */
:root {
  --bg: #0a1a3a;
  --bg-2: #041428;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.18);
  --text: #e8f2ff;
  --muted: #a9b8d7;
  --accent: #ff6b61;
  --accent-2: #4cc8ff;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: 2px solid rgba(255,255,255,0.9);
  --focus-offset: 2px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 0 0 transparent;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0,180,255,.15), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(255,122,106,.12), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(0,0,0,.25), transparent 40%),
    linear-gradient(135deg, #0a1a3a 0%, #030b1a 100%);
  background-blend-mode: multiply, multiply, multiply, normal;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}
body::before {
  /* subtle scanline / noise overlay (pure CSS) */
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 2px;
  mix-blend-mode: overlay;
  opacity: .6;
  pointer-events: none;
  z-index: 0;
}
img { max-width: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Layout helpers */
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); padding: 0 1rem; margin: 0 auto; }

/* Section headers (visible to CSS readers) */
 /* Base / Theme */

/* Header / Hero */
header {
  display: grid;
  gap: .5rem;
  justify-items: center;
  align-items: center;
  text-align: center;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  margin: 1rem auto;
  max-width: 1100px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  z-index: 1;
}
header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw + 1rem, 3rem);
  line-height: 1.15;
  letter-spacing: .2px;
  color: var(--text);
}
header .meta {
  margin: 0;
  font-size: clamp(0.9rem, 0.8vw + 0.4rem, 1rem);
  color: var(--muted);
}

/* Main content */
main { display: block; padding: 0; }
article {
  width: 100%;
  max-width: 900px;
  margin: 1rem auto;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  line-height: 1.6;
  box-shadow: var(--shadow);
}
@media (min-width: 720px) {
  article { padding: 1.25rem 1.5rem; }
}
.featured-image { margin: 1rem 0 0; width: 100%; }
.image-frame { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Headings & prose */
h2 { font-size: clamp(1.4rem, 2.6vw + 0.5rem, 2rem); margin: 0.75rem 0 0.5rem; color: var(--text); }
p { margin: 0.5rem 0; color: #e9f0ff; }
blockquote { margin: .75rem 0; padding: .75rem 1rem; border-left: 3px solid rgba(255,255,255,.5); background: rgba(0,0,0,.15); border-radius: 6px; color: #f2f7ff; }

/* Lists */
ul { padding-left: 1.25rem; margin: .25rem 0; }
li { margin: .25rem 0; }

/* Footer / Ad blocks */
footer { padding: 1rem 0.75rem; display: grid; gap: .75rem; justify-items: center; }
.product-ad, .sponsored-page {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1rem; border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.product-ad:hover, .sponsored-page:hover { transform: translateY(-1px); background: rgba(0,0,0,.32); }
footer p { margin: .4rem 0 0; color: var(--muted); font-size: .9rem; }

/* Utilities / Components */
.container.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { padding: 1rem; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }

/* Tag chips */
.tag { display: inline-block; padding: .25rem .6rem; border-radius: 999px; font-size: .75rem; color: #fff; background: rgba(255, 107, 97, .25); border: 1px solid rgba(255,255,255,.3); }

/* Links & buttons (interactive) */
a { color: var(--text); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; outline: none; }
button, .btn, .cta { font: inherit; cursor: pointer; padding: .6rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.25); color: #fff; transition: transform .15s ease, background .2s ease, border-color .2s ease; text-align: center; }
.btn { background: var(--accent); border-color: rgba(0,0,0,.15); font-weight: 700; }
.btn:hover { transform: translateY(-1px); background: #ff7f6b; }
.btn.outline { background: transparent; color: var(--text); border-color: rgba(255,255,255,.8); }
.cta { display: inline-flex; align-items: center; gap: .5rem; background: var(--accent-2); border: 1px solid rgba(255,255,255,.4); padding: .65rem 1rem; color: #041020; font-weight: 800; text-decoration: none; }
:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); border: none; }

/* Print */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; box-shadow: none; border: none; }
  a { text-decoration: underline; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
