:root {
  color-scheme: light;
  --bg: #f8f9ff;
  --bg-dark: #0b1433;
  --text: #0f1f3d;
  --text-muted: rgba(15, 31, 61, 0.68);
  --accent: #5865f2;
  --accent-dark: #3941c2;
  --accent-soft: rgba(88, 101, 242, 0.12);
  --border: rgba(15, 31, 61, 0.12);
  --pale: #eef1ff;
  --gradient: linear-gradient(135deg, #4f5bd5, #6f7bf6 45%, #8fa2ff);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

body {
  margin: 0;
  min-height: 100vh;
}

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

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

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease, border 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn--primary,
.btn--accent {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 18px 34px rgba(88, 101, 242, 0.24);
}

.btn--primary:hover,
.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(88, 101, 242, 0.28);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border: 1px solid rgba(15, 31, 61, 0.12);
}

.btn--ghost:hover {
  border-color: rgba(15, 31, 61, 0.3);
  background: rgba(88, 101, 242, 0.1);
  color: var(--accent);
}

.btn--large {
  padding: 1rem 2.4rem;
  font-size: 1.02rem;
}

.hero {
  background: radial-gradient(circle at 10% 20%, #ffffff 10%, #eef0ff 58%, #dbe0ff);
  padding: 3rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--text);
}

.brand__symbol {
  background: var(--gradient);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s ease;
}

.hero__intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero__copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.hero__copy h1 {
  font-size: clamp(2.5rem, 3.5vw, 3.6rem);
  line-height: 1.15;
  margin: 1.2rem 0;
  color: var(--text);
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
  flex-wrap: wrap;
}

.hero__trust {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  opacity: 0.85;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.screen {
  width: clamp(280px, 28vw, 360px);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 32px 60px rgba(23, 32, 71, 0.18);
  background: #fff;
}

.screen__header {
  display: flex;
  gap: 0.4rem;
  padding: 1rem;
  background: rgba(15, 31, 61, 0.06);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot--red {
  background: #ff5f56;
}
.dot--yellow {
  background: #ffbd2e;
}
.dot--green {
  background: #27c93f;
}

.screen__body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble {
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  line-height: 1.5;
  font-size: 0.95rem;
  box-shadow: 0 12px 24px rgba(23, 32, 71, 0.12);
}

.chat-bubble--user {
  background: rgba(88, 101, 242, 0.12);
  color: var(--accent-dark);
  align-self: flex-start;
}

.chat-bubble--assistant {
  background: #fff;
  border: 1px solid rgba(88, 101, 242, 0.15);
  align-self: flex-end;
}

.insight-card {
  border: 1px solid rgba(88, 101, 242, 0.15);
  border-radius: 16px;
  padding: 1.1rem;
  background: rgba(88, 101, 242, 0.06);
  font-size: 0.9rem;
  box-shadow: 0 12px 28px rgba(88, 101, 242, 0.18);
}

.insight-card h4 {
  margin: 0 0 0.6rem;
  font-size: 0.98rem;
}

.insight-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section--light {
  background: #fff;
}

.section--pale {
  background: var(--pale);
}

.section--gradient {
  background: linear-gradient(140deg, rgba(88, 101, 242, 0.07), rgba(33, 51, 98, 0.85));
  color: #fff;
}

.section--cta {
  background: var(--gradient);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section__title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
  text-align: center;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2.5rem;
}

.section--gradient .section__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.section__split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem 3rem;
  align-items: center;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.8rem;
}

.bullet-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.8rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 31, 61, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(15, 31, 61, 0.12);
}

.feature-icon {
  font-size: 1.8rem;
  display: inline-flex;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.75rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.pricing-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.pricing-card {
  border-radius: 24px;
  border: 1px solid rgba(15, 31, 61, 0.12);
  padding: 2.4rem 2rem;
  background: #fff;
  box-shadow: 0 25px 50px rgba(15, 31, 61, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
}

.pricing-card--featured {
  border: 2px solid rgba(88, 101, 242, 0.4);
  background: linear-gradient(165deg, rgba(88, 101, 242, 0.08), rgba(255, 255, 255, 0.9));
  transform: translateY(-6px);
}

.pricing-card__tier {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent-dark);
}

.pricing-card__price {
  font-size: 2.6rem;
  font-weight: 700;
  margin: 0;
}

.pricing-card__price span {
  font-size: 0.65em;
  color: var(--text-muted);
}

.pricing-card__tagline {
  color: var(--text-muted);
  margin: 0;
}

.pricing-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
  color: var(--text-muted);
}

.pricing-card__list li {
  position: relative;
  padding-left: 1.5rem;
}

.pricing-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.testimonial-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.testimonial-card {
  background: #fff;
  padding: 1.8rem;
  border-radius: 20px;
  border: 1px solid rgba(15, 31, 61, 0.1);
  box-shadow: 0 18px 40px rgba(15, 31, 61, 0.08);
}

.testimonial-card blockquote {
  margin: 0 0 1rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
}

.testimonial-card figcaption {
  font-weight: 600;
  color: var(--accent-dark);
}

.faq {
  display: grid;
  gap: 2.5rem;
}

.faq__items {
  display: grid;
  gap: 1rem;
}

.faq details {
  border: 1px solid rgba(15, 31, 61, 0.1);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  background: #fff;
  box-shadow: 0 16px 32px rgba(15, 31, 61, 0.06);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "＋";
  float: right;
  font-weight: 400;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "—";
}

.faq details p {
  margin: 0.8rem 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  gap: 2rem;
}

.cta p {
  margin: 0.75rem 0 0;
}

.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 2rem;
}

.footer__content {
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.brand--footer .brand__symbol {
  background: rgba(255, 255, 255, 0.1);
}

.footer__links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.75);
}

.footer__links a:hover {
  color: #fff;
}

.footer__heading {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.footer__cta .btn {
  width: fit-content;
}

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__intro {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__copy .lead {
    margin: 0 auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__trust {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }
}

@media (max-width: 840px) {
  .hero__nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    order: 3;
    width: 100%;
  }

  .nav-cta {
    margin-left: auto;
  }

  .section__title {
    text-align: left;
  }

  .section__subtitle {
    text-align: left;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .hero__nav {
    align-items: center;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .hero__intro {
    text-align: left;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__trust {
    justify-content: flex-start;
  }

  .feature-grid,
  .pricing-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .section__title,
  .section__subtitle {
    text-align: left;
  }

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

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

  .pricing-card {
    text-align: left;
  }
}

.nav-links--open {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 1rem;
}

.nav-cta--mobile {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .nav-links--open {
    display: flex !important;
    align-items: flex-start;
  }

  .nav-cta--mobile {
    display: flex !important;
  }
}
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
}

.modal[hidden] {
  display: none !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 20, 51, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1500;
}

.modal__dialog {
  position: relative;
  width: min(440px, 92vw);
  max-height: 90vh;
  background: #ffffff;
  border-radius: 24px;
  padding: 2.4rem 2.2rem;
  box-shadow: 0 34px 64px rgba(15, 31, 61, 0.24);
  overflow-y: auto;
  z-index: 1600;
}

.modal__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: rgba(15, 31, 61, 0.1);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal__close:hover {
  background: rgba(88, 101, 242, 0.12);
}

.modal__header {
  margin-bottom: 1.6rem;
}

.modal__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.modal__title {
  margin: 0 0 0.6rem;
  font-size: 1.8rem;
}

.modal__subtitle {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal__body {
  display: flex;
  flex-direction: column;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
}

.form-group input {
  border-radius: 12px;
  border: 1px solid rgba(15, 31, 61, 0.18);
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.18);
}

.label-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.form-hint {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-message {
  min-height: 1.2rem;
  font-size: 0.88rem;
  color: #b42318;
  margin-top: 0.6rem;
}

.form-message.success {
  color: #0f7a4c;
}

.modal__footer {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.8rem;
}

.modal__footer .btn {
  width: 100%;
  justify-content: center;
}

.modal__footer .btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.terms {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 640px) {
  .modal__dialog {
    padding: 2rem 1.6rem;
  }
}
