/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 1rem 0;
  transition: background var(--transition-medium), padding var(--transition-medium), backdrop-filter var(--transition-medium);
}

.nav.scrolled {
  background: rgba(5, 7, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-weight: var(--fw-extrabold);
  font-size: 1.1rem;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-quantum);
  transition: width var(--transition-fast);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  padding: 0.625rem 1.25rem;
  font-size: 0.8rem;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: calc(var(--z-nav) + 1);
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.8);
  z-index: var(--z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 768px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--color-obsidian);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    gap: 1.5rem;
    z-index: var(--z-mobile-menu);
    transform: translateX(100%);
    transition: transform var(--transition-medium);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav__links.active {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 1.1rem;
    color: var(--color-white);
  }

  .nav__cta {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(159, 51, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(51, 85, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero__bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5L52 17.5v25L30 55 8 42.5v-25L30 5z' fill='none' stroke='%239F33FF' stroke-width='0.3' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  opacity: 0.4;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__title {
  font-size: var(--fs-hero);
  line-height: 1.08;
  margin-bottom: var(--gap-md);
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--color-slate);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: var(--gap-lg);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-slate);
  animation: bounce 2s ease infinite;
  opacity: 0.5;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 5rem;
    min-height: calc(100vh - 2rem);
  }

  .hero__content {
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .btn-group {
    justify-content: center;
  }

  .hero .segmented-line {
    justify-content: center;
  }
}

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.service-block {
  display: flex;
  gap: var(--gap-md);
  padding: var(--gap-md) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block__accent {
  width: 3px;
  flex-shrink: 0;
  background: var(--gradient-quantum);
  border-radius: 2px;
}

.service-block__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3);
  margin-bottom: 0.5rem;
}

.service-block__text {
  font-size: var(--fs-body-sm);
  color: var(--color-slate);
  line-height: 1.7;
  margin-bottom: var(--gap-sm);
}

.service-block .diamond-list {
  gap: 0.5rem;
}

.service-block .diamond-bullet {
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.7);
}

/* Hex Image placeholder */
.hex-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hex-image__inner {
  width: 300px;
  height: 300px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, rgba(159, 51, 255, 0.1), rgba(51, 85, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hex-image__inner::before {
  content: '';
  position: absolute;
  inset: 2px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--color-obsidian);
}

.hex-image__placeholder {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
}

@media (max-width: 1023px) {
  .services-visual {
    display: none;
  }
}

/* ============================================
   METHODOLOGY
   ============================================ */
.methodology-grid {
  gap: var(--gap-md);
}

.methodology-grid .phase {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.methodology-grid .phase:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* ============================================
   ABOUT / FOUNDERS
   ============================================ */
.founders-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .founders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.founder-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: var(--gap-lg);
  text-align: center;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.founder-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(159, 51, 255, 0.2);
}

.founder-card__photo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--gap-md);
}

.founder-card__photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.founder-card__photo-placeholder::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--gradient-quantum);
  z-index: 0;
}

.founder-card__photo-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-obsidian);
  z-index: 1;
}

.founder-card__photo-placeholder svg,
.founder-card__photo-placeholder img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.founder-card__photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.founder-card__name {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3);
  margin-bottom: 0.25rem;
}

.founder-card__role {
  display: block;
  font-size: var(--fs-body-sm);
  background: var(--gradient-quantum);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--fw-semibold);
  margin-bottom: var(--gap-sm);
}

.founder-card__bio {
  font-size: var(--fs-body-sm);
  color: var(--color-slate);
  line-height: 1.7;
  margin-bottom: var(--gap-md);
}

.founder-card__expertise {
  align-items: center;
}

.founder-card__expertise .diamond-bullet {
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.7);
  justify-content: center;
}

.about-stats {
  display: flex;
  gap: var(--gap-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-stat__number {
  font-family: var(--font-heading);
  font-weight: var(--fw-extrabold);
  font-size: 2rem;
}

.about-stat__label {
  font-size: var(--fs-body-sm);
  color: var(--color-slate);
}

/* ============================================
   FINAL CTA
   ============================================ */
.cta-final {
  position: relative;
  overflow: hidden;
}

.cta-final__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(159, 51, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-final__title {
  font-size: var(--fs-h1);
  margin-bottom: var(--gap-md);
}

.cta-final__subtitle {
  font-size: var(--fs-body);
  color: var(--color-slate);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-obsidian);
  color: var(--color-white);
  padding: var(--gap-xl) 0 var(--gap-md);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  margin-bottom: var(--gap-xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-tagline {
  font-size: var(--fs-body-sm);
  color: var(--color-slate);
  margin-top: 0.75rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body-sm);
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.footer-links__link {
  font-size: var(--fs-body-sm);
  color: var(--color-slate);
  transition: color var(--transition-fast);
}

.footer-links__link:hover {
  color: var(--color-violet);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-bottom {
  padding-top: var(--gap-md);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-overline);
  letter-spacing: 3px;
  color: var(--color-slate);
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  z-index: 900;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
}

/* ============================================
   TESTIMONIALS RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--gap-md);
    padding-bottom: var(--gap-sm);
    -webkit-overflow-scrolling: touch;
  }

  .testimonials-grid .testimonial {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
}
