/* =========================================================================
   VIDEO TRIMMER PAGE STYLES - VIDDOW.COM
   ========================================================================= */

.cut-section {
  padding: 60px 0;
}

.cut-top-ad {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.cut-card {
  max-width: 860px;
  margin: 0 auto 30px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.cut-video-container {
  max-width: 800px;
  margin: 0 auto;
}

.video-preview-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
}

.video-preview-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Video Overlay Play Button (Bottom-Left) */
.video-preview-play-btn {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
  user-select: none;
}

.video-preview-play-btn:hover {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-color: #f97316;
  color: #ffffff;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.45);
}

.video-preview-play-btn:active {
  transform: translateY(0) scale(0.98);
}

.video-preview-play-btn svg {
  display: block;
}

/* Video Overlay Estimated Size Badge */
.video-est-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 12px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.video-est-badge strong {
  color: #f97316;
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
}

/* Timeline Dual Slider & Scrubbing */
.timeline-wrap {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.timeline-time-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.time-input-box {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 4px 10px;
  transition: all 0.2s ease;
}

.time-input-box:focus-within {
  border-color: #f97316;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.25);
}

.time-input-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 6px;
}

.time-code-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  width: 108px;
  outline: none;
  text-align: center;
}

.time-stat-plain {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
}

.stat-plain-label {
  font-size: 12px;
  color: var(--text-muted);
}

.stat-plain-value {
  color: #f97316;
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
}

.timeline-btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.reset-range-suffix {
  display: inline;
}

/* Timeline Track Container */
.timeline-track-container {
  position: relative;
  height: 32px;
  margin: 26px 0 18px;
  display: flex;
  align-items: center;
}

.timeline-bg-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

.timeline-highlight-region {
  position: absolute;
  height: 12px;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: 6px;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.5);
  z-index: 4;
}

.timeline-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  pointer-events: none;
  z-index: 7;
}

.timeline-slider-input {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  height: 32px;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
  margin: 0;
  z-index: 10;
}

.timeline-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 26px;
  background: #f97316;
  border: 2px solid #ffffff;
  border-radius: 4px;
  cursor: ew-resize;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: transform 0.1s;
}

.timeline-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

.timeline-slider-input.thumb-start::-webkit-slider-thumb {
  background: #10b981;
}

.timeline-slider-input.thumb-end::-webkit-slider-thumb {
  background: #f97316;
}

/* Saved Segments Track on Dual-Timeline */
.timeline-saved-segments {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 6;
}

.timeline-saved-segment-marker {
  position: absolute;
  top: 10px;
  height: 12px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.95));
  border: 1px solid #34d399;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.45);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.15s ease;
  user-select: none;
  z-index: 5;
}

.timeline-saved-segment-marker:hover {
  background: linear-gradient(180deg, #10b981, #059669);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.75);
  transform: translateY(-1px);
  z-index: 6;
}

.timeline-saved-segment-marker .marker-label {
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  padding: 0 4px;
  line-height: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  white-space: nowrap;
}

/* Persistent Vertical Cut Divider (|) */
.timeline-segment-divider {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 3px;
  background: #ffffff;
  transform: translateX(-50%);
  pointer-events: auto;
  z-index: 25 !important;
  cursor: pointer;
  border-radius: 1.5px;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.95), 0 0 8px #ffffff, 0 0 12px rgba(56, 189, 248, 0.85);
  transition: width 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

/* Mũi tên tam giác chỉ xuống ở đỉnh vạch | */
.timeline-segment-divider::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #38bdf8;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}

/* Mũi tên tam giác chỉ lên ở chân vạch | */
.timeline-segment-divider::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 6px solid #38bdf8;
  filter: drop-shadow(0 -1px 2px rgba(0, 0, 0, 0.8));
}

.timeline-segment-divider:hover {
  width: 4px;
  background: #38bdf8;
  box-shadow: 0 0 0 1.5px #000000, 0 0 14px #38bdf8, 0 0 22px rgba(56, 189, 248, 0.95);
  z-index: 30 !important;
}

.timeline-segment-divider:hover::before {
  border-top-color: #ffffff;
  transform: translateX(-50%) scale(1.2);
}

.timeline-segment-divider:hover::after {
  border-bottom-color: #ffffff;
  transform: translateX(-50%) scale(1.2);
}

/* Tag nhãn thời gian mốc cắt cố định trên đỉnh vạch | */
.timeline-segment-divider .divider-time-tag {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #38bdf8;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-family: monospace;
  font-weight: 700;
  color: #38bdf8;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  opacity: 0.92;
  transition: all 0.15s ease;
  z-index: 30;
}

.timeline-segment-divider:hover .divider-time-tag {
  opacity: 1;
  background: #38bdf8;
  color: #0f172a;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.6);
}

/* =========================================================================
   MULTI-SEGMENT & VIDEO SPLITTER UI
   ========================================================================= */
.trimmer-modes-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}

.mode-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.mode-tab-btn.active {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.35);
}

.btn-add-segment {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.btn-add-segment:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.45);
}

.segment-panel {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.segment-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.segment-export-toggle {
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.radio-label input[type="radio"] {
  accent-color: #f97316;
  cursor: pointer;
}

.radio-label:has(input:checked) {
  color: #f97316;
}

.badge-count {
  background: #f97316;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.segments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.segments-list::-webkit-scrollbar {
  width: 6px;
}

.segments-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.segment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: all 0.2s;
}

.segment-item:hover {
  border-color: rgba(249, 115, 22, 0.5);
  background: rgba(249, 115, 22, 0.03);
}

.segment-item.active-preview {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.segment-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.segment-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.segment-time {
  font-family: monospace;
  font-size: 13px;
  color: #ffffff;
}

.segment-dur {
  font-size: 12px;
  color: #f97316;
  font-weight: 600;
}

.segment-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.segment-empty-state {
  padding: 30px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  border: 1px dashed var(--border-color);
  border-radius: 6px;
}

.split-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.subtab-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.subtab-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.subtab-btn.active {
  background: rgba(249, 115, 22, 0.15);
  border-color: #f97316;
  color: #f97316;
}

.split-controls-wrap {
  margin-bottom: 14px;
}

.chips-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.split-chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.split-chip,
.parts-chip {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.split-chip:hover,
.parts-chip:hover {
  border-color: #f97316;
  color: #ffffff;
}

.split-chip.active,
.parts-chip.active {
  background: #f97316;
  border-color: #f97316;
  color: #ffffff;
}

.multi-result-header {
  padding: 14px 18px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
}

/* Trimmer Mobile Responsive */
@media (max-width: 768px) {
  .cut-card {
    padding: 20px 14px;
  }

  .timeline-time-chips {
    flex-direction: column;
    gap: 6px;
  }

  .timeline-btn-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .timeline-btn-group > div {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  .timeline-btn-group .btn-sm {
    padding: 6px 9px !important;
    font-size: 12.5px !important;
    white-space: nowrap !important;
  }

  #btnResetRange {
    flex-shrink: 0 !important;
    padding: 6px 10px !important;
    margin-left: auto;
  }

  .reset-range-suffix {
    display: none !important;
  }
}

/* =========================================================================
   GEO DEFINITION CARD (Structured Citation Engine)
   ========================================================================= */
.geo-definition-card {
  max-width: 860px;
  margin: 36px auto 24px;
  background: rgba(13, 17, 26, 0.7);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-left: 4px solid var(--accent-orange);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.geo-def-icon {
  color: var(--accent-orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.geo-def-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.geo-def-text strong {
  color: #ffffff;
}

/* =========================================================================
   COMMON SECTION HEADINGS & INTROS
   ========================================================================= */
.home-compare-section {
  margin-top: 48px;
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.home-section-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  text-align: center;
  max-width: 780px;
  margin: -12px auto 28px;
}

/* =========================================================================
   DESKTOP COMPARISON TABLE
   ========================================================================= */
.compare-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
  background: rgba(10, 13, 20, 0.55);
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.compare-table th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.compare-table th.viddow-col,
.compare-table td.viddow-col {
  background: rgba(249, 115, 22, 0.05);
  border-left: 1px solid rgba(249, 115, 22, 0.2);
  border-right: 1px solid rgba(249, 115, 22, 0.2);
  color: #ffffff;
  font-weight: 600;
}

.compare-table th.viddow-col {
  color: var(--accent-orange);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.table-badge-yes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
  font-weight: 600;
}

.table-badge-no {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ef4444;
}

/* =========================================================================
   RESPONSIVE COMPARISON MATRIX ON MOBILE & TABLET (CARDS LAYOUT)
   ========================================================================= */
@media (max-width: 768px) {
  .home-compare-section {
    padding: 24px 14px;
    margin-top: 36px;
    border-radius: var(--radius-md);
  }

  .home-section-desc {
    font-size: 13.5px;
    margin-bottom: 20px;
    text-align: left;
  }

  .compare-table-wrap {
    border: none;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }

  .compare-table {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .compare-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "feature feature"
      "traditional viddow";
    background: rgba(13, 17, 26, 0.75);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  }

  /* Feature Title (Hàng trên cùng của Card) */
  .compare-table td:nth-child(1) {
    grid-area: feature;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    background: transparent;
  }

  /* Traditional Trimmer (Cột trái) */
  .compare-table td:nth-child(2) {
    grid-area: traditional;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
  }

  .compare-table td:nth-child(2)::before {
    content: "Cloud Trimmers";
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    opacity: 0.75;
  }

  /* Viddow Trimmer (Cột phải nổi bật) */
  .compare-table td:nth-child(3) {
    grid-area: viddow;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    background: rgba(249, 115, 22, 0.07);
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 12px;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.45;
  }

  .compare-table td:nth-child(3)::before {
    content: "Viddow";
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--accent-orange);
  }

  .compare-table td.viddow-col {
    border-left: 1px solid rgba(249, 115, 22, 0.35);
    border-right: 1px solid rgba(249, 115, 22, 0.35);
  }

  .table-badge-yes {
    font-size: 12px;
    line-height: 1.45;
  }
}

@media (max-width: 380px) {
  .compare-table tr {
    grid-template-columns: 1fr;
    grid-template-areas:
      "feature"
      "viddow"
      "traditional";
    gap: 8px;
  }
}

/* =========================================================================
   TRIMMER MODES CAPABILITIES SHOWCASE
   ========================================================================= */
.capabilities-showcase-section {
  margin-top: 48px;
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

.capability-card {
  display: flex;
  flex-direction: column;
  background: rgba(10, 13, 20, 0.55);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.capability-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.cap-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.cap-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cap-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}

.cap-badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 14px;
  padding: 3px 10px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: var(--accent-orange);
  font-size: 11.5px;
  font-weight: 700;
  border-radius: var(--radius-full);
}

@media (max-width: 900px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .capabilities-showcase-section {
    padding: 24px 14px;
    margin-top: 36px;
  }
}

/* =========================================================================
   ECOSYSTEM TOOLS GRID (Internal Linking)
   ========================================================================= */
.ecosystem-section {
  margin-top: 48px;
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

.ecosystem-card {
  display: flex;
  flex-direction: column;
  background: rgba(10, 13, 20, 0.55);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.ecosystem-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.eco-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.eco-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eco-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}

.eco-action {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 900px) {
  .ecosystem-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ecosystem-section {
    padding: 24px 14px;
    margin-top: 36px;
  }
}

