/* ============================================================
   GENSYS — HOME page styles
   Sections: Hero, Why Gensys, Featured Product, Clients Marquee
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--text-primary);
}

/* Background slider: 3 crossfading layers + Ken Burns */
.hero-layers {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroCrossfade 18s ease-in-out infinite;
  will-change: opacity, transform;
}

.hero-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  animation-delay: 6s;
}

.hero-slide:nth-child(3) {
  animation-delay: 12s;
}

.hero-layers::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0.4) 100%);
}

/* Bottom gradient fade: very thin, only at the edge, blends into WHY GENSYS */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(42px, 6vh, 72px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.28) 45%, rgba(255, 255, 255, 0) 100%);
}

@keyframes heroCrossfade {
  0% {
    opacity: 0;
    transform: scale(1) translate(0, 0);
  }

  4% {
    opacity: 1;
    transform: scale(1.02) translate(0, 0);
  }

  28% {
    opacity: 1;
    transform: scale(1.07) translate(1%, -1%);
  }

  35% {
    opacity: 0;
    transform: scale(1.1) translate(1.2%, -1.2%);
  }

  100% {
    opacity: 0;
    transform: scale(1.1) translate(1.2%, -1.2%);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-left: 10%;
  padding: 120px 0 90px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent-gold);
}

.hero h1 {
  color: var(--text-primary);
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.6);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.hero h1 span {
  color: var(--accent-gold);
}

.hero-sub {
  margin-top: 20px;
  max-width: 640px;
  font-size: clamp(0.875rem, 1.3vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 30px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.35s forwards;
}

.hero .btn-primary {
  background: var(--brand-blue);
  color: var(--text-primary);
  border: 2px solid var(--accent-gold);
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.hero .btn-primary:hover {
  background: #1a4468;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
  transform: translateY(-2px);
}

.hero .btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(34px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero-icons {
  margin-top: 40px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.5s forwards;
}

.hero-icons span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  animation: float 4s ease-in-out infinite;
}

.hero-icons span:nth-child(2) {
  animation-delay: 1.2s;
}

.hero-icons span:nth-child(3) {
  animation-delay: 2.4s;
}

.hero-icons svg {
  width: 22px;
  height: 22px;
  color: #9aa7b5;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.hero-icons span:nth-child(2) svg {
  color: var(--accent-gold);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Vertical dot indicators */
.hero-dots {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.hero-dots li {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: dotState 18s ease-in-out infinite;
}

.hero-dots li:nth-child(1) {
  animation-delay: 0s;
}

.hero-dots li:nth-child(2) {
  animation-delay: 6s;
}

.hero-dots li:nth-child(3) {
  animation-delay: 12s;
}

@keyframes dotState {
  0% {
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
  }

  4% {
    height: 24px;
    border-radius: 12px;
    background: var(--text-primary);
  }

  28% {
    height: 24px;
    border-radius: 12px;
    background: var(--text-primary);
  }

  35% {
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
  }

  100% {
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
  }
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  position: relative;
}

.hero-scroll .mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--accent-gold);
  transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}

/* ---------- WHY GENSYS (Quality x Price = Value) ---------- */
.values {
  background: var(--white);
  position: relative;
}

.value-equation {
  margin: 0 auto 56px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--dark);
}

.value-equation .eq-word,
.value-equation .eq-op,
.value-equation .eq-value {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px) rotateX(45deg);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--td, 0s), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--td, 0s);
}

.eq-w1 {
  --td: 0.05s;
}

.eq-w2 {
  --td: 0.2s;
}

.eq-w3 {
  --td: 0.35s;
}

.eq-w4 {
  --td: 0.5s;
}

.eq-w5 {
  --td: 0.65s;
}

.value-equation.revealed .eq-word,
.value-equation.revealed .eq-op,
.value-equation.revealed .eq-value {
  opacity: 1;
  transform: none;
}

.value-equation .eq-op {
  color: var(--brand-blue);
  margin: 0 14px;
}

.value-equation .eq-value {
  font-style: normal;
  color: var(--primary);
  position: relative;
}

.value-equation .eq-value::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent-cyan), var(--gold));
  background-size: 220% 100%;
  transform: scaleX(0);
  transform-origin: left;
}

.value-equation.revealed .eq-value::after {
  transform: scaleX(1);
  transition: transform 0.6s ease 0.9s;
  animation: eqShine 3.2s linear 0.9s infinite;
}

@keyframes eqShine {
  to {
    background-position: -220% 0;
  }
}

.value-equation.revealed>.eq-value {
  animation: eqFloat 5s ease-in-out 1s infinite;
}

@keyframes eqFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  perspective: 1200px;
}

.value-card {
  position: relative;
  background: var(--gray);
  border-radius: var(--radius);
  padding: 42px 30px;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  border-color: #1d5a8a;
  box-shadow: 0 0 0 1px #1d5a8a, var(--shadow);
}

.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 24px;
  background: var(--primary-soft);
  color: var(--brand-blue);
  display: grid;
  place-items: center;
}

.value-icon i {
  font-size: 30px;
}

.value-card:nth-child(2) .value-icon {
  background: var(--primary-soft);
  color: var(--brand-blue);
}

.value-card:nth-child(3) .value-icon {
  background: var(--primary-soft);
  color: var(--brand-blue);
}

.value-card h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.95rem;
}

/* ---------- FEATURED PRODUCT ---------- */
.featured {
  background: var(--gray);
  position: relative;
  overflow: hidden;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.featured-media {
  position: relative;
}

.featured-media .ph-img {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.featured-media .ph-img::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  opacity: 0.5;
}

.featured-media .ph-img .ph-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.featured-media .ph-img:has(.ph-video)::after {
  display: none;
}

.featured-badge {
  position: absolute;
  top: -22px;
  left: -14px;
  z-index: 2;
  background: var(--primary);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.featured-body h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.featured-body h2 span {
  color: var(--primary);
}

.featured-body p {
  margin-bottom: 20px;
}

.spec-dots {
  display: grid;
  gap: 12px;
  margin: 22px 0 30px;
}

.spec-dots li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--dark);
}

.spec-dots i {
  font-size: 20px;
  color: var(--primary);
  flex: none;
}

.featured-body h2,
.featured-body>p,
.featured-body .spec-dots li,
.featured-body .btn {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}

.featured-body h2 {
  --d: 0.05s;
}

.featured-body>p {
  --d: 0.2s;
}

.featured-body .spec-dots li:nth-child(1) {
  --d: 0.35s;
}

.featured-body .spec-dots li:nth-child(2) {
  --d: 0.48s;
}

.featured-body .spec-dots li:nth-child(3) {
  --d: 0.61s;
}

.featured-body .btn {
  --d: 0.75s;
}

.featured-body.revealed h2,
.featured-body.revealed>p,
.featured-body.revealed .spec-dots li,
.featured-body.revealed .btn {
  opacity: 1;
  transform: none;
}

/* Powered-by stripe below the product card */
.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
}

.powered-by-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.65;
  white-space: nowrap;
}

.powered-by-logo {
  height: 30px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.featured-body .btn-primary {
  border-color: var(--primary);
}

.featured-body .btn-primary:hover {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 0 0 1.5px #1d5a8a;
  transform: translateY(-2px);
}

/* ---------- CLIENTS MARQUEE ---------- */
.clients {
  background: var(--white);
  overflow: hidden;
}

.clients-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.clients-track:hover {
  animation-play-state: paused;
}

.clients-slide {
  display: flex;
  align-items: center;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 26px;
  min-width: 190px;
  padding: 22px 34px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--dark);
  opacity: 0.55;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--gray);
  transition: opacity var(--transition), color var(--transition), background var(--transition);
  white-space: nowrap;
}

.client-logo:hover {
  opacity: 1;
  color: var(--primary);
  background: var(--primary-soft);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------- CONTACT US ---------- */
.contact-sec {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray) 100%);
}

.contact-sec::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--accent-gold), var(--accent-cyan));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-form {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--brand-blue), var(--accent-gold), var(--accent-cyan));
}

.contact-form-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
}

.contact-form-title i {
  color: var(--brand-blue);
  font-size: 20px;
}

.contact-field {
  margin-bottom: 18px;
}

.contact-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark);
}

.contact-field label i {
  color: var(--brand-blue);
  font-size: 12px;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #9aa3af;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(32, 84, 131, 0.14);
  background: #fbfdff;
}

.contact-submit {
  width: 100%;
  margin-top: 6px;
  background: var(--brand-blue);
  color: var(--white);
  border: 2px solid var(--brand-blue);
  border-radius: 10px;
  padding: 15px 30px;
}

.contact-submit:hover {
  background: var(--white);
  color: var(--brand-blue);
  box-shadow: 0 0 0 1.5px #1d5a8a, var(--shadow-sm);
}

.contact-submit i {
  font-size: 15px;
}

.contact-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: #6b7684;
  text-align: center;
}

.contact-note i {
  color: var(--accent-gold);
}

.contact-note a {
  color: var(--brand-blue);
  font-weight: 700;
}

.contact-map-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact-map-card iframe {
  flex: 1;
  width: 100%;
  min-height: 430px;
  border: 0;
  display: block;
}

.contact-map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  border-top: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}

.contact-map-link i {
  font-size: 16px;
}

.contact-map-link:hover {
  background: var(--brand-blue);
  color: var(--white);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero {
    min-height: 92vh;
  }

  .hero-dots {
    right: 20px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .featured-badge {
    top: -16px;
    left: 8px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding-bottom: 100px;
  }

  .hero-slide:nth-child(1) {
    background-position: 88% center;
  }

  .hero-content {
    margin-left: 0;
    width: 100%;
    text-align: center;
    padding: 26px 20px;
    border-radius: 18px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.75));
  }

  .hero-eyebrow::after {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--accent-gold);
  }

  .hero h1 {
    font-size: clamp(1.4rem, 6.6vw, 1.85rem);
    overflow-wrap: break-word;
  }

  .hero-sub {
    font-size: 0.875rem;
    margin: 18px auto 0;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-icons {
    justify-content: center;
    gap: 16px;
  }

  .hero-scroll,
  .hero-dots {
    display: none;
  }

  .contact-form {
    padding: 32px 22px;
  }

  .contact-map-card iframe {
    min-height: 320px;
  }
}

@media (max-width: 600px) {
  .hero-icons {
    gap: 14px;
  }
}