/* JCA Solutions V2-B, Automate Anything, Slack-style Agent Demo */
:root {
  --navy: #0a0f1a;
  --green: #15764a;
  --green-d: #0f5537;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --gray-100: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 8px;
  --radius-lg: 12px;
  /* Slack colors */
  --slack-bg: #1a1d21;
  --slack-sidebar: #19171d;
  --slack-hover: rgba(255,255,255,0.04);
  --slack-active: #1164a3;
  --slack-border: rgba(255,255,255,0.08);
}

/* dark green accent: flip text/icons sitting on green to white for contrast */
.btn-hero, .btn-hero:hover,
.success-icon, .workspace-icon, .compare-ic-yes, .compare-new,
.btn-slack-cta, .btn-slack-cta:hover, .btn-create, .btn-agent, .btn-agent:hover {
  color: #ffffff !important;
}
::selection { background: var(--green); color: #ffffff; }


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white); color: var(--gray-900);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.6;
}
a { color: var(--green); text-decoration: none; }
::selection { background: var(--green); color: var(--navy); }

/* ═══ NAV ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.nav-inner {
  max-width: 1264px; margin: 0 auto; padding: 0 32px;
  height: 96px; display: flex; align-items: center;
}
.nav-brand { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo {
  height: 54px; width: auto;
  filter: brightness(0);
}
.nav-links {
  display: flex; align-items: center; gap: 40px;
  flex: 1; justify-content: center;
}
.nav-cta { flex-shrink: 0; }
.nav-link {
  color: var(--navy); font-weight: 600; font-size: 15px;
  text-decoration: none; transition: opacity 0.15s;
  opacity: 0.7;
}
.nav-link:hover { opacity: 1; color: var(--navy); }
.nav-cta {
  background: var(--navy); color: var(--white); font-weight: 700; font-size: 16px;
  padding: 12px 24px; border-radius: var(--radius); transition: background 0.2s;
}
.nav-cta:hover { background: var(--gray-700); color: var(--white); }

/* ═══ HERO ═══ */
.hero { padding: 140px 32px 80px; }
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start;
}
.hero-copy { padding-top: 24px; display: flex; flex-direction: column; }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.hero-headline {
  font-size: 48px; font-weight: 800; line-height: 1.1;
  letter-spacing: -0.025em; color: var(--navy); margin-bottom: 24px; white-space: nowrap;
}
.hero-sub {
  font-size: 19px; line-height: 1.6; color: var(--gray-500);
  max-width: 500px; margin-bottom: 32px;
}
.btn-hero {
  background: var(--green); color: var(--navy); font-weight: 700; font-size: 16px;
  padding: 14px 24px; border-radius: var(--radius); display: inline-flex;
  align-items: center; gap: 8px; transition: background 0.2s;
  text-decoration: none; border: none; cursor: pointer;
}
.btn-hero:hover { background: var(--green-d); color: var(--navy); }
.btn-hero .arrow { font-size: 18px; }
.link-underline {
  color: var(--navy); font-weight: 600; font-size: 16px;
  border-bottom: 2px solid var(--navy); padding-bottom: 2px;
  transition: color 0.15s;
}
.link-underline:hover { color: var(--gray-700); }

/* ═══ FORM ═══ */
.hero-form-wrap {
  background: var(--off-white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 32px;
}
.intake-form { display: flex; flex-direction: column; gap: 16px; }
.form-head { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.form-fine { font-size: 13px; color: var(--gray-400); text-align: center; margin-top: 4px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label {
  font-size: 13px; font-weight: 600; color: var(--gray-700);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.field .optional { font-weight: 400; text-transform: none; color: var(--gray-400); letter-spacing: 0; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; padding: 10px 14px;
  border: 1px solid var(--gray-100); border-radius: var(--radius);
  background: var(--white); color: var(--gray-900);
  transition: border-color 0.15s; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,230,138,0.12);
}
.field textarea { min-height: 80px; resize: vertical; }
.field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12) !important;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.1s; border-radius: var(--radius);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--navy); color: var(--white); font-size: 16px;
  padding: 14px 28px; width: 100%;
}
.btn-primary:hover { background: var(--gray-700); }

.form-success { padding: 0; display: none; }
.form-success iframe { width: 100%; height: 600px; border: none; border-radius: 8px; }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: var(--navy); font-size: 28px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.success-head { font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.form-success p { color: var(--gray-500); font-size: 16px; }

/* ═══ SLACK-STYLE DEMO ═══ */
.demo { background: var(--navy); padding: 24px 32px 80px; }
.demo-inner { max-width: 1000px; margin: 0 auto; }
.demo-head { text-align: center; margin-bottom: 40px; }
.demo-head h2 {
  font-size: 44px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--white); margin-bottom: 12px;
}
.demo-head p { font-size: 18px; color: var(--gray-400); max-width: 800px; margin: 0 auto; }

.slack-window {
  display: grid; grid-template-columns: 220px 1fr;
  border-radius: var(--radius-lg); overflow: hidden;
  height: 580px; border: 1px solid var(--slack-border);
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

/* Sidebar */
.slack-sidebar {
  background: var(--slack-sidebar); padding: 16px 0;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--slack-border);
  overflow-y: auto;
}
.slack-workspace {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px 16px; border-bottom: 1px solid var(--slack-border);
  font-size: 16px; font-weight: 800; color: var(--white);
}
.workspace-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--green); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.slack-channels { padding-top: 12px; }
.channel-label {
  font-size: 11px; font-weight: 600; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 8px 16px 4px;
}
.channel {
  padding: 4px 16px; font-size: 14px; color: var(--gray-400);
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: background 0.1s;
}
.channel:hover { background: var(--slack-hover); }
.channel.active { background: var(--slack-active); color: var(--white); border-radius: 0; }
.channel-hash { opacity: 0.5; font-size: 13px; }

/* Main chat area */
.slack-main {
  background: var(--slack-bg); display: flex; flex-direction: column;
  min-height: 0;
}
.slack-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--slack-border);
}
.slack-channel-name { font-size: 16px; font-weight: 800; color: var(--white); }
.slack-topic { font-size: 13px; color: var(--gray-500); }

.slack-messages {
  flex: 1; overflow-y: auto; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 0;
}

.slack-msg {
  display: flex; gap: 10px; padding: 6px 0;
  animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.slack-avatar {
  width: 36px; height: 36px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; overflow: hidden;
}
.agent-avatar-icon {
  box-shadow: 0 0 6px rgba(0, 230, 138, 0.4);
  border: 1.5px solid rgba(0, 230, 138, 0.5);
}
.slack-avatar img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 6px;
}
.agent-avatar-icon { overflow: hidden; }
.user-avatar-icon { background: rgba(255,255,255,0.1); color: var(--gray-400); }

.slack-msg-body { flex: 1; min-width: 0; }
.slack-msg-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.slack-msg-meta strong { font-size: 14px; color: var(--white); }
.slack-app-tag {
  font-size: 10px; font-weight: 700; padding: 1px 5px;
  background: rgba(255,255,255,0.08); color: var(--gray-400);
  border-radius: 3px; letter-spacing: 0.04em;
}
.slack-time { font-size: 11px; color: var(--gray-500); }
.slack-msg-text {
  font-size: 14px; line-height: 1.55; color: #d1d5db;
  word-wrap: break-word;
}
.slack-msg-text a { color: var(--green); font-weight: 600; }

/* Typing indicator */
.typing-indicator {
  display: flex; gap: 4px; align-items: center; padding: 4px 0;
}
.typing-indicator span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gray-500);
  animation: typeBounce 1.4s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typeBounce {
  0%,60%,100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Input area */
.slack-input-area {
  padding: 12px 20px; border-top: 1px solid var(--slack-border);
}
.mobile-agent-select {
  display: none; padding: 12px 40px 12px 16px; margin-bottom: 16px;
  background: var(--navy); color: var(--green);
  border: 1.5px solid rgba(0, 230, 138, 0.4); border-radius: 8px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2300e68a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 230, 138, 0.15);
}
.slack-form {
  display: flex; gap: 8px; background: rgba(255,255,255,0.06);
  border: 1px solid var(--slack-border); border-radius: var(--radius);
  padding: 8px 12px;
}
.slack-form input {
  flex: 1; background: transparent; border: none;
  color: var(--white); font-family: inherit; font-size: 14px; outline: none;
}
.slack-form input::placeholder { color: var(--gray-500); }
.slack-form button {
  background: var(--green); border: none; width: 32px; height: 32px;
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s;
}
.slack-form button:hover { background: var(--green-d); }
.slack-form button svg { width: 16px; height: 16px; stroke: var(--navy); }

/* ═══ HOW IT WORKS ═══ */
.how { padding: 96px 32px; background: var(--off-white); }
.how-inner { max-width: 1200px; margin: 0 auto; }
.how-inner > h2 {
  font-size: 48px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--navy); margin-bottom: 56px; text-align: center;
}
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.step { border-top: 3px solid var(--navy); padding-top: 24px; }
.step-num {
  font-size: 48px; font-weight: 800; color: var(--green);
  letter-spacing: -0.02em; line-height: 1; margin-bottom: 16px;
}
.step h3 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.step p { font-size: 16px; line-height: 1.6; color: var(--gray-500); }

/* ═══ WHAT WE ARE / ARE NOT ═══ */
.compare { padding: 96px 32px; background: var(--white); }
.compare-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.compare-inner > h2 {
  font-size: 44px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.02em; margin-bottom: 14px;
}
.compare-sub {
  font-size: 18px; color: var(--gray-500); line-height: 1.6;
  max-width: 640px; margin: 0 auto 56px;
}
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; text-align: left; }
.compare-col {
  border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
  padding: 32px; background: var(--off-white);
}
.compare-are { border-top: 4px solid var(--green); }
.compare-arenot { border-top: 4px solid var(--gray-400); }
.compare-tag {
  display: inline-block; font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.compare-tag-yes { background: rgba(0,230,138,0.12); color: var(--green-d); }
.compare-tag-no { background: rgba(156,163,175,0.15); color: var(--gray-700); }
.compare-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.compare-list li { display: flex; gap: 14px; align-items: flex-start; }
.compare-list li div { font-size: 15px; line-height: 1.55; color: var(--gray-700); }
.compare-list li strong { color: var(--navy); font-weight: 800; }
.compare-ic {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; margin-top: 1px;
}
.compare-ic-yes { background: var(--green); color: var(--navy); }
.compare-ic-no { background: var(--gray-400); color: var(--white); }

/* ═══ FAQ ═══ */
.faq { padding: 96px 32px; background: var(--off-white); }
.faq-inner { max-width: 800px; margin: 0 auto; }
.faq-title {
  font-size: 48px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--navy); line-height: 1.1; text-align: center; margin-bottom: 48px;
}
.faq-list { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; padding-right: 10px; -webkit-overflow-scrolling: touch; }
.faq-list::-webkit-scrollbar { width: 6px; }
.faq-list::-webkit-scrollbar-track { background: transparent; }
.faq-list::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 999px; }
.faq-list { scrollbar-width: thin; scrollbar-color: var(--gray-400) transparent; }
.faq-item { border-bottom: 1px solid var(--gray-100); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 18px; font-weight: 700; color: var(--navy);
  text-align: left; line-height: 1.3; gap: 16px;
}
.faq-q:hover { color: var(--gray-700); }
.faq-icon {
  font-size: 24px; font-weight: 300; color: var(--gray-400);
  flex-shrink: 0; transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 0;
}
.faq-item.open .faq-a {
  max-height: 200px; padding: 0 0 24px 0;
}
.faq-a p {
  font-size: 16px; line-height: 1.6; color: var(--gray-500); margin: 0;
}

/* ═══ BOOK / CAL EMBED ═══ */
.book { padding: 96px 32px; background: var(--navy); }
.book-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.book-inner h2 {
  font-size: 48px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--white); margin-bottom: 16px;
}
.book-sub { font-size: 18px; color: var(--gray-400); margin-bottom: 36px; line-height: 1.6; }
.btn-book {
  display: inline-block; padding: 16px 40px;
  font-family: inherit; font-size: 16px; font-weight: 700;
  color: var(--white); text-decoration: none; letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--white); border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.btn-book:hover { background: var(--white); color: var(--navy); }

/* ═══ SLACK LOCKED CTA ═══ */
.slack-locked {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 20px; font-size: 14px; color: var(--gray-400);
}
.btn-slack-cta {
  background: var(--green); color: var(--navy); font-weight: 700;
  font-size: 14px; padding: 8px 18px; border-radius: var(--radius);
  transition: background 0.15s; text-decoration: none;
}
.btn-slack-cta:hover { background: var(--green-d); color: var(--navy); }

/* ═══ TRANSFORMER ═══ */
.transform { background: var(--navy); padding: 80px 32px; }
.transform-inner { max-width: 1100px; margin: 0 auto; }
.transform-head { text-align: center; margin-bottom: 48px; }
.transform-head h2 {
  font-size: 44px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--white); margin-bottom: 12px;
}
.transform-head p { font-size: 18px; color: var(--gray-400); }

.transformer {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch;
}
.tf-panel {
  background: #111827; border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.tf-panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.tf-dot { width: 8px; height: 8px; border-radius: 50%; }
.tf-dot-red { background: #ef4444; }
.tf-dot-green { background: var(--green); animation: pulse 2s ease-in-out infinite; }

.tf-content { padding: 20px; flex: 1; }

/* Dropdown select */
.tf-select-wrap { margin-bottom: 16px; }
.tf-select {
  width: 100%; padding: 10px 14px; font-family: inherit; font-size: 15px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); color: var(--white); outline: none;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.tf-select:focus { border-color: var(--green); }
.tf-select option { background: #111827; color: var(--white); }

.tf-desc { display: flex; flex-direction: column; gap: 6px; }
.tf-line { font-size: 14px; line-height: 1.7; color: var(--gray-400); }
.tf-line strong { color: var(--gray-100); }
.tf-custom {
  width: 100%; min-height: 200px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
  color: var(--gray-100); font-family: inherit; font-size: 14px;
  padding: 14px; resize: vertical; outline: none;
}
.tf-custom:focus { border-color: var(--green); }

.tf-job.processing .tf-line {
  animation: scramble 1.5s ease-in-out;
}
@keyframes scramble {
  0% { opacity: 1; transform: translateX(0); }
  30% { opacity: 0.3; transform: translateX(4px); }
  60% { opacity: 0.1; transform: translateX(8px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Create Agent button at bottom of left panel */
.tf-bottom {
  padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.06);
}
.btn-create {
  background: var(--green); color: var(--navy); font-weight: 700;
  font-size: 15px; padding: 12px 24px; width: 100%; text-align: center;
  border-radius: var(--radius); display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; transition: background 0.2s;
  font-family: inherit; border: none; cursor: pointer;
  box-sizing: border-box; line-height: 1.2;
}
.btn-create:hover { background: var(--green-d); }
.btn-create svg { width: 18px; height: 18px; }
.btn-create.spinning { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tf-agent-card {
  padding: 20px; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 12px; flex: 1;
}
.tf-agent-card.appear { animation: slideUp 0.5s ease-out; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.agent-avatar-img {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(0, 230, 138, 0.5);
  box-shadow: 0 0 12px rgba(0, 230, 138, 0.4), inset 0 0 8px rgba(0, 230, 138, 0.15);
}
.agent-avatar-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.agent-name { font-size: 18px; font-weight: 800; color: var(--white); }
.agent-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--green); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-in-out infinite; }

.agent-stats { display: flex; gap: 24px; }
.agent-stat { text-align: center; }
.stat-val { font-size: 18px; font-weight: 800; color: var(--white); }
.stat-label { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.04em; }

.agent-tasks { width: fit-content; max-width: 100%; margin: 0 auto; text-align: left; }
.agent-task {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 6px 0; font-size: 14px; color: #d1d5db;
}
.task-check { color: var(--green); font-weight: 800; flex-shrink: 0; }

.agent-footer { width: 100%; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 16px; }
.agent-compare { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.compare-row { display: flex; gap: 8px; font-size: 13px; align-items: baseline; }
.compare-label { color: var(--gray-500); white-space: nowrap; }
.compare-old { color: #ef4444; text-decoration: line-through; }
.compare-new { color: var(--green); font-weight: 600; }

.btn-agent {
  background: var(--green); color: var(--navy); font-size: 15px;
  padding: 12px 24px; width: 100%; text-align: center;
  border-radius: var(--radius); font-weight: 700;
  transition: background 0.2s; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: auto; box-sizing: border-box;
  font-family: inherit; line-height: 1.2;
}
.btn-agent:hover { background: var(--green-d); color: var(--navy); }

/* ═══ DEMO VIDEO MODAL ═══ */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  z-index: 200; display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.active {
  display: flex;
}
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 760px; width: 100%; max-height: 90vh; overflow-y: auto;
  position: relative; padding: 40px;
}
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; font-size: 32px; color: var(--gray-400);
  cursor: pointer; line-height: 1; transition: color 0.15s;
  z-index: 210; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--gray-900); }
.modal-header { margin-bottom: 24px; }
.modal-header h2 {
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--navy); margin-bottom: 8px;
}
.modal-header p { font-size: 16px; color: var(--gray-500); line-height: 1.5; }

.modal-video { margin-bottom: 28px; }
.video-placeholder {
  background: var(--gray-900); border-radius: var(--radius);
  aspect-ratio: 16/9; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
}
.play-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.placeholder-text { color: var(--gray-500); font-size: 14px; }

.modal-agents { margin-bottom: 28px; }
.modal-agents-label {
  font-size: 12px; font-weight: 700; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px;
}
.agent-roster { display: flex; flex-direction: column; gap: 6px; }
.roster-agent {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; background: var(--off-white);
  border-radius: var(--radius); font-size: 14px;
}
.roster-icon { flex-shrink: 0; display: inline-flex; color: var(--green-d); }
.roster-icon svg { width: 18px; height: 18px; display: block; }
.roster-name { font-weight: 700; color: var(--navy); white-space: nowrap; margin-right: 4px; }
.roster-role { color: var(--gray-500); }

.modal-cta { text-align: center; }
.btn-modal-cta {
  background: var(--navy); color: var(--white); font-weight: 700;
  font-size: 16px; padding: 14px 28px; border-radius: var(--radius);
  display: inline-block; transition: background 0.2s; text-decoration: none;
}
.btn-modal-cta:hover { background: var(--gray-700); color: var(--white); }

/* ═══ INTEGRATIONS ═══ */
.integrations {
  padding: 96px 32px; background: var(--white);
}
.integrations-inner {
  max-width: 1100px; margin: 0 auto; text-align: center;
}
.integrations-inner h2 {
  font-size: 48px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--navy); margin-bottom: 16px;
}
.integrations-sub {
  font-size: 16px; color: var(--gray-500); max-width: 750px;
  margin: 0 auto 56px; line-height: 1.6;
}

/* Scattered layout */
.int-scatter {
  position: relative; width: 100%; max-width: 800px; margin: 0 auto 40px;
  height: 420px;
}
.int-item {
  position: absolute; transform: translate(-50%, -50%) scale(var(--s, 1));
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  z-index: 2;
  animation: breatheItem 3.5s ease-in-out infinite;
  animation-delay: var(--d);
}
.int-item img {
  width: 28px; height: 28px; padding: 12px; object-fit: contain;
  box-sizing: content-box;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.int-item:hover img {
  transform: scale(1.2); box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.int-item span {
  font-size: 9px; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
}

@keyframes breatheItem {
  0%,100% { opacity: 0.8; transform: translate(-50%,-50%) scale(var(--s, 1)); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(calc(var(--s, 1) * 1.08)); }
}

.int-connectors {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}

.int-extras {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-bottom: 32px;
}
.int-extras span {
  font-size: 13px; font-weight: 600; color: var(--gray-400);
  background: var(--off-white); padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--gray-100);
}

.integrations-disclaimer {
  font-size: 13px; color: var(--gray-500); max-width: 700px;
  margin: 0 auto; line-height: 1.5; font-style: italic;
}

/* ═══ FOOTER ═══ */
.site-footer { background: #f5f0e8; padding: 32px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-brand { color: var(--navy); font-weight: 700; font-size: 15px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--gray-500); font-size: 14px; transition: color 0.15s; }
.footer-links a:hover { color: var(--navy); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .hero { padding: 100px 20px 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-headline { font-size: 27px; white-space: nowrap; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-form-wrap { padding: 24px; }
  .field-row { grid-template-columns: 1fr; }

  .demo { padding: 56px 20px; }
  .demo-head h2 { font-size: 32px; }
  .slack-window { grid-template-columns: 1fr; height: 480px; }
  .slack-sidebar { display: none; }
  .mobile-agent-select { display: block; }
  .slack-form input { font-size: 16px; }

  .transform { padding: 56px 20px; }
  .transform-head h2 { font-size: 32px; }
  .transformer { grid-template-columns: 1fr; gap: 20px; }

  .how { padding: 64px 20px; }
  .how-inner > h2 { font-size: 36px; margin-bottom: 40px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .compare { padding: 64px 20px; }
  .compare-inner > h2 { font-size: 34px; }
  .compare-grid { grid-template-columns: 1fr; gap: 20px; }

  .book { padding: 56px 20px; }
  .book-inner h2 { font-size: 36px; }

  .faq { padding: 56px 20px; }
  .faq-title { font-size: 36px; }

  .nav-inner { padding: 0 20px; }
  .nav-link { display: none; }
  .nav-dropdown { display: none; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }

  .integrations { padding: 56px 10px; }
  .integrations-inner h2 { font-size: 32px; }
  .int-scatter { height: 380px; margin: 0 auto; width: 94%; }
  .int-item img { width: 22px; height: 22px; padding: 8px; }
  .int-item span { font-size: 7px; }

  .roster-agent { flex-direction: column; gap: 4px; text-align: center; }
  .roster-name { min-width: auto; }
  .roster-role { text-align: center; }

  .modal { padding: 24px; margin: 12px; }
  .modal-header h2 { font-size: 22px; }
}

/* ═══ WORKFLOW VISUALIZER ═══ */
.flow { background: var(--navy); padding: 96px 32px 40px; }
.flow-inner { max-width: 1200px; margin: 0 auto; }
.flow-head { text-align: center; margin-bottom: 40px; }
.flow-head h2 {
  font-size: 44px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--white); margin-bottom: 18px; line-height: 1.1;
}
.flow-head p {
  font-size: 18px; line-height: 1.6; color: var(--gray-400);
  max-width: 820px; margin: 0 auto;
}
.flow-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 28px;
}
.flow-tab {
  background: rgba(255,255,255,0.05); color: var(--gray-400);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 999px;
  padding: 10px 20px; font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: all 0.2s;
}
.flow-tab:hover { color: var(--white); border-color: rgba(255,255,255,0.28); }
.flow-tab.active {
  background: var(--green); color: #fff !important;
  border-color: var(--green);
}
.flow-scenario {
  margin: 0 auto 32px; text-align: center; display: inline-block;
  font-size: 15.5px; line-height: 1.5; color: var(--white);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--green); border-radius: var(--radius);
  padding: 14px 22px;
}
.flow-stage { text-align: center; }
.flow-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch; gap: 0; margin-bottom: 32px;
}
.flow-node {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 26px 22px 22px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.flow-node.show { opacity: 1; transform: translateY(0); }
.flow-node-kind {
  display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.flow-kind-trigger { background: rgba(59,130,246,0.16); color: #7dadff; }
.flow-kind-processing { background: rgba(168,85,247,0.16); color: #c99bff; }
.flow-kind-integration { background: rgba(245,158,11,0.16); color: #f6c65b; }
.flow-kind-output { background: rgba(21,118,74,0.24); color: #4fd396; }
.flow-node-num {
  position: absolute; top: 20px; right: 22px;
  font-size: 40px; font-weight: 800; line-height: 1;
  color: rgba(255,255,255,0.08); letter-spacing: -0.03em;
}
.flow-node-title {
  font-size: 18px; font-weight: 800; color: var(--white);
  margin-bottom: 10px; line-height: 1.25;
}
.flow-node-body {
  font-size: 14px; line-height: 1.6; color: var(--gray-400);
  margin-bottom: 16px;
}
.flow-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.flow-tool {
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  color: #cbd5e1; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 3px 9px; border-radius: 5px;
}
.flow-conn { display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.flow-arrow {
  font-size: 26px; color: rgba(79,211,150,0.35); font-weight: 400;
  opacity: 0; transition: opacity 0.5s ease 0.2s;
}
.flow-conn.show .flow-arrow { opacity: 1; }
.btn-flow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 auto; background: rgba(255,255,255,0.06);
  color: var(--white); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px; padding: 11px 22px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.btn-flow:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.32); }
.btn-flow svg { width: 17px; height: 17px; }
.flow-stage { text-align: center; }

@media (max-width: 900px) {
  .flow { padding: 64px 20px; }
  .flow-head h2 { font-size: 30px; }
  .flow-head p { font-size: 16px; }
  .flow-track { grid-template-columns: 1fr; gap: 0; }
  .flow-node { margin-bottom: 0; }
  .flow-conn { padding: 8px 0; }
  .flow-arrow { transform: rotate(90deg); display: inline-block; }
  .flow-node-num { font-size: 32px; top: 18px; right: 18px; }
}

/* Case Studies dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  background: none; border: none; font-family: inherit;
  color: var(--navy); font-weight: 600; font-size: 15px;
  opacity: 0.7; transition: opacity 0.15s; padding: 0;
  position: relative; z-index: 201;
}
.nav-dropdown-trigger:hover { opacity: 1; }
.nav-chevron { font-size: 10px; transition: transform 0.2s; }
.nav-dropdown:hover .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: #fff; border: 1px solid var(--gray-100);
  border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  padding: 8px; min-width: 300px;
  opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s;
  z-index: 200;
}
.nav-dropdown-menu::before {
  content: ''; position: absolute; top: -30px; left: -20px; right: -20px; height: 30px;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 8px;
  text-decoration: none; color: var(--navy); transition: background 0.12s;
}
.nav-dropdown-item:hover { background: #eef4ef; }
.nav-dd-icon {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.nav-dd-edu { background: #eef3ff; }
.nav-dd-re { background: #eef4ef; }
.nav-dd-info { display: flex; flex-direction: column; gap: 2px; }
.nav-dd-name { font-weight: 700; font-size: 14px; }
.nav-dd-industry {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--gray-500);
}

/* Touch: toggle open class on tap */
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }
