/* Tokens */
:root {
  --bg: #04060a;
  --bg-2: #0b1020;
  --text: #eafff7;
  --muted: #b8d8ff;
  --accent: #2fff87;
  --accent-2: #7a6aff;
  --card: rgba(255,255,255,.08);
  --card-2: rgba(0,0,0,.25);
  --border: rgba(255,255,255,.25);
  --shadow: 0 10px 28px rgba(0,0,0,.35);
  --radius: 12px;
}

/* Reset & base */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial; }
body {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  background: 
    linear-gradient(135deg, rgba(4,6,12,.98) 0%, rgba(3,7,16,.98) 60%, rgba(4,6,12,.98) 100%),
    repeating-linear-gradient(to bottom, rgba(0,255,135,.04) 0 2px, rgba(0,0,0,0) 2px 4px),
    radial-gradient(circle at 20% 0%, rgba(0,255,140,.08), transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(120,0,255,.08), transparent 40%);
  background-blend-mode: overlay;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Layout primitives */
.container {
  width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding: 0 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(28rem, 100%), 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); box-shadow: 0 6px 22px rgba(0,0,0,.25); }
}

.glass { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1rem; box-shadow: 0 8px 28px rgba(0,0,0,.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Typography (responsive) */
h1, h2, h3 { margin: 0 0 .5rem; color: var(--text); }
h1 { font-size: clamp(1.8rem, 2.8vw + 1rem, 3rem); line-height: 1.15; font-weight: 700; text-align: center; }
h2 { font-size: clamp(1.25rem, 1.2vw + 1rem, 2rem); }
h3 { font-size: clamp(1.05rem, 1vw + .8rem, 1.5rem); font-weight: 600; }
p { font-size: clamp(1rem, 0.8vw + .9rem, 1.125rem); margin: .75rem 0; }
blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--text); opacity: .95; }

/* Images */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 22px rgba(0,0,0,.35);
  background: #000;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Header / hero */
header {
  padding: 2rem 1rem;
  text-align: center;
}
header h1 { margin-bottom: .25rem; }

/* Links & interactive controls */
a { color: var(--text); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Buttons (solid and outline variants) */
.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: .1px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.solid {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #04140b;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.btn.outline {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-color: rgba(255,255,255,.45);
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.25);
}
.btn + .btn { margin-left: .5rem; }

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

/* Header & footer content regions */
main { padding: 1rem 0; }
footer { padding: 1.5rem 0; text-align: center; }

/* Specific sections in footer as glass panels */
.product-ad, .sponsored-page {
  display: inline-block;
  min-width: 220px;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }

/* Utilities (compact set) */
.container, .content { width: 100%; }

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
 
/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  header, nav, footer { display: none; }
}