/* Section: Base tokens */
:root{
  --bg: #0b0b14;
  --bg-2: #1a1a2b;
  --text: #eaf6ff;
  --muted: #b8c7e6;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.16);
  --accent: #ff2e9e;
  --accent-2: #39ff7a;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0,0,0,.38);
  --ring: 0 0 0 3px rgba(57,255,122,.75);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 16px; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,0,140,.25), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(57,255,122,.22), transparent 28%),
    linear-gradient(135deg, rgba(255,0,140,.28), rgba(0,0,0,.0) 60%);
  background-color: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
}
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background: linear-gradient(to bottom, rgba(255,255,255,.04), rgba(255,255,255,.04)),
              repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: .65;
}
body::after {
  background: repeating-linear-gradient(to right, rgba(0,0,0,.04) 0 2px, transparent 2px 4px);
  mix-blend-mode: overlay;
  opacity: .25;
}
img { max-width: 100%; height: auto; display: block; }

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

/* Section: Core components */
header, nav, main, aside, article, footer { display: block; }
header { padding-block: 2rem; text-align: center; position: relative; z-index: 1; }
header h1 {
  font-size: clamp(1.6rem, 4vw + .6rem, 2.8rem);
  margin: 0;
  font-weight: 800;
  letter-spacing: .2px;
  color: #fff;
  text-shadow: 0 0 14px rgba(57,255,122,.9), 0 0 40px rgba(255,0,140,.7);
}
main { padding: 0 0 1rem; display: flex; justify-content: center; align-items: start; gap: 1rem; }
.article { }

/* Section: Glass panels & surfaces */
.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.08);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  display: block;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Fallback if backdrop-filter unsupported */
@supports not (backdrop-filter: blur(10px)) {
  .image-frame { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); }
}

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

/* Section: Content & typography */
.content { padding-block: .5rem; color: var(--muted); }

/* Section: Interactive elements */
a, button, .btn, .cta { cursor: pointer; color: #fff; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.14);
  color: #0a0a0a;
  font-weight: 700;
  text-transform: none;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent-2), #2bdc7a);
  color: #001;
  border-color: rgba(0,0,0,.15);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.btn.secondary {
  background: rgba(0,0,0,.25);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.btn:hover { transform: translateY(-1px); }

/* Section: Misc utilities */
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
}
.ul, ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Section: Responsive typography & layout scaling */
@media (max-width: 800px) {
  header { padding-block: 1.25rem; }
  header h1 { font-size: clamp(1.4rem, 6vw, 2.2rem); }
  .image-frame { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { padding: 0; }
  .image-frame { border: none; box-shadow: none; }
}
