:root {
  --bg: #f7f3ec;
  --paper: #fffdf8;
  --ink: #10202f;
  --muted: #5f6c78;
  --line: #d8d2c7;
  --brand: #0b3a63;
  --brand-2: #174f82;
  --soft: #e8eef5;
  --accent: #b48a49;
  --success: #1e6b52;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 60px rgba(16, 32, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  background:
    radial-gradient(circle at 15% 5%, rgba(180, 138, 73, 0.24), transparent 25%),
    radial-gradient(circle at 90% 40%, rgba(23, 79, 130, 0.18), transparent 26%),
    linear-gradient(180deg, #fbf8f1 0%, #f3ebdf 100%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: radial-gradient(rgba(16, 32, 47, 0.1) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
  z-index: -1;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 58, 99, 0.12);
  background: rgba(247, 243, 236, 0.88);
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font: 700 19px/1 "Sora", sans-serif;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(11, 58, 99, 0.25);
}

.brand-text {
  font: 700 22px/1 "Sora", sans-serif;
  letter-spacing: -0.04em;
}

.menu {
  display: flex;
  gap: 22px;
}

.menu a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.actions {
  display: flex;
  gap: 10px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 24px rgba(11, 58, 99, 0.2);
}

.btn-soft {
  color: var(--brand);
  border-color: rgba(11, 58, 99, 0.2);
  background: rgba(255, 255, 255, 0.72);
}

.hero {
  padding: 66px 0 44px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 46px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(36px, 4.9vw, 62px);
  line-height: 1.03;
  max-width: 12ch;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.03;
}

h3 {
  font-size: 24px;
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.72;
  max-width: 560px;
}

.hero-ctas {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
}

.hero-proof li {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.hero-proof strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 24px;
}

.hero-proof span {
  margin-top: 6px;
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.hero-panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 32, 47, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 236, 0.98));
  padding: 22px;
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.kpi-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kpi {
  background: var(--soft);
  padding: 16px;
  border-radius: 16px;
}

.kpi h3 {
  font-size: 32px;
}

.kpi p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.chat-preview {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: var(--paper);
  display: grid;
  gap: 10px;
}

.bubble {
  margin: 0;
  max-width: 90%;
  padding: 12px 14px;
  border-radius: 14px;
  line-height: 1.5;
}

.bubble.client {
  background: #f3eada;
}

.bubble.bot {
  justify-self: end;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

.section {
  padding: 34px 0;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.card-grid {
  display: grid;
  gap: 14px;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.flow-card {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdfa, #f4ece0);
  padding: 20px;
}

.flow-card span {
  color: var(--brand);
  font: 800 14px/1 "Sora", sans-serif;
  letter-spacing: 0.06em;
}

.flow-card h3 {
  margin-top: 12px;
  font-size: 21px;
}

.flow-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feature {
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 24px;
}

.feature.dark {
  background: linear-gradient(180deg, #12395d, #102d48);
  border-color: rgba(16, 45, 72, 0.8);
  color: #f4f8fc;
}

.feature.light {
  background: linear-gradient(180deg, #fffdfa, #f5eee1);
}

.feature ul {
  margin: 14px 0 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 8px;
}

.feature li {
  line-height: 1.55;
}

.feature p,
.feature li {
  color: var(--muted);
}

.feature.dark p,
.feature.dark li {
  color: rgba(245, 248, 252, 0.86);
}

.dashboard-visual {
  border-radius: 28px;
  border: 1px solid rgba(11, 58, 99, 0.14);
  background:
    radial-gradient(circle at 90% 0%, rgba(180, 138, 73, 0.16), transparent 30%),
    linear-gradient(180deg, #fefbf5, #f4ecde);
  padding: 16px;
}

.dashboard-shell {
  border-radius: 22px;
  border: 1px solid rgba(16, 32, 47, 0.1);
  background: #fffdfa;
  box-shadow: 0 18px 36px rgba(16, 32, 47, 0.1);
  overflow: hidden;
}

.dash-topbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #12395d, #102d48);
  color: #f4f8fc;
}

.dash-topbar strong {
  font-family: "Sora", sans-serif;
}

.dash-topbar span {
  font-size: 13px;
  color: rgba(245, 248, 252, 0.85);
}

.dash-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dash-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.dash-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kpi-card strong {
  display: block;
  margin-top: 6px;
  font: 700 36px/1.1 "Sora", sans-serif;
}

.kpi-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.timeline-card ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.timeline-card li {
  border-left: 2px solid rgba(23, 79, 130, 0.28);
  padding-left: 10px;
  color: #33465a;
  line-height: 1.45;
}

.timeline-card li span {
  color: var(--brand);
  font-weight: 700;
  margin-right: 6px;
}

.queue-card {
  display: grid;
  gap: 8px;
}

.queue-item {
  min-height: 38px;
  border: 1px solid rgba(11, 58, 99, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  background: #f9fbff;
}

.queue-item strong {
  font-size: 14px;
}

.queue-item span {
  font-size: 12px;
  color: var(--brand);
  font-weight: 700;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.plan {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  padding: 22px;
}

.plan.featured {
  background: linear-gradient(180deg, #12395d, #102d48);
  color: #f4f8fc;
  transform: translateY(-6px);
}

.price {
  display: block;
  margin-top: 10px;
  font: 700 27px/1.2 "Sora", sans-serif;
}

.plan ul {
  margin: 14px 0 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 8px;
}

.plan li {
  line-height: 1.58;
}

.plan p,
.plan li {
  color: var(--muted);
}

.plan.featured p,
.plan.featured li {
  color: rgba(245, 248, 252, 0.86);
}

.faq {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 20px;
  padding: 18px;
}

.faq-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.cta {
  margin-bottom: 80px;
  border: 1px solid rgba(11, 58, 99, 0.12);
  border-radius: 30px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 241, 231, 0.96));
}

.lead-form {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.lead-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: #33465a;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0 12px;
  font: 600 15px/1 "Source Sans 3", sans-serif;
}

.lead-form button,
.lead-form a {
  width: 100%;
}

.feedback {
  min-height: 24px;
  margin: 12px 0 0;
  font-weight: 700;
  color: var(--success);
}

.site-footer {
  border-top: 1px solid rgba(11, 58, 99, 0.12);
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(10px);
}

.site-footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0;
}

.site-footer strong {
  font-family: "Sora", sans-serif;
  font-size: 18px;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer-links a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.privacy-page {
  padding: 36px 0 72px;
}

.privacy-hero {
  padding-top: 34px;
}

.privacy-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.privacy-meta span {
  border: 1px solid rgba(11, 58, 99, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.privacy-shell {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.privacy-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  padding: 24px;
  box-shadow: 0 18px 36px rgba(16, 32, 47, 0.06);
}

.privacy-card h2 {
  font-size: clamp(24px, 2vw, 30px);
}

.privacy-card p,
.privacy-card li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

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

.privacy-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.privacy-card a {
  color: var(--brand);
  font-weight: 700;
}

.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(352px, calc(100vw - 20px));
  border: 1px solid rgba(16, 32, 47, 0.12);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(16, 32, 47, 0.2);
  padding: 14px;
  z-index: 30;
  transition: transform 260ms ease, opacity 260ms ease, visibility 260ms ease;
}

.chat-widget.is-collapsed {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  visibility: hidden;
}

.chat-widget.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 31;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  font: 700 14px/1 "Source Sans 3", sans-serif;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 30px rgba(11, 58, 99, 0.28);
  cursor: pointer;
}

.chat-launcher.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.chat-widget header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.chat-widget header strong {
  font-family: "Sora", sans-serif;
}

.chat-widget header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.badge {
  align-self: flex-start;
  background: rgba(30, 107, 82, 0.14);
  color: var(--success);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-context {
  margin: 10px 0 0;
  color: #3c4f63;
  font-size: 12px;
  line-height: 1.5;
}

.chat-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chat-cta-compact {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(11, 58, 99, 0.12);
  color: var(--brand);
  border: 1px solid rgba(11, 58, 99, 0.18);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.chat-cta-compact:hover {
  background: rgba(11, 58, 99, 0.18);
}

.chat-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(11, 58, 99, 0.2);
  background: #fff;
  color: var(--brand);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.chat-log {
  margin-top: 10px;
  max-height: 184px;
  overflow: auto;
  display: grid;
  gap: 7px;
  padding-right: 2px;
}

.chat-log p {
  margin: 0;
  padding: 9px 11px;
  border-radius: 10px;
  line-height: 1.45;
  font-size: 13px;
}

.chat-log .bot-msg {
  background: #edf2f9;
}

.chat-log .user-msg {
  background: #f3eada;
}

.chat-rich {
  margin-top: 8px;
}

.proposal-link-card {
  border: 1px solid rgba(11, 58, 99, 0.16);
  border-radius: 12px;
  background: #f8fbff;
  padding: 8px;
}

.proposal-link-anchor {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.proposal-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e9eff8;
  border: 1px solid rgba(11, 58, 99, 0.16);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.proposal-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proposal-logo-fallback {
  font-size: 12px;
  font-weight: 800;
  color: #0f3456;
}

.proposal-link-text strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  color: #10202f;
}

.proposal-link-text span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #526277;
}

.chat-quick {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.chat-quick.is-hidden {
  display: none;
}

.chat-quick button {
  min-height: 38px;
  border: 1px solid rgba(11, 58, 99, 0.16);
  background: #fff;
  border-radius: 10px;
  text-align: left;
  padding: 0 11px;
  font-weight: 600;
  font-size: 13px;
  color: #29425a;
  cursor: pointer;
}

.chat-form {
  margin-top: 8px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.chat-form textarea {
  min-height: 48px;
  max-height: 96px;
  resize: vertical;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  font-family: "Source Sans 3", sans-serif;
}

.chat-form button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}

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

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

@media (max-width: 1024px) {
  .menu {
    display: none;
  }
}

@media (max-width: 940px) {
  .hero,
  .card-grid.three,
  .card-grid.four,
  .flow-grid,
  .split,
  .plan-grid,
  .dash-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-widget {
    width: min(352px, calc(100vw - 20px));
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  .topbar,
  .chat-launcher,
  .chat-widget {
    display: none;
  }

  body {
    background: #fff;
  }

  .bg-noise {
    display: none;
  }
}
