.home-page {
  overflow: hidden;
}

.hero-section {
  min-height: min(760px, 100svh);
  display: grid;
  align-items: center;
  padding: 96px 0 88px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 253, 255, 0.88)),
    radial-gradient(circle at 50% 10%, rgba(43, 216, 195, 0.3), transparent 42%);
}

.hero-top-action {
  position: absolute;
  top: 28px;
  left: 50%;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-background-mark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("../assets/icons/sisapec-background-icon.png");
  background-repeat: no-repeat;
  background-position: center 54%;
  background-size: min(760px, 90vw);
  opacity: 0.16;
}

.neural-network {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

.neural-network svg {
  position: absolute;
  inset: -2% -4%;
  width: 108%;
  height: 104%;
}

.neural-network path {
  fill: none;
  stroke: url("#neural-gradient");
  stroke-width: 1.7;
  stroke-linecap: round;
  opacity: 0.42;
  stroke-dasharray: 9 18;
  animation: neuralFlow 16s linear infinite;
}

.neural-network path:nth-of-type(2) {
  animation-duration: 20s;
  animation-direction: reverse;
}

.neural-network path:nth-of-type(3) {
  animation-duration: 24s;
}

.neural-network path:nth-of-type(4) {
  animation-duration: 18s;
  animation-direction: reverse;
}

.neural-node {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #2bd8c3;
  box-shadow: 0 0 0 7px rgba(43, 216, 195, 0.12), 0 0 22px rgba(47, 151, 216, 0.38);
  animation: neuralPulse 4.8s ease-in-out infinite;
}

.node-a { left: 9%; top: 28%; }
.node-b { left: 20%; top: 66%; animation-delay: .4s; }
.node-c { left: 34%; top: 38%; animation-delay: .9s; }
.node-d { left: 47%; top: 70%; animation-delay: 1.3s; }
.node-e { left: 63%; top: 30%; animation-delay: 1.7s; }
.node-f { left: 72%; top: 58%; animation-delay: 2.1s; }
.node-g { left: 84%; top: 36%; animation-delay: 2.6s; }
.node-h { left: 92%; top: 70%; animation-delay: 3s; }

@keyframes neuralFlow {
  to {
    stroke-dashoffset: -180;
  }
}

@keyframes neuralPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.38);
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo {
  width: min(620px, 86vw);
  height: auto;
}

.hero-message {
  max-width: 900px;
  margin-top: 28px;
}

.hero-message h1 {
  color: var(--color-primary);
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.08;
  font-weight: 850;
}

.hero-message p {
  max-width: 800px;
  margin: 14px auto 0;
  color: #142333;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
  font-weight: 500;
}

.two-column {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: start;
}

.section-copy {
  display: grid;
  gap: 18px;
}

.about-layout {
  display: grid;
  gap: 22px;
}

.about-heading {
  max-width: 100%;
  text-align: center;
}

.about-layout .section-copy {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.info-card,
.developer-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}

.info-card {
  display: flex;
  min-height: 400px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 26px 18px;
  border: 1.5px solid var(--color-primary);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(47, 151, 216, 0.24);
}

.info-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  color: #20b8b6;
}

.info-icon svg {
  width: 46px;
  height: 46px;
}

.info-card h3 {
  color: #020817;
  font-size: clamp(30px, 2.9vw, 42px);
  line-height: 1.45;
  font-weight: 500;
}

.info-card p {
  margin-top: 12px;
  color: #020817;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.38;
}

.origin-section,
.developers-section {
  background: linear-gradient(180deg, rgba(241, 252, 254, 0.86), rgba(255, 255, 255, 0.74));
}

.origin-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.origin-card p {
  margin-top: 16px;
}

.origin-visual {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 34px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at center, rgba(43, 216, 195, 0.18), transparent 60%),
    linear-gradient(135deg, #ffffff, #effcff);
}

.origin-visual img {
  width: min(260px, 62vw);
  opacity: 0.9;
}

.origin-visual figcaption {
  max-width: 360px;
  color: var(--color-muted);
  font-size: 14px;
  text-align: center;
}

.video-frame {
  position: relative;
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #061c2b;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.video-frame video,
.video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
}

.developer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 38px;
}

.developer-card {
  padding: 22px;
}

.developer-card img {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 24%;
  border: 3px solid #e8fbff;
  box-shadow: 0 10px 24px rgba(47, 151, 216, 0.14);
}

.developer-card h3 {
  margin-top: 18px;
}

.developer-role {
  margin-top: 6px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 800;
}

.developer-card p:not(.developer-role) {
  margin-top: 12px;
  font-size: 14px;
}

.developer-card a {
  display: inline-flex;
  margin-top: 14px;
  color: #146da4;
  font-weight: 800;
  text-decoration: none;
}

.developer-card a:hover {
  text-decoration: underline;
}

.support-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(43, 216, 195, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(240, 252, 255, 0.9));
}

.support-card {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.support-card .section-heading p {
  max-width: 760px;
  margin: 14px auto 0;
  color: #142333;
}

.support-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.support-metric {
  min-height: 150px;
  padding: 24px;
  border: 1px solid #cdebf4;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(232, 251, 255, 0.92), rgba(255, 255, 255, 0.96));
  box-shadow: var(--shadow-card);
}

.support-metric strong {
  display: block;
  color: var(--color-primary);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  font-weight: 900;
}

.support-metric span {
  display: block;
  margin-top: 12px;
  color: #142333;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.funding-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  margin-top: 34px;
}

.funding-logos figure {
  display: grid;
  place-items: center;
  min-height: 100px;
  margin: 0;
  padding: 10px;
  background: transparent;
}

.funding-logos img {
  width: min(100%, 190px);
  max-height: 86px;
  object-fit: contain;
}

.carousel {
  position: relative;
  margin-top: 38px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: #071d2b;
  box-shadow: var(--shadow-soft);
}

.carousel-track {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.carousel-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 700ms ease, transform 700ms ease;
  background:
    radial-gradient(circle at 75% 20%, rgba(43, 216, 195, 0.12), transparent 34%),
    #071d2b;
}

.carousel-item.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.carousel-item img,
.carousel-item video {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center;
}

.frame-system img { object-position: center top; }
.frame-unifal-fair img { object-position: center 48%; }
.frame-system-use img { object-position: center center; }
.frame-system-use-vertical img { object-position: center 34%; }
.frame-uf-health img { object-position: center 44%; }
.frame-uf-front img { object-position: center 38%; }
.frame-hypergator img { object-position: center 40%; }
.frame-hypergator-video video { object-position: center 32%; }
.frame-pitch img { object-position: center 42%; }
.frame-cbcenf img { object-position: center 34%; }
.frame-sisapec-work {
  background: linear-gradient(135deg, rgba(7, 29, 43, 0.92), rgba(10, 111, 179, 0.72));
}

.frame-sisapec-work img {
  object-fit: cover;
  object-position: center top;
}

.carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 29, 43, 0.82), rgba(7, 29, 43, 0.24) 55%, rgba(7, 29, 43, 0.06)),
    linear-gradient(180deg, transparent 45%, rgba(7, 29, 43, 0.58));
}

.carousel-item-light::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.22) 45%, rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.72));
}

.carousel-caption {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 6vw, 70px);
  bottom: clamp(74px, 8vw, 92px);
  max-width: 560px;
  color: var(--color-white);
}

.carousel-caption h3 {
  color: var(--color-white);
  font-size: clamp(26px, 4vw, 46px);
}

.carousel-caption p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.carousel-item-light .carousel-caption h3 {
  color: #071d2b;
}

.carousel-item-light .carousel-caption p {
  color: #172f43;
  font-weight: 650;
}

.carousel-controls {
  position: absolute;
  z-index: 3;
  left: clamp(18px, 5vw, 60px);
  right: clamp(18px, 5vw, 60px);
  bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.carousel-button {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(45, 156, 219, 0.9);
  border-radius: 999px;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(7, 29, 43, 0.28), 0 0 0 6px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.carousel-button:hover {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  box-shadow: 0 18px 42px rgba(10, 111, 179, 0.34), 0 0 0 7px rgba(45, 156, 219, 0.16);
  transform: translateY(-2px) scale(1.04);
}

.carousel-button:focus-visible {
  outline: 3px solid var(--color-aqua);
  outline-offset: 4px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex: 1;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.carousel-dot.is-active {
  width: 28px;
  background: var(--color-secondary);
}

.content-section {
  background: rgba(255, 255, 255, 0.58);
}
