/* ═══════════════════════════════════════════════════
   BLUEPULSE LABS — PREMIUM DESIGN SYSTEM
   ═══════════════════════════════════════════════════ */

/* ───── Custom Properties ───── */
:root {
  /* Colors */
  --navy: #0A1628;
  --navy-light: #1a2942;
  --cyan: #00D9FF;
  --blue: #0066FF;
  --bg-off: #FAFAFA;
  --bg-white: #FFFFFF;
  --text-dark: #0A1628;
  --text-mid: #505050;
  --text-light: #888888;

  /* Gradients */
  --hero-grad: linear-gradient(135deg, #0A1628 0%, #1a2942 100%);
  --accent-grad: linear-gradient(135deg, #00D9FF 0%, #0066FF 100%);

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* Sizing */
  --max-width: 1400px;
  --nav-height: 44px;

  /* Easing */
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ───── Reset + Base ───── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}

/* ───── Gradient text utility ───── */
.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.4s var(--ease-luxury), box-shadow 0.4s var(--ease-luxury);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.06);
}

/* Dark variant (when over hero/dark sections) */
.navbar.nav-dark {
  background: rgba(10, 22, 40, 0.5);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.navbar.nav-dark.scrolled {
  background: rgba(10, 22, 40, 0.85);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.2);
}

.navbar.nav-dark .nav-link,
.navbar.nav-dark .logo-text {
  color: rgba(255, 255, 255, 0.9);
}

.navbar.nav-dark .nav-toggle span {
  background: #fff;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
  width: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

/* Links */
.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  transition: opacity 0.3s;
  letter-spacing: 0.01em;
}

.nav-link:hover {
  opacity: 0.65;
}

/* CTA */
.nav-cta {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 100px;
  background: var(--accent-grad);
  color: #fff;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease-luxury), box-shadow 0.3s var(--ease-luxury);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 20px clamp(20px, 4vw, 80px) 28px;
  gap: 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.mobile-menu.open {
  display: flex;
}

.navbar.nav-dark .mobile-menu {
  background: rgba(10, 22, 40, 0.96);
}

.mobile-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 4px 0;
}

.navbar.nav-dark .mobile-link {
  color: rgba(255, 255, 255, 0.8);
}

.mobile-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--accent-grad);
  color: #fff;
  text-align: center;
  margin-top: 4px;
}


/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-grad);
  overflow: hidden;
  padding: 80px 20px 60px;
}

/* Floating orbs */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.4) 0%, transparent 70%);
  top: 10%;
  left: -10%;
  animation: floatOrb 20s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.3) 0%, transparent 70%);
  bottom: 5%;
  right: -5%;
  animation: floatOrb 25s ease-in-out infinite reverse;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.2) 0%, transparent 70%);
  top: 50%;
  left: 60%;
  animation: floatOrb 18s ease-in-out infinite 5s;
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -40px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* Hero content */
.hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero stagger animation */
.anim-hero {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.8s var(--ease-luxury) forwards;
  animation-delay: var(--delay);
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}


/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease-luxury), box-shadow 0.4s var(--ease-luxury), background 0.4s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #fff;
  color: var(--navy);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid rgba(10, 22, 40, 0.15);
}

.btn-secondary:hover {
  background: var(--bg-off);
  border-color: rgba(10, 22, 40, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}


/* ═══════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}


/* ═══════════════════════════════════════════════════
   PRODUCTS SECTION
   ═══════════════════════════════════════════════════ */
.products {
  background: var(--bg-off);
  padding: clamp(80px, 10vw, 140px) 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.product-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.6s var(--ease-luxury), box-shadow 0.6s var(--ease-luxury);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1);
}

.product-visual {
  height: 320px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s var(--ease-luxury);
}

.product-card:hover .product-visual {
  transform: scale(1.05);
}

.product-emoji {
  font-size: 120px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.1));
  transition: transform 0.6s var(--ease-luxury);
}

.product-card:hover .product-emoji {
  transform: scale(1.1);
}

.product-info {
  padding: 36px 32px 40px;
}

.product-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.product-desc {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s var(--ease-luxury);
}

.product-link:hover {
  gap: 12px;
}


/* ═══════════════════════════════════════════════════
   STATS SECTION
   ═══════════════════════════════════════════════════ */
.stats {
  background: var(--bg-white);
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 32px 16px;
  border-radius: 16px;
  transition: transform 0.4s var(--ease-luxury);
}

.stat-item:hover {
  transform: translateY(-8px);
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  display: block;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
}


/* ═══════════════════════════════════════════════════
   MISSION SECTION
   ═══════════════════════════════════════════════════ */
.mission {
  position: relative;
  background: var(--hero-grad);
  padding: clamp(100px, 12vw, 180px) 0;
  overflow: hidden;
}

.mission-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.mission-headline {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 72px);
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

.mission-headline strong {
  font-weight: 700;
}

.mission-body {
  max-width: 680px;
  margin: 0 auto 48px;
}

.mission-body p {
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 20px;
}

.mission-body p:last-child {
  margin-bottom: 0;
}

.mission-badge {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid rgba(0, 217, 255, 0.25);
  background: rgba(0, 217, 255, 0.06);
}

.mission-badge span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}


/* ═══════════════════════════════════════════════════
   TEAM SECTION
   ═══════════════════════════════════════════════════ */
.team {
  background: var(--bg-off);
  padding: clamp(80px, 10vw, 140px) 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.team-member {
  text-align: center;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--avatar-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: transform 0.5s var(--ease-luxury);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.avatar span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 44px;
  color: #fff;
  letter-spacing: 0.02em;
}

.team-member:hover .avatar {
  transform: scale(1.1) rotate(5deg);
}

.member-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.member-role {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 400;
}


/* ═══════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════ */
.cta-section {
  background: var(--bg-white);
  padding: clamp(80px, 10vw, 140px) 0;
}

.cta-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-headline {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background: var(--accent-grad);
  color: #fff;
}

.cta-buttons .btn-primary:hover {
  box-shadow: 0 8px 32px rgba(0, 102, 255, 0.25);
}


/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
  background: var(--navy);
  padding: 72px 0 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  padding: 5px 0;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--cyan);
}


/* ═══════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-luxury), transform 0.8s var(--ease-luxury);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in grids */
.products-grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.products-grid .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.products-grid .reveal:nth-child(4) {
  transition-delay: 0.3s;
}

.products-grid .reveal:nth-child(5) {
  transition-delay: 0.4s;
}

.products-grid .reveal:nth-child(6) {
  transition-delay: 0.5s;
}

.stats-grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.stats-grid .reveal:nth-child(3) {
  transition-delay: 0.15s;
}

.stats-grid .reveal:nth-child(4) {
  transition-delay: 0.2s;
}

.team-grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.team-grid .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.team-grid .reveal:nth-child(4) {
  transition-delay: 0.3s;
}


/* ═══════════════════════════════════════════════════
   PULSE ANIMATION (Logo)
   ═══════════════════════════════════════════════════ */
.pulse-line {
  animation: pulseDash 3s ease-in-out infinite;
}

@keyframes pulseDash {
  0% {
    stroke-dasharray: 0 200;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100 200;
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dasharray: 100 200;
    stroke-dashoffset: -200;
  }
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════ */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 32px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .navbar {
    height: auto;
  }

  .nav-inner {
    height: var(--nav-height);
  }

  .hero {
    padding: 100px 20px 80px;
    min-height: 100svh;
  }

  .products-grid,
  .stats-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .product-visual {
    height: 240px;
  }

  .product-emoji {
    font-size: 80px;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }

  .avatar span {
    font-size: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .hero-ctas,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .scroll-indicator {
    display: none;
  }
}

/* Large screens */
@media (min-width: 1400px) {
  .product-visual {
    height: 360px;
  }
}