/* ================================================
   CUREVA — COMPONENTS
   Navbar, Hero, Wave, Features, How It Works, Footer
   Organic Intelligence Design System
   ================================================ */

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  transition: background var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

/* Transparent background for landing page hero */
.navbar--blend {
  background: transparent;
}

.navbar--blend .logo,
.navbar--blend .nav-links a,
.navbar--blend .nav-actions a {
  color: #ffffff;
}

.navbar.scrolled {
  background: rgba(252, 251, 249, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  mix-blend-mode: normal;
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a,
.navbar.scrolled .nav-actions > a:not(.btn-primary) {
  color: var(--text-primary);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(61, 64, 212, 0.2));
}

.logo:hover {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 0;
  position: relative;
  transition: color var(--duration) var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 1px;
  background: currentColor;
  transition: left var(--duration) var(--ease),
              right var(--duration) var(--ease);
}

.nav-links a:hover::after {
  left: 0;
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-actions > a:not(.btn-primary):not(.nav-cta) {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  transition: color var(--duration) var(--ease);
}

.nav-actions > a:not(.btn-primary):not(.nav-cta):hover {
  color: var(--primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px 14px 36px; /* Wide pill shape matching hero buttons, offset letter-spacing */
  background: var(--primary);
  color: #ffffff !important;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  font-weight: 600;
  transition: all var(--duration) var(--ease);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-indigo-glow);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: statusPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-indigo-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-ghost);
}

/* Hero pulse CTA */
.btn-hero-pulse {
  animation: btnPulse 3s var(--ease) infinite;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px 60px;
  background: var(--bg-dark);
  overflow: hidden;
}

/* Drifting blur mesh gradient */
.hero-mesh {
  position: absolute;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
}

.hero-mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: meshDrift 30s linear infinite;
}

.hero-mesh-orb:nth-child(1) {
  width: 600px;
  height: 600px;
  background: rgba(67, 56, 202, 0.25);
  top: 20%;
  left: 30%;
}

.hero-mesh-orb:nth-child(2) {
  width: 500px;
  height: 500px;
  background: rgba(124, 58, 237, 0.20);
  top: 40%;
  right: 20%;
  animation-delay: -10s;
  animation-direction: reverse;
}

.hero-mesh-orb:nth-child(3) {
  width: 400px;
  height: 400px;
  background: rgba(99, 102, 241, 0.15);
  bottom: 20%;
  left: 20%;
  animation-delay: -20s;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: statusPulse 2s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 9vw, 7.5rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
}

.hero > .hero-content > p {
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.55);
  max-width: 520px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
}

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

.hero-actions .btn-primary {
  background: #ffffff;
  color: var(--text-primary);
  padding: 16px 36px;
  font-size: 11px;
}

.hero-actions .btn-primary:hover {
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(67, 56, 202, 0.25);
  transform: scale(1.05) translateY(-3px);
}

.hero-actions .btn-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 16px 36px;
  font-size: 11px;
}

.hero-actions .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

/* ==================== WAVE CONTAINER ==================== */
.wave-container {
  display: none;
}

.wave-cta {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

/* ==================== STATS ROW ==================== */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 80px 0;
}

.stat-item {
  text-align: center;
}

.stat-item h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.stat-item p {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
}

/* ==================== FEATURES ==================== */
.features {
  padding: 32px 0 100px;
  background: var(--bg-body);
}

.features .section-label {
  text-align: center;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 16px;
}

.features h2 {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-weight: 700;
}

.features > .container > p {
  text-align: center;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 60px;
  font-size: 16px;
  line-height: 1.7;
  font-family: var(--font-sans);
}

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

.feature-card {
  background: var(--bg-surface);
  border-radius: 1rem;
  padding: 36px;
  border: 1px solid var(--border-light);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.feature-card:hover {
  transform: scale(1.02) translateY(-16px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card .icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-weight: 700;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  font-family: var(--font-sans);
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.how-it-works .section-label {
  text-align: center;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 16px;
}

.how-it-works h2 {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 60px;
  font-weight: 700;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  text-align: center;
  padding: 24px;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.step-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.step-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  font-family: var(--font-sans);
}

/* ==================== FOOTER ==================== */
.site-footer {
  position: relative;
  padding: 100px 0 40px;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.5);
  border-radius: 5rem 5rem 0 0;
  overflow: hidden;
}

/* Subtle radial indigo glow */
.site-footer::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(67, 56, 202, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.footer-quote {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.footer-quote h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.footer-brand .logo {
  color: #ffffff;
  margin-bottom: 14px;
  font-style: italic;
}

.footer-brand .logo .logo-icon {
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.5)) brightness(1.3);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
  font-family: var(--font-sans);
}

.footer-col h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--duration) var(--ease);
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .hero h1 {
    font-size: clamp(2.5rem, 10vw, 6rem);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stats-row {
    gap: 40px;
    flex-wrap: wrap;
  }

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

@media (max-width: 600px) {
  .navbar-inner {
    height: 64px;
  }

  .navbar {
    height: 64px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 100px 16px 0;
    min-height: 90vh;
  }

  .hero h1 {
    font-size: clamp(2rem, 14vw, 4rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .stats-row {
    flex-direction: column;
    gap: 24px;
  }

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

  .site-footer {
    border-radius: 3rem 3rem 0 0;
  }

  .footer-quote h2 {
    font-size: 1.75rem;
  }
}
