:root {
  --page-bg: #f6f5ff;
  --ink: #323243;
  --muted: #6b728a;
  --primary: #686fff;
  --white: #ffffff;
  --field-border: #cccccc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 1440px;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

.page {
  width: 1440px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page-bg);
}

.site-header {
  height: 86px;
  background: var(--white);
}

.header-inner {
  width: 1200px;
  height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  width: 181px;
  height: 56px;
}

.logo {
  display: block;
  width: 181px;
  height: 56px;
  object-fit: contain;
}

.mobile-logo,
.menu-toggle {
  display: none;
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}

.nav-links a,
.footer-links a {
  font-size: 20px;
  font-weight: 510;
  line-height: 1;
  white-space: nowrap;
}


.site-header.is-menu-open .nav-links {
    transform: translateY(0);
    pointer-events: auto;
}

.site-header.is-menu-open .nav-links {
    transform: translateY(0);
    pointer-events: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border: 0;
  border-radius: 32px;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(104, 111, 255, 0.24);
}

.button:active {
  transform: translateY(0);
  box-shadow: none;
}

.header-button {
  width: 151px;
}

.main-content {
  width: 1200px;
  margin: 0 auto;
  padding-top: 56px;
}

.hero {
  display: grid;
  grid-template-columns: 681px 501px;
  gap: 18px;
  align-items: stretch;
}

.card,
.hero-visual {
  border-radius: 32px;
  overflow: hidden;
}

.hero-copy {
  height: 500px;
  background: var(--white);
  padding: 78px 55px;
}

.trusted-badge {
  display: block;
  width: auto;
  height: 72px;
  max-width: none;
  object-fit: contain;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 62px;
  margin-top: 26px;
}

.hero h1,
.hero p,
.features h2,
.testimonials h2,
.contact h2,
.feature-text h3,
.feature-text p,
.person-copy strong,
.person-copy span,
blockquote,
.copyright {
  margin: 0;
}

.hero h1 {
  color: var(--primary);
  font-size: 69px;
  font-weight: 590;
  line-height: 1.03;
  white-space: nowrap;
}

.hero p {
  margin-top: 11px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 510;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-button {
  width: 281px;
  height: 58px;
  font-weight: 510;
}

.hero-visual {
  width: 501px;
  height: 500px;
}

.hero-visual picture,
.feature-picture {
  display: block;
  width: 100%;

}

.hero-visual img,
.feature-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features {
  margin-top: 76px;
  margin-bottom: 96px;
}

.features h2,
.testimonials h2,
.contact h2 {
  font-size: 52px;
  font-weight: 590;
  line-height: 1.1;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 381px);
  gap: 27px;
  margin-top: 52px;
}

.feature-card {
  width: 381px;
}

.feature-image {
  height: 396px;
  border-radius: 34px;
}

.feature-text {
  width: 319px;
  margin-top: 24px;
}

.feature-text h3 {
  color: var(--ink);
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
}

.feature-text p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.22;
}

.testimonials {
  margin-top: 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 352px 352px 426px;
  gap: 16px;
  align-items: start;
  width: 1162px;
  margin: 52px auto 0;
}

.testimonial-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-card {
  min-height: 154px;
  padding: 24px;
  border: 1px solid var(--white);
  border-radius: 16px;
  background: var(--white);
}

.tall-card {
  height: 324px;
}

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

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("../assets/avatar-dylan.png");
}

.avatar-lysander {
  background-image: url("../assets/avatar-lysander.png");
}

.avatar-zephyr {
  background-image: url("../assets/avatar-zephyr.png");
}

.avatar-elara {
  background-image: url("../assets/avatar-elara.png");
}

.avatar-calista {
  background-image: url("../assets/avatar-calista.png");
}

.person-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.person-copy strong {
  color: #000000;
  font-size: 18px;
  font-weight: 590;
  line-height: 24px;
}

.person-copy span {
  color: rgba(0, 0, 0, 0.6);
  font-size: 15px;
  font-weight: 510;
  line-height: 20px;
}

blockquote {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-bottom: 6px;
  opacity: 0.8;
}

.quote-line {
  display: block;
  width: 48px;
  flex: 0 0 48px;
  align-self: stretch;
  border-left: 2px solid #e0e2ff;
  border-radius: 2px;
}

blockquote p {
  margin: 0;
  color: #15161b;
  font-size: 20px;
  font-weight: 510;
  line-height: 24px;
}

.contact {
  width: 541px;
  margin: 82px auto 0;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.contact-form label {
  display: block;
  width: 541px;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  height: 53px;
  border: 1px solid var(--field-border);
  border-radius: 16px;
  background: var(--white);
  padding: 16px;
  font-size: 16px;
  outline: none;
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

.message-field {
  height: auto !important;
}

.send-button {
  width: 541px;
  height: 61px;
  margin-top: 34px;
}

.site-footer {
  width: 1440px;
  margin-top: 120px;
  padding: 24px 0 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--white);
}

.footer-logo {
  width: 80px;
  height: 80px;
  display: block;
}

.footer-links a {
  font-size: 20px;
  padding: 8px 0;
}

.copyright {
  color: rgba(0, 0, 0, 0.5);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.mobile-menu-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-download {
  width: 100%;
  height: 72px;
  border-radius: 24px;
}

.mobile-support {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 72px;

  border-radius: 24px;

  background: rgba(104,111,255,.12);

  color: #686fff;
  font-size: 18px;
  font-weight: 600;
}

@media (max-width: 767px) {
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  .page {
    width: 100%;
    min-width: 0;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;
    background: transparent;
    z-index: 10000;
  }

  .header-inner {
    width: 100%;
    height: 100%;
    padding: 16px;
    align-items: center;
    background-color: #fff
  }

  .logo-link {
    width: 52px;
    height: 52px;
  }

  .desktop-logo {
    display: none;
  }

  .mobile-logo {
    display: block;
    width: 52px;
    height: 52px;
  }

  .header-button {
    display: none;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #15161b;
    cursor: pointer;
    z-index: 10002;
  }

  .menu-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: currentColor;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    padding: 140px 24px 40px;
    gap: 40px;

    background: var(--page-bg);

    transform: translateX(100%);
    transition: transform 0.35s ease;

    pointer-events: none;
    z-index: 10001;
  }

  .site-header.is-menu-open .nav-links {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-links a {
    position: relative;

    padding: 0;

    color: var(--ink);
    font-size: 32px;
    font-weight: 510;
    line-height: 1.15;

    text-align: left;
  }

  .nav-links a::after {
    content: "↗";

    position: absolute;
    right: 0;
    top: 50%;

    transform: translateY(-50%);

    color: #7a7f99;
    font-size: 32px;
  }

  .mobile-menu-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .mobile-download {
    width: 100%;
    height: 72px;
    border-radius: 24px;
  }

  .mobile-support {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 72px;

    border-radius: 24px;

    background: rgba(104, 111, 255, 0.12);

    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
  }

  .main-content {
    width: calc(100% - 32px);
    max-width: 430px;
    padding-top: 92px;
  }

  .hero {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .hero-visual {
    order: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 343 / 412;
    border-radius: 16px;
  }

  .hero-copy {
    order: 2;
    width: 100%;
    height: auto;
    min-height: 334px;
    padding: 42px 16px;
    border-radius: 16px;
  }

  .trusted-badge {
    width: auto;
    height: 39px;
    max-width: none;
  }

  .hero-text {
    gap: 42px;
    margin-top: 24px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  .hero p {
    width: min(263px, 100%);
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.22;
    white-space: normal;
  }

  .hero-button {
    width: 100%;
    height: 53px;
    border-radius: 16px;
  }

  .features {
    margin-top: 64px;
  }

  .features h2,
  .testimonials h2,
  .contact h2 {
    font-size: 52px;
    line-height: 1.02;
  }

  .feature-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    margin-top: 52px;
  }

  .feature-card {
    width: 100%;
  }

  .feature-picture {
    width: 100%;
    height: auto;
    aspect-ratio: 343 / 395;
    overflow: hidden;
    border-radius: 34px;
  }

  .feature-image {
    border-radius: 34px;
  }

  .feature-text {
    width: min(319px, 100%);
    margin-top: 24px;
  }

  .feature-text h3 {
    font-size: 28px;
    line-height: 34px;
  }

  .feature-text p {
    font-size: 16px;
    line-height: 1.22;
  }

  .testimonials {
    margin-top: 64px;
  }

  .testimonials h2 {
    width: min(328px, 100%);
    margin: 0 auto;
  }

  .testimonial-grid {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
  }

  .testimonial-stack,
  .wide-stack {
    width: 100%;
    gap: 16px;
  }

  .testimonial-card {
    width: 100%;
    min-height: 0;
    padding: 24px;
  }

  .tall-card {
    height: auto;
  }

  blockquote p {
    font-size: 20px;
    line-height: 24px;
  }

  .contact {
    width: 100%;
    margin-top: 64px;
  }

  .contact h2 {
    width: 100%;
  }

  .contact-form,
  .contact-form label,
  .send-button {
    width: 100%;
  }

  .send-button {
    margin-top: 34px;
  }

  .site-footer {
    width: 100%;
    margin-top: 157px;
    padding: 44px 0;
  }

  .footer-links {
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0 16px;
  }

  .footer-links a {
    width: 100%;
    padding: 8px 0;
    color: #15161b;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
  }
}

@media (max-width: 350px) {
  .main-content {
    width: calc(100% - 24px);
  }

  .header-inner {
    padding-right: 12px;
    padding-left: 12px;
  }

  .features h2,
  .testimonials h2,
  .contact h2 {
    font-size: 46px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .feature-text h3 {
    font-size: 26px;
    line-height: 32px;
  }
}

.form-popup {
  position: fixed;
  inset: 0;
  z-index: 20000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(50, 50, 67, 0.28);
  backdrop-filter: blur(8px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.form-popup.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.form-popup-card {
  position: relative;

  width: min(100%, 420px);
  padding: 40px 28px 32px;

  border-radius: 32px;
  background: var(--white);

  text-align: center;
  box-shadow: 0 24px 64px rgba(50, 50, 67, 0.18);

  transform: translateY(14px) scale(0.96);
  transition: transform 0.25s ease;
}

.form-popup.is-visible .form-popup-card {
  transform: translateY(0) scale(1);
}

.form-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;

  width: 36px;
  height: 36px;

  border: 0;
  border-radius: 50%;

  background: var(--page-bg);
  color: var(--ink);

  font-size: 24px;
  line-height: 1;

  cursor: pointer;
}

.form-popup-icon {
  width: 64px;
  height: 64px;

  margin: 0 auto 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: var(--primary);
  color: var(--white);

  font-size: 34px;
  font-weight: 600;
}

.form-popup h3 {
  margin: 0;

