@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700&display=swap");

:root {
  --bg-primary: #020617; /* Deep midnight blue */
  --bg-secondary: #0f172a;
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --primary-blue: #4b8df8; /* TeamSpawn App Primary Blue */
  --primary-blue-hover: #3a75d3;
  --accent-primary: #4b8df8;
  --accent-primary-hover: #6ea5fa;
  --accent-pink: #f472b6;
  --accent-orange: #fbbf24;
  --accent-blue-soft: rgba(75, 141, 248, 0.12);
  --border-color: rgba(255, 255, 255, 0.1);
  --font-main: "Inter", sans-serif;
  --font-heading: "Outfit", sans-serif;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --glass-bg: rgba(15, 23, 42, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: transparent;
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

.bg-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(
      circle at 10% 20%,
      rgba(75, 141, 248, 0.12) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(75, 141, 248, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(244, 114, 182, 0.02) 0%,
      transparent 50%
    ),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    40px 40px,
    40px 40px;
  background-attachment: fixed;
  z-index: -3;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://www.transparenttextures.com/patterns/p6.png");
  opacity: 0.1;
  pointer-events: none;
  z-index: -2; /* Sit behind the globe but above the gradient */
}

/* Animated Background Blobs */
.blob-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(61, 148, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(80px);
  animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
  top: -100px;
  left: -100px;
}
.blob-2 {
  bottom: -200px;
  right: -100px;
  animation-duration: 25s;
  animation-delay: -5s;
}
.blob-3 {
  top: 40%;
  left: 60%;
  background: radial-gradient(
    circle,
    rgba(0, 115, 234, 0.05) 0%,
    transparent 70%
  );
  animation-duration: 30s;
}

#three-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Navigation */
nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 6rem);
  max-width: 1200px;
  padding: 0.6rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  user-select: none;
  cursor: default;
}

.nav-logo {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--primary-blue);
}

.nav-links a.btn,
.nav-links .btn-primary {
  color: #ffffff;
}

.nav-links .btn-primary:hover {
  color: #ffffff;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 75px);
  min-height: calc(100dvh - 75px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 130px 2rem 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  pointer-events: none; /* Let clicks pass through to the 3D globe */
  user-select: none; /* Prevent accidental text selection */
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5.2vw, 4.75rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

.accent-text {
  color: var(--primary-blue);
  position: relative;
  display: inline-block;
}

.accent-text::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--accent-primary);
  z-index: -1;
  opacity: 0.4;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero .hero-description {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: #f8fafc;
  font-weight: 500;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  line-height: 1.55;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(2, 6, 23, 0.95);
  opacity: 1;
  display: block;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-btn {
  padding: 1.25rem 3.5rem;
  font-size: 1.1rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  z-index: 15;
  pointer-events: auto;
  cursor: pointer;
  padding: 0.45rem 1.1rem 0.45rem 0.65rem;
  border-radius: 100px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 16px rgba(75, 141, 248, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}

.scroll-indicator:hover {
  transform: translateX(-50%) translateY(3px);
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(75, 141, 248, 0.45);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 24px rgba(75, 141, 248, 0.25);
}

.scroll-indicator:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 3px;
}

.scroll-indicator-text {
  font-family: var(--font-main);
  font-size: 0.86rem;
  font-weight: 500;
  color: #cbd5e1;
  letter-spacing: 0.015em;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
}

.scroll-indicator:hover .scroll-indicator-text {
  color: #ffffff;
}

.scroll-arrow {
  color: var(--primary-blue);
  font-weight: 700;
  transition: transform 0.25s ease, color 0.2s ease;
  display: inline-block;
}

.scroll-indicator:hover .scroll-arrow {
  transform: translateY(2px);
  color: #60a5fa;
}

.mouse {
  width: 20px;
  height: 32px;
  border: 2px solid #ffffff;
  border-radius: 11px;
  position: relative;
  background: rgba(15, 23, 42, 0.4);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  flex-shrink: 0;
}

.mouse::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: #ffffff;
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

/* Buttons */
.btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto; /* Re-enable clicks for buttons */
}

.btn:disabled,
.btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none !important;
  box-shadow: none !important;
  transform: none !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #64748b !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: #fff;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(75, 141, 248, 0.25);
}

.btn-secondary {
  background-color: #ffffff;
  color: #090d16;
  font-weight: 600;
  border: 1px solid #ffffff;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
  color: #020617;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

/* Board Mockup */
.status-done {
  background: var(--accent-green);
}
.status-working {
  background: var(--accent-orange);
}
.status-stuck {
  background: var(--accent-pink);
}

/* Product Showcase */
.product-showcase {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 2rem;
  perspective: 2000px;
}

.image-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.product-image {
  width: 90%;
  height: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 50px 100px -20px rgba(0, 0, 0, 0.15),
    0 30px 60px -30px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: block;
  transform: rotateX(15deg) rotateY(-20deg) rotateZ(5deg);
  transform-style: preserve-3d;
  animation: float-3d 8s ease-in-out infinite;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-image:hover {
  transform: rotateX(10deg) rotateY(-10deg) rotateZ(2deg) scale(1.02);
}

@keyframes float-3d {
  0% {
    transform: translateY(0px) rotateX(15deg) rotateY(-20deg) rotateZ(5deg);
  }
  50% {
    transform: translateY(-30px) rotateX(18deg) rotateY(-15deg) rotateZ(6deg);
  }
  100% {
    transform: translateY(0px) rotateX(15deg) rotateY(-20deg) rotateZ(5deg);
  }
}

.product-showcase:nth-child(even) .product-image {
  transform: rotateX(15deg) rotateY(20deg) rotateZ(-5deg);
  animation-name: float-3d-reverse;
}

@keyframes float-3d-reverse {
  0% {
    transform: translateY(0px) rotateX(15deg) rotateY(20deg) rotateZ(-5deg);
  }
  50% {
    transform: translateY(-30px) rotateX(18deg) rotateY(15deg) rotateZ(-6deg);
  }
  100% {
    transform: translateY(0px) rotateX(15deg) rotateY(20deg) rotateZ(-5deg);
  }
}

/* Features */

.features {
  padding: 6rem 4rem;
  background: var(--bg-primary);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  padding: 2.5rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--border-color);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 2rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Pricing Section */
.pricing {
  padding: 3rem 2rem 5rem;
  position: relative;
  z-index: 10;
  max-width: 1360px;
  margin: 0 auto;
}

.pricing-container-box {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(75, 141, 248, 0.45);
  border-radius: 32px;
  padding: 3.5rem 3.5rem 4rem;
  box-shadow:
    0 -10px 40px rgba(75, 141, 248, 0.12),
    0 30px 70px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(75, 141, 248, 0.06);
  position: relative;
}

.pricing-container-box .section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.pricing-container-box .section-head h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.pricing-container-box .section-head p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.15rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.pricing-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: var(--text-main);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(75, 141, 248, 0.4);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(75, 141, 248, 0.15);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 2px solid var(--primary-blue);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 35px rgba(75, 141, 248, 0.2);
  transform: scale(1.04);
  z-index: 2;
}

.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-8px);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.5),
    0 0 45px rgba(75, 141, 248, 0.3);
}

.pricing-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.pricing-card h3 {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--text-main);
  margin-bottom: 10px;
}

.price {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  min-height: 4.2rem;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 5px;
}

.pricing-card p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.55;
  min-height: 48px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.check-icon {
  color: var(--primary-blue);
  font-weight: bold;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-currency-note {
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 1.5rem;
  letter-spacing: 0.01em;
}

/* Footer */
footer {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.95) 0%, #01040f 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 10;
  padding: 3rem 2rem 1.75rem;
  color: var(--text-secondary);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
  gap: 2.25rem;
  align-items: start;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  user-select: none;
  cursor: default;
}

.footer-logo {
  height: 36px;
  width: auto;
  display: block;
}

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

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--primary-blue);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.footer-copyright {
  color: #64748b;
}

.footer-security-note {
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.footer-gdpr-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 500;
}

.footer-gdpr-icon {
  width: 48px;
  height: 48px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  nav {
    width: calc(100% - 3rem);
    padding: 0.55rem 1.25rem;
  }
  .hero {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Side Panel */
.side-panel {
  position: fixed;
  top: 120px;
  left: -420px;
  width: 370px;
  height: auto;
  max-height: calc(100vh - 150px);
  background: rgba(10, 15, 30, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: none;
  border-radius: 0 20px 20px 0;
  padding: 28px 24px;
  box-sizing: border-box;
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  overflow-y: auto;
  color: var(--text-main);
  box-shadow:
    12px 0 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-panel.open {
  left: 0;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  transform: rotate(90deg);
}

/* Profile Header Section */
.panel-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.avatar-container {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.panel-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.avatar-container:hover .panel-avatar {
  transform: scale(1.05);
}

.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #0a0f1e;
  background-color: #4b8df8;
  box-shadow: 0 0 8px rgba(75, 141, 248, 0.6);
}

/* Dynamic dot states */
.status-dot.active,
.status-dot.working,
.status-dot.sleeping,
.status-dot.vacation {
  background-color: #4b8df8;
  box-shadow: 0 0 10px #4b8df8;
}

.header-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}

.panel-role {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-blue);
  letter-spacing: 0.5px;
}

.panel-location {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Status Badge */
.panel-status-badge-container {
  display: flex;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Badge specific themes */
.status-badge.badge-active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}
.status-badge.badge-working {
  background: rgba(75, 141, 248, 0.15);
  border-color: rgba(75, 141, 248, 0.25);
  color: #7db0fb;
}
.status-badge.badge-sleeping {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}
.status-badge.badge-vacation {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.25);
  color: #f472b6;
}

/* Meta Grid */
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 14px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 0.85rem;
  font-weight: 500;
  color: #f1f5f9;
}

/* Activity section titles */
.section-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

/* Work Screenshot container */
.panel-work-container {
  display: flex;
  flex-direction: column;
}

.screenshot-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.panel-image {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.screenshot-container:hover .panel-image {
  transform: scale(1.03);
}

/* Description Area */
.panel-desc-container {
  display: flex;
  flex-direction: column;
}

.panel-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px;
}

/* Action Buttons */
.panel-actions {
  display: flex;
  margin-top: auto; /* Push to bottom of the card */
  padding-top: 15px;
}

.btn-action-primary {
  background: var(--accent-primary);
  color: #fff;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(75, 141, 248, 0.25);
  text-align: center;
  width: 100%;
}

.btn-action-primary:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(75, 141, 248, 0.35);
}

/* ==========================================================================
   HIGH-CONVERSION LANDING PAGE ENHANCEMENTS
   ========================================================================== */

/* Trust Bar Marquee */
.trust-bar {
  padding: 3rem 2rem;
  background: rgba(2, 6, 23, 0.4);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  z-index: 10;
}

.trust-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.marquee-container {
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
}

.marquee-content {
  display: flex;
  gap: 6rem;
  animation: marquee-scroll 35s linear infinite;
  width: max-content;
}

.trust-logo {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  opacity: 0.65;
  transition: all 0.3s ease;
}

.trust-logo:hover {
  color: var(--primary-blue);
  opacity: 1;
  transform: scale(1.05);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   WHY #1, WHY #2, WHY #3 SCREENSHOT CARDS & SHOWCASE
   ========================================================================== */

.why-videos-section,
.why-section {
  padding: 0 2rem 4rem;
  position: relative;
  z-index: 10;
  max-width: 1360px;
  margin: 0 auto;
}

.why-container-box {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(75, 141, 248, 0.45);
  border-radius: 32px;
  padding: 3rem 3.5rem 3.5rem;
  box-shadow:
    0 -10px 40px rgba(75, 141, 248, 0.12),
    0 30px 70px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(75, 141, 248, 0.06);
  position: relative;
}

.why-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
  margin: 3.5rem 0 1rem;
}

.why-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  margin-top: 2.6rem;
  overflow: hidden;
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(75, 141, 248, 0.4);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(75, 141, 248, 0.15);
}

.why-watermark {
  position: absolute;
  top: -38px;
  left: 20px;
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(75, 141, 248, 0.08);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(75, 141, 248, 0.35) 0%,
    transparent 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-card:hover .why-watermark {
  transform: translateY(-4px);
  background: linear-gradient(
    to bottom,
    rgba(75, 141, 248, 0.55) 0%,
    transparent 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.why-video-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020617;
  border-top-left-radius: 19px;
  border-top-right-radius: 19px;
}

.why-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition:
    transform 0.6s ease,
    filter 0.3s ease;
  display: block;
}

.why-card:hover .why-thumbnail {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.why-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.25) 0%,
    rgba(2, 6, 23, 0.75) 100%
  );
  pointer-events: none;
}

.why-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.why-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(75, 141, 248, 0.9);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(75, 141, 248, 0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 2;
}

.why-card:hover .why-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--primary-blue-hover);
  box-shadow: 0 0 35px rgba(75, 141, 248, 0.9);
}

.why-card-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1.1rem;
  position: relative;
}

.why-title,
.why-summary {
  position: relative;
  z-index: 2;
}

.why-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.why-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Video Lightbox Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.25rem;
}

.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.video-modal-container {
  position: relative;
  z-index: 2;
  width: min(96vw, 1600px);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(75, 141, 248, 0.22);
  transform: scale(0.95);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal.active .video-modal-container {
  transform: scale(1);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.85);
  flex-shrink: 0;
}

.video-modal-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.video-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.video-modal-close:hover {
  background: #ef4444;
  transform: scale(1.08);
}

.video-modal-wrapper {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  aspect-ratio: 16 / 9;
  max-height: calc(94vh - 65px);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-wrapper iframe,
.video-modal-wrapper video {
  width: 100%;
  height: 100%;
  max-height: calc(94vh - 65px);
  object-fit: contain;
  border: 0;
  display: block;
}

/* How It Works Steps Layout */
.how-it-works {
  padding: 8rem 4rem;
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.step-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: rgba(75, 141, 248, 0.2);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 24px rgba(75, 141, 248, 0.05);
}

.step-number {
  position: absolute;
  top: -32px;
  left: 28px;
  font-family: var(--font-heading);
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(75, 141, 248, 0.08);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(75, 141, 248, 0.15) 0%,
    transparent 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 600;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Testimonials Grid Layout */
.testimonials-section {
  padding: 8rem 4rem;
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 4rem;
}

.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
  transform: scale(1.02);
  border-color: rgba(75, 141, 248, 0.15);
}

.testimonial-content {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #f1f5f9;
  font-weight: 400;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.author-details h5 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  color: #fff;
  margin-bottom: 2px;
  font-weight: 600;
}

.author-details p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* FAQ Collapsible Accordion */
.faq-section {
  padding: 8rem 4rem;
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 4rem;
}

.faq-item {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.5);
}

.faq-item.open {
  border-color: rgba(75, 141, 248, 0.25);
  background: rgba(15, 23, 42, 0.6);
}

.faq-trigger {
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary-blue);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: #f472b6;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.3s ease;
  padding: 0 2rem;
}

.faq-item.open .faq-content {
  max-height: 300px;
  padding-bottom: 2rem;
}

.faq-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Final bottom CTA card */
.final-cta {
  padding: 8rem 4rem;
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
}

.final-cta-card {
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(75, 141, 248, 0.12) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(75, 141, 248, 0.08) 0%,
      transparent 45%
    ),
    rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 6rem 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.final-cta-card h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 700px;
}

.final-cta-card p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Interactive Demo Bridge Section */
.demo-bridge {
  padding: 2rem 2rem 5rem;
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-bridge-card {
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(75, 141, 248, 0.18) 0%,
      transparent 65%
    ),
    rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(75, 141, 248, 0.28);
  border-radius: 28px;
  padding: 4.5rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(75, 141, 248, 0.1);
  position: relative;
  overflow: hidden;
}

.demo-bridge-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.95rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4ade80;
}

.demo-bridge-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.demo-bridge-card h2 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 650px;
  line-height: 1.25;
}

.demo-bridge-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.6;
}

.demo-bridge-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.demo-bridge-btn {
  font-size: 1.05rem;
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(75, 141, 248, 0.35);
  transition: all 0.25s ease;
}

.demo-bridge-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(75, 141, 248, 0.45);
}

.demo-bridge-note {
  font-size: 0.85rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .why-container-box {
    padding: 3.5rem 2rem 2.5rem;
    border-radius: 24px;
  }
  .steps-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .final-cta-card {
    padding: 4rem 2rem;
  }
  .final-cta-card h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  #three-container {
    pointer-events: none; /* Allow natural page scrolling on mobile/touch screens */
  }

  nav {
    top: 0.65rem;
    width: calc(100% - 1.5rem);
    padding: 0.45rem 0.85rem;
    border-radius: 50px;
  }

  .nav-brand {
    flex-shrink: 0;
  }

  .nav-logo {
    height: 28px;
  }

  .nav-links {
    gap: 0.85rem;
  }

  .nav-links a:not(.btn) {
    font-size: 0.85rem;
  }

  .nav-links a.btn,
  .nav-links .btn-primary {
    padding: 0.42rem 0.85rem;
    font-size: 0.82rem;
    border-radius: 50px;
    white-space: nowrap;
  }

  .hero {
    padding-top: 100px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .scroll-indicator {
    bottom: 1.5rem;
    padding: 0.38rem 0.9rem 0.38rem 0.55rem;
    gap: 0.6rem;
  }
  .scroll-indicator-text {
    font-size: 0.8rem;
  }
  .mouse {
    width: 18px;
    height: 28px;
    border-radius: 9px;
  }
  .mouse::before {
    top: 4px;
    width: 2.5px;
    height: 6px;
  }

  .why-container-box {
    padding: 2.5rem 1.25rem 2rem;
    border-radius: 20px;
  }
  .why-cards-grid {
    grid-template-columns: 1fr;
  }
  .video-modal {
    padding: 0.5rem;
  }
  .video-modal-container {
    width: 100%;
    border-radius: 14px;
  }
  .demo-bridge {
    padding: 2rem 1.25rem 3.5rem;
  }
  .demo-bridge-card {
    padding: 3rem 1.5rem;
    border-radius: 20px;
  }
  .demo-bridge-card h2 {
    font-size: 1.85rem;
  }
  .demo-bridge-desc {
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  nav {
    top: 0.5rem;
    width: calc(100% - 1rem);
    padding: 0.4rem 0.65rem;
  }

  .nav-logo {
    height: 24px;
  }

  .nav-links {
    gap: 0.6rem;
  }

  .nav-links a:not(.btn) {
    font-size: 0.8rem;
  }

  .nav-links a.btn,
  .nav-links .btn-primary {
    padding: 0.38rem 0.72rem;
    font-size: 0.78rem;
  }

  .hero-content h1 {
    font-size: 1.95rem;
  }

  .scroll-indicator {
    bottom: 1rem;
    padding: 0.32rem 0.75rem 0.32rem 0.5rem;
    gap: 0.5rem;
  }
  .scroll-indicator-text {
    font-size: 0.74rem;
  }
  .mouse {
    width: 16px;
    height: 26px;
    border-radius: 8px;
  }
}

/* ==========================================================================
   Legal Lightbox Modal (Privacy Policy & Terms of Service)
   ========================================================================== */
.legal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 1.5rem;
  box-sizing: border-box;
}

.legal-modal.active {
  opacity: 1;
  visibility: visible;
}

.legal-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.legal-modal-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #0d1527;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(75, 141, 248, 0.12);
  border-radius: 20px;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal.active .legal-modal-container {
  transform: translateY(0) scale(1);
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  gap: 1rem;
}

.legal-header-info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.legal-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(75, 141, 248, 0.15);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(75, 141, 248, 0.25);
  flex-shrink: 0;
}

.legal-modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  line-height: 1.2;
}

.legal-modal-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0.2rem 0 0;
}

.legal-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}


.legal-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 1.5rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding-bottom: 2px;
}

.legal-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: scale(1.05);
}

.legal-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 2.25rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(75, 141, 248, 0.4) rgba(15, 23, 42, 0.5);
}

.legal-modal-body::-webkit-scrollbar {
  width: 6px;
}

.legal-modal-body::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

.legal-modal-body::-webkit-scrollbar-thumb {
  background: rgba(75, 141, 248, 0.4);
  border-radius: 3px;
}

.legal-view-content {
  display: none;
  animation: legalFadeIn 0.2s ease forwards;
}

.legal-view-content.active {
  display: block;
}

@keyframes legalFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-article {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-sec h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #f1f5f9;
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal-sec h3 {
  font-size: 0.98rem;
  color: #93c5fd;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

.legal-sec p {
  margin-bottom: 0.75rem;
  color: #cbd5e1;
}

.legal-sec strong {
  color: #f8fafc;
}

.legal-sec ul {
  list-style: disc;
  margin: 0.5rem 0 0.75rem 1.4rem;
  padding: 0;
}

.legal-sec li {
  margin-bottom: 0.4rem;
  color: #cbd5e1;
}

.legal-article hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0.5rem 0;
}

.legal-mail-link {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.legal-mail-link:hover {
  color: #93c5fd;
}

@media (max-width: 640px) {
  .legal-modal {
    padding: 0.5rem;
  }
  .legal-modal-container {
    max-height: 94vh;
    border-radius: 14px;
  }
  .legal-modal-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }
  .legal-header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .legal-modal-body {
    padding: 1.25rem 1.25rem;
  }
}

@keyframes legalSpin {
  to {
    transform: rotate(360deg);
  }
}



/* ==========================================================================
   Subscribe & Workspace Onboarding Modal
   ========================================================================== */
.subscribe-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  padding: 1.25rem;
  box-sizing: border-box;
}

.subscribe-modal.active {
  opacity: 1;
  visibility: visible;
}

.subscribe-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.subscribe-modal-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #0d1527;
  border: 1px solid rgba(75, 141, 248, 0.25);
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(75, 141, 248, 0.15);
  border-radius: 24px;
  overflow: hidden;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.subscribe-modal.active .subscribe-modal-container {
  transform: translateY(0) scale(1);
}

.subscribe-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.subscribe-header-info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.subscribe-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(75, 141, 248, 0.12);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(75, 141, 248, 0.3);
  flex-shrink: 0;
}

.subscribe-plan-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #60a5fa;
  background: rgba(75, 141, 248, 0.15);
  border: 1px solid rgba(75, 141, 248, 0.3);
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 0.25rem;
}

.subscribe-modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  line-height: 1.2;
}

.subscribe-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 1.6rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding-bottom: 2px;
}

.subscribe-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: scale(1.05);
}

.subscribe-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.75rem 2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(75, 141, 248, 0.4) rgba(15, 23, 42, 0.5);
}

.sub-plan-summary {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(75, 141, 248, 0.2);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sub-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.85rem;
}

.sub-summary-col {
  display: flex;
  flex-direction: column;
}

.sub-summary-right {
  align-items: flex-end;
}

.sub-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.sub-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-top: 0.15rem;
}

.sub-total-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #60a5fa;
}

.sub-seats-adjuster {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.sub-seats-info {
  display: flex;
  flex-direction: column;
}

.sub-seats-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}

.sub-seats-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.1rem;
}

.sub-stepper {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(75, 141, 248, 0.25);
  border-radius: 10px;
  overflow: hidden;
}

.sub-step-btn {
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 1.2rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.sub-step-btn:hover:not(:disabled) {
  background: rgba(75, 141, 248, 0.2);
  color: #ffffff;
}

.sub-step-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.sub-step-input {
  width: 50px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  outline: none;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.sub-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sub-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sub-field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.sub-input {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #f8fafc;
  font-size: 0.9rem;
  font-family: var(--font-main);
  outline: none;
  transition: all 0.2s ease;
}

.sub-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(75, 141, 248, 0.2);
  background: rgba(2, 6, 23, 0.9);
}

.sub-subdomain-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-domain-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4ade80;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}


.sub-domain-status.checking {
  color: #94a3b8;
}

.sub-domain-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(148, 163, 184, 0.4);
  border-top-color: #4b8df8;
  border-radius: 50%;
  animation: subSpin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes subSpin {
  to { transform: rotate(360deg); }
}

.creem-logo-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.sub-trust-item:hover .creem-logo-icon {
  transform: scale(1.15);
}

.sub-domain-status.invalid {
  color: #f87171;
}

.sub-subdomain-wrapper {
  display: flex;
  align-items: center;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.sub-subdomain-wrapper:focus-within {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(75, 141, 248, 0.2);
}

.sub-domain-prefix,
.sub-domain-suffix {
  padding: 0.75rem 0.85rem;
  background: rgba(15, 23, 42, 0.6);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 500;
  user-select: none;
  white-space: nowrap;
}

.sub-subdomain-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 0.5rem;
  border-radius: 0;
  font-weight: 600;
  color: #60a5fa;
}

.sub-subdomain-input:focus {
  box-shadow: none;
  border: none;
}

.sub-help-text {
  font-size: 0.72rem;
  color: #64748b;
}

.sub-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.sub-password-input {
  width: 100%;
  padding-right: 2.75rem;
}

.sub-pw-toggle {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.sub-pw-toggle:hover {
  color: #f1f5f9;
}

.sub-trust-box {
  background: rgba(75, 141, 248, 0.05);
  border: 1px solid rgba(75, 141, 248, 0.15);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.sub-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.sub-trust-item span {
  line-height: 1.3;
}

.sub-submit-btn {
  background: linear-gradient(135deg, #4b8df8 0%, #3a75d3 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(75, 141, 248, 0.4);
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.sub-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(75, 141, 248, 0.6);
  background: linear-gradient(135deg, #60a5fa 0%, #4b8df8 100%);
}

.required-asterisk {
  color: #ef4444;
  margin-left: 3px;
  font-weight: 700;
}

.sub-submit-btn:disabled,
.sub-submit-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none !important;
  box-shadow: none !important;
  transform: none !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
}

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

.sub-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: legalSpin 0.8s linear infinite;
}

.sub-modal-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sub-modal-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.sub-modal-success h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0;
}

@media (max-width: 640px) {
  .sub-form-row {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .subscribe-modal {
    padding: 0.5rem;
  }
  .subscribe-modal-container {
    max-height: 95vh;
  }
  .subscribe-modal-header {
    padding: 1rem 1.25rem;
  }
  .subscribe-modal-body {
    padding: 1rem 1.25rem 1.5rem;
  }
  .sub-summary-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
