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

:root {
  --bg-main: #fff8ec;
  --bg-soft: #eaf8f7;
  --bg-soft-alt: #eaf6ff;
  --bg-card: #ffffff;
  --bg-card-soft: #fffdf7;
  --bg-wash: #fff3df;

  --text-main: #2a170f;
  --text-muted: #6e5a4a;
  --text-subtle: #9a8372;
  --text-inverse: #fffaf2;

  --primary: #fdba3b;
  --primary-hover: #f59e0b;
  --primary-ink: #2a170f;

  --accent-ai: #8b5cf6;
  --accent-ai-soft: #f4efff;
  --accent-data: #38bdf8;
  --accent-data-soft: #eaf8ff;
  --accent-success: #22c55e;
  --accent-success-soft: #ecfdf5;

  --border-soft: #eadfd2;
  --border-strong: #dccdbd;

  --shadow-card: 0 20px 60px rgba(67, 42, 23, 0.08);
  --shadow-soft: 0 12px 32px rgba(67, 42, 23, 0.06);
  --shadow-hero: 0 32px 90px rgba(67, 42, 23, 0.14);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --container: 1240px;
  --transition: 220ms ease;

  --font-body: "Manrope", "Inter", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.10), transparent 24%),
    linear-gradient(180deg, #fff8ec 0%, #fff5e7 35%, #fff8ec 100%);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.site-main {
  display: block;
}

.section {
  position: relative;
  padding: 96px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, rgba(42, 23, 15, 0.55), transparent);
}

.section-title {
  margin: 0 0 14px;
  color: var(--text-main);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.section-subtitle {
  max-width: 64ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.03rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.pill,
.status-pill,
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.eyebrow-pill {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(234, 223, 210, 0.9);
  box-shadow: 0 10px 24px rgba(67, 42, 23, 0.05);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
}

.eyebrow-pill-dot,
.status-pill-dot,
.hero-trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
  cursor: pointer;
}

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

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
.nav-link:focus-visible,
.nav-toggle:focus-visible,
.contact-item:focus-visible,
.back-to-top:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.34);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 16px 30px rgba(253, 186, 59, 0.24);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border-soft);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--border-strong);
}

.btn-link {
  color: var(--text-main);
  padding-inline: 0;
  border-radius: 0;
}

.btn-link:hover {
  transform: none;
  color: var(--accent-ai);
}

.surface-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(234, 223, 210, 0.92);
  box-shadow: var(--shadow-card);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  background: rgba(255, 248, 236, 0.78);
  border-bottom: 1px solid rgba(234, 223, 210, 0.72);
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 248, 236, 0.94);
  border-bottom-color: rgba(220, 205, 189, 0.9);
  box-shadow: 0 10px 24px rgba(67, 42, 23, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fffaf2, #fff1d7);
  border: 1px solid var(--border-soft);
  color: var(--accent-ai);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(67, 42, 23, 0.08);
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color var(--transition),
    background-color var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-main);
}

.nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  color: var(--text-main);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: currentColor;
  border-radius: 999px;
  transition: transform var(--transition), opacity var(--transition);
}

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

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 38px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-badge {
  margin-bottom: 22px;
}

.hero-title {
  max-width: 12ch;
  margin: 0 0 20px;
  color: var(--text-main);
  font-size: clamp(3rem, 6vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-title-accent {
  display: inline-block;
  font-weight: 900;
  letter-spacing: -0.065em;
  background: linear-gradient(90deg, #2282f2 0%, #6578f7 35%, #c991fe 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 58ch;
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.82;
  text-wrap: pretty;
}

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

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust-dot.ai {
  background: var(--accent-ai);
}

.hero-trust-dot.data {
  background: var(--accent-data);
}

.hero-trust-dot.success {
  background: var(--accent-success);
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 14% 2% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 68%);
  filter: blur(22px);
  pointer-events: none;
}

.chat-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 640px;
  border-radius: var(--radius-xl);
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 244, 0.92)),
    var(--bg-card);
  border: 1px solid rgba(234, 223, 210, 0.96);
  box-shadow: var(--shadow-hero);
  overflow: hidden;
}

.chat-demo::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14), transparent 70%);
  pointer-events: none;
}

.chat-browserbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex: 0 0 auto;
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ebd9c4;
}

.browser-dots span:first-child {
  background: #efb887;
}

.browser-dots span:nth-child(2) {
  background: #f4cf77;
}

.browser-dots span:nth-child(3) {
  background: #b6d8b0;
}

.chat-channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 244, 227, 0.84);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 700;
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(154, 131, 114, 0.55) transparent;
}

.chat-body::-webkit-scrollbar {
  width: 8px;
}

.chat-body::-webkit-scrollbar-track {
  background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(154, 131, 114, 0.35);
}

.chat-body::-webkit-scrollbar-thumb:hover {
  background: rgba(154, 131, 114, 0.55);
}

.chat-message {
  display: flex;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message.ai {
  justify-content: flex-start;
}

.message-bubble {
  max-width: min(92%, 420px);
  border-radius: 20px;
  padding: 12px 14px;
  font-size: 0.84rem;
  line-height: 1.52;
  box-shadow: var(--shadow-soft);
}

.message-bubble.user-bubble {
  background: #fff4e3;
  color: var(--text-main);
  border-top-right-radius: 8px;
}

.message-bubble.ai-bubble {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(234, 223, 210, 0.96);
  color: var(--text-main);
  border-top-left-radius: 8px;
}

.ai-label {
  margin-bottom: 8px;
  color: var(--accent-ai);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}

.status-pill {
  padding: 5px 9px;
  font-size: 0.67rem;
  font-weight: 700;
}

.status-pill.ai {
  background: var(--accent-ai-soft);
  color: #6d28d9;
}

.status-pill.data {
  background: var(--accent-data-soft);
  color: #0369a1;
}

.status-pill.success {
  background: var(--accent-success-soft);
  color: #15803d;
}

.typing-dots {
  display: inline-flex;
  gap: 5px;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.55);
  animation: typing 1.1s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.sql-block {
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff8f0;
  border: 1px solid rgba(234, 223, 210, 0.98);
  color: #6e5a4a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.71rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.sql-keyword {
  color: #7c3aed;
  font-weight: 700;
}

.sql-table {
  color: #0284c7;
  font-weight: 700;
}

.mini-chart {
  display: grid;
  gap: 8px;
  margin: 12px 0 10px;
}

.chart-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.chart-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.chart-track {
  overflow: hidden;
  height: 24px;
  border-radius: 999px;
  background: rgba(42, 23, 15, 0.08);
}

.chart-fill {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 74px;
  padding-right: 10px;
  border-radius: 999px;
  color: var(--text-inverse);
  font-size: 0.69rem;
  font-weight: 800;
  transition: width 0.8s ease;
}

.chart-fill.primary {
  background: linear-gradient(90deg, #72cfe7, #479ce3);
}

.chart-fill.secondary {
  background: linear-gradient(90deg, #d3b2ff, #9278f1);
}

.insight-card {
  padding: 11px 13px;
  border-radius: 16px;
  background: rgba(234, 248, 247, 0.95);
  color: var(--text-main);
  border: 1px solid rgba(209, 241, 238, 0.98);
  font-size: 0.83rem;
  line-height: 1.55;
}

.insight-title {
  margin-bottom: 4px;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
}

.hero-note {
  margin-top: 14px;
  color: var(--text-subtle);
  font-size: 0.76rem;
  flex: 0 0 auto;
}

.integrations-strip {
  padding: 20px 0 0;
}

.integration-shell {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(234, 223, 210, 0.92);
  box-shadow: var(--shadow-soft);
}

.integration-kicker {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.integration-marquee {
  position: relative;
  display: grid;
  gap: 12px;
}

.integration-marquee::before,
.integration-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.integration-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
}

.integration-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
}

.integration-row {
  overflow: hidden;
}

.integration-track {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
}

.integration-row-forward .integration-track {
  animation: integration-loop-left 26s linear infinite;
}

.integration-row-reverse .integration-track {
  animation: integration-loop-right 26s linear infinite;
}

.integration-shell:hover .integration-track {
  animation-play-state: paused;
}

.integration-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 188px;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(234, 223, 210, 0.94);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
  flex: 0 0 auto;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.integration-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.integration-icon-emphasis {
  width: 28px;
  height: 28px;
}

.integration-chip:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--bg-card-soft);
}

@keyframes integration-loop-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes integration-loop-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.modules-section {
  padding-top: 72px;
}

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

.module-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(234, 223, 210, 0.92);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.module-card:hover,
.workflow-step:hover,
.security-card:hover,
.outcome-card:hover,
.usecase-card:hover,
.pricing-card:hover,
.contact-item:hover,
.comparison-shell:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 46px rgba(67, 42, 23, 0.1);
}

.module-card.span-7 {
  grid-column: span 7;
}

.module-card.span-5 {
  grid-column: span 5;
}

.module-card.span-4 {
  grid-column: span 4;
}

.module-card.span-8 {
  grid-column: span 8;
}

.module-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.module-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  font-size: 0.96rem;
  font-weight: 800;
}

.module-icon.ai {
  background: var(--accent-ai-soft);
  color: #6d28d9;
}

.module-icon.data {
  background: var(--accent-data-soft);
  color: #0369a1;
}

.module-icon.warm {
  background: #fff3de;
  color: #b45309;
}

.module-number {
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.module-title {
  margin: 0 0 10px;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.module-desc {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.module-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-list li {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.module-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(56, 189, 248, 0.85));
}

.module-visual {
  margin-top: auto;
  padding-top: 22px;
}

.metric-stack,
.ask-chat-preview,
.report-preview,
.semantic-map,
.analysis-board {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 252, 247, 0.9));
  border: 1px solid rgba(234, 223, 210, 0.96);
}

.metric-stack {
  display: grid;
  gap: 14px;
}

.metric-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff7ec;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.metric-pill span:last-child {
  color: #15803d;
}

.ask-chat-preview {
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
}

.ask-chat-preview::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(114, 207, 231, 0.22), rgba(114, 207, 231, 0));
  pointer-events: none;
}

.ask-chat-row {
  display: flex;
}

.ask-chat-row-user {
  justify-content: flex-end;
}

.ask-chat-bubble {
  position: relative;
  z-index: 1;
  max-width: min(100%, 420px);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 14px 26px rgba(67, 42, 23, 0.08);
}

.ask-chat-bubble p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-main);
}

.ask-chat-bubble-user {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  background: linear-gradient(180deg, #fff6e8, #fff1db);
  border: 1px solid rgba(243, 222, 193, 0.95);
  border-top-right-radius: 10px;
}

.ask-chat-bubble-ai {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(234, 223, 210, 0.98);
  border-top-left-radius: 10px;
}

.ask-chat-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.ask-chat-dot-user {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.12);
}

.ask-chat-dot-ai {
  background: linear-gradient(135deg, #8b5cf6, #38bdf8);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.ask-chat-process {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(246, 241, 255, 0.98), rgba(241, 248, 255, 0.95));
  border: 1px solid rgba(216, 201, 252, 0.92);
}

.ask-chat-process-title {
  color: #6d28d9;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ask-chat-process-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ask-chat-process-pills span,
.ask-chat-insight,
.ask-chat-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.ask-chat-process-pills span {
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.8);
  color: #5b21b6;
  border: 1px solid rgba(216, 201, 252, 0.78);
}

.ask-chat-answer-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.ask-chat-answer-head .ask-chat-dot {
  margin-top: 0;
}

.ask-chat-answer-label {
  color: #6d28d9;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ask-chat-chip {
  margin-left: auto;
  padding: 5px 9px;
  background: rgba(220, 252, 231, 0.92);
  color: #15803d;
}

.ask-chat-bubble-ai strong {
  color: #0f766e;
  font-weight: 800;
}

.ask-chat-insights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ask-chat-insight {
  padding: 5px 9px;
  background: #fff8f0;
  color: #7c5b43;
  border: 1px solid rgba(234, 223, 210, 0.92);
}

.ask-chat-insight.positive {
  background: rgba(220, 252, 231, 0.9);
  color: #15803d;
  border-color: rgba(187, 247, 208, 0.95);
}

.semantic-map {
  min-height: 252px;
}

.semantic-flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) 40px minmax(0, 1.26fr);
  align-items: center;
  gap: 12px;
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(249, 247, 255, 0.98), rgba(243, 249, 255, 0.96));
}

.semantic-panel {
  min-width: 0;
  padding: 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.94));
  border: 1px solid rgba(214, 223, 240, 0.94);
  box-shadow: 0 16px 28px rgba(91, 71, 122, 0.08);
}

.semantic-panel-title {
  margin-bottom: 14px;
  color: #5b4b78;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.semantic-panel-model .semantic-panel-title {
  white-space: nowrap;
}

.semantic-panel-model {
  overflow: hidden;
}

.semantic-source-list {
  display: grid;
  gap: 10px;
}

.semantic-source-chip {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #eef3ff, #e7f0ff);
  border: 1px solid rgba(189, 205, 243, 0.92);
  color: #334155;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.3;
}

.semantic-source-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, #8b5cf6, #60a5fa);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.semantic-source-icon.doc {
  background: linear-gradient(135deg, #38bdf8, #2dd4bf);
}

.semantic-source-icon.metric {
  background: linear-gradient(135deg, #a78bfa, #7dd3fc);
}

.semantic-connector {
  position: relative;
  align-self: stretch;
}

.semantic-connector::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px;
  right: -10px;
  height: 0;
  border-top: 3px dashed rgba(45, 212, 191, 0.85);
  transform: translateY(-50%);
  animation: semantic-flow-pulse 2.2s ease-in-out infinite;
}

.semantic-connector-arrow {
  position: absolute;
  top: 50%;
  right: -10px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid rgba(45, 212, 191, 0.92);
  transform: translateY(-50%);
  filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.28));
  animation: semantic-arrow-pulse 1.8s ease-in-out infinite;
}

.semantic-connector-dot {
  position: absolute;
  top: 50%;
  left: -2px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #6ee7b7;
  box-shadow: 0 0 0 6px rgba(110, 231, 183, 0.16);
  transform: translateY(-50%);
  animation: semantic-dot-travel 2.4s ease-in-out infinite;
}

.semantic-model-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(60px, 1.08fr) 20px minmax(0, 0.8fr);
  grid-template-areas:
    "customers links orders"
    "products links orders";
  gap: 12px 10px;
  align-items: center;
}

.semantic-model-links {
  position: relative;
  grid-area: links;
  align-self: stretch;
  min-height: 134px;
  justify-self: center;
  width: 34px;
}

.semantic-model-links::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 17px;
  border-left: 3px solid rgba(99, 102, 241, 0.4);
}

.semantic-model-link {
  position: absolute;
  display: block;
  height: 0;
  border-top: 3px solid rgba(99, 102, 241, 0.4);
}

.semantic-model-link-top,
.semantic-model-link-bottom {
  left: 0;
  width: 17px;
}

.semantic-model-link-top {
  top: 33px;
}

.semantic-model-link-bottom {
  bottom: 33px;
}

.semantic-model-link-bridge {
  top: 50%;
  left: 17px;
  width: 17px;
  transform: translateY(-50%);
}

.semantic-entity {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  width: 100%;
  padding: 14px 12px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f0f4ff, #e9f0ff);
  border: 1px solid rgba(178, 189, 238, 0.92);
  box-shadow: 0 14px 24px rgba(92, 106, 177, 0.12);
  box-sizing: border-box;
}

.semantic-entity strong {
  color: #334155;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

.semantic-entity-customers,
.semantic-entity-products {
  min-width: 0;
  justify-self: stretch;
}

.semantic-entity span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.28);
}

.semantic-entity span:nth-child(2) {
  width: 58%;
  background: rgba(56, 189, 248, 0.52);
}

.semantic-entity span:nth-child(3) {
  width: 76%;
}

.semantic-entity-customers {
  grid-area: customers;
}

.semantic-entity-orders {
  grid-area: orders;
  align-self: center;
  min-width: 0;
  justify-self: stretch;
}

.semantic-entity-products {
  grid-area: products;
}

@keyframes semantic-dot-travel {
  0% {
    left: 10px;
    opacity: 0;
    transform: translateY(-50%) scale(0.82);
  }

  12% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  78% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  100% {
    left: calc(100% - 20px);
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
  }
}

@keyframes semantic-arrow-pulse {

  0%,
  100% {
    opacity: 0.82;
    filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.22));
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(45, 212, 191, 0.34));
  }
}

@keyframes semantic-flow-pulse {

  0%,
  100% {
    opacity: 0.58;
  }

  50% {
    opacity: 1;
  }
}

.analysis-board {
  display: grid;
  gap: 12px;
}

.analysis-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff8f0;
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 700;
}

.analysis-line strong {
  color: #b45309;
}

.report-preview {
  display: grid;
  gap: 14px;
}

.report-hero {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.report-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(180deg, #eef3ff, #f6eefe);
  border: 1px solid rgba(211, 206, 248, 0.92);
  box-shadow: 0 10px 18px rgba(115, 97, 154, 0.12);
}

.report-badge-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, #c4f777 0 100%) left 1px bottom 1px / 4px 14px no-repeat,
    linear-gradient(180deg, #7dd3fc 0 100%) center bottom 1px / 4px 18px no-repeat,
    linear-gradient(180deg, #f472b6 0 100%) right 1px bottom 1px / 4px 10px no-repeat;
}

.report-title {
  margin: 0;
  color: var(--text-main);
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.15;
}

.report-meta {
  margin: 4px 0 0;
  color: var(--text-subtle);
  font-size: 0.82rem;
}

.report-summary {
  display: grid;
  gap: 8px;
}

.report-summary-label {
  color: #6d28d9;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.report-summary p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

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

.report-kpi-card {
  display: grid;
  gap: 8px;
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(234, 223, 210, 0.92);
}

.report-kpi-card strong {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.report-kpi-card span {
  color: var(--text-subtle);
  font-size: 0.8rem;
  font-weight: 700;
}

.report-kpi-card.negative {
  background: rgba(255, 241, 241, 0.96);
  border-color: rgba(247, 200, 200, 0.9);
}

.report-kpi-card.negative strong {
  color: #dc2626;
}

.report-kpi-card.caution {
  background: rgba(255, 248, 233, 0.98);
  border-color: rgba(243, 214, 155, 0.9);
}

.report-kpi-card.caution strong {
  color: #d97706;
}

.report-kpi-card.positive {
  background: rgba(236, 252, 245, 0.98);
  border-color: rgba(167, 243, 208, 0.9);
}

.report-kpi-card.positive strong {
  color: #059669;
}

.report-recommendation {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f4f0ff, #eef5ff);
  border: 1px solid rgba(209, 198, 246, 0.92);
}

.report-recommendation-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #6d28d9;
  font-size: 0.84rem;
  font-weight: 800;
}

.report-recommendation p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.report-recommendation strong {
  color: var(--text-main);
}

.workflow-section {
  padding-top: 72px;
}

.workflow-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.workflow-step {
  position: relative;
  padding: 24px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(234, 223, 210, 0.92);
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.workflow-step::after {
  content: "";
  position: absolute;
  top: 34px;
  left: calc(100% + 9px);
  width: 12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(42, 23, 15, 0.28), transparent);
}

.workflow-step:last-child::after {
  display: none;
}

.workflow-number {
  margin-bottom: 12px;
  color: var(--text-subtle);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workflow-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.workflow-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

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

.security-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(234, 223, 210, 0.92);
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.security-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: #fff4e3;
  color: #b45309;
  font-size: 0.84rem;
  font-weight: 800;
}

.security-title {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
}

.security-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.72;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.outcome-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(234, 223, 210, 0.92);
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.outcome-value {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.outcome-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.usecase-card {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(234, 223, 210, 0.92);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.usecase-kicker {
  margin-bottom: 12px;
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.usecase-title {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.16;
}

.usecase-desc {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.72;
}

.usecase-steps {
  display: grid;
  gap: 12px;
}

.usecase-step {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff9f1;
  border: 1px solid rgba(234, 223, 210, 0.92);
}

.usecase-step-label {
  color: var(--text-subtle);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.usecase-step-copy {
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.55;
}

.comparison-shell {
  padding: 30px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(234, 223, 210, 0.92);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(234, 223, 210, 0.92);
}

.comparison-cell {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(234, 223, 210, 0.92);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.comparison-cell.header {
  background: #fff5e7;
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.comparison-cell.feature {
  color: var(--text-main);
  font-weight: 700;
}

.comparison-cell.mira {
  background: #fffbf4;
  color: var(--text-main);
  font-weight: 700;
}

.comparison-cell.good {
  color: #15803d;
}

.comparison-cell.warn {
  color: #b45309;
}

.comparison-cell.bad {
  color: #9a3412;
}

.pricing-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 26px;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(234, 223, 210, 0.92);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.pricing-card.featured {
  background: linear-gradient(180deg, #fffaf2, #fff3de);
  border-color: rgba(245, 158, 11, 0.34);
}

.pricing-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-name {
  margin: 0 0 4px;
  font-size: 1.26rem;
  font-weight: 800;
}

.plan-pitch {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.plan-price {
  margin: 0 0 20px;
  color: var(--text-main);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.plan-price span {
  color: var(--text-subtle);
  font-size: 1rem;
  font-weight: 700;
}

.plan-features {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.plan-features li {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.plan-features li strong {
  color: var(--text-main);
}

.plan-features li.is-disabled {
  color: var(--text-subtle);
}

.pricing-card .btn {
  margin-top: auto;
}

.pilot-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 28px 30px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 244, 227, 0.92)),
    var(--bg-card);
  border: 1px solid rgba(234, 223, 210, 0.92);
  box-shadow: var(--shadow-soft);
}

.pilot-copy {
  display: grid;
  gap: 6px;
}

.pilot-kicker {
  color: #b45309;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pilot-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
}

.pilot-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: stretch;
}

.contact-panel,
.contact-card {
  padding: 32px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(234, 223, 210, 0.92);
  box-shadow: var(--shadow-card);
}

.contact-badge {
  margin-bottom: 16px;
}

.contact-title {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
  text-wrap: balance;
}

.contact-subtitle {
  max-width: 56ch;
  margin: 0 0 26px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.78;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.contact-card-title {
  margin: 0 0 2px;
  font-size: 1.1rem;
  font-weight: 800;
}

.contact-card-copy {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff9f1;
  border: 1px solid rgba(234, 223, 210, 0.92);
  text-decoration: none;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.contact-item-label {
  color: var(--text-subtle);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-item-value {
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

.footer {
  padding: 30px 0 42px;
}

.footer-shell {
  display: flex;
  align-items: center;
  gap: 18px 28px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(234, 223, 210, 0.86);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-copy {
  color: var(--text-subtle);
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 18px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

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

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.28);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--transition),
    transform var(--transition),
    background-color var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-hover);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes typing {

  0%,
  80%,
  100% {
    opacity: 0.4;
    transform: scale(0.8);
  }

  40% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1180px) {

  .hero-shell,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .security-card-grid,
  .outcomes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .module-card.span-7,
  .module-card.span-5,
  .module-card.span-4,
  .module-card.span-8 {
    grid-column: span 1;
  }

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

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

  .comparison-cell.header {
    display: none;
  }

  .comparison-cell.feature {
    background: #fff5e7;
  }
}

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

  .nav-inner {
    flex-wrap: wrap;
    gap: 16px;
    min-height: 72px;
    padding: 12px 0;
  }

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

  .nav-cta {
    display: none;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(234, 223, 210, 0.96);
    box-shadow: var(--shadow-soft);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-link {
    justify-content: space-between;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2.4rem, 10vw, 3.4rem);
  }

  .chat-demo {
    height: 560px;
  }

  .product-module-grid,
  .workflow-rail,
  .security-card-grid,
  .outcomes-grid,
  .usecase-grid,
  .pricing-shell {
    grid-template-columns: 1fr;
  }

  .workflow-step::after {
    top: auto;
    left: 50%;
    bottom: -10px;
    width: 1px;
    height: 12px;
    background: linear-gradient(180deg, rgba(42, 23, 15, 0.28), transparent);
  }

  .pilot-banner,
  .footer-shell {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .semantic-flow {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .semantic-connector {
    min-height: 34px;
  }

  .semantic-connector::before {
    top: 4px;
    bottom: 10px;
    left: 50%;
    right: auto;
    height: auto;
    border-top: 0;
    border-left: 3px dashed rgba(45, 212, 191, 0.85);
    transform: translateX(-50%);
  }

  .semantic-connector-arrow {
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    border-top: 12px solid rgba(45, 212, 191, 0.92);
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    border-bottom: 0;
    transform: translateX(-50%);
  }

  .semantic-connector-dot {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: semantic-dot-travel-vertical 2.4s ease-in-out infinite;
  }

  .integration-chip {
    min-width: 170px;
  }

  .report-kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 80px 0;
  }

  .chat-demo {
    height: 500px;
    padding: 18px;
  }

  .integration-chip {
    min-width: 150px;
    min-height: 48px;
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  .integration-icon {
    width: 20px;
    height: 20px;
  }

  .integration-icon-emphasis {
    width: 24px;
    height: 24px;
  }

  .semantic-panel {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .semantic-source-chip,
  .semantic-entity {
    font-size: 0.78rem;
  }

  .semantic-model-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "customers"
      "orders"
      "products";
    gap: 10px;
  }

  .semantic-model-links {
    display: none;
  }

  .semantic-entity-customers::after,
  .semantic-entity-products::after,
  .semantic-entity-orders::before {
    display: none;
  }

  .report-hero {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .report-badge {
    width: 40px;
    height: 40px;
  }

  .report-title {
    font-size: 0.96rem;
  }

  .report-summary p,
  .report-recommendation p {
    font-size: 0.84rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .message-bubble {
    max-width: 100%;
  }

  .chart-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-panel,
  .contact-card,
  .comparison-shell,
  .pricing-card,
  .usecase-card,
  .module-card,
  .security-card,
  .outcome-card,
  .chat-demo {
    padding: 22px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@keyframes semantic-dot-travel-vertical {
  0% {
    top: 8px;
    opacity: 0;
    transform: translateX(-50%) scale(0.82);
  }

  12% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  78% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  100% {
    top: calc(100% - 18px);
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
  }
}