:root {
  --black-text-color: #222;
  --primary-text-color: #292962;
  --single-brand-color: #6969ff;
  --single-brand-color-darker: #5757d6;
  --single-brand-color-lighter: #d9d9ff;
  --gradient1-start: #3c64cf;
  --gradient1-end: #802ddf;
  --background-gradient: linear-gradient(324deg, var(--gradient1-start), var(--gradient1-end));
  --gray-bg: #f9f9f9;
  --content-size: 1200px;
  --shadow-soft: 0 10px 25px rgba(30, 30, 60, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--black-text-color);
  background: #fff;
}

a {
  color: inherit;
}

.page {
  min-height: 100%;
}

.container {
  max-width: var(--content-size);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  width: 100%;
  border-bottom: 1px solid #eaeaea;
  background: #fff;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary-text-color);
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  margin-right: 10px;
  background: var(--background-gradient);
  box-shadow: 0 6px 14px rgba(90, 90, 255, 0.35);
}

.logo-text {
  font-size: 1.1rem;
}

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

.nav-auth {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-links a {
  text-decoration: none;
  padding: 6px 12px;
  font-weight: 600;
  color: transparent;
  background: var(--background-gradient);
  -webkit-background-clip: text;
}

.nav-links .ghost {
  color: var(--primary-text-color);
  background: none;
  -webkit-text-fill-color: initial;
}

.nav-links .pill {
  border-radius: 8px;
  background: var(--background-gradient);
  color: #fff;
  -webkit-text-fill-color: inherit;
}

.mobile-menu {
  display: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  padding: 6px 10px;
  border-radius: 6px;
}

.hero {
  margin: 100px 0 70px;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.hero-left {
  flex: 1 1 380px;
}

.hero-right {
  flex: 1 1 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 0;
}

.tilted-stack {
  position: relative;
  width: min(520px, 100%);
  height: 420px;
  z-index: 0;
}

.tilted-card {
  position: absolute;
  width: 220px;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: #0f0f1a;
  border: 6px solid #11101d;
  box-shadow: 0 22px 45px rgba(18, 18, 40, 0.35);
}

.tilted-card.left {
  left: 0;
  top: 40px;
  transform: rotate(-8deg);
  z-index: 1;
}

.tilted-card.center {
  left: 50%;
  top: 0;
  transform: translateX(-50%) rotate(2deg);
  width: 240px;
  z-index: 3;
}

.tilted-card.right {
  right: 0;
  top: 60px;
  transform: rotate(10deg);
  z-index: 2;
}

.tilted-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero h1 {
  font-size: 3rem;
  margin: 0 0 20px;
  font-weight: 800;
  background: var(--background-gradient);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #615590;
  margin-bottom: 30px;
}

.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.signup-form input {
  flex: 1 1 220px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #e1e1e1;
  font-size: 1rem;
}

.signup-form .btn {
  flex: 0 0 auto;
  width: min(360px, 100%);
}

.no-card {
  margin-top: 10px;
  opacity: 0.7;
}

.btn {
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 6px;
  padding: 14px 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn.outline {
  background: transparent;
  border: 2px solid var(--single-brand-color);
  color: var(--single-brand-color);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(50, 50, 93, 0.2);
}

.video-shell {
  border-radius: 10px;
  padding: 10px;
  background: var(--background-gradient);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.video-shell iframe {
  width: 100%;
  height: 360px;
  border-radius: 8px;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header .title {
  text-transform: uppercase;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--background-gradient);
  -webkit-background-clip: text;
  color: transparent;
}

.section-header .subtitle {
  text-transform: uppercase;
  font-weight: 600;
  color: var(--primary-text-color);
  opacity: 0.9;
}

.section-header.dark .title,
.section-header.dark .subtitle {
  color: #fff;
  background: none;
  -webkit-text-fill-color: inherit;
}

.video-examples {
  padding: 100px 0;
  background: var(--background-gradient);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.video-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.video-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 14px 25px rgba(15, 15, 40, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-frame {
  background: #2a2448;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
}

.video-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.9;
}

.views {
  font-size: 0.9rem;
}

.style {
  background: rgba(0, 0, 0, 0.1);
  padding: 4px 8px;
  border-radius: 10px;
  width: fit-content;
}

.how-it-works {
  padding: 80px 0 160px;
}

.how-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin: 80px 0;
}

.how-grid.reverse {
  flex-direction: row-reverse;
}

.how-card {
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
}

.how-image {
  width: min(100%, 520px);
  aspect-ratio: 1000 / 913;
  height: auto;
  border-radius: 16px;
  background: #e9ebff;
  border: 3px solid #6978ff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.how-image.alt {
  background: #f0ecff;
}

.how-image.cool {
  background: #e7f0ff;
}

.how-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.how-copy {
  flex: 1 1 320px;
  color: var(--primary-text-color);
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 2px solid var(--gradient1-end);
  background: var(--background-gradient);
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 700;
  font-size: 0.8rem;
}

.connector {
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, transparent, rgba(105, 105, 255, 0.4), transparent);
  margin: -10px 0 30px;
}

.connector.flip {
  background: linear-gradient(90deg, transparent, rgba(128, 45, 223, 0.4), transparent);
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-weight: 600;
}

.pricing {
  padding: 40px 0 120px;
}

.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 25px 0 40px;
}

.toggle-btn {
  border: none;
  background: #ededef;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.toggle-btn span {
  margin-left: 6px;
  font-size: 0.65rem;
  background: var(--background-gradient);
  color: #fff;
  border-radius: 999px;
  padding: 3px 8px;
}

.toggle-btn.active {
  background: #fff;
  border: 1px solid #e1e1e1;
  box-shadow: var(--shadow-soft);
}

.pricing-cards {
  display: flex;
  gap: 18px;
  background: var(--background-gradient);
  padding: 18px;
  border-radius: 12px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-note {
  margin-top: 16px;
  text-align: center;
  color: var(--primary-text-color);
  opacity: 0.75;
  font-size: 0.9rem;
}

.price-card {
  flex: 1 1 230px;
  background: #fff;
  border-radius: 12px;
  padding: 28px 26px;
  text-align: center;
  position: relative;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 30px rgba(18, 18, 40, 0.12);
  border: 1px solid rgba(16, 16, 40, 0.06);
}

.price-card .popular {
  background: var(--background-gradient);
  color: #fff;
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 18px;
}

.price-card .popular.placeholder {
  visibility: hidden;
}

.plan-name {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary-text-color);
  margin-bottom: 12px;
}

.price-row {
  margin-bottom: 20px;
}

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

.interval {
  color: var(--primary-text-color);
  opacity: 0.7;
}

.features {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--primary-text-color);
  margin-bottom: 16px;
  flex: 1;
}

.price-card .btn {
  align-self: center;
}

.features .strike {
  text-decoration: line-through;
  opacity: 0.4;
}

.price-card .paused {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--primary-text-color);
  opacity: 0.7;
}

.faq {
  padding: 40px 0 120px;
}

.faq-list details {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 12px 16px;
}

.faq-list summary {
  font-weight: 600;
  cursor: pointer;
}

.footer {
  background: var(--background-gradient);
  color: #fff;
  padding: 40px 0 60px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col {
  flex: 1 1 180px;
  min-width: 160px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-col p {
  line-height: 1.6;
}

.muted {
  opacity: 0.8;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 20px;
  z-index: 1000;
}

.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.modal-card h3 {
  margin-top: 0;
  color: var(--primary-text-color);
}

.modal-subtitle {
  margin: 0 0 18px;
  color: #5f5f80;
  font-size: 0.95rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font-weight: 600;
  color: var(--primary-text-color);
  font-size: 0.9rem;
}

.modal-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e1e1e1;
  font-size: 1rem;
}

.form-error {
  margin: 14px 0 0;
  min-height: 20px;
  color: #b42318;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.form-error.visible {
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-cta {
  margin-top: 16px;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

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

  .hero {
    margin-top: 60px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .tilted-stack {
    height: 360px;
  }

  .tilted-card {
    width: 200px;
  }

  .tilted-card.center {
    width: 220px;
  }

  .pricing-cards {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .hero-grid {
    flex-direction: column;
  }

  .signup-form {
    flex-direction: column;
  }

  .tilted-stack {
    height: 300px;
  }

  .tilted-card {
    width: 150px;
    border-width: 5px;
  }

  .tilted-card.left {
    top: 50px;
    transform: rotate(-6deg);
  }

  .tilted-card.center {
    width: 170px;
    transform: translateX(-50%) rotate(0deg);
  }

  .tilted-card.right {
    top: 50px;
    transform: rotate(6deg);
  }

  .section-header .title {
    font-size: 2.1rem;
  }
}
