/* 1) Tokens & Background */
:root {
  --bg: #0b0f14;
  --bg-2: #111522;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.12);
  --border: rgba(200,210,220,0.35);
  --text: #eaf0f8;
  --muted: #b8c3d6;
  --accent: #4cc9f0;
  --accent-2: #76e1ff;
  --shadow: 0 8px 28px rgba(0,0,0,0.4);
}
html, body { height: 100%; }
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(100,170,210,0.25) 0 2px, transparent 2px),
    radial-gradient(circle at 70% 40%, rgba(100,170,210,0.15) 0 2px, transparent 2px),
    linear-gradient(135deg, #0b0f14 0%, #141a28 50%, #0b0f14 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: clamp(14px, 1vw + 12px, 16px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #0a0f14; }
}

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

/* 3) Glass panels & surfaces */
.glass, header {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
}
.glass { padding: 1rem; box-shadow: var(--shadow); }
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .glass { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .glass { backdrop-filter: none; }
}

/* 4) Section: header & hero pattern */
header {
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
  margin: 1rem 0 1.5rem;
  background: rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
header h1 {
  font-size: clamp(1.6rem, 1.5rem + 2vw, 2.75rem);
  margin: 0 0 .5rem;
  letter-spacing: .2px;
}
header .meta { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* 5) Nav & CTAs in header */
nav { margin-top: .5rem; }
nav a { color: var(--accent-2); text-decoration: none; font-weight: 600; padding: .25rem .5rem; border-radius: 6px; }
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: none; }

/* 6) Main content */
main { padding: 1.25rem 0 2rem; }
.article { padding: 0; }

/* 7) Media: image frame */
.image-frame { width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  background: rgba(0,0,0,0.25); display: block; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* 8) Content block helpers */
.content { padding: 0; }

/* 9) Typography & lists */
h2, h3 { color: var(--text); margin: .75em 0 .5em; }
p { color: var(--text); margin: .5em 0 1em; }
ul, li { color: var(--text); }
ul { padding-left: 1.25rem; }

/* 10) Cards, grids, tags, and utilities */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); border-radius: 12px; padding: 1rem; }
.tag { display: inline-block; padding: .15em .6em; font-size: .75rem; border-radius: 999px; background: rgba(100,200,255,0.2); color: #e8f4ff; border: 1px solid rgba(100,200,255,0.4); }

/* 11) Product/ad area in footer */
.product-ad { padding: .75rem; border-radius: 10px; margin: .25rem 0; background: rgba(60,120,200,0.12); border: 1px solid rgba(120,180,230,0.25); text-align: center; }

/* 12) Links & buttons styling */
a, button, .btn, .cta { font-family: inherit; color: var(--text); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75em 1.25em; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  font-weight: 600; background: var(--accent); color: #041018;
  text-transform: none; transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Variants */
.btn--solid { background: var(--accent); color: #041018; border: 1px solid rgba(0,0,0,0); }
.btn--outline { background: transparent; color: var(--text);
  border: 1px solid rgba(120,180,230,0.6); }

/* Simple form controls (if present) */
input, textarea { font-family: inherit; font-size: 1rem;
  padding: .6em .75em; border-radius: 8px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08); color: var(--text); outline: none; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* 13) Print styles */
@media print {
  body { color: #000; background: #fff; }
  header, nav, footer { display: none; }
  article { padding: 0; }
}

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