/* Tokens */
:root {
  --bg: #040a12;
  --bg-2: #0a1220;
  --text: #e8feff;
  --muted: #a6b8cf;
  --accent: #00eaff;
  --accent-2: #00d6ff;
  --surface: rgba(6, 14, 28, 0.72);
  --surface-2: rgba(6, 14, 28, 0.78);
  --card-border: rgba(0, 230, 255, 0.5);
  --glass: rgba(12, 22, 40, 0.66);
  --shadow: 0 8px 24px rgba(0,0,0,.28);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(0, 238, 255, 0.6);
  --gap: 1rem;
  --maxw: clamp(640px, 88vw, 1100px);
  --card-pad: 1rem;
  --headline: 1.25; 
}

/* Reset & Globals */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  min-height: 100dvh;
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    conic-gradient(from 180deg at 60% 40%, rgba(0,255,255,0.25), rgba(0,170,255,0.25), rgba(0,120,255,0.25), rgba(180,0,255,0.18), rgba(0,255,255,0.25)),
    radial-gradient(circle at 15% 0%, rgba(0,200,255,0.15), transparent 40%),
    linear-gradient(135deg, rgba(2,8,20,0.95), rgba(4,16,40,0.95) 60%, rgba(2,8,20,0.95)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 2px);
  background-blend-mode: overlay, overlay, normal, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }

/* Layout helpers */
.container {
  max-width: var(--maxw);
  width: 92%;
  margin-inline: auto;
  padding-block: 1rem;
  padding-inline: 0.75rem;
}
.grid {
  display: grid;
  gap: var(--gap);
}
.card {
  padding: var(--card-pad);
  border-radius: var(--radius);
  background: rgba(8, 15, 28, 0.62);
  border: 1px solid rgba(0, 230, 255, 0.5);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card--soft {
  background: rgba(8, 15, 28, 0.48);
}
.tag {
  display: inline-block;
  padding: .25em .6em;
  font-size: .75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.9), rgba(0, 180, 255, 0.9));
  color: #002033;
  border: 1px solid rgba(255,255,255,.6);
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(0, 230, 255, 0.5);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  background: #0b1020;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform .3s ease;
}
.image-frame:hover img {
  transform: scale(1.03);
}

/* Typography */
h1, h2, h3, h4 {
  margin: 0 0 .5rem;
  line-height: 1.15;
  letter-spacing: .2px;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #eaffff;
}
h2 {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 700;
}
h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
}
p, li {
  font-size: clamp(0.95rem, 1vw + .5rem, 1.15rem);
  color: var(--muted);
}
ul, ol { padding-left: 1.25rem; }
li { margin-block: .25rem; }

/* Links & interactive elements */
a, button, .btn, .cta {
  color: inherit;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
a { color: var(--accent); }
a:hover { text-decoration: underline; text-decoration-color: rgba(0, 230, 255, 0.75); }
a:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 230, 255, 0.65);
  color: #001e2b;
  background: linear-gradient(180deg, rgba(0, 220, 255, 0.95), rgba(0, 160, 210, 0.95));
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
  text-shadow: 0 1px 0 rgba(255,255,255,0.15);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }

.cta {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid rgba(0, 230, 255, 0.6);
}
.cta:hover {
  background: rgba(0, 230, 255, 0.08);
}
.outline {
  background: transparent;
  border: 1px solid rgba(0, 230, 255, 0.6);
  color: var(--text);
}
.primary {
  background: linear-gradient(180deg, rgba(0, 230, 255, 0.95), rgba(0, 170, 210, 0.95));
  color: #00161d;
}

/* Header / Nav / Main / Article / Footer layout (glass panels) */
header, nav, main, article, aside, footer {
  background: rgba(8, 14, 28, 0.62);
  border: 1px solid rgba(0, 230, 255, 0.5);
  border-radius: var(--radius);
  padding: 0.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
header { padding: 1rem; text-align: center; }
nav { display: flex; justify-content: center; gap: .75rem; padding: .5rem 0; }
main { padding: 0; }
article { padding: 1rem; }
aside { padding: 0.5rem; }

/* Sections and content overrides */
header .title { font-weight: 700; font-size: clamp(1.4rem, 2vw + 1rem, 1.9rem); color: var(--text); }
header .meta { opacity: .85; font-variant-numeric: tabular-nums; }

/* Product ad section style (glass card) */
.product-ad {
  display: grid;
  gap: .5rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(5, 10, 22, 0.68);
  border: 1px solid rgba(0, 230, 255, 0.6);
  box-shadow: var(--shadow);
}
.product-ad h3 { font-size: 1.05rem; margin: 0; }
.product-ad a { text-wrap: balance; padding: .25rem 0; display: inline-block; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #00a; text-decoration: underline; }
  .container { width: 100%; padding: 0; }
  header, nav, main, article, aside, footer { border: none; background: transparent; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}