/* TOKENS */
:root{
  --bg: #0b1a2b;
  --bg-2: #1a2540;
  --text: #e6f0ff;
  --muted: #a9b7ea;
  --accent: #bba6ff;
  --accent-2: #7cc2ff;
  --card: rgba(255,255,255,.08);
  --card-2: rgba(255,255,255,.12);
  --border: rgba(255,255,255,.25);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* BASE */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 60%, #050817 100%);
  min-height: 100vh;
  position: relative;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* BACKGROUND LAYERS: cobalt crosshatch + subtle scanlines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, rgba(100,160,255,.25) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(100,160,255,.25) 25%, transparent 25%),
    linear-gradient(45deg, rgba(170,120,230,.15) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(170,120,230,.15) 25%, transparent 25%);
  background-size: 18px 18px, 18px 18px, 36px 36px, 36px 36px;
  background-position: 0 0, 0 0, 9px 9px, 9px 9px;
  opacity: 0.55;
  mix-blend-mode: overlay;
  filter: saturate(110%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  opacity: .4;
  mix-blend-mode: overlay;
}

/* LAYOUT UTILITIES */
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: .75rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* GLASS/FALLBACK PANELS */
header, article, footer { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1rem; }
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  header, article, footer { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  header, article, footer { background: rgba(255,255,255,.12); }
}
.image-frame { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); margin: 0 auto 1rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

/* TYPOGRAPHY */
h1, h2 { line-height: 1.25; font-weight: 700; letter-spacing: .2px; }
h1 { font-size: clamp(1.6rem, 4vw, 2.8rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.25rem, 3.5vw, 2rem); margin: 0 0 .5rem; color: var(--text); }

/* CONTENT */
.main, article { padding: 1rem; }
.content { padding: .5rem 0; color: var(--muted); }

/* LINKS & CTAs */
a, button, .btn, .cta { font-family: inherit; color: #fff; text-decoration: none; outline: none; cursor: pointer; }
a { color: var(--accent-2); }
a:hover, a:focus { text-decoration: underline; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* BUTTON VARIANTS */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.5); background: rgba(123,106,255,.85); color: #fff; transition: transform .2s ease, background .2s ease, border-color .2s; text-shadow: 0 1px 0 rgba(0,0,0,.15); }
.btn:hover { transform: translateY(-1px); background: rgba(123,106,255,.95); }
.btn:active { transform: translateY(0); }
.btn--outline { background: transparent; border: 1px solid rgba(123,106,255,.8); color: var(--text); }
.btn--outline:hover { background: rgba(123,106,255,.15); }

/* CTAs for style targets in HTML (class .cta) */
.cta { display: inline-block; }

/* LISTS */
ul { margin: .75rem 0; padding-left: 1.25rem; color: var(--muted); }
li { margin: .25rem 0; }

/* FOOTER & AD SECTIONS */
.product-ad, .sponsored-page { padding: .75rem; text-align: center; }

/* PRINT */
@media print {
  body { background: #fff; color: #000; }
  a, button, .btn { color: inherit; text-decoration: none; }
}