/* NexTA - Home (GSAP version, SaaS hero image with blob accents + networking dots) */

/* Tokens */
:root {
  --color-dark: #090e30;
  --accent-magenta: #af2cee;
  --accent-purple: #7b52ff;
  --accent-teal: #03bb7c;
  --accent-cyan: #02aff0;
  --muted: #515151;
  --light: #ededed;
  --site-max: 1240px;
  --radius-lg: 20px;

  /* About-specific */
  --about-padding-vertical: clamp(36px, 6vw, 96px);
  --about-gap: clamp(18px, 2.6vw, 60px);
  --about-blob-blur: 72px;
  --text-on-blob-overlay: rgba(255,255,255,0.9);
}

/* Base */
*,
:before,
:after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  color: var(--color-dark);
  -webkit-font-smoothing: antialiased;

}
.hp-container {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 20px 20px;
}

/* Top bar */
.top-bar {
  background: rgba(237, 237, 237, 0.45);
  font-size: 12px;
  color: var(--color-dark);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  gap: 12px;
}
.top-bar a {
  color: var(--color-dark);
  margin-left: 12px;
}
.top-bar a:focus {
  outline: 3px solid var(--accent-magenta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* HERO */
.hero-section {
  position: relative;
  background: linear-gradient(to left, #9b6bff 0%, #8159f7 50%, #6a4ee6 100%);
  color: #fff;
  padding: 4px 30px 0;
  min-height: 55vh;
  overflow: hidden;
}

/* depth overlays */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 40%, rgba(255,255,255,0.08), transparent 70%),
              radial-gradient(circle at 80% 30%, rgba(2,175,240,0.12), transparent 70%);
  z-index: 1;
  pointer-events: none;
}
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(2,175,240,0.25), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* 🌊 Hero Wave */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 120px;
  line-height: 0;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-wave svg path {
  fill: url(#waveGradient);
  filter: drop-shadow(0 -2px 6px rgba(123,82,255,0.35))
          drop-shadow(0 -6px 14px rgba(2,175,240,0.25));
  opacity: 0.9;
  animation: waveBreath 5s ease-in-out infinite;
  transition: opacity 0.6s ease;
}

/* 2nd path offset slightly for natural ripple */
.hero-wave svg path:nth-of-type(2) {
  animation-delay: 1.5s;
  opacity: 0.85;
}

@keyframes waveBreath {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.95;
  }
  25% {
    transform: translateY(2px);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-2px);
    opacity: 0.87;
  }
  75% {
    transform: translateY(1px);
    opacity: 0.9;
  }
}


.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 3;
}

/* HERO TEXT */
.hero-text {
  flex: 1;
  max-width: 620px;
  position: relative;
  z-index: 4;
}

.eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 0 6px rgba(175,44,238,0.4);
}

.hero-text h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  margin:8px 0 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow:
    0 2px 6px rgba(0,0,0,0.45),
    0 6px 16px rgba(0,0,0,0.35),
    0 10px 40px rgba(123,82,255,0.35),
    0 12px 50px rgba(2,175,240,0.3);
}

.hero-text .lead {
  font-size: 1.1rem;
  color: #ffffff;
  opacity: 0.95;
  line-height: 1.6;
  margin-bottom: 14px;
  text-shadow:
    0 2px 8px rgba(0,0,0,0.45),
    0 6px 20px rgba(2,175,240,0.25);
  max-width: 540px;
}

/* Networking Background */
.network-bg {
  position: absolute;
  top: 0;
  left: -10%;  /* shift the whole background left */
  width: 70%;  /* narrower so it doesn’t overhang */
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.45;
}

.network-bg circle {
  fill: #fff;
  r: 2;
  opacity: 0.85;
  filter: drop-shadow(0 0 3px rgba(255,255,255,0.9));
  animation: dotGlow 3s ease-in-out infinite alternate;
}

@keyframes dotGlow {
  from { opacity: 0.6; r: 2; }
  to   { opacity: 1; r: 3; }
}

/* Web lines (curves) */
.network-bg path {
  fill: none;
  stroke: rgba(255,255,255,0.55);
  stroke-width: 1.1;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  opacity: 0;
  animation: webLine 10s ease-in-out infinite;
}

/* Random delays for “alive” look */
.network-bg path:nth-of-type(1) { animation-delay: 0s; }
.network-bg path:nth-of-type(2) { animation-delay: 1.5s; }
.network-bg path:nth-of-type(3) { animation-delay: 3s; }
.network-bg path:nth-of-type(4) { animation-delay: 4.5s; }
.network-bg path:nth-of-type(5) { animation-delay: 6s; }
.network-bg path:nth-of-type(6) { animation-delay: 7.5s; }
.network-bg path:nth-of-type(7) { animation-delay: 9s; }
.network-bg path:nth-of-type(8) { animation-delay: 10.5s; }
.network-bg path:nth-of-type(9) { animation-delay: 12s; }

@keyframes webLine {
  0%   { stroke-dashoffset: 180; opacity: 0; }
  20%  { opacity: 0.7; }
  50%  { stroke-dashoffset: 0; opacity: 1; }
  80%  { opacity: 0.3; }
  100% { opacity: 0; stroke-dashoffset: -180; }
}
	
/* CTAs */
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}
/* Unified Premium Glass Buttons (Hero + Header + Media) */
/* Shared button base */
.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s, background-position 0.6s;
}

/* Solid gradient button */
.btn-primary {
  background: linear-gradient(90deg, #03bb7c, #6a4ee6, #af2cee);
  background-size: 200% auto;
  box-shadow: 0 12px 36px rgba(46, 30, 100, 0.25);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.4) 0%, transparent 80%);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-primary:hover::after { left: 125%; }
.btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 28px 60px rgba(46, 30, 100, 0.35);
}

/* Outline (secondary) button — same gradient but lighter */
.btn-outline {
  background: linear-gradient(135deg, #6a4ee6, #af2cee);
  background-size: 200% auto;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.btn-outline::after {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.3) 0%, transparent 80%);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-outline:hover::after { left: 125%; }
.btn-outline:hover {
  background-position: right center;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}


/* hero art */
.hero-art {
  width: 420px;
  flex: 0 0 420px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
margin-left: auto;       /* push all the way right */
  
}
.glass-card {
  position: relative;
  border-radius: 70% 30% 60% 40% / 50% 65% 35% 50%;
  background: linear-gradient(145deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 16px 40px rgba(0,0,0,0.28),
    inset 0 3px 10px rgba(255,255,255,0.18),
    inset 0 -4px 12px rgba(0,0,0,0.25);
  transition: transform 0.6s ease, border-radius 2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
   transform: translateX(12vw) translateY(-10px) scale(1.20);
  backdrop-filter: blur(10px);
}
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 55%);
  pointer-events: none;
}
.glass-card img { display: block; width: 100%; height: auto; }
.glass-card:hover {
   transform: translateX(12vw) translateY(-16px) scale(1.22);
  border-radius: 65% 35% 55% 45% / 60% 50% 40% 60%;
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.65;
  z-index: -1;
}

.hero-art::before {
  width: 200px; height: 200px;
  background: var(--accent-magenta);
  top: -40px; left: -60px;
}
.hero-art::after {
  width: 220px; height: 220px;
  background: var(--accent-cyan);
  bottom: -60px; right: -50px;
}

/* hero bg layers */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.hero-bg .arc {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 160px;
  opacity: 0.95;
}
.hero-bg .mesh {
  position: absolute;
  left: -15%;
  bottom: -10%;
  width: 70%;
  opacity: 0.18;
  filter: blur(6px);
}


/* CTA */
.cta-section {
  padding: 70px 20px;
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-purple), var(--accent-cyan));
  color: #fff;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cta-section .btn-primary { box-shadow: 0 20px 50px rgba(7, 10, 30, 0.16); }

/* Fix CTA visibility */
.cta-section h2,
.cta-section p,
.cta-section a {
  opacity: 1;
  transform: none;
}

/* Responsive Hero Section Fixes (kept unchanged) */
@media (max-width: 999px) {
  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    position: relative;
  }
  .hero-section {
    padding: 48px 20px 32px;
    background: linear-gradient(to top, rgba(9,14,48,0.55), rgba(129,89,247,0.75));
  }
  .hero-text {
    max-width: 92%;
    position: relative;
    z-index: 2;
  }
  .hero-text h1 {
    font-size: clamp(28px, 4.5vw, 40px);
    line-height: 1.2;
    text-shadow:
      0 0 2px rgba(0,0,0,0.8),
      0 2px 6px rgba(0,0,0,0.65),
      0 6px 18px rgba(0,0,0,0.45);
  }
  .hero-text .lead {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 18px;
    text-shadow:
      0 0 1px rgba(0,0,0,0.7),
      0 2px 6px rgba(0,0,0,0.55);
  }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
  }
  
}

@media (max-width: 767px) {
  .hero-section {
    padding: 36px 16px 24px;
    background: linear-gradient(to top, rgba(9,14,48,0.65), rgba(123,82,255,0.7));
  }
  .hero-text { max-width: 100%; }
  .hero-text h1 {
    font-size: clamp(24px, 6vw, 32px);
    text-shadow:
      0 0 2px rgba(0,0,0,0.85),
      0 2px 6px rgba(0,0,0,0.65),
      0 5px 16px rgba(0,0,0,0.45);
  }
  .hero-text .lead {
    font-size: 0.95rem;
    margin-bottom: 16px;
    text-shadow:
      0 0 1px rgba(0,0,0,0.7),
      0 2px 6px rgba(0,0,0,0.55);
  }
  .hero-ctas {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }
  .btn-primary,
  .btn-outline {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    text-align: center;
  }
  
}

/* Tablets & large phones */
@media (max-width: 999px) {
  .glass-card {
    aspect-ratio: 1 / 1;
    transform: translateY(-150px) scale(1.05);
  }
}

/* Phones */
@media (max-width: 767px) {
  .glass-card {
    transform: translateY(-140px) scale(1.02);
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-section {
    padding: 28px 12px 20px;
    background: linear-gradient(to top, rgba(9,14,48,0.75), rgba(107,78,230,0.7));
  }

  .glass-card {
    transform: translateY(-120px) scale(1.00);
  }

  .hero-text h1 {
    font-size: clamp(22px, 7vw, 28px);
    text-shadow:
      0 0 2px rgba(0,0,0,0.9),
      0 2px 6px rgba(0,0,0,0.7),
      0 5px 16px rgba(0,0,0,0.5);
  }
  .hero-text .lead {
    font-size: 0.9rem;
    line-height: 1.45;
    text-shadow:
      0 0 1px rgba(0,0,0,0.75),
      0 2px 6px rgba(0,0,0,0.55);
  }
  .btn-primary,
  .btn-outline {
    font-size: 0.95rem;
    padding: 12px;
  }
  
}

/* Lock hero art to original visual aspect & prevent flash square */
.glass-card {
  aspect-ratio: 520 / 420; /* original visual ratio */
}

/* Ensure the blob clipping is applied immediately */
.glass-card img {
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}
/* ==========================================================
   ⬆️ Raise hero art position on all mobile sizes
   ========================================================== */

/* FINAL MOBILE FIX — pin hero image up and stop drift */

@media (max-width: 999px) {
  .hero-inner { position: static !important; }

  .hero-art {
    position: absolute !important;
    left: 50% !important;
    top: -20px !important;  /* raise more here */
    transform: translateX(-50%) !important;
    width: 320px !important;
    opacity: 0.28 !important;
    pointer-events: none !important;
  }

  .glass-card {
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 767px) {
  .hero-art {
    top: -30px !important;
    width: 260px !important;
  }
}

@media (max-width: 480px) {
  .hero-art {
    top: -50px !important;
    width: 215px !important;
  }
}
/* === FINAL MOBILE PIN (wins against GSAP/earlier rules) === */
@media (max-width: 999px) {
  .hero-inner { position: static !important; }           /* anchor to .hero-section */
  .hero-section { position: relative !important; }

  /* Highest specificity + !important to beat anything */
  .hero-section .hero-art {
    position: absolute !important;
    left: 50% !important;
    top: -60px !important;                               /* ↑ move image higher here */
    transform: translateX(-50%) !important;              /* kill any translateY */
    width: 320px !important;
    opacity: 0.28 !important;
    pointer-events: none !important;
    margin: 0 !important;
  }

  /* Kill any mobile transforms/animations on the inner card */
  .hero-section .hero-art .glass-card {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

}

@media (max-width: 767px) {
  .hero-section .hero-art {
    top: -70px !important;                               /* tweak for phones */
    width: 260px !important;
  }
}

@media (max-width: 480px) {
  .hero-section .hero-art {
    top: -80px !important;                               /* even higher on small phones */
    width: 215px !important;
  }
}
/* === BULLETPROOF MOBILE PIN (beats GSAP/inline) === */
@media (max-width: 999px) {
  #home-hero { position: relative !important; }
  #home-hero .hero-inner { position: static !important; }

  #home-hero .hero-art {
    position: absolute !important;
    left: 50% !important;
    top: -80px !important;             /* raise here */
    transform: translate3d(-50%,0,0) !important;
    width: 280px !important;
    opacity: 0.26 !important;
    pointer-events: none !important;
    margin: 0 !important;
  }

  /* Nuke any GSAP/hover transforms on the art & its children */
  #home-hero .hero-art,
  #home-hero .hero-art * {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 767px) {
  #home-hero .hero-art { top: -90px !important; width: 250px !important; }
}

@media (max-width: 480px) {
  #home-hero .hero-art { top: -100px !important; width: 215px !important; }
}
