:root {
  --ink: #111214;
  --soft-ink: #3e4146;
  --muted: #666b74;
  --line: #e9ebef;
  --white: #ffffff;
  --purple: #462dde;
  --purple-deep: #3b23d5;
  --purple-shadow: rgba(65, 42, 214, 0.32);
  --mint-0: #f7fcfa;
  --mint-1: #eff8f5;
  --mint-2: #e7f4ef;
  --mint-3: #dfeee8;
  --card-shadow: 0 22px 80px rgba(12, 18, 28, 0.08);
  --container: 1240px;
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.site-header {
  position: relative;
  z-index: 60;
  background: #ffffff;
}

.header-inner {
  max-width: 100%;
  padding: 28px 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: clamp(145px, 10vw, 170px);
}

.desktop-nav {
  justify-self: center;
}

.desktop-nav a,
.login-link,
.mobile-nav a {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #14161b;
}

.desktop-nav a {
  font-size: 1rem;
}

.login-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
}

.login-link .arrow {
  line-height: 1;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(17, 18, 20, 0.08);
  border-radius: 14px;
  background: #fff;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #111214;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle::before { transform: translateY(-6px); }
.menu-toggle::after  { transform: translateY(4px); }

body.menu-open .menu-toggle span { opacity: 0; }
body.menu-open .menu-toggle::before { transform: rotate(45deg) translate(1px, 1px); }
body.menu-open .menu-toggle::after  { transform: rotate(-45deg) translate(2px, -2px); }

.mobile-nav {
  display: none;
  padding: 0 20px 20px;
}

.mobile-nav-inner {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 8px;
  box-shadow: 0 14px 50px rgba(14, 22, 31, 0.06);
  background: rgba(255, 255, 255, 0.98);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
}

.mobile-nav a:hover {
  background: #f6f7fb;
}

.section {
  padding: 98px 20px;
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-intro {
  text-align: center;
  margin-bottom: 42px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.cta-wrap {
  display: flex;
  justify-content: center;
}

.lead-copy {
  max-width: 690px;
  margin: 18px auto 0;
  font-size: clamp(1.05rem, 1.65vw, 1.25rem);
  line-height: 1.6;
  color: #262a30;
  letter-spacing: -0.02em;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 325px;
  padding: 19px 32px;
  border-radius: 10px;
  border: 1px solid rgba(40, 18, 146, 0.35);
  color: #f5f2ff;
  background: linear-gradient(180deg, #4f35ea 0%, #4328d7 100%);
  box-shadow: 0 8px 26px var(--purple-shadow), inset 0 1px 0 rgba(255,255,255,0.15);
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(65, 42, 214, 0.38), inset 0 1px 0 rgba(255,255,255,0.16);
  filter: brightness(1.02);
}

.primary-button svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.secondary-button,
.google-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: #161a20;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.google-button,
.submit-button {
  width: 100%;
  margin-top: 22px;
}

.secondary-button {
  width: auto;
  margin-top: 0;
}

.google-g {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: conic-gradient(from 210deg, #34a853 0deg 90deg, #4285f4 90deg 180deg, #ea4335 180deg 270deg, #fbbc05 270deg 360deg);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
}

.switch-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--purple);
  font-weight: 700;
}

.submit-button {
  margin-top: 8px;
  color: #f5f2ff;
  background: linear-gradient(180deg, #4f35ea 0%, #4328d7 100%);
  border-color: rgba(40, 18, 146, 0.35);
  box-shadow: 0 8px 26px var(--purple-shadow), inset 0 1px 0 rgba(255,255,255,0.15);
}

.panel-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--card-shadow);
  padding: 32px;
}

.testimonial-card {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 42px 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--card-shadow);
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 20px;
  left: 28px;
  color: rgba(70, 45, 222, 0.12);
  font-size: 5rem;
  line-height: 1;
  font-weight: 900;
}

.testimonial-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1.18rem, 2.2vw, 1.65rem);
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: #171920;
}

.testimonial-copy + .testimonial-copy {
  margin-top: 12px;
}

.testimonial-author {
  margin-top: 26px;
  display: grid;
  gap: 4px;
}

.testimonial-author strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.testimonial-author span {
  color: var(--muted);
}

.trusted {
  margin-top: 48px;
  text-align: center;
}

.trusted p {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.trusted-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.trusted-list span,
.pill-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #22252c;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 12px 30px rgba(17, 23, 34, 0.04);
}

.cta-section {
  padding: 22px 20px 106px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  max-width: var(--container);
  margin: 0 auto;
  border: 1px solid #e4efeb;
  border-radius: 38px;
  padding: 64px 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 20%, rgba(244,251,248,0.88) 40%, rgba(236,248,244,0.92) 68%, rgba(231,245,240,0.96) 100%);
  box-shadow: 0 30px 90px rgba(16, 29, 24, 0.08);
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-conic-gradient(
      from -90deg at 50% 100%,
      rgba(255,255,255,0.42) 0deg 8deg,
      rgba(221,240,234,0.16) 8deg 16deg
    );
  opacity: 0.8;
  pointer-events: none;
}

.cta-card-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}

.cta-card h2 {
  margin: 0;
  font-size: clamp(2.05rem, 4.1vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.cta-card p {
  margin: 18px auto 0;
  max-width: 650px;
  color: #262a30;
  font-size: clamp(1.05rem, 1.65vw, 1.25rem);
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.cta-card .cta-wrap {
  margin-top: 34px;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.field small {
  color: var(--muted);
  line-height: 1.5;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dfe3ea;
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: #171920;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(70, 45, 222, 0.46);
  box-shadow: 0 0 0 4px rgba(70, 45, 222, 0.12);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.site-footer {
  padding: 0 20px 52px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.footer-links a {
  color: #252931;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-meta {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(14, 18, 28, 0.52);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.modal-frame {
  position: fixed;
  inset: 0;
  z-index: 91;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
  pointer-events: none;
}

.modal-backdrop.is-open,
.modal-frame.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-frame.is-open {
  pointer-events: auto;
}

.modal-panel {
  width: min(640px, calc(100vw - 40px));
  max-height: min(90vh, 900px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 34px 100px rgba(8, 12, 18, 0.22);
  padding: 28px;
  transform: translateY(10px) scale(0.985);
  transition: transform 180ms ease;
}

.modal-frame.is-open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.modal-header h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.modal-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  color: #1b1e24;
}

.modal-copy {
  margin: 0;
  color: #2d3138;
  line-height: 1.6;
}

.modal-copy + .modal-copy {
  margin-top: 10px;
}

@media (max-width: 920px) {
  .header-inner {
    padding: 22px 20px;
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav,
  .login-link {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 3;
  }

  .mobile-nav {
    display: block;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 220ms ease, padding 220ms ease;
  }

  body.menu-open .mobile-nav {
    max-height: 220px;
    padding-top: 0;
    padding-bottom: 18px;
  }
}

@media (max-width: 720px) {
  .primary-button {
    width: min(100%, 355px);
    min-width: 0;
  }

  .testimonial-card {
    padding: 30px 24px 26px;
  }

  .trusted-list span,
  .pill-chip {
    width: 100%;
    max-width: 320px;
  }

  .cta-card {
    padding: 46px 22px;
    border-radius: 28px;
  }

  .modal-panel {
    padding: 22px;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
