:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-alt: #f8fbff;
  --text: #0f172a;
  --muted: #5b6678;
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(100, 116, 139, 0.28);
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --success: #1f8a5b;
  --success-soft: rgba(31, 138, 91, 0.12);
  --warning: #a56b15;
  --warning-soft: rgba(165, 107, 21, 0.12);
  --shadow-sm: 0 12px 28px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 28px 80px rgba(15, 23, 42, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top center, rgba(37, 99, 235, 0.08), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 36%, #f5f7fb 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 15px;
}

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

button,
input {
  font: inherit;
}

main,
footer,
section,
div[id] {
  scroll-margin-top: 108px;
}

.container {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
}

.nav-shell {
  width: min(1200px, calc(100vw - 24px));
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 15px;
  border: 1px solid transparent;
  border-radius: 18px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    backdrop-filter 160ms ease;
}

body.scrolled .nav-shell {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
}

.site-nav,
.nav-actions {
  display: inline-flex;
  align-items: center;
}

.site-nav {
  gap: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-actions {
  gap: 16px;
}

.nav-link {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
}

.hero {
  padding: 126px 0 42px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1,
.section-header h2,
.control-card h3,
.final-cta-card h2,
.info-card h3,
.workflow-step h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 11.5ch;
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  line-height: 1;
  font-weight: 600;
}

.hero-text,
.hero-proof,
.section-header p,
.info-card p,
.workflow-step p,
.control-card li,
.faq-panel,
.final-cta-card p,
.footer-note {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  margin: 18px 0 0;
  max-width: 58ch;
  font-size: 1rem;
}

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

.hero-proof {
  margin: 14px 0 0;
  font-size: 0.88rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-points span,
.value-chip,
.mini-pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.hero-points span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.hero-stage {
  position: relative;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 10% 4% -8% 8%;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 60%);
  filter: blur(14px);
}

.product-window,
.info-card,
.workflow-step,
.control-card,
.faq-item,
.final-cta-card,
.value-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.product-window {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.window-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.82);
}

.window-dots {
  display: inline-flex;
  gap: 6px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.52);
}

.window-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.window-app {
  color: var(--text);
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
}

.panel {
  padding: 18px;
}

.chat-panel {
  border-right: 1px solid rgba(148, 163, 184, 0.16);
}

.summary-panel {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.94));
}

.panel-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.message {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.message p {
  margin: 0 0 12px;
}

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

.user-message {
  margin: 0 0 14px auto;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.98), rgba(29, 78, 216, 0.98));
  color: #ffffff;
}

.assistant-message,
.status-card,
.summary-card,
.compact-card,
.mini-ui {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: var(--surface-alt);
}

.assistant-message {
  margin: 0;
}

.option-card {
  padding: 11px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
}

.option-card + .option-card {
  margin-top: 10px;
}

.option-row,
.status-row,
.rule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.option-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.mini-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

.mini-button-primary {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.16);
  color: var(--accent-strong);
}

.status-card,
.summary-card,
.compact-card {
  padding: 14px;
  border-radius: 16px;
}

.status-card {
  display: grid;
  gap: 10px;
}

.status-row,
.rule-row {
  padding: 9px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  color: var(--muted);
  font-size: 0.84rem;
}

.status-row:last-child,
.rule-row:last-child {
  border-bottom: 0;
}

.summary-card {
  margin-top: 12px;
}

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

.summary-key {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-positive {
  background: var(--success-soft);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-strong {
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
}

.badge-outline {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
}

.badge-neutral {
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
}

.value-strip {
  padding: 8px 0 0;
}

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

.value-chip {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
}

.section {
  padding: 68px 0;
}

.section-header {
  max-width: 720px;
}

.section-header.centered,
.faq-shell .section-header {
  margin: 0 auto;
  text-align: center;
}

.section-header.narrow {
  max-width: 760px;
}

.section-header h2,
.final-cta-card h2 {
  font-size: clamp(1.72rem, 2.8vw, 2.3rem);
  line-height: 1.1;
  font-weight: 600;
}

.section-header p {
  margin: 14px 0 0;
  font-size: 0.95rem;
}

.problem-grid,
.workflow-grid,
.controls-grid,
.footer-grid {
  display: grid;
  gap: 20px;
}

.problem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.info-card,
.workflow-step,
.control-card {
  padding: 20px;
  border-radius: 18px;
}

.mini-pill {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 600;
}

.info-card h3,
.workflow-step h3,
.control-card h3 {
  font-size: 1.04rem;
  line-height: 1.3;
}

.info-card p,
.workflow-step p {
  margin: 12px 0 0;
}

.section-close {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.96rem;
  font-weight: 600;
}

.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.step-number {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.mini-ui {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
}

.mini-ui-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.controls-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.bullet-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
}

.bullet-list li + li {
  margin-top: 10px;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  top: 0.58rem;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.compact-card {
  margin-top: 18px;
}

.faq-shell {
  max-width: 820px;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.faq-item {
  border-radius: 18px;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--muted);
  transition: transform 160ms ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-trigger[aria-expanded="true"] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-panel {
  padding: 0 18px 18px;
  font-size: 0.88rem;
}

.final-cta-card {
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 28%),
    rgba(255, 255, 255, 0.94);
}

.final-cta-card p {
  max-width: 56ch;
  margin: 14px 0 0;
  font-size: 0.95rem;
}

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

.footer-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-note {
  max-width: 40ch;
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 16px 22px;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 1040px) {
  .hero-grid,
  .controls-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 120px;
  }

  .value-grid,
  .problem-grid,
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .product-grid,
  .value-grid,
  .problem-grid,
  .workflow-grid,
  .controls-grid,
  .summary-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-shell {
    width: min(100vw - 24px, 1120px);
  }

  .nav-shell {
    margin-top: 10px;
    padding: 12px 14px;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding: 108px 0 34px;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 2.7rem);
  }

  .section {
    padding: 56px 0;
  }

  .hero-actions,
  .action-row {
    flex-direction: column;
  }

  .button,
  .mini-button {
    width: 100%;
  }

  .panel,
  .info-card,
  .workflow-step,
  .control-card,
  .final-cta-card {
    padding: 18px;
  }

  .footer-links {
    grid-template-columns: repeat(2, auto);
  }
}
