:root {
  --bg: #07090d;
  --bg-elev: #0e131b;
  --ink: #e8eef7;
  --muted: #8b9bb0;
  --accent: #3de0c6;
  --accent-dim: rgba(61, 224, 198, 0.18);
  --wood: #c4a574;
  --line: rgba(232, 238, 247, 0.08);
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 55% at 70% 20%, rgba(61, 224, 198, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(196, 165, 116, 0.08), transparent 50%),
    linear-gradient(165deg, #05070a 0%, #0b1018 45%, #07090d 100%);
}

.grid-fade {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(232, 238, 247, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 238, 247, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 64px 64px; }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-authors {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(139, 155, 176, 0.9);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(62vw, 520px);
}

.topbar nav {
  display: flex;
  gap: 1.4rem;
}

.topbar a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.topbar a:hover {
  color: var(--accent);
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 5rem);
}

.hero-copy {
  animation: riseIn 0.9s ease both;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.85rem;
  line-height: 1.1;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  max-width: 16ch;
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 34ch;
  margin-bottom: 1.8rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cta.primary {
  background: var(--accent);
  color: #04110e;
}

.cta.primary:hover {
  transform: translateY(-2px);
  background: #6aebd6;
}

.cta.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}

.cta.ghost:hover {
  border-color: rgba(61, 224, 198, 0.45);
  color: var(--accent);
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  animation: riseIn 1.1s 0.15s ease both;
}

.pulse-ring {
  position: absolute;
  width: min(78%, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(61, 224, 198, 0.28);
  box-shadow: 0 0 60px rgba(61, 224, 198, 0.12);
  animation: pulseRing 3.6s ease-in-out infinite;
}

.pulse-ring.delay {
  width: min(92%, 520px);
  animation-delay: 1.2s;
  border-color: rgba(196, 165, 116, 0.2);
  box-shadow: 0 0 40px rgba(196, 165, 116, 0.08);
}

.rover-float {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  height: auto;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.65));
  animation: floatY 4.5s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes pulseRing {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

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

.demo-video {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.demo-inner {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.video-frame {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #05070a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.rover-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 640px);
  object-fit: cover;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(14, 19, 27, 0.65);
  backdrop-filter: blur(8px);
}

.band-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.block h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.block p {
  color: var(--muted);
  max-width: 42ch;
}

.sequence {
  max-width: 1120px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  margin-bottom: 0.7rem;
}

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

.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.flow li {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.step {
  display: block;
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.7rem;
}

.flow h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.flow p {
  color: var(--muted);
  font-size: 0.98rem;
}

.specs {
  max-width: 1120px;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.spec {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.spec-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.spec-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--wood);
}

.team {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.people {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 2rem;
  margin-bottom: 1.5rem;
}

.people li {
  font-size: 1.05rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.professors {
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-stage {
    order: -1;
    min-height: 300px;
  }

  .rover-float {
    width: min(100%, 420px);
  }

  .band-inner,
  .flow,
  .specs,
  .people {
    grid-template-columns: 1fr;
  }

  .topbar nav {
    gap: 0.9rem;
  }

  .brand-authors {
    white-space: normal;
    max-width: 100%;
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rover-float,
  .pulse-ring,
  .grid-fade,
  .hero-copy,
  .hero-stage {
    animation: none !important;
  }
}
