/* =========================================================
   DESIGN TOKENS
   Light / multi-color system — NO BLACK
========================================================= */

:root {
  /* Core surfaces */
  --page: #f7f5ff;
  --surface: #ffffff;
  --surface-soft: #f1efff;
  --surface-blue: #edf7ff;
  --surface-green: #effbf5;
  --surface-amber: #fff8e9;
  --surface-violet: #f3efff;

  /* Text */
  --text: #242333;
  --text-soft: #45445a;
  --text-muted: #68677a;
  --text-dim: #858397;

  /* Borders */
  --border: #dedbea;
  --border-light: #c9c5da;

  /* Brand colors */
  --violet: #7655d9;
  --violet-light: #9a7bea;
  --violet-pale: #e7defe;

  --blue: #347fca;
  --blue-light: #6aa9e5;
  --blue-pale: #dceeff;

  --green: #299b68;
  --green-light: #62c993;
  --green-pale: #d9f5e7;

  --amber: #c88921;
  --amber-light: #e5b75c;
  --amber-pale: #fff0c9;

  /* Accent */
  --pink: #c35b91;
  --pink-pale: #f8dfed;

  /* Layout */
  --max-width: 1200px;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  /* Shadows */
  --shadow:
    0 24px 70px rgba(75, 65, 120, .12);

  --shadow-soft:
    0 12px 35px rgba(75, 65, 120, .08);

  /* Typography */
  --font:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background:
    radial-gradient(
      circle at 50% -15%,
      rgba(154, 123, 234, .16),
      transparent 34%
    ),
    var(--page);

  color: var(--text);

  font-family: var(--font);

  /*
    Larger base size for readability.
  */
  font-size: 18px;

  line-height: 1.7;

  text-rendering: optimizeLegibility;

  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

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

a {
  color: inherit;
}

button {
  cursor: pointer;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.skip-link {
  position: fixed;

  left: 15px;
  top: 15px;

  z-index: 9999;

  padding: 12px 18px;

  background: var(--text);
  color: var(--surface);

  border-radius: 8px;

  font-weight: 700;

  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}


/* =========================================================
   LAYOUT
========================================================= */

.container {
  width: min(
    calc(100% - 40px),
    var(--max-width)
  );

  margin-inline: auto;
}

main {
  display: block;
}

section {
  position: relative;

  padding: 120px 0;

  scroll-margin-top: 100px;
}


/* =========================================================
   DYNAMIC SECTION THEMES
========================================================= */

/*
  Each section has its own subtle color identity.
  The overall page remains visually unified.
*/

.section-violet {
  background:
    radial-gradient(
      circle at 10% 45%,
      rgba(154, 123, 234, .17),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      var(--surface-violet),
      #faf9ff
    );
}

.section-blue {
  background:
    radial-gradient(
      circle at 90% 40%,
      rgba(106, 169, 229, .17),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      var(--surface-blue),
      #f8fcff
    );
}

.section-green {
  background:
    radial-gradient(
      circle at 20% 70%,
      rgba(98, 201, 147, .17),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      var(--surface-green),
      #fafffc
    );
}

.section-amber {
  background:
    radial-gradient(
      circle at 80% 30%,
      rgba(229, 183, 92, .18),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      var(--surface-amber),
      #fffdf7
    );
}

.section-grid {
  background-color: var(--surface);

  background-image:
    linear-gradient(
      rgba(118, 85, 217, .055) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(118, 85, 217, .055) 1px,
      transparent 1px
    );

  background-size: 45px 45px;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  z-index: 1000;

  background:
    rgba(255, 255, 255, .90);

  backdrop-filter: blur(18px);

  border-bottom: 1px solid var(--border);

  box-shadow:
    0 5px 25px rgba(80, 70, 120, .06);
}

.nav {
  min-height: 76px;

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

  gap: 25px;
}

.logo {
  display: inline-flex;
  align-items: center;

  gap: 10px;

  text-decoration: none;

  color: var(--text);

  font-size: 19px;
  font-weight: 800;

  letter-spacing: -.04em;
}

.logo-mark {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      var(--violet-light),
      var(--violet)
    );

  color: white;

  box-shadow:
    0 8px 25px rgba(118, 85, 217, .22);
}

.logo-ai {
  color: var(--violet);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--text-soft);

  font-size: 14px;

  text-decoration: none;

  padding: 8px 4px;

  transition:
    color .2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--violet);
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.menu-toggle {
  display: none;

  min-width: 46px;
  min-height: 46px;

  border: 1px solid var(--border-light);

  border-radius: 9px;

  background: var(--surface);

  color: var(--text);
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
  min-height: 46px;

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

  gap: 8px;

  padding: 10px 19px;

  border-radius: var(--radius-sm);

  border: 1px solid var(--border-light);

  background: var(--surface);

  color: var(--text);

  font-size: 14px;
  font-weight: 700;

  text-decoration: none;

  box-shadow: var(--shadow-soft);

  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.button:hover {
  background: var(--surface-soft);

  border-color: var(--violet-light);

  color: var(--violet);

  transform: translateY(-2px);

  box-shadow: var(--shadow);
}

.button-primary {
  background: var(--violet);

  color: white;

  border-color: var(--violet);

  box-shadow:
    0 10px 28px rgba(118, 85, 217, .22);
}

.button-primary:hover {
  background: #6746c9;

  color: white;

  border-color: #6746c9;
}

.button-violet {
  background: var(--violet-pale);

  color: var(--violet);

  border-color: #c9b8f4;
}

.button-blue {
  background: var(--blue-pale);

  color: #286ba9;

  border-color: #b5d7f3;
}

.button-green {
  background: var(--green-pale);

  color: #217b53;

  border-color: #a9dfc4;
}

.button-amber {
  background: var(--amber-pale);

  color: #956816;

  border-color: #ecd394;
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  padding: 7px 13px;

  border: 1px solid var(--border);

  border-radius: 999px;

  background: rgba(255, 255, 255, .72);

  color: var(--violet);

  font-size: 13px;
  font-weight: 800;

  box-shadow:
    0 5px 20px rgba(75, 65, 120, .05);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: var(--green);

  box-shadow:
    0 0 0 4px rgba(41, 155, 104, .10);
}

h1,
h2,
h3,
h4 {
  margin-top: 0;

  color: var(--text);

  line-height: 1.08;

  letter-spacing: -.055em;
}

h1 {
  font-size:
    clamp(3.4rem, 8vw, 6.5rem);
}

h2 {
  font-size:
    clamp(2.5rem, 5vw, 4.4rem);
}

h3 {
  font-size: 1.4rem;
}

p {
  color: var(--text-muted);
}

.hero-copy,
.section-copy {
  font-size: 19px;

  line-height: 1.75;
}

.gradient-violet {
  background:
    linear-gradient(
      100deg,
      var(--violet),
      var(--pink),
      var(--violet-light)
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.gradient-blue {
  background:
    linear-gradient(
      100deg,
      var(--blue),
      #4ca4df,
      var(--violet)
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.gradient-green {
  background:
    linear-gradient(
      100deg,
      var(--green),
      #38ae7a,
      var(--blue)
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  min-height: 900px;

  padding-top: 170px;
  padding-bottom: 100px;

  text-align: center;

  display: flex;
  align-items: center;

  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(154, 123, 234, .20),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      #f6f2ff,
      #fbfaff
    );
}

.hero-content {
  width: 100%;
}

.hero h1 {
  max-width: 1000px;

  margin: 30px auto 0;
}

.hero-copy {
  max-width: 720px;

  margin: 30px auto 0;
}

.hero-actions {
  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 35px;
}

.logo-cloud {
  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 35px;

  margin-top: 65px;

  color: var(--text-dim);

  font-size: 14px;

  font-weight: 750;
}


/* =========================================================
   CARDS
========================================================= */

.card {
  position: relative;

  padding: 30px;

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.96),
      rgba(246,244,253,.88)
    );

  box-shadow:
    var(--shadow-soft);

  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-4px);

  border-color: var(--border-light);

  box-shadow: var(--shadow);
}

.card p {
  font-size: 17px;
}


/* =========================================================
   FEATURE GRID
========================================================= */

.grid-3 {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 16px;

  margin-top: 60px;
}

.icon {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  margin: 40px 0 22px;

  border-radius: 14px;

  background: var(--violet-pale);

  border: 1px solid #cbbcf1;

  color: var(--violet);

  font-size: 21px;
}


/* =========================================================
   TWO COLUMN
========================================================= */

.two-column {
  display: grid;

  grid-template-columns:
    .9fr 1.1fr;

  gap: 80px;

  align-items: center;
}


/* =========================================================
   PROCESS
========================================================= */

.steps {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 20px;

  margin-top: 65px;
}

.step-number {
  width: 60px;
  height: 60px;

  display: grid;
  place-items: center;

  margin-bottom: 20px;

  border-radius: 50%;

  border: 1px solid #cbbcf1;

  background: var(--violet-pale);

  color: var(--violet);

  font-size: 13px;
  font-weight: 800;
}


/* =========================================================
   INTEGRATIONS
========================================================= */

.integration-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 12px;

  margin-top: 50px;
}

.integration {
  padding: 18px;

  border: 1px solid var(--border);

  border-radius: 12px;

  background: var(--surface);

  color: var(--text-soft);

  font-size: 16px;
  font-weight: 700;

  box-shadow: var(--shadow-soft);
}


/* =========================================================
   BLOG
========================================================= */

.blog-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 18px;

  margin-top: 55px;
}

.blog-card {
  padding: 28px;

  border: 1px solid var(--border);

  border-radius: var(--radius-md);

  background: var(--surface);

  box-shadow: var(--shadow-soft);
}

.blog-card .category {
  color: var(--violet);

  font-size: 12px;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: .1em;
}

.blog-card h3 {
  margin-top: 18px;
}

.blog-card p {
  font-size: 16px;
}


/* =========================================================
   CTA
========================================================= */

.cta {
  text-align: center;

  background:
    linear-gradient(
      135deg,
      var(--surface-violet),
      var(--surface-blue)
    );
}

.cta-box {
  padding: 100px 30px;

  border: 1px solid #cfc4ee;

  border-radius: var(--radius-lg);

  background:
    radial-gradient(
      circle at 50% 100%,
      rgba(154, 123, 234, .20),
      transparent 55%
    ),
    var(--surface);

  box-shadow: var(--shadow);
}

.cta-box p {
  max-width: 650px;

  margin: 25px auto 32px;

  font-size: 19px;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  border-top: 1px solid var(--border);

  padding: 65px 0 30px;

  background:
    linear-gradient(
      135deg,
      #f0edf9,
      #f8f7fc
    );
}

.footer-grid {
  display: grid;

  grid-template-columns:
    2fr repeat(3, 1fr);

  gap: 50px;
}

.footer-column h2 {
  font-size: 14px;

  letter-spacing: 0;

  color: var(--text);
}

.footer-column a {
  display: block;

  width: fit-content;

  margin-bottom: 11px;

  color: var(--text-muted);

  font-size: 14px;

  text-decoration: none;
}

.footer-column a:hover {
  color: var(--violet);

  text-decoration: underline;
}

.footer-description {
  max-width: 320px;

  font-size: 16px;
}

.copyright {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  margin-top: 55px;

  padding-top: 20px;

  border-top: 1px solid var(--border);

  color: var(--text-dim);

  font-size: 13px;
}


/* =========================================================
   FORMS
========================================================= */

.form {
  max-width: 700px;
}

.form-group {
  margin-bottom: 20px;
}

.form label {
  display: block;

  margin-bottom: 7px;

  color: var(--text);

  font-size: 15px;
  font-weight: 700;
}

.form input,
.form textarea,
.form select {
  width: 100%;

  padding: 14px 16px;

  border: 1px solid var(--border-light);

  border-radius: 10px;

  background: var(--surface);

  color: var(--text);

  font-size: 17px;

  box-shadow:
    inset 0 1px 2px rgba(75, 65, 120, .04);
}

.form textarea {
  min-height: 150px;

  resize: vertical;
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--text-dim);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--violet);

  outline: 3px solid rgba(118, 85, 217, .15);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

  .nav-links,
  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav.mobile-open {
    position: relative;
  }

  .nav.mobile-open .nav-links {
    position: absolute;

    display: flex;

    flex-direction: column;

    align-items: stretch;

    top: 76px;
    left: 0;
    right: 0;

    padding: 15px;

    background: rgba(255,255,255,.98);

    border: 1px solid var(--border);

    box-shadow: var(--shadow);
  }

  .nav.mobile-open .nav-actions {
    position: absolute;

    display: flex;

    top: 285px;

    left: 15px;
    right: 15px;

    background: rgba(255,255,255,.98);

    padding-bottom: 15px;
  }

  .grid-3,
  .blog-grid,
  .integration-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .two-column {
    grid-template-columns: 1fr;

    gap: 50px;
  }

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


@media (max-width: 650px) {

  body {
    font-size: 17px;
  }

  .container {
    width: min(
      calc(100% - 28px),
      var(--max-width)
    );
  }

  section {
    padding: 85px 0;
  }

  .hero {
    min-height: auto;

    padding-top: 135px;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero-copy,
  .section-copy {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .grid-3,
  .blog-grid,
  .integration-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 70px 20px;
  }

  .copyright {
    flex-direction: column;
  }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
