/* Landing page responsive layout */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.landing-page {
  --landing-gutter: clamp(16px, 4vw, 32px);
  --landing-width: 1180px;
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: #f8f9fe;
}

.landing-page *,
.landing-page *::before,
.landing-page *::after {
  min-width: 0;
}

@supports (overflow: clip) {
  .landing-page { overflow-x: clip; }
}

.landing-page::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -160px;
  right: max(-180px, calc((100vw - var(--landing-width)) / 2 - 180px));
  width: min(680px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 87, 255, .13), rgba(104, 87, 255, 0) 68%);
  pointer-events: none;
}

.landing-page main,
.landing-page .site-header,
.landing-page .site-footer {
  position: relative;
  z-index: 1;
}

.landing-page img.brand-symbol,
.landing-page img.logo-mark {
  display: block;
  object-fit: contain;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.landing-page .site-header,
.landing-page .landing-hero,
.landing-page .site-footer {
  width: 100%;
  max-width: calc(var(--landing-width) + var(--landing-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--landing-gutter);
}

.landing-page .site-header {
  height: 86px;
}

.landing-page .landing-hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  min-height: 650px;
  padding-top: 55px;
  padding-bottom: 95px;
}

.landing-page .hero-copy,
.landing-page .product-showcase,
.landing-page .dashboard-window,
.landing-page .dashboard-content {
  min-width: 0;
}

.landing-page .hero-copy h1 {
  max-width: 100%;
  font-size: clamp(46px, 5vw, 60px);
  overflow-wrap: break-word;
}

.landing-page .hero-copy > p {
  max-width: 525px;
}

.landing-page .product-showcase {
  position: relative;
  width: 100%;
  padding: 33px 0 26px;
}

.landing-page .showcase-glow {
  inset: 4% 0 -4%;
}

.landing-page .dashboard-window {
  width: 100%;
  transform: none;
}

.landing-page .dashboard-body {
  grid-template-columns: 70px minmax(0, 1fr);
}

.landing-page .metric-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-page .feature-section,
.landing-page .workflow-section,
.landing-page .faq-section {
  padding-inline: var(--landing-gutter);
}

.landing-page .feature-section > *,
.landing-page .workflow-section > *,
.landing-page .faq-section > * {
  width: 100%;
  max-width: var(--landing-width);
  margin-inline: auto;
}

.landing-page .feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-page .feature-card {
  position: relative;
}

.landing-page .limit-feature,
.landing-page .ai-feature,
.landing-page .risk-feature {
  overflow: hidden;
  border-color: rgba(101, 83, 237, .16);
  background: linear-gradient(155deg, #fff 34%, rgba(104, 87, 255, .055));
}

.landing-page .limit-feature::after,
.landing-page .ai-feature::after,
.landing-page .risk-feature::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -70px;
  right: -70px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(104, 87, 255, .07);
  pointer-events: none;
}

.landing-page .limit-feature > *,
.landing-page .ai-feature > *,
.landing-page .risk-feature > * {
  position: relative;
  z-index: 1;
}

.landing-page .feature-badge {
  display: inline-flex;
  margin: 4px 0 15px;
  color: #6553ed;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}

.landing-page .infinity-icon,
.landing-page .shield-icon {
  color: #6553ed;
  font-size: 27px;
  font-weight: 800;
}

.landing-page .smart-icon {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.landing-page .scale-demo,
.landing-page .ai-status,
.landing-page .risk-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.landing-page .scale-demo span,
.landing-page .scale-demo strong {
  padding: 7px 10px;
  border-radius: 9px;
  background: #f0eefe;
  color: #4f43b8;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.landing-page .scale-demo strong {
  color: #fff;
  background: #6553ed;
}

.landing-page .scale-demo i {
  color: #9187d9;
  font-style: normal;
  font-weight: 800;
}

.landing-page .ai-status {
  width: fit-content;
  padding: 8px 11px;
  border: 1px solid #e8e5ff;
  border-radius: 10px;
  color: #5f6680;
  background: #faf9ff;
  font-size: 11px;
  font-weight: 650;
}

.landing-page .ai-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #21bf73;
  box-shadow: 0 0 0 5px rgba(33, 191, 115, .12);
}

.landing-page .risk-meter {
  gap: 5px;
}

.landing-page .risk-meter span {
  width: 37px;
  height: 7px;
  border-radius: 99px;
  background: #6553ed;
}

.landing-page .risk-meter span:nth-child(2) { opacity: .55; }
.landing-page .risk-meter span:nth-child(3) { opacity: .22; }

.landing-page .risk-meter em {
  margin-left: 4px;
  color: #727991;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.landing-page .wide-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-page .workflow-list {
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr);
}

.landing-page .faq-section {
  padding-top: 110px;
  padding-bottom: 110px;
  background: #f8f9fe;
  content-visibility: auto;
  contain-intrinsic-size: 780px;
}

.landing-page .faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.landing-page .faq-list details {
  align-self: start;
  padding: 0 22px;
  border: 1px solid rgba(101, 83, 237, .13);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 32, 68, .045);
}

.landing-page .faq-list summary {
  position: relative;
  padding: 20px 30px 20px 0;
  color: #24243a;
  font-size: 15px;
  font-weight: 780;
  cursor: pointer;
  list-style: none;
}

.landing-page .faq-list summary::-webkit-details-marker { display: none; }

.landing-page .faq-list summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 0;
  color: #6553ed;
  font-size: 22px;
  line-height: 1;
}

.landing-page .faq-list details[open] summary::after { content: "−"; }

.landing-page .faq-list p {
  margin: -2px 0 20px;
  color: #6a6c80;
  font-size: 14px;
  line-height: 1.85;
}

.landing-page .feature-section,
.landing-page .workflow-section,
.landing-page .access-section {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.landing-page .access-section {
  width: 100%;
  max-width: calc(1000px + var(--landing-gutter) * 2);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: clamp(48px, 8vw, 100px);
  padding: 115px var(--landing-gutter);
}

.landing-page .landing-auth-card,
.landing-page .code-row,
.landing-page .code-row > * {
  min-width: 0;
}

@media (max-width: 1024px) {
  .landing-page .landing-hero {
    grid-template-columns: minmax(0, 1fr);
    max-width: 800px;
    min-height: 0;
    padding-top: 64px;
    padding-bottom: 88px;
  }

  .landing-page .hero-copy {
    text-align: center;
  }

  .landing-page .hero-copy > p {
    margin-inline: auto;
  }

  .landing-page .hero-kicker,
  .landing-page .hero-actions,
  .landing-page .hero-trust {
    justify-content: center;
  }

  .landing-page .product-showcase {
    margin-top: 18px;
  }

  .landing-page .floating-card {
    display: none;
  }

  .landing-page .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-page .feature-card.wide-card {
    grid-column: span 2;
  }

  .landing-page .access-section {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    gap: 44px;
  }
}

@media (max-width: 760px) {
  .landing-page {
    --landing-gutter: 16px;
  }

  .landing-page main,
  .landing-page main > section,
  .landing-page .hero-copy,
  .landing-page .product-showcase {
    width: 100%;
    max-width: 100%;
  }

  .landing-page::before {
    top: -90px;
    right: -35vw;
    width: 105vw;
    max-width: 520px;
  }

  .landing-page .site-header,
  .landing-page .landing-hero,
  .landing-page .site-footer {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .landing-page .site-header {
    height: 72px;
  }

  .landing-page .site-nav a:not(.nav-login) {
    display: none;
  }

  .landing-page .landing-hero {
    display: block;
    width: 100%;
    max-width: none;
    padding-top: 44px;
    padding-bottom: 72px;
  }

  .landing-page .hero-copy {
    width: 100%;
    text-align: left;
  }

  .landing-page .hero-kicker,
  .landing-page .hero-actions,
  .landing-page .hero-trust {
    justify-content: flex-start;
  }

  .landing-page .hero-copy h1 {
    margin-top: 20px;
    font-size: clamp(34px, 9.5vw, 44px);
    line-height: 1.16;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
  }

  .landing-page .hero-copy > p {
    max-width: none;
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
  }

  .landing-page .product-showcase {
    margin-top: 36px;
    padding: 0;
  }

  .landing-page .dashboard-body {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 310px;
  }

  .landing-page .dashboard-content {
    padding: 16px;
  }

  .landing-page .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-page .metric-row article:last-child {
    display: none;
  }

  .landing-page .chart-grid {
    height: 105px;
  }

  .landing-page .feature-section,
  .landing-page .workflow-section,
  .landing-page .faq-section {
    padding: 80px var(--landing-gutter) 85px;
  }

  .landing-page .feature-grid,
  .landing-page .wide-card,
  .landing-page .workflow-list,
  .landing-page .faq-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-page .feature-card,
  .landing-page .feature-card.wide-card {
    grid-column: auto;
  }

  .landing-page .workflow-list > i {
    transform: rotate(90deg);
  }

  .landing-page .access-section {
    grid-template-columns: minmax(0, 1fr);
    max-width: 600px;
    gap: 44px;
    padding: 85px var(--landing-gutter);
  }

  .landing-page .access-copy {
    text-align: center;
  }

  .landing-page .access-copy ul {
    display: inline-grid;
    text-align: left;
  }

  .landing-page .landing-auth-card {
    width: 100%;
  }

  .landing-page .site-footer {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .landing-page .back-to-top {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 100;
    display: grid;
    width: 44px;
    min-height: 44px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .landing-page .back-to-top.visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 480px) {
  .landing-page .site-brand {
    gap: 8px;
    font-size: 16px;
  }

  .landing-page .site-nav .nav-login {
    padding: 8px 11px;
    font-size: 13px;
  }

  .landing-page .landing-hero {
    padding-top: 34px;
  }

  .landing-page .hero-copy h1 {
    font-size: clamp(30px, 9vw, 38px);
    letter-spacing: -.035em;
  }

  .landing-page .hero-kicker {
    max-width: 100%;
    white-space: normal;
  }

  .landing-page .scale-demo,
  .landing-page .ai-status,
  .landing-page .risk-meter {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .landing-page .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-page .hero-primary,
  .landing-page .hero-secondary {
    width: 100%;
    min-width: 0;
  }

  .landing-page .hero-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    text-align: left;
  }

  .landing-page .hero-trust span:last-child {
    grid-column: 1 / -1;
  }

  .landing-page .dashboard-sidebar {
    display: none;
  }

  .landing-page .dashboard-body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 270px;
  }

  .landing-page .dashboard-content {
    padding: 12px;
  }

  .landing-page .dashboard-title button {
    display: none;
  }

  .landing-page .metric-row {
    gap: 7px;
  }

  .landing-page .metric-row article {
    padding: 11px;
  }

  .landing-page .metric-row strong {
    font-size: 13px;
  }

  .landing-page .chart-card {
    padding: 12px;
  }

  .landing-page .chart-grid {
    height: 88px;
  }

  .landing-page .feature-card {
    min-height: 0;
    padding: 24px;
  }

  .landing-page .match-demo {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-page .match-demo i {
    transform: rotate(90deg);
  }

  .landing-page .landing-auth-card {
    padding: 24px 20px;
  }

  .landing-page .code-row {
    grid-template-columns: minmax(0, 1fr) minmax(100px, 108px);
  }
}

@media (max-width: 360px) {
  .landing-page .hero-kicker {
    font-size: 11px;
    letter-spacing: .4px;
  }

  .landing-page .hero-copy h1 {
    font-size: 32px;
  }

  .landing-page .hero-trust,
  .landing-page .code-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-page .hero-trust span:last-child {
    grid-column: auto;
  }

  .landing-page .landing-auth-card {
    padding: 22px 16px;
  }
}
