/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: 96px 0 80px;
}

#infinity-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 42%;
  z-index: 0;
}

#infinity,
#infinity canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.hero__content {
  padding-left: 28px;
}

.hero__h1 {
  font-size: 60px;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero__p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 32px;
  line-height: 1.65;
}

/* Entry points */
.entry-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.entry-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--transition);
}

.entry-card:hover {
  background: #20204A;
}

[data-theme="light"] .entry-card:hover {
  background: #d0d0d0;
}

.entry-card__title {
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
}

.entry-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.entry-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.entry-card__link {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 12px;
  color: var(--accent-teal);
  margin-top: 8px;
  display: inline-block;
}

/* Services section */
.services-section {
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--transition);
}

.service-card:hover {
  background: #20204A;
}

[data-theme="light"] .service-card:hover {
  background: #d0d0d0;
}

.service-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-card__title {
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}

.service-card__arrow {
  width: 20px;
  height: 20px;
  color: var(--accent-teal);
  flex-shrink: 0;
}

.service-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* About section */
.about-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-section h2 {
  font-size: 42px;
  margin-bottom: 0;
}

.about-text p + p {
  margin-top: 16px;
}

.about-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Team section */
.team-section {
  padding: 80px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card__photo {
  width: 187px;
  height: 187px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  margin-bottom: 16px;
  overflow: hidden;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__name {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.team-card__linkedin {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12px;
  color: var(--accent-teal);
  transition: opacity var(--transition);
}

.team-card__linkedin:hover {
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__h1 {
    font-size: 52px;
  }

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

@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__h1 {
    font-size: 40px;
  }

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

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

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-section h2 {
    font-size: 30px;
  }
}
