/* Layout & Palette */
:root {
  --bg: #0b0f14;
  --bg-2: #111823;
  --text: #e8f2ff;
  --muted: #a6b7c9;
  --accent: #4ee6ff;
  --accent-2: #7aa2ff;
  --glass: rgba(255,255,255,0.08);
  --glass-2: rgba(255,255,255,0.14);
  --stroke: rgba(255,255,255,0.28);
  --radius: 14px;
  --shadow: 0 10px 28px rgba(0,0,0,.38);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial; font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(#0a0f14 0%, #0a0f14 60%, #0e141d 100%),
    linear-gradient(135deg, rgba(234,212,139,.08) 0%, rgba(0,0,0,.0) 60%);
  background-blend-mode: normal, overlay;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  opacity: .25;
}
header, main, footer, aside { position: relative; z-index: 1; }

/* Containers & Layout Utilities */
.container { width: 100%; max-width: clamp(720px, 90vw, 1100px); padding: 0 1rem; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Title / Typography */
h1 { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.15; margin: .25rem 0 0.5rem; letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin: .75rem 0 .5rem; }
h3 { font-size: 1.25rem; margin: .75rem 0 .5rem; color: var(--text); }
p { margin: 0 0 1rem; color: var(--muted); line-height: 1.5; }
blockquote { margin: .5rem 0 1rem; padding: .5rem 1rem; border-left: 3px solid var(--accent); background: rgba(0,0,0,.15); }

/* Hero / Featured visuals */
.image-frame, .featured-image { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(120,190,255,.45); box-shadow: 0 6px 22px rgba(0,0,0,.4); }
.image-frame { aspect-ratio: 16 / 9; display: block; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content & panels (glass/frosted) */
.content { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 1rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); }

/* Navigation & links */
nav { display: flex; gap: .75rem; align-items: center; }
a, button, .btn, .cta { color: var(--text); text-decoration: none; border: 0; background: none; font: inherit; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Buttons (solid & outline variants) */
.btn, .cta { display: inline-block; padding: .65em 1.05em; border-radius: 8px; border: 1px solid rgba(110, 170, 255, .75); background: linear-gradient(#11305a, #0b1c44); color: #eaf6ff; font-weight: 600; transition: transform .15s ease, background .2s ease; }
.btn:hover, .cta:hover { transform: translateY(-1px); background: linear-gradient(#17407a, #0b2a60); }
.btn:active, .cta:active { transform: translateY(0); }
.btn.outline, .cta.outline { background: rgba(0,0,0,.0); color: var(--accent-2); border: 1px solid rgba(74,210,255,.85); }

/* Utility tokens */
.tag { display:inline-block; padding:.25em .6em; font-size:.82rem; border-radius:999px; border:1px solid rgba(74,210,255,.5); background: rgba(74,210,255,.15); color: var(--text); }

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

/* Page structure blocks */
header { padding: 1rem 0; border-bottom: 1px solid rgba(120,190,255,.25); background: rgba(8,12,22,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
header h1 { margin: 0 0 .25rem; }
header .meta { color: var(--muted); font-size: .92rem; margin: 0; }

/* Footer & ads */
.product-ad { display: grid; place-items: center; padding: .75rem; border-radius: var(--radius); border: 1px solid rgba(120,190,255,.5); background: rgba(2,6,23,.6); }
footer { padding: 1rem 0; border-top: 1px solid rgba(120,190,255,.25); }

/* Layout adjustments for tiny screens */
@media (max-width: 640px) {
  .container { padding: 0 .5rem; }
  header { padding: .75rem 0; }
  .image-frame { border-radius: 10px; }
}

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

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .image-frame, .content { background: #fff; box-shadow: none; border: 0; }
}