:root {
  --text: #08152f;
  --text-secondary: #53627a;

  --blue: #246cf6;
  --blue-hover: #155de5;

  --surface: #ffffff;
  --surface-soft: #f6f8fc;

  --mint: #e6faf2;

  --border: #e2e7ef;

  --radius: 16px;
  --radius-lg: 24px;

  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--text);
  background: var(--surface);

  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(
    calc(100% - 40px),
    var(--container)
  );

  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;

  z-index: 10;

  background:
    rgba(255, 255, 255, 0.92);

  backdrop-filter: blur(12px);

  border-bottom:
    1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 72px;
}

.logo {
  font-size: 28px;
  font-weight: 800;

  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;

  padding:
    0 24px;

  border: 0;
  border-radius: 10px;

  background: var(--blue);
  color: #fff;

  font-size: 16px;
  font-weight: 700;

  text-decoration: none;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.button:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.button--small {
  min-height: 42px;
  padding-inline: 18px;

  font-size: 14px;
}

.eyebrow {
  margin:
    0 0 16px;

  color: var(--blue);

  font-size: 13px;
  font-weight: 800;

  letter-spacing: 0.08em;
}

.hero {
  padding:
    96px 0 110px;

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f8faff 100%
    );
}

.hero__inner {
  display: grid;
  grid-template-columns:
    1fr 0.8fr;

  gap: 80px;

  align-items: center;
}

.hero h1 {
  max-width: 700px;

  margin:
    0 0 24px;

  font-size:
    clamp(48px, 6vw, 78px);

  line-height: 1.02;

  letter-spacing: -0.04em;
}

.hero__description {
  max-width: 580px;

  margin:
    0 0 32px;

  color: var(--text-secondary);

  font-size: 21px;
}

.hero__actions {
  display: flex;
  align-items: center;

  gap: 24px;
}

.text-link {
  color: var(--blue);

  font-weight: 700;

  text-decoration: none;
}

.hero__note {
  margin:
    24px 0 0;

  color: var(--text-secondary);

  font-size: 14px;
}

.price-card {
  max-width: 420px;

  margin-inline: auto;

  padding: 32px;

  border:
    1px solid var(--border);

  border-radius: var(--radius-lg);

  background: #fff;

  box-shadow:
    0 30px 80px
    rgba(31, 49, 85, 0.12);
}

.price-card__label {
  display: block;

  margin-bottom: 8px;

  color: var(--text-secondary);

  font-size: 14px;
}

.price-card__price {
  display: block;

  font-size: 56px;
  line-height: 1;
}

.price-card__price small {
  font-size: 16px;
}

.price-card__range {
  display: block;

  margin-top: 10px;

  color: var(--text-secondary);
}

.price-card__divider {
  height: 1px;

  margin:
    28px 0;

  background: var(--border);
}

.price-card__row {
  display: flex;
  justify-content: space-between;

  margin-top: 12px;
}

.price-card__insight {
  margin-top: 28px;

  padding: 18px;

  border-radius: 12px;

  background: var(--mint);

  font-weight: 600;
}

section {
  padding:
    100px 0;
}

.section-heading {
  max-width: 720px;

  margin:
    0 auto 56px;

  text-align: center;
}

.section-heading h2,
.learning h2,
.early-access h2 {
  margin:
    0 0 20px;

  font-size:
    clamp(36px, 4vw, 52px);

  line-height: 1.08;

  letter-spacing: -0.03em;
}

.section-heading p,
.learning p,
.early-access p {
  color: var(--text-secondary);

  font-size: 18px;
}

.how-it-works .container {
  width: min(
    calc(100% - 40px),
    1400px
  );
}

.product-preview {
  margin-top: 48px;
}

.product-preview img {
  width: 100%;

  border-radius:
    var(--radius-lg);

  box-shadow:
    0 24px 60px
    rgba(31, 49, 85, 0.1);
}

.learning {
  background:
    var(--surface-soft);
}

.learning__inner {
  display: grid;
  grid-template-columns:
    1fr 0.8fr;

  gap: 80px;

  align-items: center;
}

.insight-card {
  padding: 32px;

  border:
    1px solid var(--border);

  border-radius:
    var(--radius-lg);

  background: #fff;
}

.insight-card__label {
  display: block;

  margin-bottom: 18px;

  color: var(--blue);

  font-weight: 700;
}

.insight-card strong {
  display: block;

  font-size: 28px;
  line-height: 1.25;
}

.insight-card__adjustment {
  margin-top: 20px;

  font-size: 48px;
  font-weight: 800;

  color: var(--blue);
}

.pricing-card {
  max-width: 560px;

  margin-inline: auto;

  padding: 48px;

  border:
    1px solid var(--border);

  border-radius:
    var(--radius-lg);

  text-align: center;
}

.pricing-card h2 {
  margin:
    0;

  font-size: 64px;
}

.pricing-card h2 small {
  display: block;

  margin-top: 8px;

  color: var(--text-secondary);

  font-size: 18px;
}

.pricing-card ul {
  padding: 0;

  margin:
    32px 0;

  list-style: none;
}

.pricing-card li {
  padding:
    8px 0;
}

.pricing-card__note {
  display: block;

  margin-top: 16px;

  color: var(--text-secondary);

  font-size: 13px;
}

.early-access {
  text-align: center;

  background:
    var(--text);

  color: #fff;
}

.early-access p {
  color:
    rgba(255, 255, 255, 0.72);
}

.early-access__inner {
  max-width: 720px;
}

.footer {
  padding:
    32px 0;

  color: var(--text-secondary);

  text-align: center;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px;

  overflow-y: auto;

  z-index: 100;
}

.modal__backdrop {
  position: fixed;
  inset: 0;

  background:
    rgba(8, 21, 47, 0.62);

  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;

  width: min(100%, 480px);

  max-height: calc(100dvh - 32px);

  padding: 40px;

  overflow-y: auto;

  border-radius: var(--radius-lg);

  background: #fff;

  box-shadow:
    0 32px 90px
    rgba(8, 21, 47, 0.25);

  z-index: 1;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  padding: 0;

  border: 0;
  background: transparent;

  color: var(--text-secondary);

  font-size: 28px;
  line-height: 1;

  cursor: pointer;
}

.modal__close:hover {
  color: var(--text);
}

.modal__dialog h2 {
  margin: 0 0 16px;

  font-size: 36px;
  line-height: 1.1;

  letter-spacing: -0.03em;
}

.modal__description {
  margin: 0 0 28px;

  color: var(--text-secondary);

  font-size: 17px;
}

.modal__form {
  display: flex;
  flex-direction: column;

  gap: 12px;
}

.modal__label {
  font-size: 14px;
  font-weight: 700;
}

.modal__form input {
  width: 100%;
  min-height: 52px;

  padding: 0 16px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: #fff;
  color: var(--text);

  font: inherit;

  outline: none;
}

.modal__form input::placeholder {
  color: var(--text-secondary);
}

.modal__form input:focus {
  border-color: var(--blue);

  box-shadow:
    0 0 0 3px
    rgba(36, 108, 246, 0.12);
}

.modal__form .button {
  width: 100%;
}

.modal__note {
  margin: 16px 0 0;

  color: var(--text-secondary);

  font-size: 13px;

  text-align: center;
}

.modal__error {
  margin: 0;

  color: #c62828;

  font-size: 14px;
}

.modal__success {
  padding: 16px 0;

  text-align: center;
}

.modal__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 64px;
  height: 64px;

  margin: 0 auto 24px;

  border-radius: 50%;

  background: var(--mint);

  font-size: 30px;
  font-weight: 700;
}

.modal__success p {
  margin: 0 0 28px;

  color: var(--text-secondary);

  font-size: 17px;
}

.modal__success .button {
  min-width: 140px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 800px) {
  .container {
    width: min(
      calc(100% - 32px),
      var(--container)
    );
  }

  .header__inner {
    height: 64px;
  }

  .logo {
    font-size: 24px;
  }

  .header .button {
    min-height: 40px;
    padding:
      0 14px;

    font-size: 13px;
  }

  .hero {
    padding:
      56px 0 64px;
  }

  .hero__inner,
  .learning__inner {
    grid-template-columns: 1fr;

    gap: 48px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero__description {
    font-size: 18px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .text-link {
    text-align: center;
  }

  .hero__note {
    font-size: 13px;
  }

  .price-card {
    width: 100%;

    padding: 24px;
  }

  .price-card__price {
    font-size: 48px;
  }

  section {
    padding:
      64px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading h2,
  .learning h2,
  .early-access h2 {
    font-size: 36px;
  }

  .section-heading p,
  .learning p,
  .early-access p {
    font-size: 17px;
  }

  .learning__inner {
    gap: 36px;
  }

  .insight-card {
    padding: 24px;
  }

  .insight-card strong {
    font-size: 24px;
  }

  .insight-card__adjustment {
    font-size: 42px;
  }

  .pricing-card {
    width: 100%;

    padding:
      32px 24px;
  }

  .pricing-card h2 {
    font-size: 52px;
  }

  .product-preview {
    overflow-x: auto;

    margin-inline: -16px;

    padding-inline: 16px;

    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .product-preview::-webkit-scrollbar {
    display: none;
  }

  .product-preview img {
    width: 760px;
    max-width: none;

    scroll-snap-align: start;
  }

  .modal {
    padding: 12px;
  }

  .modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);

    padding: 24px 20px;

    overflow-y: auto;
  }

  .modal__dialog .eyebrow {
    margin-bottom: 10px;
  }

  .modal__dialog h2 {
    margin-bottom: 12px;

    font-size: 28px;
  }

  .modal__description {
    margin-bottom: 18px;

    font-size: 15px;
  }

  .modal__form {
    gap: 10px;
  }

  .modal__form input,
  .modal__form .button {
    min-height: 48px;
  }

  .modal__note {
    margin-top: 10px;
  }
}