/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE AGENTE IA PROPLY - CSS OTIMIZADO
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   1. VARIÁVEIS CSS (Design System)
   ───────────────────────────────────────────────────────────── */

:root {
  --blue: #1a56e8;
  --blue-dark: #0e3aa5;
  --blue-light: #eef2ff; /* Smoother light blue */
  --blue-mid: #cddbfe;
  
  --ink: #0a0a0f;
  --ink-2: #16161a;
  --text: #2d2d3a;
  --text-2: #64748b; /* More modern slate-gray */
  
  --green: #10b981;
  --green-light: #ecfdf5;
  --amber: #f59e0b;
  --amber-light: #fffbeb;
  
  --paper: #f8fafc; /* Refined cool white */
  --paper-2: #f1f5f9;
  --chat-bg: #f8fafc;
  --border: #e2e8f0;

  /* ── FONTE: Outfit para headings, Plus Jakarta Sans corpo ── */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-accent: 'Sora', sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  
  /* Layered Premium Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --timeline-progress: 0%;
}

/* ─────────────────────────────────────────────────────────────
   2. RESET E BASE
   ───────────────────────────────────────────────────────────── */

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

html,
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Texture Overlay for Premium feel */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Cfilter id='noiseFilter'%3%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3%3C/filter%3%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3%3C/svg%3");
  opacity: 0.04;
  z-index: 9999;
}

/* ─────────────────────────────────────────────────────────────
   3. TIPOGRAFIA
   ───────────────────────────────────────────────────────────── */

h1,
h2,
h3,
.btn-primary,
.btn-secondary,
.hero-stat-num,
.hero-metric-num,
.chat-topbar-name,
.hiw-num,
.hiw-step-title,
.forwho-card h3,
.section-title,
.agent-feature h3,
.chat-card-title,
.dli-val,
.demo-sum-num,
.ms-title,
.mf-text,
.mini-prop-title,
.modal-header h2 {
  font-family: var(--font-heading);
}

h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.04em; /* Tighter for premium look */
}

@media (max-width: 900px) {
  h1 {
    letter-spacing: -0.01em; /* Less tight on mobile */
  }
}

h1 em,
h2 em {
  font-style: normal;
  color: var(--blue);
  background: linear-gradient(120deg, var(--blue), #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

h2 {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

/* ─────────────────────────────────────────────────────────────
   4. BUTTONS
   ───────────────────────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 100px;
  text-decoration: none;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}

.btn-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.btn-subtitle {
  font-size: 12px;
  color: var(--text-2);
  opacity: 0.8;
}

/* ─────────────────────────────────────────────────────────────
   5. HEADER
   ───────────────────────────────────────────────────────────── */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px; /* Slightly slimmer */
  background: rgba(248, 250, 252, 0.7); /* Lighter glass */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.4); /* Softer border */
  transition: padding 0.3s, background 0.3s;
}

header img {
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s;
}

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

/* ─────────────────────────────────────────────────────────────
   6. HERO
   ───────────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  padding: 140px 48px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  border: 1px solid var(--blue-mid);
}

.hero-eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .4;
    transform: scale(.7)
  }
}

.hero-metrics {
  display: flex;
  gap: 24px;
  margin: 20px 0 32px 0;
  flex-wrap: wrap;
}

.hero-metric {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hero-metric-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
}

.hero-metric-label {
  font-size: 14px;
  color: var(--text-2);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  align-items: flex-start;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  display: block;
}

.hero-stat-lbl {
  font-size: 12px;
  color: var(--text-2);
}

.hero-trust {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-trust-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 16px;
}

.hero-trust-logos {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-trust-logo {
  display: flex;
  align-items: center;
  height: 32px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.hero-trust-logo:hover {
  opacity: 1;
}

.hero-trust-logo img {
  height: 24px;
  object-fit: contain;
}

.hero-trust-logo-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

/* ─────────────────────────────────────────────────────────────
   7. CHAT WINDOW
   ───────────────────────────────────────────────────────────── */

.hero-right {
  position: relative;
  padding: 28px 28px 72px 28px;
}

.chat-window {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 4px 16px rgba(10, 10, 15, .06);
  position: relative;
}

.chat-topbar {
  background: var(--ink);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.chat-topbar-info {
  flex: 1;
}

.chat-topbar-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.chat-topbar-status {
  font-size: 11px;
  color: rgba(255, 255, 255, .5);
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-topbar-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: pulse-status 2s infinite;
}

@keyframes pulse-status {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.6
  }
}

.chat-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--chat-bg);
  min-height: 420px;
}

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.chat-msg.user {
  flex-direction: row-reverse;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.55;
}

.chat-bubble.agent {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.typing-bubble {
  display: flex !important;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
  width: fit-content;
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-2);
  display: inline-block;
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: .2s;
}

.typing-dot:nth-child(3) {
  animation-delay: .4s;
}

@keyframes typing-bounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: .4;
  }

  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.chat-bubble-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.chat-bubble-icon.agent {
  background: var(--ink);
  color: #fff;
}

.chat-bubble-icon.user {
  background: var(--blue-mid);
  color: var(--blue);
}

.chat-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 6px;
  max-width: 100%;
}

.chat-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.chat-card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-2);
  margin-bottom: 6px;
}

.chat-card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.chat-card-sub {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 12px;
}

.chat-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.tag-pending {
  background: var(--amber-light);
  color: var(--amber);
}

.tag-approved {
  background: var(--green-light);
  color: var(--green);
}

.tag-draft {
  background: var(--paper-2);
  color: var(--text-2);
}

.chat-input-row {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.chat-input-row input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 10px 16px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  background: var(--paper);
}

.chat-input-row input:focus {
  border-color: var(--blue);
}

.chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background .2s;
}

.chat-send:hover {
  background: var(--blue);
}

.float-badge {
  position: absolute;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(10, 10, 15, .1);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.float-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.badge-1 {
  top: -39px;
  right: 0;
  animation: float1 4s ease-in-out infinite;
}

.badge-2 {
  bottom: 8px;
  left: 0;
  animation: float2 4s ease-in-out infinite .8s;
}

@media (max-width: 900px) {
  .badge-1 {
    top: -48px; /* More space up */
    right: 12px;
  }

  .badge-2 {
    bottom: -24px; /* Move below the input area */
    left: 12px;
  }
}

@keyframes float1 {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-8px)
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(8px)
  }
}

/* ─────────────────────────────────────────────────────────────
   8. SECTIONS
   ───────────────────────────────────────────────────────────── */

section {
  padding: 96px 48px;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.section-title em {
  font-style: normal;
  color: var(--blue);
}

.section-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 540px;
  line-height: 1.65;
  font-weight: 300;
}

.section-header {
  margin-bottom: 64px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-sub {
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────
   9. PROBLEM SECTION
   ───────────────────────────────────────────────────────────── */

.problem-section {
  background: var(--ink);
}

.problem-section .section-eyebrow {
  color: rgba(255, 255, 255, .4);
}

.problem-section .section-title {
  color: #fff;
}

.problem-section .section-sub {
  color: rgba(255, 255, 255, .5);
}

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

.problem-card {
  background: rgba(255, 255, 255, .04);
  padding: 40px 32px;
  border: 1px solid rgba(255, 255, 255, .07);
  position: relative;
  overflow: hidden;
  transition: background .3s;
}

.problem-card:first-child {
  border-radius: 16px 0 0 16px;
}

.problem-card:last-child {
  border-radius: 0 16px 16px 0;
}

.problem-card:hover {
  background: rgba(255, 255, 255, .07);
}

.problem-icon {
  font-size: 32px;
  margin-bottom: 20px;
  opacity: .7;
}

.problem-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.problem-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, .45);
  line-height: 1.65;
}

.problem-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: rgba(255, 255, 255, .12);
  line-height: 1;
}

/* ─────────────────────────────────────────────────────────────
   10. AGENT SECTION
   ───────────────────────────────────────────────────────────── */

.agent-section {
  background: var(--paper);
}

.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.agent-features {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.agent-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: border-color .2s, background .2s;
  cursor: default;
}

.agent-feature:hover {
  border-color: var(--blue-mid);
  background: var(--blue-light);
}

.agent-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.icon-blue {
  background: var(--blue-light);
}

.icon-green {
  background: var(--green-light);
}

.icon-amber {
  background: var(--amber-light);
}

.icon-ink {
  background: var(--ink);
}

.agent-feature h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.agent-feature p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* Agent Demo */
.agent-demo {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(10, 10, 15, .08);
}

.demo-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  padding: 0 16px;
}

.demo-tab {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}

.demo-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.demo-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-2);
}

.demo-prompt i {
  color: var(--blue);
  font-size: 16px;
}

.demo-response {
  background: var(--blue-light);
  border: 1.5px solid var(--blue-mid);
  border-radius: 14px;
  padding: 16px;
}

.demo-response-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 10px;
}

.demo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
}

.dli-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dli-code {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-2);
}

.dli-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.dli-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.dli-val {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.demo-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.demo-sum-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.demo-sum-num {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  display: block;
}

.demo-sum-lbl {
  font-size: 10px;
  color: var(--text-2);
}

/* ─────────────────────────────────────────────────────────────
   11. HOW IT WORKS
   ───────────────────────────────────────────────────────────── */

.hiw-section {
  background: var(--paper-2);
}

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.hiw-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg,
      var(--blue) 0%,
      var(--blue) var(--timeline-progress, 0%),
      rgba(197, 213, 252, 0.3) var(--timeline-progress, 0%),
      rgba(197, 213, 252, 0.3) 100%);
  z-index: 0;
  transition: background 0.1s ease;
}

.hiw-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.hiw-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  margin: 0 auto 24px;
  box-shadow: 0 4px 16px rgba(26, 86, 232, .1);
}

.hiw-step-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.hiw-step-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
   12. FOR WHO
   ───────────────────────────────────────────────────────────── */

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

.forwho-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}

.forwho-card:hover {
  border-color: var(--blue-mid);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(26, 86, 232, .1);
}

.forwho-icon {
  font-size: 36px;
  margin-bottom: 20px;
}

.forwho-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.forwho-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────────────────────
   13. CTA
   ───────────────────────────────────────────────────────────── */

.cta-section {
  background: var(--ink);
  text-align: center;
  padding: 120px 48px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(26, 86, 232, .3), transparent);
}

.cta-section .section-title {
  color: #fff;
  position: relative;
}

.cta-section .section-sub {
  color: rgba(255, 255, 255, .55);
  position: relative;
  margin: 0 auto 48px;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  padding: 16px 36px;
  position: relative;
}

.cta-section .btn-primary:hover {
  background: var(--blue-light);
}

.cta-note {
  font-size: 13px;
  color: rgba(255, 255, 255, .35);
  margin-top: 20px;
  position: relative;
}

/* ─────────────────────────────────────────────────────────────
   14. FOOTER
   ───────────────────────────────────────────────────────────── */

footer {
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}

/* ─────────────────────────────────────────────────────────────
   15. MODAL
   ───────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, .6);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 32px 100px rgba(10, 10, 15, .2);
  transform: translateY(32px) scale(.97);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
  position: relative;
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, .25);
}

.modal-header {
  background: var(--ink);
  padding: 40px 44px 36px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  overflow: hidden;
}

.modal-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 86, 232, .4), transparent 70%);
}

.modal-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 12px;
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 30px);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
  position: relative;
}

.modal-header p {
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
  max-width: 480px;
  line-height: 1.6;
  position: relative;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 300px;
}

.modal-steps-col {
  padding: 36px 40px 36px 44px;
  border-right: 1px solid var(--border);
}

.modal-steps-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 32px;
}

.ms-step {
  display: flex;
  gap: 18px;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .4s ease, transform .4s ease;
}

.modal-overlay.open .ms-step:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: .1s;
}

.modal-overlay.open .ms-step:nth-child(3) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: .25s;
}

.modal-overlay.open .ms-step:nth-child(4) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: .4s;
}

.modal-overlay.open .ms-step:nth-child(5) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: .55s;
}

.ms-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 2px;
}

.ms-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--paper);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: transform .2s, box-shadow .2s;
}

.ms-step:hover .ms-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(26, 86, 232, .15);
  border-color: var(--blue-mid);
}

.ms-line {
  width: 2px;
  flex: 1;
  min-height: 20px;
  background: var(--border);
  margin: 8px 0;
  border-radius: 2px;
}

.ms-content {
  padding-bottom: 24px;
  flex: 1;
}

.ms-num {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: .08em;
  margin-bottom: 4px;
}

.ms-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.ms-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.ms-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.tag-blue {
  background: var(--blue-light);
  color: var(--blue);
}

.tag-green {
  background: var(--green-light);
  color: var(--green);
}

.tag-amber {
  background: var(--amber-light);
  color: var(--amber);
}

.tag-ink {
  background: var(--ink);
  color: #fff;
}

.modal-mock-col {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transition: opacity .5s ease .6s;
}

.modal-overlay.open .modal-mock-col {
  opacity: 1;
}

.mini-browser {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.mini-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-dots {
  display: flex;
  gap: 4px;
}

.mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mini-dot:nth-child(1) {
  background: #fca5a5
}

.mini-dot:nth-child(2) {
  background: #fcd34d
}

.mini-dot:nth-child(3) {
  background: #86efac
}

.mini-url {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 9.5px;
  color: var(--text-2);
}

.mini-body {
  padding: 16px;
}

.mini-prop-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 4px;
}

.mini-prop-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}

.mini-prop-client {
  font-size: 10.5px;
  color: var(--text-2);
  margin-bottom: 12px;
}

.mini-status {
  margin-bottom: 12px;
}

.mini-status-lbl {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.mini-steps {
  display: flex;
  align-items: center;
}

.mini-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.mini-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.mini-step.done:not(:last-child)::after {
  background: var(--blue);
}

.ms-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  z-index: 1;
  position: relative;
}

.mini-step.done .ms-dot {
  background: var(--blue);
  border-color: var(--blue);
}

.mini-step.current .ms-dot {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-mid);
}

.ms-lbl {
  font-size: 8px;
  color: var(--text-2);
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
}

.mini-step.done .ms-lbl {
  color: var(--blue);
  font-weight: 600;
}

.mini-step.current .ms-lbl {
  color: var(--blue);
  font-weight: 700;
}

.mini-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.mini-item {
  display: flex;
  justify-content: space-between;
  background: var(--paper);
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 10.5px;
}

.mini-item-name {
  color: var(--text-2);
}

.mini-item-val {
  font-weight: 700;
  color: var(--ink);
}

.mini-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.mini-total-lbl {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
}

.mini-total-val {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
}

.mini-feed-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.mini-feed-header span {
  font-weight: 400;
  color: var(--text-2);
}

.mini-feed-items {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mini-feed-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  opacity: 0;
  transition: opacity .4s ease;
}

.modal-overlay.open .mini-feed-item:nth-child(1) {
  opacity: 1;
  transition-delay: .9s
}

.modal-overlay.open .mini-feed-item:nth-child(2) {
  opacity: 1;
  transition-delay: 1.1s
}

.modal-overlay.open .mini-feed-item:nth-child(3) {
  opacity: 1;
  transition-delay: 1.3s
}

.mfd {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.mfd-blue {
  background: var(--blue)
}

.mfd-amber {
  background: var(--amber)
}

.mfd-green {
  background: var(--green)
}

.mini-feed-text {
  font-size: 11px;
  color: var(--text);
  line-height: 1.45;
}

.mini-feed-text strong {
  font-weight: 600;
}

.mini-feed-time {
  font-size: 9.5px;
  color: var(--text-2);
}

.modal-footer {
  background: var(--green-light);
  border-top: 1px solid var(--border);
  padding: 18px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 0;
  transition: opacity .4s ease 1.4s;
}

.modal-overlay.open .modal-footer {
  opacity: 1;
}

.mf-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  flex-shrink: 0;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0;
  animation: ring 1.8s ease 1.6s infinite;
}

@keyframes ring {
  0% {
    opacity: .7;
    transform: scale(1)
  }

  100% {
    opacity: 0;
    transform: scale(1.9)
  }
}

.mf-text {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #15803d;
}

.mf-sub {
  font-size: 11px;
  color: var(--green);
  opacity: .75;
}

.mf-stats {
  display: flex;
  gap: 28px;
}

.mf-stat {
  text-align: center;
}

.mf-num {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  display: block;
}

.mf-lbl {
  font-size: 10px;
  color: var(--text-2);
}

/* ─────────────────────────────────────────────────────────────
   16. ANIMATIONS
   ───────────────────────────────────────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s cubic-bezier(0.16, 1, 0.3, 1), transform .8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────
   17. RESPONSIVE
   ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  header {
    padding: 16px 24px
  }

  .nav-links {
    display: none
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 120px 24px 60px;
    gap: 48px
  }

  .hero-right {
    display: block !important;
    padding: 40px 12px 60px !important; /* Add padding for breathing room */
    margin: 0 auto;
    width: 100%;
    max-width: 480px;
  }

  .chat-window {
    max-height: 420px;
  }

  .chat-body {
    min-height: 280px;
  }

  .float-badge {
    display: none !important;
  }

  .badge-1,
  .badge-2 {
    display: flex !important;
  }

  section {
    padding: 64px 24px
  }

  .problem-grid {
    grid-template-columns: 1fr
  }

  .problem-card:first-child {
    border-radius: 16px 16px 0 0
  }

  .problem-card:last-child {
    border-radius: 0 0 16px 16px
  }

  .agent-grid {
    grid-template-columns: 1fr
  }

  .hiw-steps {
    grid-template-columns: 1fr 1fr;
    gap: 40px
  }

  .hiw-steps::before {
    display: none
  }

  .forwho-grid {
    grid-template-columns: 1fr
  }

  .modal-body {
    grid-template-columns: 1fr
  }

  .modal-mock-col {
    display: none
  }

  .modal-header {
    padding: 28px 24px
  }

  .modal-steps-col {
    padding: 24px
  }

  .modal-footer {
    padding: 16px 24px
  }

  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center
  }
}

@media (max-width: 900px) {
  header {
    padding: 12px 24px !important;
  }

  section {
    padding: 40px 20px !important;
  }

  .hero {
    grid-template-columns: 1fr !important;
    padding: 100px 20px 60px !important;
    gap: 32px !important;
    text-align: left;
  }

  .hero-right {
    padding: 0 !important;
    margin-top: 24px !important;
  }

  .hero-metrics,
  .hero-stats {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    padding-top: 24px !important;
    align-items: flex-start !important;
  }

  .hero-metric,
  .hero-stats>div {
    display: flex !important;
    width: 100% !important;
  }

  .chat-window {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }

  .chat-body {
    min-height: 200px !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }

  .chat-bubble {
    max-width: 95% !important;
  }

  .chat-card-row,
  .demo-list-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-start !important;
  }

  .chat-card-row>div:last-child,
  .demo-list-item .dli-right {
    text-align: left !important;
    width: 100% !important;
    padding: 12px 0 0 0 !important;
    margin-top: 8px !important;
    border-top: 1px dashed var(--border) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .chat-card-row div[style*="font-family:'Syne'"],
  .dli-val {
    font-size: 15px !important;
  }

  .demo-list-item {
    padding: 12px !important;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }

  .hero-sub {
    font-size: 15px !important;
  }

  .hero-metric-num {
    font-size: 20px !important;
  }
}