/*=============== HOME / HERO - space-landing inspired ===============*/

/* The global template adds a top body margin for fixed headers.
   On the home hero, that creates a white strip on shorter mobile screens. */
.home__page {
  margin: 0;
}

.home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding-top: var(--header-height);
  background: #0e0d16;
}

.home__bg,
.home__scrim {
  position: absolute;
  inset: 0;
}

.home__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: hero-ken 22s ease-in-out infinite alternate;
}

@keyframes hero-ken {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.home__scrim {
  background: linear-gradient(
    125deg,
    rgba(14, 13, 22, 0.88) 0%,
    rgba(14, 13, 22, 0.6) 45%,
    rgba(14, 13, 22, 0.25) 100%
  );
}

.home__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 4rem 1.5rem 7rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2.5rem;
}

/* Left text */
.home__data {
  animation: fade-up 0.95s cubic-bezier(0.2, 0.65, 0.25, 1) 0.1s both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home__data-title {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #fff;
  white-space: nowrap;
}

.home__data-title span {
  display: block;
}

.home__title-accent {
  background: linear-gradient(90deg, #a8a297, #767268, #a8a297);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #767268;
  filter: drop-shadow(0 4px 12px rgba(118, 114, 104, 0.5));
  animation: hero-shine 5s linear infinite;
}

@keyframes hero-shine {
  to { background-position: 220% center; }
}

.home__data-quote {
  max-width: 480px;
  margin-bottom: 2.25rem;
  padding-left: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  border-left: 3px solid #767268;
}

/* Two CTA buttons */
.home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.home__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 0.85rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.home__btn:hover {
  transform: translateY(-3px);
}

.home__btn--dark {
  background: #211F20;
  color: #fff;
  border: 1px solid rgba(118, 114, 104, 0.3);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.home__btn--accent {
  background: linear-gradient(135deg, #8a857b, #767268);
  color: #fff;
  box-shadow: 0 12px 32px rgba(118, 114, 104, 0.4);
}

.home__btn--accent i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: #fff;
  color: #767268;
  border-radius: 50%;
  font-size: 0.8rem;
}

/* Right visual */
.home__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 520px;
  animation: fade-up 0.95s cubic-bezier(0.2, 0.65, 0.25, 1) 0.25s both;
}

.home__person {
  position: relative;
  z-index: 1;
  max-height: 78vh;
  max-width: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 1.5rem;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(118, 114, 104, 0.15);
  mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

/* Decorative orbit rings */
.home__orbit {
  position: absolute;
  border: 1.5px solid rgba(118, 114, 104, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.home__orbit--1 {
  width: 140%;
  height: 90%;
  top: 0;
  left: -20%;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(-20deg);
}

.home__orbit--2 {
  width: 120%;
  height: 110%;
  top: -10%;
  left: -10%;
  border: 1.5px dashed rgba(118, 114, 104, 0.25);
}

/* Floating glass cards */
.home__card {
  position: absolute;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  color: #fff;
  z-index: 2;
}

.home__card i {
  font-size: 1.5rem;
  color: #a8a297;
}

.home__card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.1rem;
}

.home__card span {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.35rem;
}

.home__card--top {
  top: 8%;
  right: -0.5rem;
  animation: float 5s ease-in-out infinite;
}

.home__card--bottom {
  bottom: 22%;
  left: -1rem;
  animation: float 5s ease-in-out 1.2s infinite;
}

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

/* Mini charts */
.home__chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
}

.home__chart span {
  width: 6px;
  background: linear-gradient(180deg, #a8a297, #767268);
  border-radius: 3px;
  height: var(--p);
}

.home__chart--line span {
  animation: chart-grow 1.2s ease-out 0.5s both;
}

.home__chart--line span:nth-child(1) { --p: 70%; animation-delay: 0.1s; }
.home__chart--line span:nth-child(2) { --p: 50%; animation-delay: 0.2s; }
.home__chart--line span:nth-child(3) { --p: 85%; animation-delay: 0.3s; }
.home__chart--line span:nth-child(4) { --p: 60%; animation-delay: 0.4s; }
.home__chart--line span:nth-child(5) { --p: 95%; animation-delay: 0.5s; }

.home__chart--bar span:nth-child(1) { --p: 40%; animation-delay: 0.1s; }
.home__chart--bar span:nth-child(2) { --p: 75%; animation-delay: 0.2s; }
.home__chart--bar span:nth-child(3) { --p: 55%; animation-delay: 0.3s; }
.home__chart--bar span:nth-child(4) { --p: 90%; animation-delay: 0.4s; }

@keyframes chart-grow {
  from { height: 0; }
  to { height: var(--p); }
}

/* Curved bottom */
.home__curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 2;
  line-height: 0;
}

.home__curve svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Responsive */
@media (max-width: 767px) {
  .home__page .nav__menu {
    background-color: #fff;
  }

  .home__container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .home__data-quote {
    margin-inline: auto;
    text-align: left;
  }

  .home__actions {
    justify-content: center;
  }

  .home__visual {
    display: none;
  }

  .home__curve {
    height: 70px;
  }

  .home__page .nav__toggle,
  .home__page .nav__toggle i,
  .home__page .header:not(.scroll-header) .nav__toggle,
  .home__page .header:not(.scroll-header) .nav__toggle i {
    color: #fff;
  }

  .home__page .header.scroll-header .nav__toggle,
  .home__page .header.scroll-header .nav__toggle i {
    color: #000;
  }
}

@media (min-width: 1024px) {
  .home__container {
    padding-inline: 2rem;
  }
}
