:root {
  --ink: #181b3f;
  --muted: #70748a;
  --soft: #f5f7fc;
  --line: #e6e9f4;
  --primary: #5668ee;
  --primary-dark: #3340b8;
  --yellow: #ffc944;
  --white: #fff;
  --shadow: 0 24px 70px rgba(45, 55, 100, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 30px clamp(22px, 5vw, 76px);
}

.brand {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.brand img {
  width: 130px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  font-size: 15px;
  font-weight: 500;
}

.main-nav a {
  color: #10142d;
}

.purchase {
  min-width: 94px;
  padding: 10px 20px;
  text-align: center;
  border: 1px solid #1b213e;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 30px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 44%) minmax(420px, 56%);
  min-height: 840px;
  overflow: hidden;
  background: linear-gradient(165deg, #f8f9fd 0%, #f8f9fd 74%, #fff 74.3%);
}

.hero-shape {
  position: absolute;
  top: -150px;
  right: -80px;
  width: min(48vw, 720px);
  height: 940px;
  background: linear-gradient(145deg, #ffd863, #ffbd37);
  transform: skewX(-18deg);
  transform-origin: top right;
}

.hero-shape::after {
  content: "";
  position: absolute;
  top: 430px;
  left: -110px;
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, .48);
  transform: rotate(45deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 540px;
  padding: 90px 0 120px clamp(26px, 5vw, 76px);
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(42px, 5.1vw, 72px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero p {
  max-width: 520px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 22px);
}

.hero-actions,
.admin-actions,
.cta div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  min-width: 150px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, #6378ff, #4a55dc);
  box-shadow: 0 12px 28px rgba(82, 97, 232, .28);
}

.btn-outline {
  color: var(--primary-dark);
  background: transparent;
  border-color: #8290d6;
}

.btn-light {
  color: var(--primary-dark);
  background: var(--white);
}

.btn-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, .78);
}

.hero-media {
  position: relative;
  z-index: 3;
  align-self: center;
  margin-right: -180px;
  padding-top: 60px;
}

.hero-media img {
  width: min(820px, 70vw);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 8vw, 130px);
  margin-top: -128px;
  padding: 0 24px 150px;
}

.logo-strip img {
  width: 70px;
  opacity: .38;
  filter: grayscale(1);
}

.intro,
.integrations,
.faq-heading {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: #c9cedc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2,
h3,
h4,
p {
  margin-top: 0;
}

.intro h2,
.help-copy h2,
.faq h2,
.cta h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.intro p:not(.eyebrow),
.feature-copy p,
.help-copy p,
.faq-heading p,
.integrations p,
.site-footer p {
  color: var(--muted);
}

.feature-stack {
  display: grid;
  gap: 80px;
  width: min(1120px, calc(100% - 48px));
  margin: 110px auto;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: clamp(34px, 6vw, 88px);
}

.feature-row.reverse {
  grid-template-columns: .94fr 1.06fr;
}

.feature-row.reverse .feature-image {
  order: 2;
}

.feature-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-copy h3,
.integrations h3 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.2;
  letter-spacing: 0;
}

.help-section {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(34px, 6vw, 80px);
  width: min(1120px, calc(100% - 48px));
  margin: 130px auto;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.help-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(30, 39, 80, .06);
}

.help-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  color: var(--white);
  background: var(--primary);
  border-radius: 50%;
  font-weight: 800;
}

.help-grid h4 {
  margin-bottom: 8px;
  font-size: 18px;
}

.help-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.testimonial {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 58px;
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto 140px;
  padding: 46px;
  border-radius: 8px;
  background: #f7f8fd;
}

.quote-mark {
  color: var(--primary);
  font-size: 74px;
  line-height: .6;
}

blockquote {
  margin: 0 0 24px;
  font-size: clamp(24px, 2.7vw, 38px);
  font-weight: 700;
  line-height: 1.35;
}

.testimonial small {
  display: block;
  color: var(--muted);
}

.testimonial img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.integrations {
  margin-bottom: 120px;
}

.integration-orbit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
}

.integration-orbit span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  color: var(--primary-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 16px 32px rgba(45, 55, 100, .1);
  font-weight: 800;
}

.faq {
  padding: 110px 24px;
  background: var(--soft);
}

.faq-list {
  display: grid;
  gap: 14px;
  width: min(880px, 100%);
  margin: 44px auto 0;
}

details {
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 14px 0 0;
  color: var(--muted);
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: min(1000px, calc(100% - 48px));
  margin: 90px auto;
}

.link-cards a {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(30, 39, 80, .06);
}

.link-cards p {
  margin-bottom: 0;
  color: var(--muted);
}

.cta {
  padding: 92px 24px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(135deg, #5367f4, #2f3ab8);
}

.cta p {
  margin-bottom: 30px;
  font-size: 24px;
}

.cta div {
  justify-content: center;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 70px clamp(24px, 5vw, 76px) 34px;
  background: #111633;
  color: var(--white);
}

.site-footer h3 {
  font-size: 30px;
  font-weight: 500;
}

.site-footer h4 {
  margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, .72);
}

.site-footer small {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, .48);
}

.admin-auth,
.admin-shell {
  min-height: 100vh;
  background: #f6f8fc;
}

.admin-auth {
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-card,
.admin-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-card {
  width: min(440px, 100%);
  padding: 34px;
}

.admin-card h1,
.admin-topbar h2 {
  margin-bottom: 10px;
  letter-spacing: 0;
}

label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: var(--ink);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d7dbea;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

input {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  padding: 18px;
  min-height: 96px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.55;
  resize: vertical;
}

.alert,
.success {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.alert {
  color: #9f1d2e;
  background: #ffe8ec;
}

.success {
  color: #176238;
  background: #e5f8ee;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.admin-sidebar {
  padding: 32px;
  background: #111633;
  color: var(--white);
}

.admin-sidebar h1 {
  margin: 0 0 34px;
  font-weight: 500;
}

.admin-sidebar a,
.admin-sidebar button {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  text-align: left;
  font: inherit;
}

.admin-editor {
  width: min(1180px, calc(100% - 48px));
  margin: 32px auto;
  padding: 32px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-help {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.admin-help p {
  color: var(--muted);
}

.admin-form {
  display: grid;
  gap: 22px;
}

.admin-section {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-section h3 {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
}

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

.admin-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.admin-repeat {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #edf0f7;
  border-radius: 8px;
  background: #fafbff;
}

.admin-repeat.compact {
  margin-top: 0;
}

.admin-repeat h4 {
  margin-bottom: 12px;
}

.admin-savebar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  padding: 18px 0 0;
  background: linear-gradient(180deg, rgba(246, 248, 252, 0), #fff 30%);
}

@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 82px;
    right: 22px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: min(280px, calc(100vw - 44px));
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .hero,
  .feature-row,
  .feature-row.reverse,
  .help-section,
  .testimonial,
  .site-footer,
  .admin-shell {
    grid-template-columns: 1fr;
  }

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

  .hero-copy {
    padding: 60px 24px 34px;
  }

  .hero-media {
    margin: 0;
    padding: 0 24px 140px;
  }

  .hero-media img {
    width: 100%;
  }

  .hero-shape {
    width: 72vw;
    height: 600px;
  }

  .logo-strip {
    margin-top: -90px;
    padding-bottom: 100px;
    gap: 26px;
  }

  .feature-row.reverse .feature-image {
    order: 0;
  }

  .help-grid,
  .link-cards {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
  }

  .admin-sidebar h1 {
    margin: 0 auto 0 0;
  }

  .admin-sidebar a,
  .admin-sidebar button {
    margin: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 22px;
  }

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

  .btn {
    width: 100%;
  }

  .logo-strip {
    flex-wrap: wrap;
  }

  .testimonial,
  .admin-card,
  .admin-editor {
    padding: 24px;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
