/* ── Reset & Tokens ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #000000;
  --surface: #0a0a1a;
  --surface-2: #111128;
  --border: #1e1e3a;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --secondary: #a855f7;
  --accent: #ec4899;
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;
  --radius: 12px;
  --radius-lg: 20px;
  --nav-height: 103px;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 32px 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: none;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-brand {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

.nav-brand span { color: var(--primary); }

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
  padding: 4px 0;
}

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

.nav-links a.active {
  color: var(--primary);
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  cursor: pointer;
  user-select: none;
}
.nav-dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  margin-bottom: 2px;
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(-135deg);
  margin-bottom: -1px;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  list-style: none;
  z-index: 200;
  flex-direction: row;
  gap: 4px;
}
.nav-dropdown:hover > .nav-dropdown-menu {
  display: flex;
}
/* Invisible bridge so the mouse can travel from toggle to menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.nav-dropdown-menu li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-menu li a:hover {
  color: var(--text);
  background: rgba(99, 102, 241, 0.08);
}
.nav-dropdown-menu li a.active {
  color: var(--primary);
}
.nav-dropdown-menu li a.nav-link-inactive {
  color: var(--text-dim);
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.nav-cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-cta .btn {
  padding: 12px 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--text);
}

.btn.disabled, .btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 10px;
}

/* ── Page Content ───────────────────────────────── */
.page-content {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 100px);
}

/* ── Section Common ──────────────────────────────── */
.section-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* ── Hero Navigation Arrows ─────────────────────── */
.hero-arrows {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.hero-arrow {
  pointer-events: auto;
  color: var(--text-dim);
  transition: color 0.2s;
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  -webkit-text-stroke: 1px currentColor;
}

.hero-arrow:hover {
  color: var(--text);
}

/* Invisible spacer to keep justify-content: space-between working with single arrows */
.hero-arrow-spacer {
  width: 33px;
}

.section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

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

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

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

.section-header-hero {
  margin-bottom: 72px;
}

.section-header-hero .section-label {
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 14px;
  color: var(--text-dim);
}

.section-header-hero .section-title {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  position: relative;
}

.section-header-hero .section-subtitle {
  font-size: 21px;
  max-width: 75%;
  line-height: 1.7;
}

/* ── Hero ────────────────────────────────────────── */
.page-content-home {
  position: relative;
  justify-items: center;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 1;
}

.hero-video {
  margin-top: 40px;
  width: 1200px;
  max-width: 100%;
}
.yt-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #000;
}
.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.yt-facade:hover .yt-play { opacity: 1; }

.hero-video-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.hero-video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(99,102,241,0.06), transparent 70%);
  pointer-events: none;
}

.hero-video-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-play svg {
  margin-left: 3px;
}


.hero-content .section-label {
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 14px;
  color: var(--text-dim);
}

.hero-content {
  text-align: center;
  width: 100%;
}

.hero-content .btn {
  margin-bottom: 8px;
}

.hero-content h1 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  position: relative;
}

.gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 21px;
  color: var(--text-secondary);
  max-width: 75%;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ── Modal ───────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  text-align: center;
}

.modal-box h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-box > p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 28px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--text); }

.modal-box.modal-list {
  max-width: 1200px;
  width: 92vw;
  max-height: 80vh;
  overflow-y: auto;
  padding: 36px 32px;
}

.modal-list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.modal-list-grid .platform-item {
  text-align: left;
}

/* ── Agents Section ──────────────────────────────── */
.team-tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.team-tab {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.team-tab:hover {
  border-color: var(--primary);
  color: var(--text);
}

.team-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.team-panel {
  display: none;
}

.team-panel.active {
  display: block;
}

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

.team-column h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.team-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
}

.team-list li .item-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.team-see-all {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: opacity 0.2s;
}

.team-see-all:hover {
  opacity: 0.8;
}

.team-picker {
  position: relative;
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, #000 0, #000 100%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 0, #000 100%, transparent 100%);
}

.team-picker.fade-right {
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 48px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 48px), transparent 100%);
}

.team-picker.fade-left {
  mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 100%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 100%, transparent 100%);
}

.team-picker.fade-both {
  mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}

.team-pill {
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.team-pill:hover {
  border-color: var(--primary);
  color: var(--text);
}

.team-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.team-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.team-subcol-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin: 0 0 8px 0;
}

.team-see-all-row {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}

/* ── Agents Layout ──────────────────────────────── */
.agents-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 100px;
  align-items: start;
}

.agents-mock {
  background: #0d0d1a;
  border: 1px solid #1a1a2e;
  border-radius: 12px;
  padding: 28px;
  min-width: 0;
}

.agents-mock-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #2a2a4a;
  margin-bottom: 20px;
}

.agents-mock-header h4 {
  font-size: 20px;
  font-weight: 700;
}

.platform-item {
  padding: 12px 14px;
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  margin-bottom: 8px;
}

.platform-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.platform-item p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.team-detail .platform-item p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agents-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agents-features-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin: 0 0 12px 0;
}

.agents-feature-card {
  padding: 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding-left: 20px;
}

.agents-feature-card:nth-of-type(1) { border-left-color: #6366f1; }
.agents-feature-card:nth-of-type(2) { border-left-color: #7c5ef4; }
.agents-feature-card:nth-of-type(3) { border-left-color: #a855f7; }
.agents-feature-card:nth-of-type(4) { border-left-color: #ca4ec8; }
.agents-feature-card:nth-of-type(5) { border-left-color: #ec4899; }

.agents-feature-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.agents-feature-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}


/* ── Plans ──────────────────────────────────────── */
.plans-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 100px;
  align-items: start;
}

.plan-mock {
  background: #0d0d1a;
  border: 1px solid #1a1a2e;
  border-radius: 12px;
  padding: 28px;
}

.plan-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #2a2a4a;
}

.plan-mock-header h4 {
  font-size: 20px;
  font-weight: 700;
}

.plan-mock-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.plan-flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.plan-flow-layer {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.plan-flow-connector {
  display: flex;
  justify-content: center;
  padding: 4px 0;
  font-size: 20px;
  color: #4a4a6a;
}

.plan-flow-connector::before {
  content: '\2193';
}

.plan-flow-step {
  flex: 1;
  min-width: 0;
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  padding: 12px 14px;
}

.plan-flow-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-flow-step-name {
  font-size: 14px;
  font-weight: 600;
}

.plan-flow-step-agent {
  font-size: 11px;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.plan-flow-step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 8px;
}

.plan-flow-parallel {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 12px;
  border: 1px solid #2a2a4a;
  border-radius: 12px;
  padding: 28px 16px 16px;
  position: relative;
  background: rgba(99, 102, 241, 0.03);
}

.plan-flow-parallel-label,
.plan-flow-loop-label,
.plan-flow-branch-label {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  left: 16px;
  background: #0d0d1a;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  border: 1px solid #2a2a4a;
  border-radius: 100px;
}

.plan-flow-parallel .plan-flow-step {
  background: #1a1a2e;
  border-color: #2a2a4a;
}

.plan-flow-parallel .plan-flow-step-desc {
  font-size: 12px;
}

.plan-flow-loop {
  flex: 1;
  border: 1px solid #2a2a4a;
  border-radius: 12px;
  padding: 28px 16px 16px;
  position: relative;
  background: rgba(99, 102, 241, 0.03);
}

.plan-flow-loop .plan-flow-step {
  background: #1a1a2e;
  border-color: #2a2a4a;
}

.plan-flow-loop .plan-flow-connector::before {
  height: 18px;
}

.plan-flow-branch {
  flex: 1;
  border: 1px solid #2a2a4a;
  border-radius: 12px;
  padding: 28px 16px 16px;
  position: relative;
  background: rgba(99, 102, 241, 0.03);
}

.plan-flow-branch .plan-flow-step {
  background: #1a1a2e;
  border-color: #2a2a4a;
}

.plan-flow-branch-paths {
  display: flex;
  gap: 12px;
}

.plan-flow-branch-path {
  flex: 1;
  position: relative;
  padding-top: 20px;
}

.plan-flow-branch-path .plan-flow-step {
  padding-top: 24px;
}

.plan-flow-branch-path-label {
  position: absolute;
  top: 20px;
  transform: translateY(-50%);
  left: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  background: #0d0d1a;
  padding: 5px 14px;
  border: 1px solid #2a2a4a;
  border-radius: 100px;
  z-index: 1;
}

.plan-flow-approval {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
  margin-left: 6px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin: 0 0 12px 0;
}

.plan-feature-card {
  padding: 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding-left: 20px;
}

.plan-feature-card:nth-of-type(1) { border-left-color: #6366f1; }
.plan-feature-card:nth-of-type(2) { border-left-color: #7c5ef4; }
.plan-feature-card:nth-of-type(3) { border-left-color: #a855f7; }
.plan-feature-card:nth-of-type(4) { border-left-color: #ca4ec8; }
.plan-feature-card:nth-of-type(5) { border-left-color: #ec4899; }

.plan-feature-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.plan-feature-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── Control ────────────────────────────────────── */
.control-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 100px;
  align-items: start;
}

.control-mock {
  background: #0d0d1a;
  border: 1px solid #1a1a2e;
  border-radius: 12px;
  padding: 28px;
}

.control-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #2a2a4a;
}

.control-mock-header h4 {
  font-size: 20px;
  font-weight: 700;
}

.inbox-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.inbox-task {
  background: rgba(99, 102, 241, 0.03);
  border: 1px solid #2a2a4a;
  border-radius: 12px;
  padding: 16px;
  position: relative;
}

.inbox-task-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 14px 0 0;
}

.inbox-task-name {
  font-size: 15px;
  font-weight: 600;
}

.inbox-task-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
}

.inbox-task-badge.pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.inbox-task-badge.running {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

.inbox-step-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
}

.inbox-step-row + .inbox-step-row {
  margin-top: 8px;
}

.inbox-step-row.highlight {
  background: #1a1a2e;
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  cursor: pointer;
}

.inbox-step-name-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inbox-step-agent {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border-radius: 100px;
  flex-shrink: 0;
}

.inbox-step-status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  flex-shrink: 0;
}

.inbox-step-status.finished {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.inbox-step-status.pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.inbox-step-row.expanded {
  flex-direction: column;
  align-items: stretch;
}

.inbox-step-row-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inbox-step-row-header .inbox-step-status {
  margin-left: auto;
}

.approval-modal-mock {
  margin-top: 10px;
}

.approval-modal-output {
  background: #0d0d1a;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  padding: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.approval-modal-output strong {
  color: var(--text);
  font-weight: 600;
}

.approval-modal-output ul {
  margin: 8px 0;
  padding-left: 18px;
}

.approval-modal-output li {
  margin-bottom: 4px;
}

.approval-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.approval-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.approval-btn.approve {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.approval-btn.reject {
  background: rgba(248, 113, 113, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
}

.control-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-features-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin: 0 0 12px 0;
}

.control-feature-card {
  padding: 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding-left: 20px;
}

.control-feature-card:nth-of-type(1) { border-left-color: #6366f1; }
.control-feature-card:nth-of-type(2) { border-left-color: #7c5ef4; }
.control-feature-card:nth-of-type(3) { border-left-color: #a855f7; }
.control-feature-card:nth-of-type(4) { border-left-color: #ca4ec8; }
.control-feature-card:nth-of-type(5) { border-left-color: #ec4899; }

.control-feature-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.control-feature-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── Tracing ────────────────────────────────────── */
.tracing-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 100px;
  align-items: start;
}

.tracing-mock {
  background: #0d0d1a;
  border: 1px solid #1a1a2e;
  border-radius: 12px;
  padding: 28px;
}

.tracing-mock-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin-bottom: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #2a2a4a;
}

.tracing-mock-header h4 {
  font-size: 20px;
  font-weight: 700;
}

.trace-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
}

.trace-status-badge.finished {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.trace-status-badge.running {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

.trace-run-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 0;
}

.trace-run-tab {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid #2a2a4a;
  border-radius: 4px;
  padding: 4px 12px;
  cursor: pointer;
  font-family: inherit;
}

.trace-run-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.trace-two-pane {
  display: flex;
  min-height: 340px;
}

/* Left pane: tree */
.trace-tree {
  width: 230px;
  flex-shrink: 0;
  border-right: none;
  padding: 0 0 0 0;
  overflow-y: auto;
}

.trace-turn-group {
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.03);
  margin: 6px 10px 6px 0;
  padding: 4px 0;
}

.trace-turn-group:first-child {
  margin-top: 0;
}

.trace-node {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}

.trace-node.active {
  color: #818cf8;
}

.trace-node-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.6;
}

.trace-node.active .trace-node-icon {
  opacity: 1;
}

.trace-node-children {
  padding-left: 14px;
}

.trace-node-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trace-tool-chip {
  font-size: 10px;
  font-family: monospace;
  text-transform: uppercase;
}

/* Right pane: detail */
.trace-detail-pane {
  flex: 1;
  padding: 0 0 0 20px;
  overflow-y: auto;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.trace-detail-pane p {
  margin-bottom: 10px;
}

.trace-detail-pane strong {
  color: var(--text);
  font-weight: 600;
}

.trace-detail-pane ul {
  margin: 8px 0;
  padding-left: 18px;
}

.trace-detail-pane li {
  margin-bottom: 4px;
}

.trace-detail-json {
  font-size: 11px;
  font-family: monospace;
  background: rgba(99, 102, 241, 0.03);
  border: 1px solid #2a2a4a;
  border-radius: 6px;
  padding: 14px;
  color: var(--text-dim);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}

.trace-meta-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #2a2a4a;
}

.trace-meta-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.trace-meta-badge.tokens {
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
}

.trace-meta-badge.cost {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
}

.tracing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tracing-features-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin: 0 0 12px 0;
}

.tracing-feature-card {
  padding: 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding-left: 20px;
}

.tracing-feature-card:nth-of-type(1) { border-left-color: #6366f1; }
.tracing-feature-card:nth-of-type(2) { border-left-color: #7c5ef4; }
.tracing-feature-card:nth-of-type(3) { border-left-color: #a855f7; }
.tracing-feature-card:nth-of-type(4) { border-left-color: #ca4ec8; }
.tracing-feature-card:nth-of-type(5) { border-left-color: #ec4899; }

.tracing-feature-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.tracing-feature-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── Integrations ────────────────────────────────── */
.page-content-integrations {
  background: transparent;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0;
  width: 100%;
  margin-top: 16px;
}

.integration-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}

.integration-item img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: contain;
}

.integration-item span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}

/* ── Footer ────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 0;
}

.footer p {
  font-size: 13px;
  color: var(--text-dim);
  opacity: 0.5;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--text-dim);
  opacity: 0.5;
  transition: opacity 0.2s, color 0.2s;
}

.footer-social a:hover {
  opacity: 1;
  color: var(--text);
}

/* ── Hamburger Menu ─────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Pricing ─────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  padding: 32px;
  position: relative;
}
.pricing-card-popular {
  border-color: var(--primary);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.15);
}
.pricing-card-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-card-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.pricing-card-price {
  margin-bottom: 8px;
}
.pricing-card-amount {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
}
.pricing-card-period {
  font-size: 15px;
  color: var(--text-secondary);
}
.pricing-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}
.pricing-card-cta {
  width: 100%;
  text-align: center;
  justify-content: center;
}
.pricing-card-features {
  list-style: none;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.pricing-card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.pricing-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--primary);
}

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── Responsive ──────────────────────────────────── */

/* ── Nav hamburger (≤900px) ───────────────────── */
@media (max-width: 900px) {
  .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #000;
  }
  .nav-hamburger {
    display: block;
  }
  .nav-links {
    display: none !important;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 8px;
    transform: none;
    z-index: 9999;
  }
  .nav-links.mobile-open {
    display: flex !important;
  }
  .nav-links a {
    font-size: 20px;
    padding: 12px 0;
  }
  .nav-dropdown-toggle::after {
    width: 6px;
    height: 6px;
    margin-left: 8px;
  }
  .nav-dropdown:hover > .nav-dropdown-menu {
    display: none;
  }
  .nav-dropdown.open > .nav-dropdown-menu {
    display: flex;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    padding: 0;
    flex-direction: column;
    gap: 0;
  }
  .nav-dropdown-menu::before {
    display: none;
  }
  .nav-dropdown-menu li a {
    font-size: 18px;
    padding: 8px 0;
    color: var(--text-dim);
    border-radius: 0;
  }
  .nav-dropdown-menu li a:hover {
    background: transparent;
  }
  .hero-layout { padding: 0 24px; }
  .section-inner { padding: 0 24px; }
}

/* ── Tablet (≤1024px) ─────────────────────────── */
@media (max-width: 1024px) {
  .section-inner {
    padding: 0 24px;
  }
  .agents-layout,
  .plans-layout,
  .control-layout,
  .tracing-layout {
    gap: 40px;
  }
  .integrations-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .modal-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Mobile landscape / small tablet (≤768px) ── */
@media (max-width: 768px) {
  .hero-arrows {
    display: none;
  }
  /* Allow page scrolling on mobile */
  html, body {
    height: auto;
  }

  /* Nav adjustments */
  .nav {
    padding: 20px 0;
  }
  .nav-inner {
    padding: 0 20px;
  }
  .nav-cta .btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  /* Page content: adjust padding on mobile */
  .page-content {
    padding-top: calc(var(--nav-height) + 60px);
  }

  /* Section common */
  .section-inner {
    padding: 0 20px;
  }
  .section-header-hero {
    margin-bottom: 36px;
  }
  .section-header-hero .section-subtitle {
    max-width: 100%;
  }

  /* Hero */
  .hero-layout {
    padding: 0 20px;
  }
  .hero-content p {
    max-width: 100%;
  }
  .hero-video {
    width: 100%;
    margin-top: 24px;
  }
  .hero-video iframe {
    width: 100%;
    height: auto;
  }

  /* 2-column layouts → single column */
  .agents-layout,
  .plans-layout,
  .control-layout,
  .tracing-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Team detail */
  .team-detail {
    grid-template-columns: 1fr;
  }

  /* Plan flow parallel & branch → stack */
  .plan-flow-parallel {
    flex-direction: column;
    padding-top: 32px;
  }
  .plan-flow-branch-paths {
    flex-direction: column;
  }

  /* Trace two-pane → stack */
  .trace-two-pane {
    flex-direction: column;
    min-height: auto;
  }
  .trace-tree {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #2a2a4a;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
  .trace-detail-pane {
    padding: 0;
  }

  /* Integrations grid */
  .integrations-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Modal */
  .modal-box {
    margin: 0 16px;
    padding: 32px 24px;
  }
  .modal-box.modal-list {
    width: calc(100vw - 32px);
    padding: 24px 20px;
  }
  .modal-list-grid {
    grid-template-columns: 1fr;
  }


  /* Footer */
  .footer {
    position: relative;
  }
}

/* ── Small mobile (≤480px) ───────────────────── */
@media (max-width: 480px) {
  .nav-inner {
    padding: 0 16px;
  }
  .nav-brand {
    font-size: 22px;
  }
  .page-content {
    padding-top: calc(var(--nav-height) + 40px);
  }
  .section-header-hero {
    margin-bottom: 24px;
  }
  .section-header-hero .section-title {
    letter-spacing: -0.5px;
  }
  .section-header-hero .section-label {
    font-size: 14px;
  }
  .section-header-hero .section-subtitle {
    font-size: 17px;
  }
  .hero-content h1 {
    letter-spacing: -0.5px;
  }
  .hero-content p {
    font-size: 17px;
  }
  .hero-content .btn-lg {
    padding: 12px 24px;
    font-size: 15px;
  }
  .integration-item img {
    width: 40px;
    height: 40px;
  }
  .integration-item span {
    font-size: 12px;
  }
}

/* ── Use Cases Page ──────────────────────────────── */
.page-content-use-cases .section-header-hero {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.page-content-use-cases .section-header-hero .section-subtitle {
  max-width: 100%;
}

.use-cases-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
}

.use-cases-toc {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.use-cases-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  text-decoration: none;
}

.use-cases-toc a span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}

.use-cases-toc a:hover {
  color: var(--text-secondary);
  background: rgba(99, 102, 241, 0.04);
}

.use-cases-toc a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: rgba(99, 102, 241, 0.06);
}

.use-cases-toc a.active span {
  color: var(--primary);
  opacity: 1;
}

.use-cases-content {
  max-width: 720px;
}

.use-case-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.use-case-section:first-child {
  padding-top: 0;
}

.article .use-case-header h2 {
  margin-top: 0;
}

.use-case-section:last-of-type {
  border-bottom: none;
}

.use-case-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}

.use-case-number {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text-dim);
  opacity: 0.2;
  line-height: 1;
  flex-shrink: 0;
}

.use-case-header h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  margin: 0;
}

.use-case-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.use-case-insight {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.use-case-insight strong {
  color: var(--text);
  font-weight: 600;
}
.use-case-outro {
  margin-top: 20px;
}

/* ── Use Cases Responsive ────────────────────────── */
@media (max-width: 1024px) {
  .use-cases-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .use-cases-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 32px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }
  .use-cases-toc a {
    border-left: none;
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 13px;
    border: 1px solid var(--border);
  }
  .use-cases-toc a.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
  }
}

@media (max-width: 768px) {
  .use-cases-toc {
    display: none;
  }
  .use-case-section {
    padding: 32px 0;
  }
  .use-case-header {
    gap: 12px;
  }
  .use-case-number {
    font-size: 36px;
  }
  .use-case-header h2 {
    font-size: 22px;
  }
}
