:root {
  --page: #f5f7fb;
  --page-strong: #e9eef7;
  --ink: #111827;
  --ink-strong: #07111f;
  --muted: #637083;
  --subtle: #8a95a6;
  --line: #d8e0ec;
  --line-strong: #b8c4d6;
  --surface: #ffffff;
  --surface-soft: #f9fbff;
  --navy: #07172d;
  --navy-2: #10213b;
  --blue: #155eef;
  --blue-soft: #e8efff;
  --orange: #f17020;
  --orange-strong: #c75012;
  --green: #079455;
  --radius: 8px;
  --shadow: 0 20px 55px rgba(17, 24, 39, 0.12);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f8fafc 0, var(--page) 45%, #eef3fa 100%),
    repeating-linear-gradient(90deg, rgba(17, 24, 39, 0.035) 0 1px, transparent 1px 88px);
  font-family: var(--font);
}

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

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-shell {
  position: relative;
}

.site-shell__backdrop {
  display: none;
}

.site-header,
.site-main,
.site-footer,
.flash-stack {
  position: relative;
  z-index: 1;
}

.site-header__inner,
.flash-stack__inner,
.site-footer__inner,
.hero,
.proof-strip__inner,
.section-band,
.install-band,
.feature-grid,
.closing-band,
.content-shell,
.auth-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(216, 224, 236, 0.82);
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 76px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.site-brand img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(7, 23, 45, 0.14);
}

.site-brand strong {
  display: block;
  color: var(--ink-strong);
  font-size: 1rem;
  line-height: 1.1;
}

.site-brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.site-nav,
.site-actions,
.hero__actions,
.closing-band__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-nav {
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a:hover,
.auth-card__meta a,
.site-footer__links a:hover {
  color: var(--ink-strong);
}

.site-actions {
  justify-content: flex-end;
  min-width: max-content;
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--orange);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(241, 112, 32, 0.23);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.site-button:hover {
  background: var(--orange-strong);
  transform: translateY(-1px);
}

.site-button--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-strong);
  box-shadow: none;
}

.site-button--ghost:hover {
  border-color: var(--line-strong);
  background: #ffffff;
}

.site-button--dark {
  background: var(--navy);
  box-shadow: 0 14px 30px rgba(7, 23, 45, 0.18);
}

.site-button--dark:hover {
  background: #0f274a;
}

.flash-stack {
  padding-top: 16px;
}

.flash-stack__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flash-card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.flash-card.is-error {
  border-color: #f4b6b6;
  color: #8a1f1f;
}

.flash-card.is-success {
  border-color: #a8dec1;
  color: #095c37;
}

.site-main {
  padding: 54px 0 82px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(560px, 1.08fr);
  gap: 38px;
  align-items: center;
}

.hero__copy {
  max-width: 560px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.hero__badges span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #174ea6;
  font-size: 0.78rem;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.install-band h2,
.closing-band h2,
.content-shell h1,
.auth-card h1 {
  margin: 0;
  color: var(--ink-strong);
  font-weight: 850;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 13ch;
  font-size: 3.55rem;
  line-height: 0.98;
}

.hero__lede,
.section-heading p:not(.eyebrow),
.install-band__copy p:not(.eyebrow),
.content-shell__header p,
.content-shell__body p,
.auth-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero__lede {
  max-width: 58ch;
  margin: 20px 0 0;
  font-size: 1.08rem;
}

.hero__actions {
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
}

.hero__stats div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.hero__stats dt {
  color: var(--ink-strong);
  font-weight: 850;
}

.hero__stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.product-preview {
  overflow: hidden;
  border: 1px solid rgba(7, 23, 45, 0.2);
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.product-preview__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #0b1f3c;
}

.product-preview__brand {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 850;
}

.status-pill {
  background: rgba(12, 196, 120, 0.14);
  color: #98f0c2;
}

.status-pill--soft {
  min-height: 24px;
  background: #eaf8ef;
  color: var(--green);
}

.product-preview__grid {
  display: grid;
  grid-template-columns: 116px minmax(190px, 0.85fr) minmax(250px, 1.05fr);
  min-height: 460px;
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.preview-sidebar span {
  padding: 10px 9px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  font-weight: 700;
}

.preview-sidebar span.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.inbox-preview,
.thread-preview,
.context-preview {
  padding: 18px;
}

.inbox-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #f7f9fc;
}

.preview-heading,
.thread-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-heading span,
.thread-preview__header span,
.context-preview span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-heading strong,
.thread-preview__header strong,
.context-preview strong {
  color: var(--ink-strong);
}

.conversation-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.conversation-row.is-active {
  border-color: rgba(21, 94, 239, 0.35);
  box-shadow: 0 10px 24px rgba(21, 94, 239, 0.08);
}

.conversation-row__dot {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--green);
}

.conversation-row__dot.is-muted {
  background: var(--subtle);
}

.conversation-row__dot.is-orange {
  background: var(--orange);
}

.conversation-row strong {
  display: block;
  color: var(--ink-strong);
  font-size: 0.9rem;
}

.conversation-row p,
.conversation-row time {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.thread-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
}

.thread-preview__header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.thread-preview__header div {
  min-width: 0;
}

.thread-preview__header strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-preview__header .status-pill {
  flex: 0 0 auto;
  text-transform: none;
}

.message-bubble {
  max-width: 88%;
  padding: 12px 13px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.45;
}

.message-bubble--customer {
  align-self: flex-start;
  background: var(--page-strong);
  color: var(--ink);
}

.message-bubble--agent {
  align-self: flex-end;
  background: #0f274a;
  color: #ffffff;
}

.composer-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 9px 10px 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--subtle);
  font-size: 0.82rem;
}

.composer-preview button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: var(--orange);
  color: #ffffff;
}

.context-preview {
  display: none;
  background: #f7f9fc;
}

.context-preview p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.proof-strip {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.proof-strip__inner {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
}

.proof-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.proof-strip span:last-child {
  border-right: 1px solid var(--line);
}

.section-band,
.install-band,
.feature-grid,
.closing-band {
  margin-top: 58px;
}

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

.section-heading h2,
.install-band h2,
.closing-band h2 {
  font-size: 2.35rem;
  line-height: 1.08;
}

.workflow-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.workflow-grid {
  margin-top: 24px;
}

.workflow-card,
.feature-card,
.content-shell__body,
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.workflow-card,
.feature-card {
  padding: 22px;
}

.workflow-card__step,
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 32px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: #174ea6;
  font-size: 0.78rem;
  font-weight: 850;
}

.feature-card__icon {
  color: var(--orange-strong);
  background: #fff0e7;
}

.workflow-card h3,
.feature-card h2 {
  margin: 18px 0 10px;
  color: var(--ink-strong);
  font-size: 1.08rem;
}

.workflow-card p,
.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.install-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
  gap: 26px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid rgba(7, 23, 45, 0.16);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.install-band__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.install-band__copy p:not(.eyebrow) {
  margin: 16px 0 24px;
}

.code-panel {
  overflow: auto;
  border-radius: var(--radius);
  background: #08172d;
}

.code-panel pre {
  margin: 0;
  padding: 22px;
  color: #d7e4ff;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.7;
}

.feature-card {
  min-height: 205px;
}

.closing-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #ffffff;
}

.closing-band h2 {
  max-width: 760px;
  color: #ffffff;
}

.closing-band .eyebrow {
  color: #ffbf98;
}

.closing-band .site-button--ghost {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.content-shell,
.auth-shell {
  max-width: 780px;
}

.content-shell__header {
  margin-bottom: 20px;
}

.content-shell h1,
.auth-card h1 {
  font-size: 2.8rem;
  line-height: 1.05;
}

.content-shell__body,
.auth-card {
  padding: 28px;
}

.content-shell__body p:first-child,
.auth-card p:first-child {
  margin-top: 0;
}

.content-shell__body p:last-child {
  margin-bottom: 0;
}

.auth-shell {
  padding-top: 20px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.auth-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form__field span {
  color: var(--ink-strong);
  font-size: 0.92rem;
  font-weight: 750;
}

.auth-form__field input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
}

.auth-form__field input:focus {
  outline: none;
  border-color: rgba(241, 112, 32, 0.76);
  box-shadow: 0 0 0 4px rgba(241, 112, 32, 0.13);
}

.auth-form__field small {
  color: #b42318;
}

.auth-form__submit {
  width: 100%;
  margin-top: 10px;
}

.auth-card__meta {
  margin: 18px 0 0;
}

.site-footer {
  padding: 0 0 44px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.site-footer__inner p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer__links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer__links a {
  color: var(--orange-strong);
  font-weight: 750;
}

@media (min-width: 1500px) {
  .context-preview {
    display: block;
  }

  .product-preview__grid {
    grid-template-columns: 116px minmax(190px, 0.8fr) minmax(250px, 1fr) minmax(150px, 0.62fr);
  }
}

@media (max-width: 1080px) {
  .site-header__inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-actions {
    justify-content: flex-start;
  }

  .hero,
  .install-band {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: none;
  }

  .hero h1 {
    max-width: 14ch;
  }
}

@media (max-width: 820px) {
  .site-header__inner,
  .flash-stack__inner,
  .site-footer__inner,
  .hero,
  .proof-strip__inner,
  .section-band,
  .install-band,
  .feature-grid,
  .closing-band,
  .content-shell,
  .auth-shell {
    width: min(100% - 30px, 1180px);
  }

  .site-main {
    padding-top: 34px;
    padding-bottom: 112px;
  }

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

  .section-heading h2,
  .install-band h2,
  .closing-band h2,
  .content-shell h1,
  .auth-card h1 {
    font-size: 2rem;
  }

  .hero__stats,
  .workflow-grid,
  .feature-grid,
  .proof-strip__inner {
    grid-template-columns: 1fr;
  }

  .proof-strip span {
    min-height: 48px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .product-preview__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .preview-sidebar {
    display: none;
  }

  .inbox-preview {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .install-band,
  .closing-band {
    padding: 22px;
  }

  .closing-band,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .site-brand small {
    max-width: 190px;
  }

  .site-nav {
    gap: 12px 14px;
  }

  .site-actions,
  .hero__actions,
  .closing-band__actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .site-actions .site-button,
  .hero__actions .site-button,
  .closing-band__actions .site-button {
    flex: 1 1 155px;
  }

  .hero__actions {
    padding-right: 70px;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: 2.05rem;
    line-height: 1.04;
  }

  .hero__lede {
    font-size: 1rem;
  }

  .hero__stats {
    display: none;
  }

  .product-preview__topbar,
  .inbox-preview,
  .thread-preview,
  .workflow-card,
  .feature-card,
  .content-shell__body,
  .auth-card {
    padding: 16px;
  }

  .conversation-row {
    grid-template-columns: auto 1fr;
  }

  .conversation-row time {
    display: none;
  }

  .code-panel pre {
    font-size: 0.78rem;
  }
}
