
* { box-sizing: border-box; }
html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter,
                "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: #e6ebf3;
  background: radial-gradient(1000px 600px at 10% -10%, rgba(52,71,105,.25), transparent),
              radial-gradient(900px 500px at 110% 10%, rgba(34,44,66,.35), transparent),
              #0d1117;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: .35;
}

#bg-particles {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: .35 !important;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 0;

  flex: 1 0 auto;
}

section {
  padding: 72px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
section:first-of-type { border-top: none; }

section:last-of-type {
  padding-bottom: 16px;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 .5rem;
}
h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: 0.4px;
}
h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  color: #dce6ff;
}
h3 {
  font-size: 1.1rem;
  color: #e9eefc;
}

p.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #cbd5e1; }
.muted { color: #93a4bf; }

:root {
  --accent: #66d9e8;
  --accent-2: #8da2ff;
  --card: #0f1522;
  --card-border: #1b2335;
  --card-elev: 0 8px 30px rgba(0,0,0,.35);
  --ring: 0 0 0 3px rgba(102,217,232,.25);
}

a { color: var(--accent); text-decoration: none; }
a:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
}
.nav .brand {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav .brand img { width: auto; height: 44px; filter:drop-shadow(0 0 6px rgba(148,0,211,0.35));animation: neonPulse 3.2s ease-in-out infinite;}
.nav .brand span { font-weight: 800; letter-spacing: 0.5px; font-size:28px;animation: neonText 3.2s ease-in-out infinite;color:#caa9ff;}
.nav .links {
  display: flex;
  gap: 18px;
}
.nav .links a {
  color: #cdd6f4;
  opacity: .9;
  font-size: .95rem;
}
.nav .links a:hover {
  opacity: 1;
  color: #e6ebf3;
}

.hero {
  padding: 72px 0 36px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}

.tagline {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: .95rem;
  color: #9db2cc;
  background: linear-gradient(180deg, rgba(102,217,232,.08), rgba(141,162,255,.06));
  padding: 8px 12px;
  border: 1px solid #1a2440;
  border-radius: 999px;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.04);
}

.cta {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.button {
  appearance: none;
  border: 1px solid #1b2335;
  background: linear-gradient(180deg,#152036,#0f172a);
  color: #e6ebf3;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: var(--card-elev), 0 0 0 1px rgba(255,255,255,.03) inset;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  cursor: pointer;
}
.button.primary {
  background: linear-gradient(180deg, #1b2b45, #121b2e);
  border-color: #263556;
}
.button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #2a3a5f;
}
.button:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.audio-controls {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.audio-controls input[type="range"] {
  width: 160px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}
.grid.cols-4 > * { grid-column: span 3; }
.grid.cols-3 > * { grid-column: span 4; }
.grid.cols-2 > * { grid-column: span 6; }
@media (max-width: 900px) {
  .grid.cols-4 > *, .grid.cols-3 > * { grid-column: span 6; }
}
@media (max-width: 640px) {
  .grid > * { grid-column: 1 / -1 !important; }
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--card-elev);
}
.card h3 { margin-bottom: .35rem; }
.card .meta {
  font-size: .9rem;
  color: #9fb2ce;
  margin-bottom: .5rem;
}
.card-compact {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
}
.card-compact h3 { margin-bottom: .25rem; }
.card-compact p { margin: 0 0 .5rem; }
.card-compact .cta { margin-top: auto; padding-top: .5rem; }
.card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #223052;
  background: rgba(102,217,232,.08);
  color: #bfeef5;
  font-size: .8rem;
  padding: 4px 8px;
  border-radius: 999px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3,7,18,.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.modal-backdrop[aria-hidden="false"] {
  display: flex;
}
.modal {
  width: min(820px, 92vw);
  background: #0b1220;
  border: 1px solid #1c2743;
  border-radius: 16px;
  box-shadow: 0 25px 90px rgba(0,0,0,.65);
  padding: 18px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal .bubble {
  margin-top: 10px;
  background: #0f1527;
  border: 1px solid #222f52;
  border-radius: 12px;
  padding: 12px;
}
.modal pre {
  overflow-x: auto;
  overflow-y: auto;
  background: #0a0f1a;
  border: 1px solid #1a223a;
  border-radius: 12px;
  padding: 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

pre, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .9rem;
}
pre {
  background: #0b0f19;
  border: 1px solid #18223b;
  border-radius: 12px;
  padding: 12px;
  color: #dbe7ff;
}
code { color: #dbe7ff; }
.kw { color: #66d9ef; }
.fn { color: #a6e22e; }
.str { color: #e6db74; }
.num { color: #ae81ff; }
.com { color: #6272a4; }

footer {
  padding: 16px 0;
  color: #9fb2ce;
  font-size: .95rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.06);

  margin-top: auto;
}

.divider {
  height: 1px;
  background: rgba(255,255,255,.06);

  margin: 12px 0 12px;
}
.space-s { height: 8px; }
.space-m { height: 16px; }
.space-l { height: 28px; }
.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.entry-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(1000px 600px at 10% -10%, rgba(52,71,105,.25), transparent),
              radial-gradient(900px 500px at 110% 10%, rgba(34,44,66,.35), transparent),
              #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.entry-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

#entry-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .35;
}

.entry-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.entry-text {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #e6ebf3;
  margin: 0;
  font-weight: 400;
  letter-spacing: 1px;
  font-family: 'Courier New', Courier, monospace;
}

.entry-cursor {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #e6ebf3;
  animation: blink 0.7s infinite;
  font-weight: 400;
  font-family: 'Courier New', Courier, monospace;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.hero h1{font-size:clamp(34px,5vw,56px);line-height:1.1text-shadow:0 0 2px rgba(184,62,255,.5),0 0 10px rgba(184,62,255,.35);animation: neonText 4s ease-in-out infinite;}
