/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  background: #0d0d0d;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  /* Fallback for older browsers */
  color: #1e3a5f;
  /* Gradient: Sell = dark blue, x = cyan, ify = dark blue */
  background: linear-gradient(to right, #1e3a5f 0%, #1e3a5f 35%, #22d3ee 50%, #1e3a5f 65%, #1e3a5f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .logo-text {
    color: transparent;
  }
}

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

.nav-link {
  padding: 8px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.chevron {
  font-size: 0.6em;
  opacity: 0.7;
  margin-left: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.link-login {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.link-login:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: #fff;
  color: #0d0d0d;
}

.btn-primary:hover {
  background: #e6e6e6;
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.play-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  position: relative;
  flex-shrink: 0;
}

.play-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: 2px;
  transform: translate(-50%, -50%);
  border: 6px solid transparent;
  border-left-color: #fff;
  border-left-width: 10px;
  margin-left: 4px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

/* Video gulo ek-i jaigay overlap – ektar niche ekta na */
.hero-bg {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img,
.hero-bg .hero-slide,
.hero-bg .hero-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg .hero-slide,
.hero-bg .hero-video {
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  z-index: 0;
}

.hero-bg .hero-slide.active,
.hero-bg .hero-video.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0.75) 35%, rgba(13,13,13,0.4) 70%, rgba(13,13,13,0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 700px;
}

.hero-rotate-wrap {
  display: inline-block;
  min-width: 0.4em;
  vertical-align: top;
}

.hero-rotate-text {
  display: inline-block;
  transition: opacity 0.35s ease;
}

.hero-rotate-out .hero-rotate-text {
  opacity: 0;
}

.hero-rotate-in .hero-rotate-text {
  opacity: 1;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  margin: 0 0 12px;
  max-width: 480px;
  line-height: 1.4;
}

.hero-regions {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: rgba(255,255,255,0.75);
  margin: 0 0 28px;
  max-width: 480px;
  line-height: 1.4;
}

.hero-regions strong {
  color: rgba(255,255,255,0.95);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== Sections ===== */
.section {
  padding: 80px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
  margin: 0 0 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== What you can build - Marquee ===== */
.section-build {
  padding-top: 48px;
  padding-bottom: 48px;
}

.marquee-wrap {
  overflow: hidden;
  width: 100%;
  margin-top: 28px;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0 48px;
  padding: 8px 0;
  animation: marquee-scroll 45s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 12px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.marquee-item:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}

.marquee-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

/* Demo designs by category */
.section-demo-note {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  text-align: center;
  margin: -24px auto 40px;
  max-width: 520px;
}

.section-demo-note strong {
  color: rgba(255,255,255,0.95);
  font-weight: 600;
}

.demo-categories {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.demo-category {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.demo-category:last-child {
  border-bottom: none;
}

.demo-category-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 20px;
}

.demo-card {
  display: block;
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.demo-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}

@media (max-width: 640px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .section-demo-note {
    margin-bottom: 32px;
  }
}

/* Pricing */
.section-pricing {
  padding-top: 64px;
  padding-bottom: 80px;
}

.pricing-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  text-align: center;
  margin: 0 auto 48px;
  max-width: 560px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card--popular {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.06);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.pricing-price {
  margin: 0 0 20px;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
}

.pricing-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.pricing-period {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin-left: 2px;
}

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

.pricing-features li {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22d3ee;
  font-weight: 700;
}

.pricing-cta {
  display: block;
  text-align: center;
  margin-top: auto;
}

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

/* Features */
.feature-heading {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 12px;
  text-align: center;
}

.feature-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
  margin: 0 0 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

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

.feature-item {
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}

.feature-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.feature-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
  line-height: 1.5;
}

/* Stats */
.stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px 64px;
  margin: 32px 0 24px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat-unit {
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0.9;
}

.stat-label {
  display: block;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

.stat-note {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Steps */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

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

.step-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #95BF47;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: rgba(255,255,255,0.9);
}

.section-steps .btn {
  display: block;
  margin: 0 auto;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0d0d0d;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .steps-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-actions .link-login {
    display: none;
  }

  /* Hero = taller banner on mobile so video is well visible, top not cut */
  .hero {
    min-height: 0;
    height: 58vh;
    min-height: 340px;
    max-height: 520px;
    padding: 88px 16px 0;
    align-items: flex-end;
  }

  .hero-content {
    padding: 0 0 24px;
  }

  .hero-title {
    margin: 0 0 8px;
  }

  .hero-tagline {
    margin: 0 0 6px;
  }

  .hero-regions {
    margin: 0 0 0;
  }

  /* Hide buttons on mobile so video is clearly visible */
  .hero-ctas {
    display: none;
  }

  .section {
    padding: 56px 20px;
  }
}
