.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--fg2);
  opacity: 0.6;
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: opacity 0.3s;
}

.scroll-indicator:hover {
  opacity: 1;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.hero-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--fg0);
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* typing animation styles */
.typed-text {
  display: inline;
  min-width: 1ch;
}

.cursor {
  display: inline-block;
  width: 0.6ch;
  height: 1.1em;
  background: var(--fg0);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

.cursor.typing {
  animation: none;
  opacity: 1;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.hero-subhead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--fg1);
  margin-bottom: 40px;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.logo-line {
  display: flex;
  height: 14px;
  margin-bottom: 18px;
  gap: 0;
}

.logo-s1 {
  background: #4a4a4a;
}
.logo-s2 {
  background: #7a7a7a;
}
.logo-s3 {
  background: #aaaaaa;
}
.logo-s4 {
  background: var(--fg0);
}

.cta-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-button {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  background: var(--info);
  color: var(--fg0);
  border: 1px solid var(--info);
  cursor: pointer;
  transition: all 0.2s;
}

.cta-button:hover {
  background: var(--info-hover);
  border-color: var(--info-hover);
}

.form-microcopy {
  font-size: 12px;
  color: var(--fg2);
  text-align: center;
  line-height: 1.5;
}

em {
  font-style: italic;
  color: var(--fg0);
  font-weight: 500;
}

.final-cta-headline {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--fg0);
  margin-bottom: 40px;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* supporting beat */
.supporting-beat p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--fg1);
  line-height: 2.2;
  margin: 0;
}

.supporting-beat em {
  font-weight: 600;
}

/* problem blocks */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--bg1);
  border: 1px solid var(--accent);
  padding: 32px;
  text-align: left;
}

.problem-number {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--fg0);
  margin: 0 0 12px 0;
}

.problem-card p {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: var(--fg1);
  line-height: 1.6;
  margin: 0;
}

/* step cards */
.step-card {
  text-align: center;
}

.step-icon {
  color: var(--fg2);
  margin-bottom: 16px;
}

.step-title {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--fg0);
  margin: 0 0 12px 0;
}

.step-description {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: var(--fg1);
  line-height: 1.6;
  margin: 0;
}

/* showcase graph section */
.showcase-subtitle {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: var(--fg2);
  text-align: center;
  line-height: 1.6;
  max-width: 600px;
  margin: -24px auto 32px;
}

.tree-graph-container {
  width: 100%;
  height: 80vh;
  min-height: 500px;
  background: var(--bg0);
  border: 1px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.graph-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--fg2);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-resolved {
  background: #6b9b7a;
}

.legend-in-progress {
  background: #5a8cc7;
}

.legend-not-examined {
  background: #8a8a8a;
}

.legend-deferred {
  background: #7a5a8b;
}

.legend-line {
  width: 20px;
  height: 0;
  border-top: 2px dashed;
  flex-shrink: 0;
}

.legend-cross-link {
  border-color: #c44040;
}

@media (max-width: 768px) {
  .tree-graph-container {
    height: 60vh;
    min-height: 350px;
  }
}

@media (max-width: 480px) {
  .tree-graph-container {
    height: 50vh;
    min-height: 280px;
  }

  .graph-legend {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .cta-button {
    font-size: 16px;
  }

  .scroll-indicator {
    bottom: 16px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .scroll-indicator {
    bottom: 12px;
  }
}
