:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --secondary: #6366f1;
  --text: #1f2937;
  --text-light: #6b7280;
  --background: #f3f4f6;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
}

section {
  scroll-margin-top: 4rem;
}

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--primary);
  transition: background-color 0.3s ease;
}

.nav-bar.transparent {
  background-color: rgba(0, 0, 0, 0);
}

.nav-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-logo {
  height: 1.8rem;
}

.nav-logo-img {
  height: 100%;
  width: auto;
}

.hamburger {
  display: inline-block;
  cursor: pointer;
  background-color: transparent;
  border: 0;
  margin: 0;
}

.hamburger-box {
  width: 2rem;
  height: 2rem;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 2rem;
  height: 3px;
  background-color: #fff;
  border-radius: 4px;
  position: absolute;
  transition: transform 0.15s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -10px;
}

.hamburger-inner::after {
  bottom: -10px;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--background);
  padding: 4rem 2rem;
  transition: right 0.3s ease;
  z-index: 90;
}

.close-menu {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  display: none;
  transition: opacity 0.2s ease;
}

.close-menu:hover {
  opacity: 0.7;
}

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

.menu-items {
  list-style: none;
  text-align: center;
}

.menu-items li {
  margin-bottom: 1.5rem;
}

.menu-items a {
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 1rem;
  display: block;
  transform: translateX(0);
  transition: all 0.2s ease;
}

.menu-items a:hover {
  transform: translateX(-5px);
  color: var(--primary);
}

.hamburger.active .hamburger-inner {
  transform: rotate(45deg);
}

.hamburger.active .hamburger-inner::before {
  top: 0;
  opacity: 0;
}

.hamburger.active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 80;
}

.menu-overlay.active {
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: var(--primary); */
  opacity: 1;
  transition: opacity 2s ease;
  will-change: opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  will-change: opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-video-container {
  opacity: 0;
  transition: opacity 2s ease;
}

.hero-video-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
  transition: background-color 0.5s ease;
}

.hero-content {
  position: relative;
  padding: 6rem 0;
  z-index: 1;
}

.hero.transparent::after {
  background: rgba(0, 0, 0, 0);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  height: 6rem;
  margin-bottom: 2rem;
  max-width: 100%;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  margin: 0 auto;
}

.email-form input {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.button {
  padding: 1rem 2rem;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.features {
  padding: 5rem 2rem;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 0.5rem;
  background: var(--background);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 3rem;
}

.pricing {
  padding: 5rem 2rem;
  background: var(--background);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s;
  position: relative;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  min-height: 600px;
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-header {
  margin-bottom: 2rem;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.pricing-features li i {
  flex-shrink: 0;
  width: 1rem;
}

.pricing-features i {
  color: var(--primary);
  margin-right: 0.5rem;
}

.pricing-button {
  width: 100%;
  background: var(--primary);
  color: white;
  margin-top: auto;
}

.pricing-button:hover:not([disabled]) {
  background: var(--primary-dark);
}

.pricing-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.coming-soon {
  opacity: 0.8;
}

.coming-soon-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
}

.cta {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.cta-text {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.cta .email-form {
  margin-top: 3rem;
}

.cta .button {
  background: white;
  color: var(--primary);
}

.cta .button:hover {
  background: var(--background);
}

.footer {
  background: var(--text);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: left;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--text-light);
  font-size: 1.5rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-light);
}

.spinner {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  border: 3px solid var(--secondary);
  border-radius: 50%;
  border-top-color: var(--text);
  animation: spin 1s ease-in-out infinite;
  vertical-align: middle;
  margin-left: 5px;
}

.button.loading .button-text {
  display: none;
}

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

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

.modal-content {
  background-color: var(--background);
  color: var(--text-light);
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-light);
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.modal-content p {
  margin-bottom: 0;
  line-height: 1.6;
}

.modal-content.success h3 {
  color: #4caf50;
}

.modal-content.error h3 {
  color: #f44336;
}

@media (max-width: 768px) {
  .close-menu {
    display: block;
  }

  h1 {
    font-size: 2.5rem;
  }

  .email-form {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 600px;
  }

  .email-form input {
    flex: 1 1 200px;
  }

  .email-form button {
    flex: 1 1 100%;
    margin-top: 0.5rem;
  }

  .button {
    width: 100%;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-header {
    margin-top: 1rem;
  }

  .footer-content {
    gap: 2rem;
  }

  .footer-section {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .hero {
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    align-items: center;
  }

  .hero-content {
    width: 100%;
    padding: 6rem 0;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .logo {
    height: 4rem;
  }
}
