/* ==========================================================================
   Automate Hub — style.css
   Palette: navy #0F172A · sky blue #38BDF8 · emerald #34D399 · off-white #FAFAF9
   ========================================================================== */

:root {
  --navy: #0F172A;
  --navy-soft: #1E293B;
  --accent: #38BDF8;
  --accent-light: #7DD3FC;
  --accent-dark: #0284C7;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --offwhite: #FAFAF9;
  --white: #FFFFFF;
  --text: #1F2937;
  --text-muted: #6B7280;
  --text-on-dark: #E2E8F0;
  --text-on-dark-muted: #94A3B8;
  --green: #34D399;
  --green-dark: #059669;
  --border: rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.05), 0 16px 48px rgba(15, 23, 42, 0.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --flow-duration: 7s; /* one full pass of the lead-flow pulse */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

/* ---------- Layout primitives ---------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: 820px; }

.section { padding: 104px 0; }

.section-offwhite { background: var(--offwhite); }

.section-dark {
  background: var(--navy);
  background-image: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(30, 64, 175, 0.18), transparent);
  color: var(--text-on-dark);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--navy);
}

.section-dark .section-head h2 { color: var(--white); }

.section-head p {
  margin-top: 16px;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.section-dark .section-head p { color: var(--text-on-dark-muted); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
}

.section-dark .section-eyebrow { color: var(--accent); }

/* Gradient text accents */

.grad-text {
  background: linear-gradient(100deg, var(--accent-light) 0%, var(--accent) 45%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.grad-text-dark {
  background: linear-gradient(100deg, var(--accent-dark), var(--green-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Grids & cards ---------- */

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

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

.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

/* Accent line that slides in on hover */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.card:hover::before { transform: scaleX(1); }

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 10px;
}

.card p { color: var(--text-muted); font-size: 0.9688rem; }

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0.07));
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-badge svg { width: 24px; height: 24px; }

.icon-badge-lg { width: 56px; height: 56px; }
.icon-badge-lg svg { width: 28px; height: 28px; }

/* Staggered reveal inside grids */
.grid-3 .reveal:nth-child(2), .industry-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.grid-3 .reveal:nth-child(3), .industry-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.industry-grid .reveal:nth-child(4) { transition-delay: 0.05s; }
.industry-grid .reveal:nth-child(5) { transition-delay: 0.15s; }
.industry-grid .reveal:nth-child(6) { transition-delay: 0.25s; }
.grid-2 .reveal:nth-child(2) { transition-delay: 0.12s; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--green));
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0EA5E9, #10B981);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
}

.btn-lg { padding: 16px 32px; font-size: 1.0625rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--green));
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg { width: 15px; height: 15px; }

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

/* ---------- 1. Hero ---------- */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 104px 0 96px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 22% 0%, rgba(56, 189, 248, 0.14), transparent),
    radial-gradient(ellipse 55% 45% at 85% 30%, rgba(30, 64, 175, 0.3), transparent),
    radial-gradient(ellipse 50% 40% at 60% 110%, rgba(56, 189, 248, 0.07), transparent);
  pointer-events: none;
}

/* Faint dot grid for texture */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 28px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.9);
  animation: dot-blink 1.8s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.375rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-sub {
  margin-top: 24px;
  max-width: 540px;
  font-size: 1.1563rem;
  color: var(--text-on-dark-muted);
  line-height: 1.65;
}

.hero-ctas {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-on-dark);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-demo-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }

.hero-demo-link:hover { color: var(--accent); border-color: var(--accent); }
.hero-demo-link:hover svg { transform: translateX(3px); }

.hero-trust {
  margin-top: 36px;
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.01em;
}

/* Hero visual: floating notification stack */

.hero-visual { position: relative; }

.notif-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
  margin-left: auto;
}

.notif-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 16px 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.45);
  animation: notif-float 6s ease-in-out infinite;
  animation-delay: calc(var(--float) * -1.5s);
}

/* Alternate cards nudge left/right for a organic stacked look */
.notif-card:nth-child(odd) { transform-origin: left center; margin-right: 32px; }
.notif-card:nth-child(even) { margin-left: 32px; }

.notif-card-featured {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.12), 0 12px 32px rgba(2, 6, 23, 0.45);
}

@keyframes notif-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -7px; }
}

.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-icon svg { width: 20px; height: 20px; }

.notif-icon-wa     { background: rgba(37, 211, 102, 0.15);  color: #4ADE80; border: 1px solid rgba(37, 211, 102, 0.3); }
.notif-icon-ai     { background: rgba(56, 189, 248, 0.15);  color: var(--accent); border: 1px solid rgba(56, 189, 248, 0.35); }
.notif-icon-sheets { background: rgba(52, 168, 83, 0.15);   color: #6EE7B7; border: 1px solid rgba(52, 168, 83, 0.3); }
.notif-icon-slack  { background: rgba(96, 165, 250, 0.15);  color: #93C5FD; border: 1px solid rgba(96, 165, 250, 0.3); }

.notif-body { min-width: 0; flex: 1; }

.notif-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.notif-text {
  font-size: 0.7813rem;
  color: var(--text-on-dark-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-time {
  font-size: 0.6875rem;
  color: var(--text-on-dark-muted);
  align-self: flex-start;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* Stats strip */

.stats-strip {
  position: relative;
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stat {
  padding: 26px 20px;
  text-align: center;
}

.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.07); }

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.stat-label {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
}

/* ---------- Integrations marquee ---------- */

.integrations {
  background: var(--navy);
  padding: 8px 0 96px;
  overflow: hidden;
}

.integrations-label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-on-dark-muted);
  margin-bottom: 36px;
}

.marquee {
  overflow: hidden;
  /* Fade the rows out at the edges */
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee + .marquee { margin-top: 22px; }

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}

.marquee-reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 55s;
}

/* Pause on hover so visitors can look at the logos */
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

/* Two identical groups per track; -50% lands exactly on the seam */
.marquee-group {
  display: flex;
  gap: 18px;
  padding-right: 18px;
}

.tool-tile {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.45);
  transition: transform 0.25s ease;
}

.tool-tile:hover { transform: translateY(-4px) scale(1.06); }

.tool-tile img { width: 30px; height: 30px; }

/* ---------- 2. Problem ---------- */

.stat-band {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--navy);
  color: var(--text-on-dark);
  border-radius: var(--radius);
  padding: 36px 44px;
  box-shadow: var(--shadow-lg);
}

.stat-band-figure {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  flex-shrink: 0;
}

.stat-band-text {
  font-size: 1rem;
  line-height: 1.6;
}

.stat-band-source {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
}

/* ---------- 3. Solution ---------- */

.solution-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.addon-pill {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

.check-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9688rem;
  color: var(--text);
}

.check-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

.solution-tagline {
  text-align: center;
  margin-top: 48px;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.tool-chips { text-align: center; margin-top: 28px; }

.tool-chips-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.tool-chips-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tool-chip {
  font-size: 0.8438rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
}

/* ---------- 4. Lead-flow demo ---------- */

.flow { position: relative; margin-bottom: 88px; }

/* The connecting track sits behind the row of cards */
.flow-track {
  position: absolute;
  top: 56px; /* vertically centered on the icon row */
  left: 6%;
  right: 6%;
  height: 2px;
}

.flow-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(56, 189, 248, 0.08),
    rgba(56, 189, 248, 0.45) 50%,
    rgba(56, 189, 248, 0.08));
  border-radius: 2px;
}

/* Glowing dot that travels stage 1 → 5, then loops */
.flow-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 4px rgba(56, 189, 248, 0.55), 0 0 32px 10px rgba(56, 189, 248, 0.25);
  animation: flow-travel var(--flow-duration) linear infinite;
}

@keyframes flow-travel {
  0%   { left: 0%;   opacity: 0; }
  4%   { opacity: 1; }
  92%  { opacity: 1; }
  96%  { left: 100%; opacity: 0; }
  100% { left: 100%; opacity: 0; }
}

.flow-stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.flow-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.flow-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(30, 41, 59, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px 16px 20px;
  width: 100%;
  /* Each stage briefly lifts and glows as the pulse passes.
     Delay = stage index * (duration / 5), aligned to the travelling dot. */
  animation: stage-highlight var(--flow-duration) ease-in-out infinite;
  animation-delay: calc(var(--stage) * (var(--flow-duration) / 5));
}

@keyframes stage-highlight {
  0%, 8%   { transform: scale(1);    border-color: rgba(255, 255, 255, 0.08); box-shadow: none; }
  12%      { transform: scale(1.04); border-color: rgba(56, 189, 248, 0.6);   box-shadow: 0 0 24px rgba(56, 189, 248, 0.18); }
  20%, 100%{ transform: scale(1);    border-color: rgba(255, 255, 255, 0.08); box-shadow: none; }
}

.flow-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-icon svg { width: 22px; height: 22px; }

.flow-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.flow-card p {
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
  line-height: 1.5;
}

.flow-caption {
  margin-top: 12px;
  font-size: 0.75rem;
  color: rgba(56, 189, 248, 0.85);
  font-weight: 500;
}

/* Chat mockup — WhatsApp-style window */

.chat-window {
  max-width: 620px;
  margin: 0 auto;
  background: #0B1220;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.5);
}

.chat-window-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(30, 41, 59, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--green));
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-contact {
  font-size: 0.9063rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.chat-status {
  font-size: 0.75rem;
  color: #4ADE80;
}

.chat-channel {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-on-dark-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px 10px;
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px;
}

.chat-daychip {
  align-self: center;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 3px 12px;
}

.chat-bubble {
  position: relative;
  max-width: 84%;
  padding: 14px 18px 20px;
  border-radius: 16px;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.chat-inbound {
  align-self: flex-start;
  background: var(--navy-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  border-bottom-left-radius: 5px;
}

.chat-outbound {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--green), #10B981);
  color: var(--navy);
  border-bottom-right-radius: 5px;
}

.chat-outbound p { font-weight: 500; }

.bubble-meta {
  position: absolute;
  right: 12px;
  bottom: 5px;
  font-size: 0.625rem;
  opacity: 0.65;
  font-variant-numeric: tabular-nums;
}

.ai-tag {
  position: absolute;
  top: -9px;
  right: 14px;
  background: var(--navy);
  color: var(--accent);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.chat-link { text-decoration: underline; }

.chat-timestamp {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
  padding: 0 20px 16px;
}

.demo-kicker {
  text-align: center;
  margin-top: 56px;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--white);
}

.demo-kicker-dark { color: var(--navy); }

/* ---------- 5. Voice demo ---------- */

.voice-demo {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

/* Phone */

.phone-wrap { display: flex; justify-content: center; }

.phone {
  width: 280px;
  background: var(--navy);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, 0.15), 0 0 80px rgba(56, 189, 248, 0.1);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background: var(--navy);
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  border-radius: 30px;
  padding: 64px 24px 36px;
  text-align: center;
  color: var(--white);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.call-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-on-dark-muted);
}

.call-name {
  margin-top: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.call-timer {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.call-pulse-wrap {
  position: relative;
  margin: auto 0 18px;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-pulse-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--green));
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.call-pulse-icon svg { width: 28px; height: 28px; }

.call-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.5);
  animation: call-ring 2.4s ease-out infinite;
}

.call-pulse-ring.ring-2 { animation-delay: 1.2s; }

@keyframes call-ring {
  0%   { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Voice waveform */

.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  margin-bottom: 18px;
}

.waveform span {
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  height: 8px;
  animation: wave-bounce 1.1s ease-in-out infinite;
  opacity: 0.85;
}

.waveform span:nth-child(2)  { animation-delay: 0.1s; }
.waveform span:nth-child(3)  { animation-delay: 0.2s; }
.waveform span:nth-child(4)  { animation-delay: 0.3s; }
.waveform span:nth-child(5)  { animation-delay: 0.4s; }
.waveform span:nth-child(6)  { animation-delay: 0.5s; }
.waveform span:nth-child(7)  { animation-delay: 0.45s; }
.waveform span:nth-child(8)  { animation-delay: 0.35s; }
.waveform span:nth-child(9)  { animation-delay: 0.25s; }
.waveform span:nth-child(10) { animation-delay: 0.15s; }
.waveform span:nth-child(11) { animation-delay: 0.05s; }
.waveform span:nth-child(12) { animation-delay: 0s; }

@keyframes wave-bounce {
  0%, 100% { height: 6px; }
  50%      { height: 26px; }
}

.call-live {
  font-size: 0.75rem;
  color: #4ADE80;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Transcript */

.transcript {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px 28px 20px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.transcript-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.transcript-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  animation: dot-blink 1.6s ease-in-out infinite;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.transcript-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.transcript-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.transcript-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.transcript-line .speaker {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  margin-top: 2px;
}

.line-ai .speaker { background: var(--accent-soft); color: var(--accent-dark); }
.line-caller .speaker { background: rgba(15, 23, 42, 0.06); color: var(--text-muted); }

.transcript-line p {
  font-size: 0.9063rem;
  color: var(--text);
  line-height: 1.5;
}

.line-ai p { font-weight: 500; }

/* Typing indicator */

.typing-indicator {
  display: none;
  gap: 5px;
  padding: 10px 0 2px;
}

.typing-indicator.active { display: flex; }

.typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: typing-bounce 1.2s ease-in-out infinite;
}

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

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

/* ---------- 6. Who it's for — photo tiles ---------- */

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

.industry-tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  text-decoration: none;
  isolation: isolate;
}

.industry-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.industry-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 30%, rgba(15, 23, 42, 0.82) 100%);
  transition: background 0.3s ease;
}

.industry-tile:hover img { transform: scale(1.05); }

.industry-tile:hover::after {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 30%, rgba(15, 23, 42, 0.9) 100%);
}

.industry-label {
  position: absolute;
  left: 20px;
  bottom: 16px;
  right: 20px;
  z-index: 1;
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.industry-label::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  margin-top: 8px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.industry-tile:hover .industry-label::after { width: 56px; }

/* ---------- 8. Testimonials ---------- */

/*
  The testimonials section ships hidden (class "is-hidden" on the <section>)
  until real client quotes are added. Remove that class in index.html to show it.
*/
.is-hidden { display: none; }

.testimonial-card blockquote {
  font-style: italic;
  color: var(--text);
  font-size: 0.9688rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

.stars {
  display: flex;
  gap: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}

.stars svg { width: 16px; height: 16px; }

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  color: var(--navy) !important;
  font-size: 0.9375rem !important;
}

.testimonial-role { font-size: 0.8438rem !important; }

/* ---------- 9. Pricing ---------- */

.pricing-card {
  text-align: center;
  padding: 60px 48px;
  border-top: 3px solid var(--accent);
  background-image: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(56, 189, 248, 0.06), transparent);
}

.pricing-card::before { display: none; }
.pricing-card:hover { transform: none; }

.pricing-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.pricing-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
  line-height: 1.25;
}

.pricing-list {
  max-width: 420px;
  margin: 28px auto 36px;
  text-align: left;
}

.pricing-note {
  margin-top: 18px;
  font-size: 0.8438rem;
  color: var(--text-muted);
}

/* ---------- 10. Founder ---------- */

.founder-section {
  position: relative;
  overflow: hidden;
}

.mountain-silhouette {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: var(--offwhite);
  pointer-events: none;
}

.mountain-silhouette svg { width: 100%; height: 140px; }

.founder { position: relative; text-align: center; }

.founder-photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--offwhite);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.12);
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  overflow: hidden;
}

.founder-photo svg { width: 42px; height: 42px; }

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-quote {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.55;
  color: var(--navy);
  max-width: 680px;
  margin: 0 auto;
}

.founder-name {
  margin-top: 22px;
  font-size: 0.9063rem;
  color: var(--text);
  font-weight: 600;
}

.founder-location {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.founder-location svg { width: 14px; height: 14px; color: var(--accent-dark); }

/* ---------- 11. Final CTA ---------- */

.final-cta {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.final-cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 115%, rgba(56, 189, 248, 0.18), transparent),
    radial-gradient(ellipse 45% 40% at 15% -10%, rgba(30, 64, 175, 0.25), transparent);
  pointer-events: none;
}

.final-cta .container { position: relative; }

.final-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 840px;
  margin: 0 auto 40px;
}

.final-cta-sub {
  margin-top: 24px;
  font-size: 0.9375rem;
  color: var(--text-on-dark-muted);
}

/* ---------- 12. Footer ---------- */

.site-footer {
  background: #0B1220;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-on-dark-muted);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo .logo-mark { width: 24px; height: 24px; border-radius: 7px; }
.footer-logo .logo-mark svg { width: 13px; height: 13px; }

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

.footer-location { font-size: 0.8125rem; margin-top: 6px; }

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-copy { font-size: 0.8125rem; }

/* ---------- Chat widget ---------- */

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.chat-launcher {
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--green));
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-launcher:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.5);
}

.chat-launcher svg { width: 26px; height: 26px; }
.chat-launcher .chat-launcher-close { display: none; }
.chat-widget.open .chat-launcher-open { display: none; }
.chat-widget.open .chat-launcher-close { display: block; }

.chat-panel {
  width: min(380px, calc(100vw - 32px));
  height: min(540px, calc(100vh - 120px));
  /* dvh tracks the iOS Safari keyboard/toolbar so the input stays visible */
  height: min(540px, calc(100dvh - 120px));
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: chat-pop 0.25s ease;
}

.chat-panel[hidden] { display: none; }

@keyframes chat-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--navy);
  color: var(--white);
}

.chat-panel-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--green));
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-panel-avatar svg { width: 18px; height: 18px; }

.chat-panel-title { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }

.chat-panel-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
}

.chat-panel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  animation: dot-blink 1.8s ease-in-out infinite;
}

.chat-panel-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  background: var(--offwhite);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 86%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  animation: chat-msg-in 0.3s ease;
}

@keyframes chat-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-msg-bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 5px;
}

.chat-msg-bot a { color: var(--accent-dark); font-weight: 600; }

.chat-msg-user {
  align-self: flex-end;
  background: var(--navy);
  color: var(--white);
  border-bottom-right-radius: 5px;
}

.chat-msg-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 14px 15px;
}

.chat-msg-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.chat-msg-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg-typing span:nth-child(3) { animation-delay: 0.3s; }

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
  background: var(--offwhite);
}

.chat-quick:empty { display: none; }

.chat-quick button {
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: var(--white);
  color: var(--accent-dark);
  font-family: var(--font);
  font-size: 0.7813rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.chat-quick button:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.chat-panel-input {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.chat-panel-input input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-panel-input input:focus { border-color: var(--accent); }

.chat-panel-input button {
  width: 44px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--green));
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-panel-input button:hover { transform: translateY(-1px); }

.chat-panel-input button svg { width: 18px; height: 18px; }

@media (max-width: 600px) {
  .chat-widget { right: 16px; bottom: 16px; }
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .flow-pulse, .flow-card, .call-pulse-ring, .transcript-dot, .live-dot,
  .notif-card, .waveform span, .typing-indicator span,
  .marquee-track { animation: none !important; }
  .transcript-line { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1020px) {
  /* minmax(0, 1fr) — a plain 1fr lets the notification cards' no-wrap text
     force the track wider than the screen, clipping the hero on phones */
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 56px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .notif-stack { margin: 0 auto; }
}

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }

  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 640px;
    margin: 0 auto;
  }

  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid rgba(255, 255, 255, 0.07); }
  .stat:nth-child(3) { border-left: none; }

  .stat-band { flex-direction: column; text-align: center; gap: 16px; padding: 32px 28px; }

  .voice-demo {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    max-width: 560px;
  }

  .transcript { min-height: 0; }

  /* Lead flow stacks vertically; the horizontal pulse track is hidden and
     the stage-highlight animation carries the motion instead. */
  .flow-track { display: none; }

  .flow-stages {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
    margin: 0 auto;
    gap: 28px;
  }

  .flow-stage:not(:last-child)::after {
    content: "";
    display: block;
    width: 2px;
    height: 24px;
    margin-top: 20px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.5), rgba(56, 189, 248, 0.08));
  }
}

@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 80px; }
  .hero-eyebrow { font-size: 0.6563rem; letter-spacing: 0.08em; padding: 6px 13px; }
  .hero-ctas { flex-direction: column; gap: 20px; }
  .btn-lg { width: 100%; max-width: 360px; }
  .notif-card:nth-child(odd) { margin-right: 0; }
  .notif-card:nth-child(even) { margin-left: 0; }
  .notif-text { white-space: normal; }
  .stats-strip { margin-top: 56px; }
  .industry-grid { grid-template-columns: 1fr; max-width: 420px; }
  .chat-bubble { max-width: 94%; }
  .chat-channel { display: none; }
  .pricing-card { padding: 44px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
