:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f5fb;
  --ink: #111827;
  --muted: #667085;
  --line: rgba(17, 24, 39, 0.1);
  --blue: #1677ff;
  --blue-dark: #075ac8;
  --green: #1f9d6a;
  --shadow: 0 22px 70px rgba(31, 41, 55, 0.14);
  --shadow-soft: 0 12px 34px rgba(31, 41, 55, 0.09);
  --container: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 520px, #ffffff 100%);
  color: var(--ink);
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  font-size: clamp(58px, 11vw, 132px);
  line-height: 0.9;
}

h2 {
  max-width: 860px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.06;
}

h3 {
  font-size: 21px;
  line-height: 1.18;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 14px var(--pad);
  border-bottom: 1px solid rgba(17, 24, 39, 0.07);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(20px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 780;
  white-space: nowrap;
}

.brand img,
.footer-brand img {
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(22, 119, 255, 0.16);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #3d4757;
  font-size: 14px;
  font-weight: 680;
}

.site-nav a:hover {
  color: var(--blue-dark);
}

.language-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.language-select select {
  max-width: 170px;
  min-height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--ink);
}

.hero {
  width: min(100%, calc(var(--container) + var(--pad) * 2));
  min-height: calc(100svh - 68px);
  margin: 0 auto;
  padding: clamp(70px, 9vw, 124px) var(--pad) clamp(58px, 8vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.eyebrow {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-subhead {
  max-width: 770px;
  color: #1d2736;
  font-size: clamp(30px, 4.4vw, 58px);
  font-weight: 760;
  line-height: 1.04;
}

.hero-description {
  max-width: 670px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 780;
  white-space: nowrap;
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(180deg, #2a88ff, var(--blue));
  box-shadow: 0 18px 36px rgba(22, 119, 255, 0.24);
}

.button.secondary {
  color: #253143;
  border-color: var(--line);
  background: #ffffff;
}

.hero-visual {
  justify-self: center;
  width: min(100%, 430px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 40px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 244, 255, 0.88)),
    radial-gradient(circle at 50% 20%, rgba(22, 119, 255, 0.2), transparent 18rem);
  box-shadow: var(--shadow);
}

.hero-video,
.hero-video-fallback {
  width: min(100%, 350px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 24px 42px rgba(20, 86, 178, 0.22));
}

.mockup-parallax-strip {
  width: 100%;
  height: 63vh;
  min-height: 220px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.mockup-parallax-image {
  width: 100%;
  height: calc(100% + 36px);
  margin-top: -18px;
  object-fit: cover;
  transform: translate3d(0, var(--mockup-parallax, 0px), 0);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .mockup-parallax-image {
    transform: none;
    will-change: auto;
  }
}

.hero-video-fallback,
.hero-visual.video-failed .hero-video {
  display: none;
}

.hero-visual.video-failed .hero-video-fallback {
  display: block;
}

.section,
.page-shell {
  width: min(100%, calc(var(--container) + var(--pad) * 2));
  margin: 0 auto;
  padding: clamp(74px, 9vw, 120px) var(--pad);
}

.section-heading {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  font-size: 18px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.proof-strip div,
.feature-card,
.workflow-card,
.benefit-card,
.faq-content details,
.legal-content,
.faq-preview {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.proof-strip div {
  display: grid;
  gap: 4px;
  min-height: 116px;
  padding: 22px;
  border-radius: 24px;
}

.proof-strip strong {
  font-size: 20px;
}

.proof-strip span {
  color: var(--muted);
  line-height: 1.45;
}

.feature-grid,
.workflow-grid,
.benefit-grid {
  display: grid;
  gap: 16px;
}

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

.workflow-grid,
.benefit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.workflow-card,
.benefit-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 198px;
  padding: 24px;
  border-radius: 24px;
}

.workflow-card > span {
  width: max-content;
  min-width: 38px;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(22, 119, 255, 0.1);
  font-size: 12px;
  font-weight: 820;
}

.screenshot-section {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  background: linear-gradient(180deg, #f1f6ff, #ffffff);
}

.screenshot-section > .section-heading,
.screenshot-carousel {
  width: min(100%, calc(var(--container) + var(--pad) * 2));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.device-switch {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.device-switch-button {
  min-width: 112px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #344054;
  background: transparent;
  font: inherit;
  font-weight: 780;
  cursor: pointer;
}

.device-switch-button.is-active {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(22, 119, 255, 0.2);
}

.screenshot-carousel {
  position: relative;
}

.screenshot-card {
  flex: 0 0 clamp(220px, 24vw, 312px);
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 28px;
  background: linear-gradient(145deg, #202734, #0b1018);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2);
}

.carousel-viewport {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  padding: 6px 0 34px;
  -webkit-overflow-scrolling: touch;
}

.carousel-viewport:focus {
  outline: 3px solid rgba(22, 119, 255, 0.2);
  outline-offset: 10px;
  border-radius: 30px;
}

.carousel-viewport::-webkit-scrollbar {
  height: 10px;
}

.carousel-viewport::-webkit-scrollbar-track {
  background: rgba(17, 24, 39, 0.06);
  border-radius: 999px;
}

.carousel-viewport::-webkit-scrollbar-thumb {
  background: rgba(22, 119, 255, 0.38);
  border-radius: 999px;
}

.carousel-viewport .screenshot-card {
  scroll-snap-align: start;
}

.screenshot-carousel.is-ipad .screenshot-card {
  flex-basis: clamp(320px, 54vw, 720px);
}

.screenshot-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #eef1f7;
  cursor: zoom-in;
}

.screenshot-button img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}

.screenshot-carousel.is-ipad .screenshot-button img {
  aspect-ratio: 4 / 3;
}

.carousel-control {
  position: absolute;
  top: 45%;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.carousel-control-prev {
  left: max(12px, calc(var(--pad) - 22px));
}

.carousel-control-next {
  right: max(12px, calc(var(--pad) - 22px));
}

.benefits-section {
  background: #ffffff;
}

.faq-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border-radius: 30px;
}

.faq-preview h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.page-shell {
  max-width: calc(940px + var(--pad) * 2);
}

.page-hero {
  display: grid;
  gap: 16px;
  padding-bottom: 34px;
}

.page-hero h1 {
  font-size: clamp(46px, 8vw, 84px);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  font-size: 18px;
}

.faq-content {
  display: grid;
  gap: 14px;
}

.faq-group {
  display: grid;
  gap: 14px;
}

.faq-group-title {
  margin: 36px 0 4px;
  font-size: 25px;
}

.faq-content details {
  border-radius: 20px;
  overflow: hidden;
}

.faq-content summary {
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 790;
  cursor: pointer;
}

.faq-content .text-block p {
  margin: 0;
  padding: 0 20px 14px;
}

.faq-content .text-block p:last-child {
  padding-bottom: 20px;
}

.legal-content {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 28px;
}

.legal-content h2 {
  margin-top: 14px;
  font-size: 25px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 17px;
}

.legal-card {
  display: grid;
  gap: 8px;
}

.legal-card .text-block {
  display: grid;
  gap: 10px;
}

.legal-card .text-block p {
  margin: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 28px var(--pad);
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.site-footer p {
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #3d4757;
  font-size: 14px;
  font-weight: 680;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(11, 16, 24, 0.86);
  backdrop-filter: blur(18px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(94vw, 1180px);
  max-height: 88vh;
  width: auto;
  border-radius: 28px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 101;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 30px;
  line-height: 1;
}

@media (max-width: 1080px) {
  .hero,
  .faq-preview {
    grid-template-columns: 1fr;
  }

  .proof-strip,
  .workflow-grid,
  .benefit-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: auto auto auto;
    padding: 12px 18px;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
    order: 3;
  }

  .language-select {
    justify-self: end;
  }

  .language-select span {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
    border-radius: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  h1 {
    font-size: clamp(58px, 18vw, 92px);
  }

  .hero-visual {
    width: min(100%, 290px);
  }

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

  .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  :root {
    --pad: 18px;
  }

  .screenshot-card {
    flex-basis: min(76vw, 320px);
  }

  .proof-strip,
  .workflow-grid,
  .benefit-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-carousel.is-ipad .screenshot-card {
    flex-basis: min(86vw, 560px);
  }

  .device-switch {
    width: 100%;
  }

  .device-switch-button {
    flex: 1;
    min-width: 0;
  }
}
