:root {
  --ink: #101820;
  --muted: #647079;
  --paper: #f8f6f1;
  --surface: #ffffff;
  --line: rgba(16, 24, 32, 0.12);
  --teal: #1f8a8a;
  --coral: #ef6f5e;
  --amber: #f2b84b;
  --violet: #6f5bd6;
  --shadow: 0 24px 80px rgba(16, 24, 32, 0.16);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(248, 246, 241, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.trust-row,
.hero-actions,
.proof-strip,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
}

.nav-links {
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.94rem;
}

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

.nav-cta {
  padding: 11px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 700;
}

.hero-section {
  position: relative;
  min-height: calc(100vh - 67px);
  display: grid;
  align-items: end;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 4vw, 56px) clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.78), rgba(16, 24, 32, 0.42), rgba(16, 24, 32, 0.08)),
    url("../img/lexi-hero.svg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-content .eyebrow {
  color: #ffd6b0;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(4rem, 14vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.hero-copy {
  max-width: 650px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 14px 28px rgba(239, 111, 94, 0.25);
}

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(16px);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  flex-wrap: wrap;
  gap: 18px;
  margin: 34px 0 0;
}

.trust-row div {
  min-width: 118px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(16px);
}

.trust-row dt {
  font-size: 1.12rem;
  font-weight: 900;
}

.trust-row dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.proof-strip {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 18px 20px;
  color: var(--muted);
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.proof-strip span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
}

.split-section,
.feature-section,
.package-section,
.seo-section,
.pricing-section,
.faq-section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 4vw, 56px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  background: #fff;
}

.split-section p,
.section-heading p,
.conversion-band p,
.price-card p,
.feature-card p,
.faq-list p {
  color: var(--muted);
  line-height: 1.7;
}

.check-list,
.price-card ul {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li,
.price-card li {
  position: relative;
  padding-left: 28px;
  margin: 13px 0;
  color: #31404a;
}

.check-list li::before,
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 13px;
  height: 8px;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}

.demo-panel {
  min-height: 470px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 25% 25%, rgba(31, 138, 138, 0.25), transparent 28%),
    linear-gradient(135deg, #101820, #27434c 55%, #f2b84b);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 54px);
  box-shadow: var(--shadow);
}

.demo-window {
  width: min(420px, 100%);
  padding: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  backdrop-filter: blur(22px);
}

.demo-topbar {
  display: flex;
  gap: 7px;
  margin-bottom: 22px;
}

.demo-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.demo-message {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.45;
}

.demo-message.bot {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.demo-message.user {
  margin-left: auto;
  color: var(--ink);
  background: #fff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.price-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 34px;
  margin-bottom: 20px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
}

.conversion-band {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 24px;
  align-items: center;
  padding: clamp(42px, 7vw, 74px) clamp(20px, 4vw, 56px);
  color: #fff;
  background: var(--ink);
}

.conversion-band h2 {
  margin-bottom: 0;
}

.conversion-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

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

.package-section {
  background: #fff;
}

.comparison-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(110px, 1fr));
  border-top: 1px solid var(--line);
}

.comparison-row:first-child {
  border-top: 0;
}

.comparison-row span {
  min-width: 0;
  padding: 16px;
  border-left: 1px solid var(--line);
  color: #31404a;
}

.comparison-row span:first-child {
  border-left: 0;
  font-weight: 800;
  color: var(--ink);
}

.comparison-head {
  background: var(--ink);
}

.comparison-head span,
.comparison-head span:first-child {
  color: #fff;
}

.seo-section {
  background: #fff;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 470px;
}

.price-card.featured {
  border-color: rgba(239, 111, 94, 0.45);
  box-shadow: var(--shadow);
}

.price {
  color: var(--ink) !important;
  font-size: 3rem;
  line-height: 1;
  font-weight: 900;
}

.badge {
  width: fit-content;
  padding: 7px 10px;
  color: #fff !important;
  background: var(--violet);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.price-card .button {
  margin-top: auto;
}

.faq-section {
  background: #fff;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

details p {
  margin: 12px 0 0;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 4vw, 56px);
  background: var(--ink);
  color: #fff;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.lexi-chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.lexi-chat-launcher svg {
  width: 27px;
  height: 27px;
}

.lexi-chat {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 50;
  width: min(390px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 120px));
  display: none;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.lexi-chat.is-open {
  display: grid;
}

.lexi-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, #101820, #1f8a8a);
}

.lexi-chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.lexi-status {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 500;
}

.lexi-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.lexi-icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: inherit;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  cursor: pointer;
}

.lexi-messages {
  overflow-y: auto;
  padding: 16px;
}

.lexi-bubble {
  width: fit-content;
  max-width: 86%;
  padding: 11px 13px;
  margin-bottom: 11px;
  border-radius: 8px;
  line-height: 1.5;
  font-size: 0.94rem;
}

.lexi-bubble.bot {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.lexi-bubble.user {
  margin-left: auto;
  color: #fff;
  background: var(--teal);
}

.lexi-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}

.lexi-quick-actions button {
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.lexi-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.lexi-chat-form input {
  min-width: 0;
  flex: 1;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.lexi-chat-form button {
  width: 44px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--coral);
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .split-section,
  .conversion-band {
    grid-template-columns: 1fr;
  }

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

  .comparison-table {
    overflow-x: auto;
  }

  .comparison-row {
    min-width: 700px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 16px;
  }

  .nav-cta {
    display: none;
  }

  .hero-section {
    min-height: 88vh;
  }

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

  .price-card {
    min-height: auto;
  }

  .lexi-chat {
    right: 16px;
    bottom: 88px;
  }
}
