:root {
  --blue: #3b82f6;
  --blue-dark: #1e40af;
  --blue-deep: #1e3a8a;
  --text: #0f172a;
  --muted: #64748b;
  --green-live: #22c55e;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background: #f8fafc;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-x: hidden;
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
}
.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 200px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-item {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 999px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.nav-item:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
  border-color: rgba(59, 130, 246, 0.2);
}
.nav-item.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
}

.btn-nav-signup {
  text-decoration: none;
  background: var(--blue);
  color: white !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-left: 10px;
  transition: all 0.3s ease;
}

/* --- HAMBURGER & MOBILE MENU --- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  z-index: 2001;
  padding: 10px;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  z-index: 2000;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-overlay.active {
  right: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 80%;
}

.mobile-nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
  padding: 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.mobile-nav-links a:active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 40px;
  background: rgba(15, 23, 42, 0.05);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* --- BACKGROUND BLOBS --- */
.bg-glow-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.glow-blob {
  position: absolute;
  width: 700px;
  height: 700px;
  filter: blur(80px);
  opacity: 0;
  animation: organicGlow 25s infinite ease-in-out;
}
.blob-1 {
  top: -10%;
  left: -5%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.18) 0%,
    transparent 70%
  );
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}
.blob-2 {
  bottom: -10%;
  right: -5%;
  animation-delay: 8s;
  background: radial-gradient(
    circle,
    rgba(30, 58, 138, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
}
.blob-3 {
  top: 30%;
  left: 40%;
  animation-delay: 16s;
  width: 600px;
  height: 600px;
  border-radius: 67% 33% 47% 53% / 37% 20% 80% 63%;
}

@keyframes organicGlow {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0;
  }
  33% {
    opacity: 0.8;
    transform: translate(10vw, 5vh) scale(1.1) rotate(30deg);
  }
  66% {
    opacity: 0.5;
    transform: translate(-5vw, 15vh) scale(0.9) rotate(-15deg);
  }
}

/* --- H1 STYLE --- */
h1 {
  font-size: clamp(40px, 7vw, 60px);
  font-weight: 900;
  margin: 0 0 24px;
  letter-spacing: -0.05em;
  line-height: 1.05;
}
.sara-outline {
  color: #010101;
  font-weight: 900;
}
.AI {
  color: var(--blue);
  font-weight: 900;
}
h1 span {
  color: var(--blue);
  font-weight: 500;
}

.container {
  max-width: 800px;
  z-index: 30;
  animation: fadeIn 0.8s ease-out forwards;
  padding: 40px 20px;
  margin-top: -100px;
}

/* --- WORD CLOUD --- */
.word-cloud-layer {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 35vw;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.layer-outer {
  animation: floatOuter 28s infinite alternate ease-in-out;
}
.layer-inner {
  animation: floatInner 20s infinite alternate ease-in-out;
}
.cloud-item {
  position: absolute;
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.layer-outer .cloud-item {
  color: var(--muted);
}
.out-1 {
  top: 6%;
  left: 6vw;
  font-size: 30px;
  opacity: 0.05;
  transform: rotate(-5deg);
}
.out-2 {
  top: 26%;
  left: 2vw;
  font-size: 28px;
  opacity: 0.14;
}
.out-3 {
  top: 45%;
  left: 1vw;
  font-size: 40px;
  opacity: 0.08;
  transform: rotate(-2deg);
}
.out-4 {
  top: 74%;
  left: 3vw;
  font-size: 32px;
  opacity: 0.11;
}
.out-5 {
  top: 90%;
  left: 7vw;
  font-size: 20px;
  opacity: 0.06;
  transform: rotate(4deg);
}

.layer-inner .cloud-item {
  color: var(--blue-dark);
  opacity: 0.15;
}
.layer-inner .highlight {
  color: var(--blue);
  opacity: 0.22;
}
.in-1 {
  top: 14%;
  left: 18vw;
  font-size: 22px;
  transform: rotate(3deg);
}
.in-2 {
  top: 33%;
  left: 14vw;
  font-size: 38px;
}
.in-3 {
  top: 52%;
  left: 12vw;
  font-size: 54px;
  transform: rotate(2deg);
}
.in-4 {
  top: 70%;
  left: 15vw;
  font-size: 34px;
  transform: rotate(-4deg);
}

/* --- UI ELEMENTS --- */
.badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 10px;
  font-weight: 800;
  color: var(--blue-dark);
  background: rgba(59, 130, 246, 0.08);
  border-radius: 999px;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.subtitle {
  font-size: 22px;
  color: var(--text);
  margin: 0 0 20px;
  font-weight: 500;
  line-height: 1.6;
}
.tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0.8;
  margin-bottom: 64px;
}
.tagline-text {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 700;
}
.line {
  height: 1px;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--muted), transparent);
}

.actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
.btn {
  /* Set a fixed width so they are identical */
  width: 200px;
  height: 56px; /* Fixed height for consistency */
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box; /* Crucial: includes border in the width/height */
}
.btn-primary {
  background: var(--blue);
  color: white;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}
.btn-primary:hover {
  background: rgba(59, 130, 246, 0.8);
  transform: translateY(-2px);
}
.btn-demo {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-demo:hover {
  background-color: rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
}

.feature-tags-container {
  position: fixed;
  bottom: 40px;
  left: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 400px;
  z-index: 40;
}
.tag-btn {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
  backdrop-filter: blur(10px);
  cursor: default;
}

.vapi-demo-box {
  position: fixed;
  bottom: 100px;
  right: 40px;
  width: 300px;
  background: white;
  border-radius: 24px;
  padding: 24px;
  text-align: left;
  z-index: 99;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}
.vapi-demo-box h3 {
  color: #1e40af;
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-bullet {
  width: 8px;
  height: 8px;
  background-color: var(--green-live);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--green-live);
}
.code-badge {
  background: #3b82f6;
  color: white;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  display: inline-block;
}

@keyframes floatOuter {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-30px);
  }
}
@keyframes floatInner {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(20px);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- BUBBLE BOUNCE FIX --- */
.trigger-bounce {
  animation: bounce 0.8s cubic-bezier(0.36, 0, 0.66, -0.56) !important;
}

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

@media (max-width: 1200px) {
  .vapi-demo-box,
  .word-cloud-layer,
  .feature-tags-container,
  .nav-links {
    display: none;
  }
  .logo img {
    height: 150px;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* --- MOBILE BUTTON STACKING --- */
@media (max-width: 600px) {
  .actions {
    flex-direction: column; /* Stacks buttons vertically */
    gap: 16px;
  }

  .btn {
    width: 100%; /* Full width on mobile, but they will stay the same size as each other */
    max-width: 280px;
  }
  .container {
    margin-top: 20px; /* Give a little more breathing room on mobile */
  }

  h1 {
    font-size: 32px; /* Slight adjustment for very small screens */
  }
}
