:root {
  --bg: #0b0f19;
  --card-bg: #111827;
  --primary: #6d5ef3;
  --primary-glow: rgba(109, 94, 243, 0.35);
  --secondary: #22d3ee;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: rgba(255, 255, 255, 0.06);
  --glass: rgba(17, 24, 39, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  color: inherit;
}

.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(109, 94, 243, 0.15), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(34, 211, 238, 0.08), transparent 45%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(109, 94, 243, 0.06), transparent 45%),
    var(--bg);
  pointer-events: none;
}

.cosmic-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 48px 48px;
  opacity: 0.5;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(11, 15, 25, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #b6c0cc;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav-links > a:hover,
.nav-links > a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--glass-border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
}

.hero {
  padding: 96px 0 48px;
}

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 28px;
}

.hero h1 .line {
  display: block;
  animation: rise 0.7s var(--ease) both;
}

.hero h1 .line:nth-child(1) {
  color: #c4b5fd;
}

.hero h1 .line:nth-child(2) {
  color: #e6edf3;
  animation-delay: 0.08s;
}

.hero h1 .line:nth-child(3) {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation-delay: 0.16s;
}

.lede {
  max-width: 640px;
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  animation: rise 0.7s var(--ease) 0.2s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
  animation: rise 0.7s var(--ease) 0.28s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  font-family: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #5b4ee0);
  box-shadow: 0 0 32px var(--primary-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 48px var(--primary-glow);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(109, 94, 243, 0.4);
}

.stats {
  display: flex;
  flex-wrap: nowrap;
  gap: 48px;
  padding-top: 8px;
}

.stat strong {
  display: block;
  font-size: 2.5rem;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section h2,
.page-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.more {
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.more:hover {
  color: var(--text);
}

.card {
  display: block;
  padding: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

a.card:hover {
  transform: translateY(-3px);
  border-color: rgba(109, 94, 243, 0.35);
}

.card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.card p,
.prose p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill.live {
  border-color: rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.card a {
  color: var(--secondary);
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

a.card {
  color: inherit;
}

a.card h3 {
  color: var(--text);
}

.experiment {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.experiment-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
  background: #1c2433;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.8125rem;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--text);
}

.page {
  padding: 64px 0 40px;
}

.page-hero {
  max-width: 720px;
  margin-bottom: 40px;
}

.page-hero p {
  color: var(--text-muted);
  margin-top: 14px;
  font-size: 1.05rem;
}

.breadcrumb {
  margin: 0 0 20px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text);
}

.experiment-hero {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 740px;
}

.experiment-hero .meta {
  margin-bottom: 10px;
}

.experiment-hero h1 {
  margin-bottom: 8px;
}

.experiment-hero .experiment-lead {
  margin-top: 0;
}

.experiment-icon-lg {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.prose {
  max-width: 740px;
}

.prose h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 32px 0 10px;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
}

.prose p + p {
  margin-top: 12px;
}

.prose ul {
  margin: 12px 0 0 18px;
  color: var(--text-muted);
}

.prose li + li {
  margin-top: 6px;
}

.about-stats {
  margin: 24px 0 8px;
  padding-top: 0;
}

.prose .cta-row {
  margin-top: 20px;
  margin-bottom: 0;
  animation: none;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form {
  display: grid;
  gap: 14px;
  max-width: 560px;
  position: relative;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(17, 24, 39, 0.8);
  color: var(--text);
  font: inherit;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.55);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form button {
  justify-self: start;
}

.form .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.contact-direct {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.contact-direct a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

.contact-direct a:hover {
  color: var(--text);
}

.experiment-lead {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 6px;
}

.note {
  margin-top: 16px;
  color: #6ee7b7;
  font-size: 0.9rem;
}

.note a {
  color: inherit;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    background: rgba(11, 15, 25, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .experiment-hero {
    flex-direction: column;
    gap: 16px;
  }

  .hero {
    padding-top: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero h1 .line,
  .lede,
  .cta-row,
  .card {
    animation: none !important;
    transition: none !important;
  }

  a.card:hover {
    transform: none;
  }
}
