:root {
  color-scheme: dark;
  --bg: #050a13;
  --bg-secondary: #0c1424;
  --panel: rgba(255, 255, 255, 0.04);
  --stroke: rgba(255, 255, 255, 0.05);
  --text: #f1f4f8;
  --muted: #b2bfd6;
  --accent: #4fd9d3;
  --accent-strong: #2774ff;
  --radius: 18px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  background: radial-gradient(circle at 25% 15%, rgba(39, 116, 255, 0.18), transparent 45%),
    radial-gradient(circle at 70% 0%, rgba(79, 217, 211, 0.15), transparent 40%), var(--bg);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  line-height: 1.6;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='140' height='140' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 119.5H120' stroke='rgba(255,255,255,0.03)'/%3E%3Cpath d='M0.5 0L0.5 120' stroke='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: relative;
  margin: 1.5rem auto 0;
  width: min(100% - 2rem, var(--max-width));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

.cta-link {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--text);
  text-decoration: none;
  transition: border 0.2s ease, color 0.2s ease;
}

.cta-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

main {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.hero {
  padding: 6rem 0 4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin: 0 0 1.5rem;
  line-height: 1.1;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.hero h1 span {
  color: var(--accent);
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #041020;
}

.btn.ghost {
  border-color: var(--stroke);
  color: var(--text);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero-metrics dt {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.hero-metrics dd {
  margin: 0;
  font-weight: 500;
}

.section {
  margin-top: 5rem;
}

.section-header {
  max-width: 720px;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-subtitle {
  color: var(--muted);
}

.text-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  color: var(--muted);
}

.cards {
  padding: 3rem 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(9, 16, 30, 0.8);
  box-shadow: 0 30px 50px rgba(2, 5, 12, 0.55);
}

.card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.card p {
  color: var(--muted);
}

.feature-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.feature-list li {
  padding-left: 1.25rem;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.pillars .pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.pillar-grid article {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed var(--accent);
  background: rgba(39, 116, 255, 0.08);
}

.research .timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.timeline article {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.025);
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.contact {
  display: flex;
  justify-content: center;
}

.contact-card {
  width: 100%;
  padding: 3rem;
  border-radius: calc(var(--radius) * 1.2);
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(39, 116, 255, 0.2), rgba(13, 143, 151, 0.2));
  box-shadow: 0 25px 60px rgba(3, 8, 18, 0.6);
}

.contact-card p {
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.site-footer {
  width: min(100% - 2rem, var(--max-width));
  margin: 4rem auto 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stroke);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 4rem;
  }

  .contact-card {
    padding: 2rem;
  }
}
