html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
}

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100%, 1200px);
  padding-inline: 1rem;
}

.top-bar {
  padding: 0.75rem 1rem !important;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0.75rem !important;
}

.top-bar-text {
  flex-wrap: wrap;
}

.top-bar-right {
  position: static !important;
  right: auto !important;
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem !important;
}

nav {
  padding: 0.9rem 1rem !important;
}

.nav-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #1a1a2e;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links,
.nav-right {
  display: none !important;
}

nav.nav-open .nav-links,
nav.nav-open .nav-right {
  display: flex !important;
}

.nav-links {
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.nav-links > li + li {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 0;
}

.nav-right {
  grid-column: 1 / -1;
  width: 100%;
  flex-direction: column;
  align-items: stretch !important;
  gap: 0.75rem !important;
}

.nav-btn-outline,
.nav-cta {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.mega-backdrop {
  display: none !important;
}

.mega-menu {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  margin-top: 0.65rem;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.has-mega:not(.open) > .mega-menu,
.mega-menu:not(.active) {
  display: none !important;
}

.has-mega.open > .mega-menu,
.mega-menu.active {
  display: block !important;
}

.mega-menu.active {
  grid-template-columns: 1fr !important;
  animation: none !important;
}

.mega-sidebar {
  display: flex !important;
  flex-direction: column;
  border-right: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.75rem 0 !important;
}

.mega-content {
  grid-template-columns: 1fr !important;
  padding: 1rem !important;
}

.mega-promo {
  border-left: none !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1rem !important;
}

.hero,
.tool-hero,
.problem,
.capabilities,
.ai-photo,
.features,
.pricing,
.authority,
.success-story,
.partners,
.features-section,
.how-section,
.cta-section,
.other-tools {
  padding: 3.5rem 0 !important;
}

.hero {
  min-height: 31rem;
  padding-inline: 1rem !important;
  padding-block: 3rem 2.5rem !important;
  background-size: auto 112% !important;
  background-position: 86% top !important;
  isolation: isolate;
}

.hero::before {
  display: block !important;
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 10, 29, 0.98) 0%,
    rgba(7, 10, 29, 0.94) 42%,
    rgba(7, 10, 29, 0.76) 63%,
    rgba(7, 10, 29, 0.38) 82%,
    rgba(7, 10, 29, 0.14) 100%
  );
  z-index: 1;
}

.hero-content,
.tool-hero p,
.hero-sub,
.cta-box p,
.success-story-content > p {
  max-width: 100% !important;
}

.hero-inner {
  display: flex;
  justify-content: flex-start;
}

.hero-content {
  width: min(100%, 18.5rem);
  margin-inline: 0;
  text-align: left !important;
}

.hero-badge {
  justify-content: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.hero-badge::before,
.hero-badge::after {
  flex-basis: 24px;
}

.hero-buttons,
.tool-hero-actions {
  width: 100%;
  flex-direction: column;
  align-items: stretch !important;
}

.hero-buttons > *,
.tool-hero-actions > * {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.hero-stats {
  flex-wrap: wrap !important;
  gap: 1rem !important;
  margin-top: 2rem !important;
  padding-top: 1.5rem !important;
  justify-content: flex-start !important;
}

.hero-sub {
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.75;
}

.hero h1 {
  font-size: clamp(1.8rem, 11vw, 2.8rem) !important;
  margin-bottom: 1rem;
}

.problem-grid,
.capabilities-grid,
.features-grid,
.pricing-grid,
.addon-items,
.authority-statements,
.success-story-inner,
.ai-photo-inner,
.tools-grid,
.how-steps,
.benefits-grid,
.dual-grid,
.sector-grid,
.highlights-grid,
.stack-grid,
.integrations-grid,
.integration-grid {
  grid-template-columns: 1fr !important;
}

.success-timeline {
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.success-timeline-step {
  width: 100%;
}

.success-timeline-line {
  display: none !important;
}

.addon,
.cta-box,
.modal {
  padding: 2rem 1.25rem !important;
}

.cta-bar {
  padding: 3.5rem 1rem !important;
}

.modal {
  max-height: min(90vh, 720px);
  overflow: auto;
}

.footer-grid {
  grid-template-columns: 1fr !important;
  gap: 2rem !important;
}

.footer-bottom {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.75rem;
}

.footer-bottom-links {
  flex-wrap: wrap;
  gap: 1rem !important;
}

.login-wrap,
.form-side {
  max-width: 100% !important;
}

.login-card,
.form-side {
  border-radius: 16px !important;
  padding: 1.5rem !important;
}

.register-page {
  padding: 1rem !important;
}

.form-row {
  grid-template-columns: 1fr !important;
}

.form-header h1,
.login-card h1 {
  font-size: clamp(1.55rem, 7vw, 2rem) !important;
}

.phone-group {
  flex-direction: column;
}

.phone-flag {
  justify-content: center;
  border-right: 1.5px solid #e0e0e8 !important;
  border-radius: 10px 10px 0 0 !important;
}

.phone-group input {
  border-radius: 0 0 10px 10px !important;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 1.5rem;
  }

  .hero {
    min-height: 40rem;
    padding-block: 5rem !important;
    background-size: cover !important;
    background-position: 72% top !important;
  }

  .hero::before {
    background: linear-gradient(
      90deg,
      rgba(7, 10, 29, 0.92) 0%,
      rgba(7, 10, 29, 0.78) 38%,
      rgba(7, 10, 29, 0.3) 68%,
      rgba(7, 10, 29, 0.05) 100%
    );
  }

  .hero-content {
    width: min(100%, 28rem);
  }

  .hero h1 {
    font-size: clamp(2.35rem, 7vw, 3.3rem) !important;
  }

  .top-bar {
    flex-direction: row;
    align-items: center !important;
  }

  .top-bar-right {
    width: auto;
  }

  .problem-grid,
  .features-grid,
  .tools-grid,
  .how-steps,
  .benefits-grid,
  .dual-grid,
  .sector-grid,
  .highlights-grid,
  .stack-grid,
  .footer-grid,
  .integrations-grid,
  .integration-grid,
  .authority-statements,
  .success-story-inner,
  .ai-photo-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .pricing-grid,
  .addon-items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .capabilities-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .hero-buttons,
  .tool-hero-actions {
    flex-direction: row;
    align-items: center !important;
    justify-content: flex-start;
  }

  .hero-buttons > *,
  .tool-hero-actions > * {
    width: auto;
  }

  .footer-bottom {
    align-items: center !important;
  }

  .form-side {
    padding: 2rem !important;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }

  .hero {
    min-height: auto;
    padding-inline: 2rem !important;
    padding-block: 5rem !important;
    background-size: 100% auto !important;
    background-position: center top !important;
  }

  .hero::before {
    background: linear-gradient(
      90deg,
      rgba(7, 10, 29, 0.62) 0%,
      rgba(7, 10, 29, 0.24) 35%,
      rgba(7, 10, 29, 0) 62%
    );
  }

  .hero-inner {
    display: block;
  }

  .hero-content {
    width: auto;
    margin-inline: 0;
    text-align: left !important;
    max-width: 580px !important;
  }

  .hero-badge,
  .hero-stats {
    justify-content: flex-start !important;
  }

  .hero-sub {
    text-align: left;
  }

  .top-bar {
    padding: 0.65rem 2rem !important;
    justify-content: center !important;
    gap: 2rem !important;
  }

  .top-bar-right {
    position: absolute !important;
    right: 2rem !important;
  }

  nav {
    padding: 1rem 2.5rem !important;
  }

  .nav-inner {
    display: flex !important;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links,
  .nav-right {
    display: flex !important;
  }

  .nav-links {
    grid-column: auto;
    flex-direction: row;
    align-items: center !important;
    width: auto;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-links > li + li {
    border-top: none;
  }

  .nav-links a {
    width: auto;
    padding: 0;
  }

  .nav-right {
    grid-column: auto;
    width: auto;
    flex-direction: row;
    align-items: center !important;
  }

  .nav-btn-outline,
  .nav-cta {
    width: auto;
  }

  .mega-menu {
    position: absolute !important;
    top: calc(100% + 0.5rem) !important;
    left: 0 !important;
    right: 0 !important;
    margin-top: 0;
    border-radius: 16px !important;
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.1),
      0 1px 3px rgba(0, 0, 0, 0.06) !important;
  }

  .has-mega:not(.open) > .mega-menu,
  .mega-menu:not(.active) {
    display: none !important;
  }

  .mega-menu.active {
    display: grid !important;
    grid-template-columns: 260px 1fr 280px !important;
  }

  .mega-sidebar {
    display: block !important;
    border-right: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-bottom: none;
    padding: 1.1rem 0 !important;
  }

  .mega-content {
    grid-template-columns: 1fr 1fr !important;
    padding: 1.5rem 1.8rem !important;
  }

  .mega-promo {
    display: flex !important;
    border-top: none;
    border-left: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 1.5rem !important;
  }
}
