:root {
  --bg: #070a0a;
  --bg-soft: #0d1212;
  --card: #101818;
  --card-2: #121d1d;
  --text: #f3f7f4;
  --muted: #9dafaa;
  --line: rgba(180, 255, 220, 0.14);
  --accent: #62f2a2;
  --accent-soft: rgba(98, 242, 162, 0.12);
  --cyan: #69d9ff;
  --yellow: #ffd166;
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(98, 242, 162, 0.12), transparent 34rem),
    radial-gradient(circle at top right, rgba(105, 217, 255, 0.10), transparent 32rem),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(18px);
}

.logo {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.25rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.25rem;
}

.hero {
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 3rem;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.055em;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  max-width: 780px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  margin-top: 0.7rem;
  max-width: 760px;
}

h3 {
  font-size: 1.35rem;
}

.hero-text {
  font-size: 1.2rem;
  max-width: 680px;
}

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

.button,
.signup-form button {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font-weight: 800;
  cursor: pointer;
}

.button.primary,
.signup-form button {
  background: var(--accent);
  color: #03100a;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.system-card,
.flow-card,
.project-highlight,
.track-card,
.lab-card,
.roadmap-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    var(--card);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.system-card {
  padding: 1.5rem;
}

.system-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.system-row span,
.flow-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-weight: 700;
}

.system-arrow,
.flow-arrow {
  text-align: center;
  color: var(--accent);
  font-size: 1.6rem;
  padding: 1rem 0;
}

.system-core,
.flow-core {
  border-radius: 18px;
  padding: 1.4rem;
  text-align: center;
  background: var(--accent-soft);
  border: 1px solid rgba(98, 242, 162, 0.32);
  font-weight: 900;
}

.system-core small {
  display: block;
  color: var(--muted);
  margin-top: 0.4rem;
  font-weight: 600;
}

.narrow {
  max-width: 850px;
}

.project-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
}

.track-grid,
.lab-grid,
.roadmap-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.track-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lab-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.roadmap-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.track-card,
.lab-card,
.roadmap-card {
  padding: 1.35rem;
}

.track-card p,
.lab-card p {
  font-size: 0.95rem;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}

.status.active {
  color: var(--accent);
  background: rgba(98, 242, 162, 0.09);
}

.status.testing {
  color: var(--yellow);
  background: rgba(255, 209, 102, 0.09);
}

.status.concept {
  color: var(--cyan);
  background: rgba(105, 217, 255, 0.09);
}

.status.notes {
  color: #ddd;
  background: rgba(255, 255, 255, 0.07);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.flow-card {
  padding: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.roadmap-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.9;
}

.join {
  text-align: center;
  max-width: 780px;
}

.signup-form {
  margin: 2rem auto 0;
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
}

.signup-form input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.9rem 1rem;
  outline: none;
}

.signup-form input:focus {
  border-color: rgba(98, 242, 162, 0.55);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer p {
  margin: 0.4rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

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

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .track-grid,
  .lab-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .project-highlight {
    flex-direction: column;
    align-items: flex-start;
  }

  .signup-form {
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }
}

.center-actions {
  justify-content: center;
}

/* LazyGroup hero refinement */
.hero {
  min-height: 72vh;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.8fr);
  gap: 4rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
}

.hero-copy {
  max-width: 720px;
}

h1 {
  font-size: clamp(3.4rem, 6.2vw, 5.9rem);
  line-height: 0.96;
  max-width: 760px;
}

.hero-text {
  font-size: 1.08rem;
  max-width: 640px;
}

.system-card {
  max-width: 560px;
  margin-left: auto;
  transform: translateY(1rem);
}

.system-row span {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.system-core {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    gap: 2rem;
  }

  h1 {
    font-size: clamp(3rem, 13vw, 4.8rem);
  }

  .system-card {
    margin-left: 0;
    transform: none;
  }
}

/* Final LazyGroup hero tuning */
h1 {
  font-size: clamp(3.2rem, 5.5vw, 5.35rem);
  line-height: 0.98;
  max-width: 720px;
}

.hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
}

/* Hero title final sizing */
h1 {
  font-size: clamp(3rem, 5vw, 4.85rem);
  line-height: 1.02;
  max-width: 680px;
}

/* Hero title smaller variant */
h1 {
  font-size: clamp(2.9rem, 4.7vw, 4.6rem);
  line-height: 1.03;
  max-width: 720px;
}

/* Final hero readability tuning */
h1 {
  font-size: clamp(2.9rem, 3.8vw, 4.25rem);
  line-height: 1.04;
  max-width: 780px;
  text-wrap: balance;
}

.hero {
  min-height: 66vh;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.78fr);
  gap: 4.5rem;
}

.hero-text {
  max-width: 680px;
}

.system-card {
  max-width: 540px;
}

/* Force cleaner two-line hero headline */
.hero h1 {
  max-width: 820px;
  font-size: clamp(3.4rem, 5.8vw, 5.7rem);
  line-height: 0.98;
}

@media (max-width: 900px) {
  .hero h1 {
    max-width: 100%;
    font-size: clamp(3rem, 12vw, 4.8rem);
  }
}

/* Shorter two-line LazyGroup headline */
.hero h1 {
  max-width: 760px;
  font-size: clamp(4rem, 6.4vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.hero-text {
  max-width: 660px;
}

/* Final forced two-line hero headline */
.hero h1 {
  max-width: 900px !important;
  font-size: clamp(3.8rem, 5.2vw, 5.15rem) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.065em !important;
}

.hero-line-nowrap {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: clamp(3rem, 11vw, 4.4rem) !important;
  }

  .hero-line-nowrap {
    white-space: normal;
  }
}
