:root {
  --bg: #050510;
  --panel: rgba(12, 12, 26, 0.8);
  --accent: #ff4fd8;
  --accent-2: #3dd5ff;
  --text: #e4e9ff;
  --muted: #97a0c0;
  --border: rgba(255, 255, 255, 0.08);
  --glow: 0 0 24px rgba(255, 79, 216, 0.45), 0 0 24px rgba(61, 213, 255, 0.35);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 79, 216, 0.12), transparent 28%),
              radial-gradient(circle at 80% 10%, rgba(61, 213, 255, 0.12), transparent 30%),
              radial-gradient(circle at 40% 70%, rgba(255, 129, 63, 0.1), transparent 30%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.noise, .scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  mix-blend-mode: screen;
}

.noise {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgdmlld0JveD0iMCAwIDMwMCAzMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMDAiIGZpbGw9ImJsYWNrIi8+PGNpcmNsZSBjeD0iMTUiIGN5PSIxNSIgcj0iMSIgZmlsbD0id2hpdGUiIG9wYWNpdHk9Ii4xNyIvPjxyZWN0IHg9IjM0IiB5PSIyMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0id2hpdGUiIG9wYWNpdHk9Ii4xNyIvPjwvc3ZnPg==');
  background-size: 180px 180px;
  animation: static 1s steps(4) infinite;
}

.scanlines {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.12;
}

@keyframes static {
  0% { transform: translate(0); }
  25% { transform: translate(-5%, 3%); }
  50% { transform: translate(3%, -4%); }
  75% { transform: translate(-2%, 2%); }
  100% { transform: translate(0); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(90deg, rgba(5, 5, 16, 0.9), rgba(5, 5, 16, 0.75));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.logo {
  font-family: 'Orbitron', 'Inter', sans-serif;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: var(--glow);
}

.logo span {
  color: var(--accent-2);
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.nav a:not(.btn):hover::after {
  transform: scaleX(1);
}

.chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.chip:hover, .chip.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 79, 216, 0.2);
  transform: translateY(-1px);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px 32px;
  background: linear-gradient(135deg, rgba(10, 10, 20, 0.9), rgba(10, 10, 25, 0.75));
  box-shadow: var(--glow);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 79, 216, 0.12), transparent 35%),
              radial-gradient(circle at 80% 20%, rgba(61, 213, 255, 0.12), transparent 32%),
              linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
              linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 140px 140px, 160px 160px, 60px 60px, 60px 60px;
  opacity: 0.5;
  filter: drop-shadow(0 0 24px rgba(255, 79, 216, 0.3));
}

.hero__content {
  position: relative;
  max-width: 660px;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

h1 {
  font-size: clamp(32px, 5vw, 64px);
  margin: 0 0 12px;
  font-family: 'Orbitron', 'Inter', sans-serif;
  text-shadow: var(--glow);
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 18px;
  color: var(--muted);
}

.hero__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--text);
  box-shadow: 0 0 10px rgba(255, 79, 216, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #050510;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: var(--glow);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.btn.small {
  padding: 10px 14px;
  font-size: 14px;
}

.btn:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.05);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn.ghost:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 79, 216, 0.2);
}

.panel {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  backdrop-filter: blur(8px);
}

.panel:first-of-type {
  margin-top: 12px;
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.panel__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.panel h2 {
  margin: 4px 0 0;
  font-size: 28px;
  font-family: 'Orbitron', 'Inter', sans-serif;
}

.status {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(61, 213, 255, 0.1);
  color: var(--accent-2);
  border: 1px solid rgba(61, 213, 255, 0.25);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}

.timeline {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.timeline-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.timeline-card:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 213, 255, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.timeline-card .duration {
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
}

.timeline-card h3 {
  margin: 0;
  font-size: 20px;
}

.timeline-card .role {
  color: var(--accent);
  font-weight: 600;
}

.timeline-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.experiment-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.experiment-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.experiment-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 79, 216, 0.35);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.experiment-card .tag {
  background: rgba(61, 213, 255, 0.18);
  color: var(--accent-2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid rgba(61, 213, 255, 0.4);
}

.experiment-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.experiment-card p {
  margin: 0;
  color: var(--muted);
}

.experiment-card .link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.experiment-card .link.disabled {
  color: var(--muted);
  opacity: 0.7;
  pointer-events: none;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.search input {
  background: transparent;
  border: none;
  color: var(--text);
  outline: none;
  width: 170px;
  font-size: 14px;
}

.search input::placeholder {
  color: var(--muted);
}

.search .kbd {
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
}

.card-top,
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-top {
  margin-bottom: 10px;
}

.card-bottom {
  margin-top: 10px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 30px 20px;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  margin-top: 12px;
  align-items: start;
}

.contact__text p {
  color: var(--muted);
  line-height: 1.6;
}

.contact__links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.contact__form {
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.contact__form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.contact__form input,
.contact__form select {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
}

.footer {
  margin: 40px 0 30px;
  text-align: center;
  color: var(--muted);
}

.form-status {
  min-height: 20px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .voice-wave__shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel__controls {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .search {
    width: 100%;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .timeline-card {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main {
    padding: 32px 14px 70px;
  }

  .hero {
    padding: 48px 22px;
  }

  .panel {
    padding: 22px 18px;
  }
}

body.noglow .logo,
body.noglow h1,
body.noglow .btn {
  text-shadow: none;
  box-shadow: none;
}
