/* ============================================================
   FEATURES PAGE - Frontora AI V2-Pre
   Capability explorer with tabbed sections + tool cards
   ============================================================ */

.ft-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(16,185,129,0.1);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 18px;
}

.ft-h1 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--neutral-900);
}

.ft-h1-accent {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ft-h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--neutral-900);
}

.ft-section-head {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 60px);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.ft-section-sub {
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.55;
  color: var(--neutral-600);
  margin: 0;
}

/* ===== HERO ===== */
.ft-hero {
  position: relative;
  padding: clamp(70px, 10vw, 100px) 0 clamp(60px, 8vw, 90px);
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(16,185,129,0.08), transparent 60%),
    var(--neutral-0);
  overflow: hidden;
}

.ft-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.ft-lede {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--neutral-700);
  margin: 0 0 28px;
  max-width: 540px;
}

.ft-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* === Live call card visual === */
.ft-call-card {
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 50px -12px rgba(16,185,129,0.18);
  position: relative;
  overflow: hidden;
}

.ft-call-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 100% 0%, rgba(16,185,129,0.06), transparent 70%);
  pointer-events: none;
}

.ft-call-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--neutral-200);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.ft-call-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: white;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ft-call-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ft-call-meta strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--neutral-900);
}

.ft-call-meta span {
  font-size: 12px;
  color: var(--neutral-600);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ft-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dc2626;
  display: inline-block;
  animation: ft-blink 1.4s ease-in-out infinite;
}

@keyframes ft-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220,38,38,0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 0 6px rgba(220,38,38,0); }
}

.ft-call-vol {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.ft-call-vol span {
  width: 3px;
  height: 100%;
  background: var(--brand-500);
  border-radius: 2px;
  animation: ft-vol 0.9s ease-in-out infinite;
}

.ft-call-vol span:nth-child(1) { animation-delay: 0.0s; }
.ft-call-vol span:nth-child(2) { animation-delay: 0.15s; }
.ft-call-vol span:nth-child(3) { animation-delay: 0.3s; }
.ft-call-vol span:nth-child(4) { animation-delay: 0.45s; }

@keyframes ft-vol {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}

.ft-call-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.ft-msg {
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 85%;
}

.ft-msg strong {
  font-weight: 700;
  margin-right: 4px;
}

.ft-msg-them {
  background: var(--neutral-100);
  color: var(--neutral-800);
  align-self: flex-start;
}

.ft-msg-me {
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.04));
  color: var(--neutral-800);
  align-self: flex-end;
  border: 1px solid rgba(16,185,129,0.2);
}

.ft-msg-me strong { color: var(--brand-700); }

.ft-msg-typing {
  display: flex;
  align-items: center;
}

.ft-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 4px;
}

.ft-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-600);
  animation: ft-dot 1.2s ease-in-out infinite;
}

.ft-dots span:nth-child(2) { animation-delay: 0.2s; }
.ft-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ft-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.ft-call-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--neutral-200);
  position: relative;
  z-index: 1;
}

.ft-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--neutral-100);
  color: var(--neutral-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
}

.ft-tag-emerald {
  background: rgba(16,185,129,0.12);
  color: var(--brand-700);
}

.ft-tag-warm {
  background: rgba(245,158,11,0.15);
  color: #c4a35a;
}

/* ===== EXPLORER ===== */
.ft-explorer {
  background: var(--neutral-100);
  padding: clamp(60px, 8vw, 100px) 0;
  scroll-margin-top: 80px;
}

/* Tab buttons */
.ft-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-width: 1080px;
  margin: 0 auto 32px;
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.06);
}

.ft-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 14px 10px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--neutral-700);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.ft-tab svg {
  width: 22px;
  height: 22px;
  color: var(--neutral-600);
  transition: color 0.2s ease;
}

.ft-tab:hover {
  background: var(--neutral-100);
  color: var(--neutral-900);
}

.ft-tab:hover svg {
  color: var(--brand-600);
}

.ft-tab.is-active {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: white;
  box-shadow: 0 6px 16px -4px rgba(16,185,129,0.4);
}

.ft-tab.is-active svg {
  color: white;
}

/* Panels */
.ft-panels {
  max-width: 1080px;
  margin: 0 auto;
}

.ft-panel {
  display: none;
}

.ft-panel.is-active {
  display: block;
  animation: ft-fade-in 0.4s ease;
}

@keyframes ft-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ft-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.06);
}

.ft-panel-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ft-panel-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--neutral-900);
  margin: 0;
}

.ft-panel-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--neutral-700);
  margin: 0;
}

.ft-mini-demo {
  margin-top: auto;
  padding: 18px;
  background: linear-gradient(135deg, var(--neutral-100) 0%, white 100%);
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
}

.ft-mini-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-bottom: 10px;
}

/* === Mini-demos per tab === */

/* Waveform (Voice tab) */
.ft-waveform {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 60px;
}

.ft-waveform span {
  width: 6px;
  height: var(--h, 50%);
  background: linear-gradient(to top, var(--brand-500), var(--brand-700));
  border-radius: 3px;
  animation: ft-wave 1.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

.ft-waveform span:nth-child(odd) { animation-delay: 0.1s; }
.ft-waveform span:nth-child(even) { animation-delay: 0.25s; }
.ft-waveform span:nth-child(3n) { animation-delay: 0.4s; }

@keyframes ft-wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}

/* Routing tree (Routing tab) */
.ft-tree {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.ft-tree-node {
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-700);
}

.ft-tree-root {
  background: linear-gradient(135deg, var(--neutral-200), var(--neutral-100));
  font-weight: 700;
  color: var(--neutral-900);
}

.ft-tree-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.ft-tree-emerald {
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.04));
  border-color: rgba(16,185,129,0.4);
  color: var(--brand-700);
}

/* Slots (Calendar tab) */
.ft-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ft-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-700);
}

.ft-slot-picked {
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.04));
  border-color: var(--brand-500);
  color: var(--brand-700);
}

.ft-slot-check {
  font-weight: 800;
  color: var(--brand-600);
  font-size: 14px;
}

/* Lead card (CRM tab) */
.ft-lead-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ft-lead-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--neutral-200);
  font-size: 13px;
}

.ft-lead-row:last-child { border-bottom: none; }

.ft-lead-row span:first-child {
  color: var(--neutral-500);
  font-weight: 500;
}

.ft-lead-row strong {
  color: var(--neutral-900);
  font-weight: 700;
}

.ft-tag-row {
  display: flex;
  gap: 4px;
}

/* Phrases (Industry tab) */
.ft-phrases {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ft-phrases span {
  padding: 5px 11px;
  background: white;
  border: 1px solid var(--neutral-300);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-700);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

/* Feature list inside panel */
.ft-panel-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}

.ft-feature {
  background: linear-gradient(180deg, white 0%, var(--neutral-100) 100%);
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ft-feature:hover {
  transform: translateY(-2px);
  border-color: var(--brand-500);
  box-shadow: 0 8px 16px -6px rgba(16,185,129,0.15);
}

.ft-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(16,185,129,0.1);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.ft-feature-icon svg {
  width: 16px;
  height: 16px;
}

.ft-feature strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.3;
}

.ft-feature span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--neutral-600);
}

/* ===== TOOLS ===== */
.ft-tools {
  background: var(--neutral-0);
  padding: clamp(60px, 8vw, 100px) 0;
}

.ft-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.ft-tool-card {
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ft-tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px rgba(16,185,129,0.18);
  border-color: var(--brand-500);
}

.ft-tool-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--neutral-200);
}

.ft-tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.ft-tool-header h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--neutral-900);
  margin: 0;
}

.ft-tool-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ft-tool-list li {
  font-size: 13.5px;
  color: var(--neutral-700);
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}

.ft-tool-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-500);
}

/* ===== FINAL CTA ===== */
.ft-final-cta {
  background: var(--neutral-950, #0a0a0a);
  color: white;
  padding: clamp(60px, 8vw, 100px) 0;
}

.ft-final-cta .ft-eyebrow {
  background: rgba(16,185,129,0.18);
  color: var(--brand-500);
}

.ft-final-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.ft-final-h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: white;
  margin: 0 0 12px;
}

.ft-final-sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  margin: 0;
  max-width: 540px;
}

.ft-final-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ft-final-cta .btn-ghost-light {
  border-color: rgba(255,255,255,0.3);
  color: white;
}

.ft-final-cta .btn-ghost-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--brand-500);
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .ft-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ft-tabs { grid-template-columns: repeat(3, 1fr); }
  .ft-tab span { font-size: 11px; }
  .ft-panel-grid { grid-template-columns: 1fr; padding: 28px 22px; }
  .ft-panel-features { grid-template-columns: 1fr 1fr; }
  .ft-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .ft-final-inner { grid-template-columns: 1fr; text-align: center; }
  .ft-final-actions { align-items: center; }
}

@media (max-width: 600px) {
  .ft-tabs { grid-template-columns: repeat(2, 1fr); }
  .ft-panel-features { grid-template-columns: 1fr; }
  .ft-tools-grid { grid-template-columns: 1fr; }
  .ft-call-card { padding: 18px; }
  .ft-msg { font-size: 12.5px; }
}
