/* BASE TOKENS */
:root {
  --bg: #0f1117;
  --bg-2: #1a1c22;
  --surface: rgba(255,255,255,.08);
  --text: #e9e9ed;
  --muted: #a3a5ad;
  --accent: #4df5ff;
  --accent-2: #ff5dc4;
  --border: rgba(255,255,255,.25);
  --glass: rgba(255,255,255,.08);
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  --radius: 14px;
}

/* LAYERS & BACKGROUND */
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(20,24,28,.95) 0%, rgba(8,9,13,.95) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0 1px, transparent 1px 2px);
  background-size: cover;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* STRUCTURAL ELEMENTS WITH GLASS EFFECT (fallback baked-in) */
header, nav, main, article, aside, footer {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
header { text-align: center; padding-top: 2rem; padding-bottom: 1rem; }
main { display: grid; place-items: center; padding: 1rem; min-height: 40vh; }
footer { padding: 1.25rem; display: grid; gap: .75rem; justify-items: center; }

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

/* CONTENT & TYPOGRAPHY */
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding: 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; width: 100%; }

/* CONTENT PANEL (glass panels) */
.content { padding: 0.75rem 0; color: var(--text); }

h1, h2, h3 { margin: .25rem 0; font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(1.6rem, 4vw + 0.5rem, 3rem); letter-spacing: .2px;
  background: linear-gradient(90deg, #eaffff 0%, #9af 50%, #8ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
p { margin: .5rem 0; color: var(--muted); font-size: clamp(0.95rem, 0.8vw + 0.9rem, 1.1rem); line-height: 1.5; }

/* REUSABLE CARDS & TAGS */
.card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: .75rem; }
.tag { display: inline-flex; align-items: center; padding: .25rem .5rem; border-radius: 999px; font-size: .75rem; line-height: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #e8f5ff; }

/* LINKS & CTAs */
a, button, .btn, .cta { color: var(--text); text-decoration: none; outline: none; }
a:hover, a:focus { text-decoration: underline; outline: none; color: var(--accent-2); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.25rem; border-radius: 8px; font-weight: 600; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: var(--text); cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--solid { background: linear-gradient(135deg, rgba(20,24,28,.95), rgba(20,24,28,.85)); border: 1px solid rgba(255,255,255,.4); }
.btn--outline { background: transparent; border: 1px solid rgba(255,255,255,.6); }

/* LAYOUT UTILITIES */
.container > * + * { margin-top: 0.75rem; }

/* NAV (if present) */
nav { display: flex; justify-content: center; gap: .75rem; padding: .5rem 0; }

/* LISTS */
ul, li { margin: 0; padding: 0; list-style: none; }

/* PRINT (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, article, aside, footer { background: transparent; border: none; box-shadow: none; }
}
 
/* RESPONSIVE + MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5f7;
    --bg-2: #e9ecef;
    --surface: rgba(0,0,0,.04);
    --text: #0b1020;
    --muted: #445066;
    --accent: #2563eb;
    --accent-2: #d97706;
    --border: rgba(0,0,0,.15);
    --glass: rgba(255,255,255,.9);
    --shadow: 0 6px 14px rgba(0,0,0,.08);
  }
  body {
    background: linear-gradient(#f7f9fb, #eef2f6);
    background-image: repeating-linear-gradient(to bottom, rgba(0,0,0,.03) 0 1px, transparent 1px 2px);
  }
  header, main, article, aside, footer {
    background: rgba(255,255,255,.8);
  }
  header h1 { color: #0a2345; text-shadow: none; }
}

/* END */