/* ============================================================
   MyEasyAts — Enhanced Styles with AI Workflow & Animations
   ============================================================ */

:root {
  --bg: #f3f4f6;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-strong: #f9fafb;
  --surface-deep: #111827;
  --surface-accent: #22c55e;
  --surface-accent-dark: #16a34a;
  --surface-accent-darker: #15803d;
  --surface-emerald: #10b981;
  --surface-teal: #14b8a6;
  --text: #111827;
  --text-muted: #4b5563;
  --text-soft: #6b7280;
  --line: rgba(17, 24, 39, 0.1);
  --shadow: 0 30px 80px rgba(17, 24, 39, 0.1);
  --shadow-lg: 0 40px 100px rgba(17, 24, 39, 0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1200px;
  --blue: #3b82f6;
  --purple: #7c3aed;
  --teal: #14b8a6;
  --green: #22c55e;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.1), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(16, 185, 129, 0.08), transparent 26%),
    linear-gradient(180deg, #f9fafb 0%, #f3f4f6 50%, #ecfdf5 100%);
  color: var(--text);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a.button { font: inherit; cursor: pointer; }

/* ===== FLOATING BACKGROUND ORBS ===== */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(15, 157, 122, 0.18), transparent 70%);
  top: -100px; left: -150px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 70%);
  top: 20%; right: -100px;
  animation-delay: -4s;
}

.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(15, 157, 122, 0.1), transparent 70%);
  bottom: 10%; left: 30%;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ===== PAGE SHELL ===== */
.page-shell { position: relative; }

.site-header,
.section,
.proof-band,
.site-footer {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

/* ===== HEADER ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 18px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--surface-accent), var(--surface-accent-dark));
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(15, 157, 122, 0.35);
  animation: brandPulse 3s ease-in-out infinite;
}

@keyframes brandPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(15, 157, 122, 0.35); }
  50% { box-shadow: 0 8px 32px rgba(15, 157, 122, 0.55); }
}

.brand-text { font-size: 1.1rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.site-nav a {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav a i { font-size: 0.8rem; }

.site-nav a:hover, .site-nav a:focus-visible {
  background: rgba(16, 42, 67, 0.07);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: var(--text);
}

/* ===== SECTIONS ===== */
.section { padding: 6rem 0; }

/* ===== EYEBROW ===== */
.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--surface-accent-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface-accent);
  display: inline-block;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  line-height: 0.97;
  max-width: 13ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  max-width: 15ch;
}

h3 { font-size: 1.2rem; line-height: 1.2; }

p { margin: 0; line-height: 1.7; }

.gradient-text {
  background: linear-gradient(135deg, var(--surface-accent), var(--surface-blue), var(--surface-accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-text,
.section-heading p:not(.eyebrow),
.feature-card p,
.workflow-step p,
.team-card p,
.contact-copy p:not(.eyebrow),
.site-footer p {
  color: var(--text-muted);
}

.hero-text {
  font-size: 1.05rem;
  max-width: 60ch;
  margin-top: 1.5rem;
}

/* ===== BUTTONS ===== */
.hero-actions, .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  border: none;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--surface-accent), var(--surface-accent-dark));
  color: #fff;
  box-shadow: 0 12px 32px rgba(15, 157, 122, 0.3);
}

.button-primary:hover {
  box-shadow: 0 18px 40px rgba(15, 157, 122, 0.45);
}

.button-secondary, .button-ghost {
  border: 1.5px solid rgba(16, 42, 67, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  backdrop-filter: blur(10px);
}

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding-top: 4rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero-metrics article {
  padding: 1.25rem;
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.hero-metrics article:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(16, 42, 67, 0.1);
}

.hero-metrics strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  font-family: "Space Grotesk", sans-serif;
}

.hero-metrics span { color: var(--text-soft); font-size: 0.85rem; }

/* ===== GLASS CARD ===== */
.glass-card {
  border: 1px solid rgba(16, 42, 67, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 241, 0.75));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

/* ===== DASHBOARD CARD ===== */
.dashboard-card {
  border-radius: var(--radius-xl);
  padding: 1.4rem;
  animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.wc-red { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #ff5f57; }
.wc-yellow { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #febc2e; }
.wc-green { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #28c840; }

.window-title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-soft);
  font-weight: 600;
}

/* ===== AI ACTIVITY BAR ===== */
.ai-activity-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  background: rgba(15, 31, 53, 0.06);
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ai-pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #28c840;
  flex-shrink: 0;
  animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.4); }
  50% { transform: scale(1.2); opacity: 0.9; box-shadow: 0 0 0 6px rgba(40, 200, 64, 0); }
}

.ai-status-text { flex: 1; font-weight: 500; }

.ai-badge {
  padding: 0.2rem 0.5rem;
  background: linear-gradient(135deg, #28c840, #1a9e30);
  color: #fff;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ===== DASHBOARD INTERNALS ===== */
.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.2rem;
}

.mini-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}

.dashboard-top h2 {
  font-size: 1.5rem;
  max-width: none;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 157, 122, 0.14);
  color: #0a7a5e;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.pulse-ring {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface-accent);
  animation: pulseDot 1.5s ease-in-out infinite;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.pipeline-grid article {
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  border: 1px solid rgba(16, 42, 67, 0.07);
}

.pipeline-grid h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pipeline-highlight {
  background: linear-gradient(180deg, rgba(15, 157, 122, 0.12), rgba(255, 255, 255, 0.9)) !important;
  border-color: rgba(15, 157, 122, 0.2) !important;
}

.pipeline-grid ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 0.7rem;
}

.pipeline-grid li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.avatar {
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.avatar-a { background: #276749; }
.avatar-b { background: #1c7ed6; }
.avatar-c { background: #8c3ad1; }
.avatar-d { background: #ff7b54; }
.avatar-e { background: #006d77; }
.avatar-f { background: #16a34a; }

.pipeline-grid strong { display: block; font-size: 0.85rem; }
.pipeline-grid small { color: var(--text-soft); font-size: 0.75rem; display: flex; align-items: center; gap: 0.3rem; }

.signal-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 42, 67, 0.07);
}

.signal-strip strong { display: block; font-size: 0.95rem; }
.health-strong { color: #276749; }

/* ===== PROOF BAND ===== */
.proof-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.8rem;
  border-radius: 28px;
  border: 1px solid rgba(16, 42, 67, 0.08);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.proof-band p { font-weight: 700; }

.proof-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  color: var(--text-muted);
}

.proof-items span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(16, 42, 67, 0.06);
  font-size: 0.88rem;
  transition: background 200ms ease, transform 200ms ease;
}

.proof-items span:hover {
  background: rgba(34, 197, 94, 0.12);
  transform: translateY(-2px);
}

/* ===== SECTION HEADING ===== */
.section-grid { display: grid; gap: 2.5rem; }
.section-heading { display: grid; gap: 1rem; }
.section-heading.narrow { max-width: 54rem; }

/* ===== AI AGENTS SECTION ===== */
.ai-agents-section { background: transparent; }

.agent-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  margin-top: 3rem;
}

/* ===== AGENT CARD ===== */
.agent-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(16, 42, 67, 0.09);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(14px);
  transition: transform 250ms ease, box-shadow 250ms ease;
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.5), transparent);
  pointer-events: none;
}

.agent-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(16, 42, 67, 0.14);
}

/* ===== AGENT ICON WRAP ===== */
.agent-icon-wrap {
  width: 3.5rem; height: 3.5rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  position: relative;
  margin-bottom: 0.8rem;
}

.agent-icon-blue { background: linear-gradient(135deg, #1c7ed6, #1864ab); }
.agent-icon-purple { background: linear-gradient(135deg, #8c3ad1, #6741d9); }
.agent-icon-teal { background: linear-gradient(135deg, #0ca678, #099268); }
.agent-icon-orange { background: linear-gradient(135deg, #22c55e, #16a34a); }

.agent-rings {
  position: absolute;
  inset: 0;
  border-radius: 18px;
}

.agent-rings span {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 2px solid currentColor;
  opacity: 0;
  animation: agentRing 2.5s ease-out infinite;
}

.agent-icon-blue .agent-rings span { color: #1c7ed6; }
.agent-icon-purple .agent-rings span { color: #8c3ad1; }
.agent-icon-teal .agent-rings span { color: #0ca678; }
.agent-icon-orange .agent-rings span { color: #22c55e; }

.agent-rings span:nth-child(1) { animation-delay: 0s; }
.agent-rings span:nth-child(2) { animation-delay: 0.8s; }
.agent-rings span:nth-child(3) { animation-delay: 1.6s; }

@keyframes agentRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ===== AGENT GIF AREA (CSS Animated Illustrations) ===== */
.agent-gif-area {
  margin: 0.8rem 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 42, 67, 0.03);
  border-radius: 12px;
  overflow: hidden;
}

/* Document Scan Animation (Agent 1) */
.doc-scan-anim {
  position: relative;
  width: 60px; height: 70px;
}

.doc-page {
  width: 100%; height: 100%;
  background: #fff;
  border-radius: 6px;
  border: 1px solid rgba(16, 42, 67, 0.15);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(16, 42, 67, 0.1);
}

.doc-line {
  height: 4px;
  background: rgba(16, 42, 67, 0.15);
  border-radius: 2px;
  animation: docLineReveal 2s ease-in-out infinite;
}

.doc-line.short { width: 60%; }
.doc-line:nth-child(1) { animation-delay: 0s; }
.doc-line:nth-child(2) { animation-delay: 0.2s; }
.doc-line:nth-child(3) { animation-delay: 0.4s; }
.doc-line:nth-child(4) { animation-delay: 0.6s; }
.doc-line:nth-child(5) { animation-delay: 0.8s; }

@keyframes docLineReveal {
  0%, 100% { background: rgba(16, 42, 67, 0.15); }
  50% { background: rgba(28, 126, 214, 0.5); }
}

.scan-beam {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(28, 126, 214, 0.8), transparent);
  animation: scanBeam 2s linear infinite;
  box-shadow: 0 0 8px rgba(28, 126, 214, 0.6);
}

@keyframes scanBeam {
  0% { top: 0; opacity: 1; }
  90% { top: 100%; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Match Bars Animation (Agent 2) */
.match-anim {
  width: 100%;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.match-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
}

.match-bar::before {
  content: "";
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #8c3ad1, #6741d9);
  width: 0;
  animation: barGrow 2s ease-out infinite;
  animation-delay: var(--bar-delay, 0s);
  flex-shrink: 0;
}

.match-bar:nth-child(1)::before { animation-delay: 0s; --final-w: var(--bar-w, 92%); }
.match-bar:nth-child(2)::before { animation-delay: 0.3s; --final-w: var(--bar-w, 78%); }
.match-bar:nth-child(3)::before { animation-delay: 0.6s; --final-w: var(--bar-w, 65%); }
.match-bar:nth-child(4)::before { animation-delay: 0.9s; --final-w: var(--bar-w, 54%); }

@keyframes barGrow {
  0% { width: 0; }
  60%, 80% { width: var(--bar-w, 80%); }
  100% { width: 0; }
}

/* Calendar Animation (Agent 3) */
.cal-anim {
  width: 110px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(16, 42, 67, 0.1);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(16, 42, 67, 0.08);
}

.cal-header {
  background: linear-gradient(135deg, #0ca678, #099268);
  color: #fff;
  text-align: center;
  padding: 4px;
  font-size: 0.65rem;
  font-weight: 700;
}

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

.cal-day {
  height: 14px;
  border-radius: 3px;
  background: rgba(16, 42, 67, 0.06);
}

.cal-day.booked { background: rgba(12, 166, 120, 0.25); }

.cal-day.highlight {
  background: #0ca678;
  animation: calHighlight 2s ease-in-out infinite;
}

@keyframes calHighlight {
  0%, 100% { background: #0ca678; transform: scale(1); }
  50% { background: #28c840; transform: scale(1.1); }
}

.cal-booking-anim {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #0ca678;
  padding: 3px;
  animation: bookingPop 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

@keyframes bookingPop {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Offer Animation (Agent 4) */
.offer-anim {
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-doc {
  width: 70px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid rgba(16, 42, 67, 0.12);
  padding: 8px;
  box-shadow: 0 4px 12px rgba(16, 42, 67, 0.1);
}

.offer-line {
  height: 4px;
  background: rgba(16, 42, 67, 0.12);
  border-radius: 2px;
  margin-bottom: 5px;
}

.offer-line.short { width: 60%; }

.offer-sig-area {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dashed rgba(16, 42, 67, 0.15);
}

.offer-sig {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  border-radius: 2px;
  animation: sigDraw 2.5s ease-in-out infinite;
  transform-origin: left;
}

@keyframes sigDraw {
  0%, 100% { transform: scaleX(0); opacity: 0; }
  30%, 70% { transform: scaleX(1); opacity: 1; }
}

.offer-checkmark {
  color: #28c840;
  font-size: 1rem;
  animation: checkPop 2.5s ease-in-out infinite;
}

@keyframes checkPop {
  0%, 25% { transform: scale(0); opacity: 0; }
  40%, 70% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

/* ===== FLOW ARROWS ===== */
.flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  padding-top: 3rem;
  color: var(--surface-accent);
  font-size: 1.2rem;
}

.flow-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, rgba(34,197,94,0.3), rgba(34,197,94,0.8));
  position: relative;
  margin-bottom: 4px;
}

.flow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface-accent);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  animation: flowDotMove 2s linear infinite;
}

@keyframes flowDotMove {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ===== AGENT INFO ===== */
.agent-number {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--surface-accent-dark);
  margin-bottom: 0.4rem;
}

.agent-info h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.agent-info p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.8rem; }

.agent-features {
  list-style: none;
  padding: 0; margin: 0 0 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.agent-features li {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.agent-features li i { color: #28c840; font-size: 0.7rem; }

.agent-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: rgba(15,157,122,0.1);
  border-radius: 999px;
  border: 1px solid rgba(15,157,122,0.22);
}

.agent-stat strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  color: var(--surface-accent);
}

.agent-stat span { font-size: 0.75rem; color: var(--text-soft); }

/* ===== AI LIVE FEED ===== */
.ai-live-feed {
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16,42,67,0.09);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  background: rgba(15,31,53,0.04);
  border-bottom: 1px solid rgba(16,42,67,0.07);
  font-weight: 700;
  font-size: 0.88rem;
}

.feed-items { padding: 0.5rem; }

.feed-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  transition: background 200ms ease;
}

.feed-item:hover { background: rgba(16,42,67,0.04); }

.feed-icon {
  width: 2rem; height: 2rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.feed-blue { background: rgba(28,126,214,0.12); color: #1c7ed6; }
.feed-purple { background: rgba(140,58,209,0.12); color: #8c3ad1; }
.feed-teal { background: rgba(12,166,120,0.12); color: #0ca678; }
.feed-orange { background: rgba(34,197,94,0.12); color: #16a34a; }

.feed-text { flex: 1; color: var(--text-muted); }
.feed-text strong { color: var(--text); }
.feed-time { font-size: 0.75rem; color: var(--text-soft); white-space: nowrap; }

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.feature-card {
  padding: 1.6rem;
  border: 1px solid rgba(16,42,67,0.08);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(16,42,67,0.12);
  border-color: rgba(34,197,94,0.25);
}

.feature-icon-wrap { margin-bottom: 0.2rem; }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15,157,122,0.14), rgba(37,99,235,0.1));
  color: var(--surface-accent);
  font-size: 1.2rem;
  transition: transform 250ms ease;
}

.feature-card:hover .feature-icon { transform: scale(1.1) rotate(5deg); }

.feature-card h3 { font-size: 1.05rem; }
.feature-card p { font-size: 0.88rem; flex: 1; }

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--surface-accent-dark);
  transition: gap 200ms ease;
}

.feature-link:hover { gap: 0.7rem; }

/* ===== WORKFLOW SECTION ===== */
.workflow-section { padding-top: 3rem; }

.workflow-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  margin-top: 2.5rem;
  align-items: start;
}

.workflow-step {
  padding: 1.6rem;
  border: 1px solid rgba(16,42,67,0.08);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.workflow-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(16,42,67,0.1);
}

.step-icon-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.step-number {
  display: inline-flex;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--surface-deep);
  color: #fff;
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  flex-shrink: 0;
}

.step-anim-capture {
  display: flex;
  gap: 4px;
  align-items: flex-end;
}

.step-anim-capture span {
  width: 6px;
  border-radius: 3px;
  background: var(--surface-accent);
  animation: captureBar 1.2s ease-in-out infinite;
}

.step-anim-capture span:nth-child(1) { height: 12px; animation-delay: 0s; }
.step-anim-capture span:nth-child(2) { height: 20px; animation-delay: 0.2s; }
.step-anim-capture span:nth-child(3) { height: 16px; animation-delay: 0.4s; }

@keyframes captureBar {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

.step-anim-collab {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--surface-accent);
  animation: collabPulse 2s ease-in-out infinite;
}

@keyframes collabPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.step-anim-convert {
  font-size: 1.2rem;
  color: #28c840;
  animation: convertPop 2s ease-in-out infinite;
}

@keyframes convertPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.workflow-step h3 { margin-bottom: 0.5rem; }
.workflow-step p { font-size: 0.88rem; margin-bottom: 0.8rem; }

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: rgba(15,157,122,0.1);
  border: 1px solid rgba(15,157,122,0.22);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--surface-accent);
}

.workflow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  padding-top: 2.5rem;
}

.connector-line {
  width: 2px;
  height: 50px;
  background: linear-gradient(180deg, rgba(34,197,94,0.3), rgba(34,197,94,0.8));
  position: relative;
}

.connector-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface-accent);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  animation: flowDotMove 2s linear infinite;
}

/* ===== TEAMS SECTION ===== */
.teams-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.team-avatars-anim {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.team-avatars-anim .avatar {
  margin-left: -0.5rem;
  border: 2px solid #fff;
  transition: transform 200ms ease;
}

.team-avatars-anim .avatar:first-child { margin-left: 0; }
.team-avatars-anim .avatar:hover { transform: translateY(-4px) scale(1.1); z-index: 1; }

.avatar-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: rgba(16,42,67,0.08);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.3rem;
}

.team-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.team-card {
  padding: 1.5rem;
  border: 1px solid rgba(16,42,67,0.08);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.team-card:hover {
  transform: translateX(6px);
  box-shadow: 0 12px 32px rgba(16,42,67,0.1);
}

.team-card-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15,157,122,0.14), rgba(37,99,235,0.1));
  color: var(--surface-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.team-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.team-card p { font-size: 0.88rem; margin-bottom: 0.8rem; }

.team-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.team-features li {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.team-features li i { color: #28c840; font-size: 0.7rem; }

/* ===== TESTIMONIALS ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.testimonial-card {
  padding: 1.8rem;
  border: 1px solid rgba(16,42,67,0.08);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(14px);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(16,42,67,0.12);
}

.testimonial-stars {
  color: var(--surface-accent);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.2rem;
}

.testimonial-card blockquote {
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.78rem; color: var(--text-soft); }

/* ===== PRICING ===== */
.pricing-panel {
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.pricing-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.pricing-card {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(16,42,67,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(16,42,67,0.1);
}

.pricing-featured {
  border-color: rgba(34,197,94,0.35);
  background: linear-gradient(180deg, rgba(240,253,244,0.95), rgba(255,255,255,0.85));
  box-shadow: 0 12px 40px rgba(22,163,74,0.12);
}

.pricing-badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.9rem;
  background: linear-gradient(135deg, var(--surface-accent), var(--surface-accent-dark));
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.pricing-icon {
  width: 2.8rem; height: 2.8rem;
  border-radius: 14px;
  background: rgba(34,197,94,0.12);
  color: var(--surface-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.pricing-card h3 { font-size: 1.2rem; }
.pricing-card > p { font-size: 0.88rem; color: var(--text-muted); }

.pricing-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.pricing-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features li i { color: #28c840; font-size: 0.75rem; }

/* ===== CONTACT ===== */
.contact-card {
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(10,30,55,0.97), rgba(15,50,80,0.93)),
    radial-gradient(circle at top left, rgba(15,157,122,0.35), transparent 35%),
    radial-gradient(circle at bottom right, rgba(37,99,235,0.25), transparent 40%);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}

.contact-card .eyebrow { color: rgba(255,255,255,0.6); }

.eyebrow-dot-light {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface-accent);
  display: inline-block;
  animation: dotPulse 2s ease-in-out infinite;
}

.contact-card h2 { color: #fff; max-width: 18ch; }
.contact-card p { color: rgba(255,255,255,0.75); }

.contact-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-stats div { text-align: center; }

.contact-stats strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  color: #4ade80;
}

.contact-stats span { font-size: 0.78rem; color: rgba(255,255,255,0.6); }

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 200px;
}

.contact-card .button-secondary {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.contact-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

/* ===== FOOTER ===== */
.site-footer { padding: 0 0 2.5rem; }

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(16,42,67,0.08);
}

.footer-brand-col p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  max-width: 28ch;
}

.footer-brand { margin-bottom: 0.5rem; }

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 2.2rem; height: 2.2rem;
  border-radius: 10px;
  background: rgba(16,42,67,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.footer-social a:hover {
  background: var(--surface-accent);
  color: #fff;
  transform: translateY(-3px);
}

.footer-links-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  margin: 0 0 1rem;
  font-family: "Space Grotesk", sans-serif;
}

.footer-links-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-links-col a:hover {
  color: var(--surface-accent-dark);
  transform: translateX(3px);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(16,42,67,0.07);
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* ===== REVEAL ANIMATIONS ===== */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero, .contact-card { grid-template-columns: 1fr; }

  .agent-flow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .flow-arrow { display: none; }

  .feature-grid, .testimonial-grid, .pricing-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teams-layout { grid-template-columns: 1fr; }

  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-connector { display: none; }

  .footer-top { grid-template-columns: 1fr 1fr; }

  .contact-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 820px) {
  .site-header { padding-top: 1rem; }

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

  .js-ready .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: min(20rem, 100%);
    padding: 0.8rem;
    border-radius: 24px;
    border: 1px solid rgba(16,42,67,0.08);
    background: rgba(255,255,255,0.95);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .js-ready .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .js-ready .site-nav a { width: 100%; }

  .hero { min-height: auto; padding-top: 2.5rem; }

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

  .feature-grid, .testimonial-grid, .pricing-options { grid-template-columns: 1fr; }

  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header, .section, .proof-band, .site-footer {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .section { padding: 4rem 0; }

  h1 { max-width: 11ch; }

  .proof-band { flex-direction: column; align-items: flex-start; }

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

  .dashboard-card, .pricing-panel, .contact-card { padding: 1.4rem; }

  .contact-card { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; }

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

  .signal-strip { flex-direction: column; align-items: flex-start; }

  .contact-stats { flex-wrap: wrap; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   AGENT SCREEN ANIMATIONS
   ============================================================ */

/* Base screen shell */
.agent-screen {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  overflow: hidden;
  font-size: 0.72rem;
  font-family: "Manrope", sans-serif;
}

/* Title bar */
.screen-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}
.screen-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sd-red    { background: #ff5f57; }
.sd-yellow { background: #febc2e; }
.sd-green  { background: #28c840; }
.screen-title-label {
  margin-left: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.03em;
}

/* Screen body */
.screen-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---- Shared row / label / value ---- */
.sc-row, .sc-email-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 38px;
}
.sc-val {
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #22c55e;
}

/* Typewriter effect — text appears character by character via width */
.sv-type { animation: svType 0.8s steps(20, end) both; }
.sv-1 { animation-delay: 0.3s; }
.sv-2 { animation-delay: 1.2s; }
.se-1 { animation-delay: 0.3s; }
.se-2 { animation-delay: 1.1s; }

@keyframes svType {
  from { max-width: 0; opacity: 0; }
  to   { max-width: 160px; opacity: 1; }
}

/* Cursor blink — remove after typing done */
.sv-type { animation: svType 0.8s steps(20, end) both, svCursor 0.6s step-end 3; }
@keyframes svCursor {
  0%, 100% { border-right-color: #22c55e; }
  50%       { border-right-color: transparent; }
}

/* ---- Tags ---- */
.sc-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.sc-tag {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(34,197,94,0.12);
  color: #16a34a;
  font-size: 0.6rem;
  font-weight: 700;
  opacity: 0;
  animation: scTagIn 0.4s ease both;
}
.st-1 { animation-delay: 1.8s; }
.st-2 { animation-delay: 2.1s; }
.st-3 { animation-delay: 2.4s; }
@keyframes scTagIn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---- AI Score ---- */
.sc-score {
  font-weight: 800;
  color: #22c55e;
  font-size: 0.85rem;
  opacity: 0;
  animation: scFadeUp 0.5s ease 2.8s both;
}

/* ---- Action button ---- */
.sc-action {
  margin-top: 4px;
  padding: 5px 10px;
  border-radius: 7px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-weight: 700;
  font-size: 0.65rem;
  text-align: center;
  opacity: 0;
  animation: scFadeUp 0.5s ease both;
}
.sa-1 { animation-delay: 3.3s; }
.sa-2 { animation-delay: 3.5s; }
.sa-3 { animation-delay: 3.0s; }
.sa-4 { animation-delay: 3.8s; }

@keyframes scFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SCREEN 2 — JOB
   ============================================================ */
.sc-job-title {
  font-weight: 800;
  color: #111827;
  font-size: 0.78rem;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #8c3ad1;
  animation: svType 1s steps(25, end) 0.3s both, svCursorPurple 0.6s step-end 3 0.3s;
}
@keyframes svCursorPurple {
  0%, 100% { border-right-color: #8c3ad1; }
  50%       { border-right-color: transparent; }
}
.sc-job-meta { display: flex; gap: 4px; }
.sc-job-meta .sc-tag { background: rgba(140,58,209,0.1); color: #8c3ad1; }
.sc-job-meta .st-1 { animation-delay: 1.5s; }
.sc-job-meta .st-2 { animation-delay: 1.8s; }

.sc-reqs { display: flex; flex-direction: column; gap: 3px; }
.sc-req {
  font-size: 0.65rem;
  color: #374151;
  opacity: 0;
  animation: scFadeUp 0.4s ease both;
}
.sc-req i { color: #22c55e; margin-right: 4px; }
.sr-1 { animation-delay: 2.2s; }
.sr-2 { animation-delay: 2.5s; }
.sr-3 { animation-delay: 2.8s; }

.sc-match-count {
  font-weight: 700;
  color: #8c3ad1;
  font-size: 0.7rem;
  opacity: 0;
  animation: scFadeUp 0.5s ease 3.1s both;
}

/* ============================================================
   SCREEN 3 — SCHEDULE
   ============================================================ */
.sc-candidate-row {
  display: flex;
  align-items: center;
  gap: 7px;
  opacity: 0;
  animation: scFadeUp 0.4s ease 0.3s both;
}
.sc-candidate-row strong { font-size: 0.72rem; color: #111827; display: block; }
.sc-candidate-row small  { font-size: 0.6rem; color: #6b7280; }

.sc-slots { display: flex; flex-direction: column; gap: 4px; }
.sc-slot {
  padding: 4px 8px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0;
  animation: scFadeUp 0.4s ease both;
  cursor: default;
}
.sc-slot-sel {
  background: rgba(34,197,94,0.15);
  color: #16a34a;
  border: 1.5px solid rgba(34,197,94,0.4);
}
.sc-slot-sel i { margin-right: 4px; }
.ss-fade-1 { animation-delay: 0.8s; }
.ss-fade-2 { animation-delay: 1.3s; }
.ss-fade-3 { animation-delay: 1.8s; }

.si-anim { animation-delay: 2.5s !important; }

/* ============================================================
   SCREEN 4 — EMAIL
   ============================================================ */
.sc-email-row .sc-label { min-width: 42px; }
.sc-email-body {
  background: #f9fafb;
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sc-eline {
  font-size: 0.62rem;
  color: #374151;
  opacity: 0;
  animation: scFadeUp 0.4s ease both;
}
.sel-1 { animation-delay: 2.0s; }
.sel-2 { animation-delay: 2.4s; }
.sel-3 { animation-delay: 2.8s; }

.sc-attach {
  font-size: 0.62rem;
  color: #6b7280;
  opacity: 0;
  animation: scFadeUp 0.4s ease 3.2s both;
}
.sc-attach i { color: #22c55e; margin-right: 4px; }

.se-send { animation-delay: 3.8s !important; }

/* ============================================================
   LOOP — restart all screen animations every 6s
   ============================================================ */
.agent-screen {
  animation: screenLoop 7s linear infinite;
}
@keyframes screenLoop {
  0%   { opacity: 1; }
  90%  { opacity: 1; }
  95%  { opacity: 0; }
  100% { opacity: 1; }
}

/* Re-trigger child animations on loop via parent animation-delay trick */
.agent-card:nth-child(1) .agent-screen { animation-delay: 0s; }
.agent-card:nth-child(3) .agent-screen { animation-delay: 0.5s; }
.agent-card:nth-child(5) .agent-screen { animation-delay: 1s; }
.agent-card:nth-child(7) .agent-screen { animation-delay: 1.5s; }

/* ============================================================
   APP SCREENS SHOWCASE SECTION
   ============================================================ */

.app-screens-section { padding-bottom: 2rem; }

/* Tab switcher */
.app-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.app-tab {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-tab:hover { border-color: #22c55e; color: #16a34a; }
.app-tab.active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(34,197,94,0.3);
}

/* App window shell */
.app-window {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.06);
  background: #fff;
  max-width: 1100px;
  margin: 0 auto;
}
.app-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}
.app-window-title {
  margin-left: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
}
.app-window-body {
  display: flex;
  height: 480px;
}

/* ---- App Sidebar ---- */
.app-sidebar {
  width: 180px;
  flex-shrink: 0;
  background: #111827;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}
.app-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
}
.app-sidebar-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
}
.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 8px;
  gap: 2px;
}
.app-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
.app-nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.app-nav-item.active {
  background: rgba(34,197,94,0.18);
  color: #4ade80;
}
.app-nav-item i { width: 14px; text-align: center; font-size: 0.72rem; }

/* ---- App Content ---- */
.app-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #f9fafb;
}

/* Screen panels */
.app-screen-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.app-screen-panel.active {
  opacity: 1;
  pointer-events: auto;
}

/* Topbar */
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.app-page-title { font-size: 0.95rem; font-weight: 800; color: #111827; }
.app-breadcrumb { font-size: 0.65rem; color: #9ca3af; margin-top: 1px; }
.app-topbar-right { display: flex; align-items: center; gap: 8px; }
.app-badge-live {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,0.12);
  color: #16a34a;
  font-size: 0.65rem;
  font-weight: 700;
}
.app-badge-live i { font-size: 0.45rem; animation: livePulse 1.5s ease-in-out infinite; }
@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.app-btn-primary {
  padding: 5px 12px;
  border-radius: 7px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.app-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ============================================================
   DASHBOARD SCREEN
   ============================================================ */
.dash-widget-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.dash-widget {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  opacity: 0;
  animation: scFadeUp 0.4s ease both;
}
.aw-1 { animation-delay: 0.1s; }
.aw-2 { animation-delay: 0.2s; }
.aw-3 { animation-delay: 0.3s; }
.aw-4 { animation-delay: 0.4s; }

.dash-widget-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.dash-widget-top i { font-size: 0.9rem; }
.tone-green i { color: #22c55e; }
.tone-blue i { color: #1c7ed6; }
.tone-purple i { color: #8c3ad1; }
.tone-teal i { color: #0ca678; }

.dash-pill {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(34,197,94,0.1);
  color: #16a34a;
}
.dash-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  margin-bottom: 3px;
}
.tone-blue .dash-value { color: #1c7ed6; }
.tone-purple .dash-value { color: #8c3ad1; }
.tone-teal .dash-value { color: #0ca678; }
.tone-green .dash-value { color: #22c55e; }

.dash-label { font-size: 0.68rem; font-weight: 700; color: #374151; }
.dash-meta { font-size: 0.6rem; color: #9ca3af; margin-top: 2px; }

.dash-activity {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 12px;
  opacity: 0;
  animation: scFadeUp 0.4s ease 0.5s both;
}
.dash-activity-title { font-size: 0.72rem; font-weight: 800; color: #111827; margin-bottom: 10px; }
.dash-activity-list { display: flex; flex-direction: column; gap: 8px; }
.dash-act-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  color: #374151;
  opacity: 0;
  animation: scFadeUp 0.3s ease both;
}
.dar-1 { animation-delay: 0.6s; }
.dar-2 { animation-delay: 0.8s; }
.dar-3 { animation-delay: 1.0s; }
.dar-time { margin-left: auto; color: #9ca3af; font-size: 0.6rem; }

/* ============================================================
   CANDIDATES SCREEN
   ============================================================ */
.cand-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cand-search {
  flex: 1;
  min-width: 160px;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 0.68rem;
  color: #9ca3af;
}
.cand-filter-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
}
.chip-active {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.3);
  color: #16a34a;
}

.cand-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  font-size: 0.7rem;
}
.cand-table th {
  padding: 8px 12px;
  text-align: left;
  font-size: 0.62rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.cand-table td {
  padding: 8px 12px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.cand-table tr { opacity: 0; animation: scFadeUp 0.3s ease both; }
.ct-1 { animation-delay: 0.1s; }
.ct-2 { animation-delay: 0.2s; }
.ct-3 { animation-delay: 0.3s; }
.ct-4 { animation-delay: 0.4s; }
.ct-5 { animation-delay: 0.5s; }

.stage-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
}
.stage-applied  { background: rgba(107,114,128,0.1); color: #6b7280; }
.stage-shortlist{ background: rgba(34,197,94,0.12); color: #16a34a; }
.stage-interview{ background: rgba(28,126,214,0.12); color: #1c7ed6; }
.stage-offer    { background: rgba(140,58,209,0.12); color: #8c3ad1; }

.score-high { color: #16a34a; font-weight: 800; }
.score-mid  { color: #d97706; font-weight: 800; }
.score-low  { color: #6b7280; font-weight: 700; }

/* ============================================================
   JOBS SCREEN
   ============================================================ */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.job-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  animation: scFadeUp 0.4s ease both;
}
.jc-1 { animation-delay: 0.1s; }
.jc-2 { animation-delay: 0.2s; }
.jc-3 { animation-delay: 0.3s; }

.job-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.job-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.job-status-dot.active { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
.job-status-dot.paused { background: #f59e0b; }

.job-dept {
  font-size: 0.6rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.job-title { font-size: 0.82rem; font-weight: 800; color: #111827; }
.job-meta { font-size: 0.65rem; color: #6b7280; }
.job-meta i { margin-right: 3px; }

.job-stats {
  display: flex;
  gap: 10px;
  font-size: 0.62rem;
  color: #6b7280;
}
.job-stats i { color: #22c55e; margin-right: 3px; }

.job-pipeline-mini { display: flex; flex-direction: column; gap: 3px; }
.jpm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.58rem;
  color: #9ca3af;
  position: relative;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f3f4f6;
  overflow: hidden;
}
.jpm-bar::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--jpm-w, 100%);
  background: rgba(107,114,128,0.15);
  border-radius: 4px;
}
.jpm-green::before { background: rgba(34,197,94,0.2); }
.jpm-teal::before  { background: rgba(12,166,120,0.2); }
.jpm-bar span { position: relative; z-index: 1; font-weight: 700; }

/* ============================================================
   AI RECRUITER SCREEN
   ============================================================ */
.ai-recruiter-body { gap: 10px; }

.air-stats {
  display: flex;
  gap: 10px;
}
.air-stat {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: center;
  opacity: 0;
  animation: scFadeUp 0.3s ease both;
}
.as-1 { animation-delay: 0.1s; }
.as-2 { animation-delay: 0.2s; }
.as-3 { animation-delay: 0.3s; }
.air-stat strong { display: block; font-size: 1.2rem; font-weight: 800; color: #22c55e; }
.air-stat span { font-size: 0.6rem; color: #6b7280; }

.air-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}
.air-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  animation: scFadeUp 0.4s ease both;
}
.am-1 { animation-delay: 0.4s; }
.am-2 { animation-delay: 1.2s; }
.am-3 { animation-delay: 2.0s; }
.am-4 { animation-delay: 2.8s; }

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

.air-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}
.user-avatar { background: linear-gradient(135deg, #1c7ed6, #1864ab); }

.air-bubble {
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 12px 12px 12px 2px;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-size: 0.7rem;
  color: #374151;
  line-height: 1.5;
}
.air-msg-user .air-bubble {
  border-radius: 12px 12px 2px 12px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border-color: transparent;
}

/* Typing indicator */
.air-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
}
.air-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #9ca3af;
  animation: typingDot 1.2s ease-in-out infinite;
}
.air-typing span:nth-child(2) { animation-delay: 0.2s; }
.air-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%,60%,100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.air-input-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 6px 10px;
  opacity: 0;
  animation: scFadeUp 0.4s ease 3.2s both;
}
.air-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.72rem;
  color: #374151;
  background: transparent;
  font-family: "Manrope", sans-serif;
}
.air-send {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* Responsive for app window */
@media (max-width: 820px) {
  .app-window-body { height: auto; flex-direction: column; }
  .app-sidebar { width: 100%; flex-direction: row; padding: 8px; }
  .app-sidebar-nav { flex-direction: row; padding: 0; gap: 4px; }
  .app-sidebar-brand { display: none; }
  .app-nav-item span { display: none; }
  .app-nav-item { padding: 6px 8px; }
  .app-content { min-height: 400px; }
  .dash-widget-grid { grid-template-columns: repeat(2, 1fr); }
  .jobs-grid { grid-template-columns: 1fr; }
}
