/* ============================================================
   Pantech Automation — features.css (FINAL CLEAN BUILD)
   Sliders, Dashboard, Chatbot, Wizard, Tabs, Toggle, FAB
   ============================================================ */

/* ============================================================
   1. PAGE TRANSITION OVERLAY
   ============================================================ */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg, #ffffff);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.page-transition.active {
  opacity: 1;
  pointer-events: all;
}
body {
  animation: pageIn 0.5s ease;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   2. SHARED SLIDER STRUCTURE
   ============================================================ */
.ba-section {
  padding: 5rem 0;
  background: #f0f4ff;
}

.ba-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.ba-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border: 1px solid var(--border, #e2e8f0);
  height: 480px;
  user-select: none;
  -webkit-user-select: none;
}
.ba-before, .ba-after {
  position: absolute;
  top: 0;
  height: 100%;
  overflow: hidden;
}
.ba-before {
  left: 0;
  width: 50%;
  z-index: 1;
}
.ba-after {
  right: 0;
  width: 100%;
  z-index: 0;
}
.ba-content {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ba-before .ba-content {
  min-width: 900px;
  width: 900px;
}
.ba-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  width: fit-content;
}
.ba-title {
  font-family: var(--font-primary, 'Space Grotesk', sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.ba-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}
.ba-errors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.ba-error-tag {
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
}
.ba-error-tag.red    { background: rgba(239,68,68,0.1); color: #dc2626; }
.ba-error-tag.orange { background: rgba(249,115,22,0.1); color: #ea580c; }
.ba-success {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.ba-success-tag {
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(16,185,129,0.1);
  color: #059669;
}
.ba-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.ba-hint {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.5px;
}

/* Drag Handle */
.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #2563eb, #1e3a5f);
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  cursor: ew-resize;
}
.ba-handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #2563eb, #1e3a5f);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: ew-resize;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 11;
}
.ba-handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 30px rgba(37,99,235,0.5);
}
.ba-handle svg { color: #fff; }

/* ============================================================
   3. SLIDER 1 — Spreadsheet vs Green Dashboard
   ============================================================ */
.ba-section:not(.ba-section-2) .ba-before {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}
.ba-section:not(.ba-section-2) .ba-before .ba-label {
  background: rgba(239,68,68,0.15); color: #dc2626;
}
.ba-section:not(.ba-section-2) .ba-before .ba-time { color: #dc2626; }
.ba-section:not(.ba-section-2) .ba-after {
  background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%);
}
.ba-section:not(.ba-section-2) .ba-after .ba-label {
  background: rgba(16,185,129,0.15); color: #059669;
}
.ba-section:not(.ba-section-2) .ba-after .ba-time { color: #059669; }

/* Fake spreadsheet */
.fake-spreadsheet {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  overflow: hidden; font-size: 0.72rem; flex: 1;
  display: flex; flex-direction: column;
}
.fs-toolbar {
  background: #f1f5f9; padding: 0.4rem 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.fs-dot { width: 8px; height: 8px; border-radius: 50%; }
.fs-dot.red    { background: #ef4444; }
.fs-dot.yellow { background: #f59e0b; }
.fs-dot.green  { background: #22c55e; }
.fs-grid {
  flex: 1; display: grid;
  grid-template-columns: 0.8fr 1fr 0.6fr 0.8fr;
  font-family: 'Courier New', monospace;
}
.fs-header {
  background: #f8fafc; padding: 0.35rem 0.5rem; font-weight: 700;
  color: #475569; border-bottom: 1px solid #e5e7eb; border-right: 1px solid #f1f5f9;
}
.fs-cell {
  padding: 0.3rem 0.5rem; border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f8fafc; color: #334155;
}
.fs-cell.error { background: #fef2f2; color: #dc2626; font-weight: 600; }
.fs-cell.warn  { background: #fffbeb; color: #d97706; }
.fs-cell.dup   { background: #fce7f3; color: #be185d; text-decoration: line-through; }

/* Fake green dashboard */
.fake-dashboard {
  background: #fff; border: 1px solid #d1fae5; border-radius: 8px;
  overflow: hidden; flex: 1; display: flex; flex-direction: column;
}
.fd-toolbar {
  background: #f0fdf4; padding: 0.4rem 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid #d1fae5;
  font-size: 0.72rem; font-weight: 600; color: #059669;
}
.fd-body {
  flex: 1; padding: 0.75rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
}
.fd-kpi {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid #d1fae5; border-radius: 8px;
  padding: 0.6rem 0.75rem; text-align: center;
}
.fd-kpi-num {
  font-family: var(--font-primary, 'Space Grotesk', sans-serif);
  font-size: 1.3rem; font-weight: 800; color: #059669;
}
.fd-kpi-label { font-size: 0.65rem; color: #64748b; margin-top: 0.15rem; }
.fd-chart {
  grid-column: 1 / -1; background: #f8fdf9; border: 1px solid #d1fae5;
  border-radius: 8px; padding: 0.75rem;
  display: flex; align-items: flex-end; gap: 0.35rem; height: 80px;
}
.fd-bar {
  flex: 1; background: linear-gradient(to top, #10b981, #34d399);
  border-radius: 3px 3px 0 0; min-height: 8px; transition: height 0.5s ease;
}

/* ============================================================
   4. SLIDER 2 — Red Files vs Dark Dashboard
   ============================================================ */
.ba-section-2 {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #eef2ff 100%);
}
.ba-container-2 { height: 560px; }
.ba-before-2 {
  background: linear-gradient(135deg, #451a03 0%, #7c2d12 50%, #991b1b 100%) !important;
}
.ba-before-2 .ba-content { min-width: 900px; width: 900px; }
.ba-before-2 .ba-title    { color: #fee2e2 !important; }
.ba-before-2 .ba-subtitle { color: #fca5a5 !important; }
.ba-label-purple {
  background: rgba(239,68,68,0.25) !important; color: #fca5a5 !important;
}
.ba-before-2 .file-explorer { background: rgba(69,26,3,0.6); border-color: rgba(239,68,68,0.2); }
.ba-before-2 .fe-toolbar { background: rgba(127,29,29,0.6); border-bottom-color: rgba(239,68,68,0.15); }
.ba-before-2 .fe-dot:nth-child(1) { background: #ef4444 !important; }
.ba-before-2 .fe-dot:nth-child(2) { background: #f59e0b !important; }
.ba-before-2 .fe-dot:nth-child(3) { background: #6b7280 !important; }
.ba-before-2 .fe-path { color: #fca5a5 !important; }
.ba-before-2 .fe-file { color: #fed7aa !important; border-bottom-color: rgba(239,68,68,0.06) !important; }
.ba-before-2 .fe-file:hover { background: rgba(239,68,68,0.08) !important; }
.ba-before-2 .fe-file-warn { background: rgba(239,68,68,0.1) !important; }
.ba-before-2 .fe-file-warn .fe-name { color: #fca5a5 !important; }
.ba-before-2 .fe-name { color: #fed7aa !important; }
.ba-before-2 .fe-size { color: #f87171 !important; }
.ba-divider-2 { background: linear-gradient(to bottom, #ef4444, #06b6d4) !important; }
.ba-after-2 { background: #0b1120 !important; }

/* File explorer base */
.file-explorer {
  background: rgba(69,26,3,0.6); border: 1px solid rgba(239,68,68,0.2);
  border-radius: 8px; overflow: hidden; flex: 1;
  display: flex; flex-direction: column;
}
.fe-toolbar {
  background: rgba(127,29,29,0.6); padding: 0.45rem 0.75rem;
  display: flex; align-items: center; gap: 0.4rem;
  border-bottom: 1px solid rgba(239,68,68,0.15);
}
.fe-dot { width: 7px; height: 7px; border-radius: 50%; }
.fe-path { font-size: 0.65rem; color: #fca5a5; margin-left: 0.4rem; font-family: 'Courier New', monospace; }
.fe-files { flex: 1; padding: 0.25rem 0; }
.fe-file {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.75rem; font-size: 0.72rem; color: #fed7aa;
  border-bottom: 1px solid rgba(239,68,68,0.06);
}
.fe-file-warn { background: rgba(239,68,68,0.1); }
.fe-file-warn .fe-name { color: #fca5a5; }
.fe-icon { font-size: 0.9rem; flex-shrink: 0; }
.fe-name { flex: 1; font-family: 'Courier New', monospace; font-size: 0.7rem; color: #fed7aa; }
.fe-size { color: #f87171; font-size: 0.65rem; font-weight: 600; flex-shrink: 0; }

/* ============================================================
   5. DARK DASHBOARD
   ============================================================ */
.ba-dark-dash-content { padding: 0 !important; }
.dark-dash { display: flex; flex-direction: column; height: 100%; background: #0b1120; overflow: hidden; font-family: 'Inter', sans-serif; }
.dd-header { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.75rem; background: linear-gradient(90deg, #0f172a, #1e293b); border-bottom: 1px solid #1e293b; }
.dd-header-left { display: flex; align-items: center; gap: 0.5rem; }
.dd-logo { font-size: 0.9rem; }
.dd-header-title { font-size: 0.7rem; font-weight: 700; color: #e2e8f0; letter-spacing: 0.5px; }
.dd-header-sub { font-size: 0.5rem; color: #64748b; }
.dd-connected { display: flex; align-items: center; gap: 0.3rem; font-size: 0.55rem; color: #10b981; font-weight: 600; }
.dd-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #10b981; animation: ddPulse 2s ease infinite; }
@keyframes ddPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); } 50% { box-shadow: 0 0 0 4px rgba(16,185,129,0); } }
.dd-kpi-ribbon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; padding: 0.4rem 0.5rem; background: #0f172a; border-bottom: 1px solid #1e293b; }
.dd-kpi { text-align: center; padding: 0.35rem 0.25rem; background: #131c2e; border: 1px solid #1e293b; border-radius: 6px; }
.dd-kpi-label { font-size: 0.45rem; font-weight: 700; color: #64748b; letter-spacing: 1.5px; text-transform: uppercase; }
.dd-kpi-num { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 800; margin: 0.1rem 0; }
.dd-kpi-compare { font-size: 0.45rem; color: #64748b; }
.dd-trend-up { color: #10b981; font-weight: 700; }
.dd-trend-down { color: #ef4444; font-weight: 700; }
.dd-body { display: flex; flex: 1; overflow: hidden; }
.dd-filters { width: 85px; background: #0f172a; border-right: 1px solid #1e293b; padding: 0.4rem; display: flex; flex-direction: column; gap: 0.35rem; flex-shrink: 0; }
.dd-filter-title { font-size: 0.55rem; font-weight: 700; color: #94a3b8; margin-bottom: 0.15rem; }
.dd-filter-group label { display: block; font-size: 0.45rem; color: #64748b; margin-bottom: 0.1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.dd-select { font-size: 0.55rem; color: #cbd5e1; background: #1e293b; border: 1px solid #334155; border-radius: 4px; padding: 0.2rem 0.35rem; }
.dd-filter-btn { font-size: 0.5rem; font-weight: 700; color: #06b6d4; background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.2); border-radius: 4px; padding: 0.25rem; text-align: center; margin-top: auto; cursor: pointer; }
.dd-charts { flex: 1; display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.35rem; padding: 0.4rem; overflow: hidden; }
.dd-panel { background: #131c2e; border: 1px solid #1e293b; border-radius: 8px; padding: 0.45rem; display: flex; flex-direction: column; overflow: hidden; }
.dd-panel-title { font-size: 0.52rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 0.3rem; }
.dd-donut-wrap { display: flex; align-items: center; gap: 0.5rem; flex: 1; }
.dd-donut { width: 65px; height: 65px; border-radius: 50%; background: conic-gradient(#06b6d4 0deg 241deg, #8b5cf6 241deg 317deg, #f59e0b 317deg 360deg); position: relative; flex-shrink: 0; }
.dd-donut-hole { position: absolute; inset: 10px; background: #131c2e; border-radius: 50%; }
.dd-donut-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; color: #06b6d4; z-index: 1; line-height: 1; }
.dd-donut-text span { font-size: 0.4rem; color: #64748b; font-weight: 600; }
.dd-donut-legend { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.5rem; color: #94a3b8; }
.dd-donut-legend i { display: inline-block; width: 6px; height: 6px; border-radius: 2px; margin-right: 0.25rem; vertical-align: middle; }
.dd-donut-legend strong { color: #e2e8f0; margin-left: 0.2rem; }
.dd-bar-chart { display: flex; align-items: flex-end; gap: 0.2rem; flex: 1; padding-top: 0.2rem; }
.dd-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.dd-bar-col span { font-size: 0.4rem; color: #475569; font-weight: 600; }
.dd-bar { width: 100%; border-radius: 2px 2px 0 0; background: linear-gradient(to top, #06b6d4, #22d3ee); min-height: 4px; height: 10%; transition: height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
.dd-bar-alt { background: linear-gradient(to top, #8b5cf6, #a78bfa) !important; }
.dd-line-chart { flex: 1; display: flex; flex-direction: column; }
.dd-svg-chart { flex: 1; width: 100%; border-radius: 4px; background: rgba(6,182,212,0.03); }
.dd-line-labels { display: flex; justify-content: space-between; font-size: 0.4rem; color: #475569; padding: 0.15rem 0.25rem 0; }
.dd-line-legend { display: flex; gap: 0.6rem; font-size: 0.45rem; color: #64748b; margin-top: 0.15rem; }
.dd-line-legend i { display: inline-block; width: 10px; height: 2px; border-radius: 1px; margin-right: 0.2rem; vertical-align: middle; }
.dd-table { flex: 1; display: flex; flex-direction: column; }
.dd-table-header { display: grid; grid-template-columns: 20px 1fr 50px 1fr; gap: 0.2rem; font-size: 0.42rem; color: #475569; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding-bottom: 0.2rem; border-bottom: 1px solid #1e293b; margin-bottom: 0.15rem; }
.dd-table-row { display: grid; grid-template-columns: 20px 1fr 50px 1fr; gap: 0.2rem; align-items: center; font-size: 0.5rem; color: #cbd5e1; padding: 0.15rem 0; border-bottom: 1px solid rgba(30,41,59,0.5); }
.dd-rank { font-weight: 800; color: #06b6d4; font-size: 0.55rem; }
.dd-val { font-weight: 700; color: #e2e8f0; font-size: 0.5rem; }
.dd-progress { height: 4px; background: #1e293b; border-radius: 2px; overflow: hidden; }
.dd-progress-fill { height: 100%; border-radius: 2px; transition: width 1s ease; }
.dd-hbar-chart { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; justify-content: center; }
.dd-hbar-row { display: flex; align-items: center; gap: 0.3rem; }
.dd-hbar-label { width: 52px; font-size: 0.48rem; color: #94a3b8; text-align: right; flex-shrink: 0; }
.dd-hbar-track { flex: 1; height: 6px; background: #1e293b; border-radius: 3px; overflow: hidden; }
.dd-hbar-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
.dd-hbar-val { width: 22px; font-size: 0.48rem; color: #e2e8f0; font-weight: 700; }
.dd-gauge-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dd-gauge { width: 70px; height: 35px; background: conic-gradient(from 0.75turn, #ef4444 0deg, #f59e0b 60deg, #10b981 120deg, #06b6d4 180deg); border-radius: 70px 70px 0 0; position: relative; overflow: hidden; }
.dd-gauge-fill { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: rgba(6,182,212,0.5); }
.dd-gauge-cover { position: absolute; bottom: 0; left: 5px; right: 5px; height: 25px; background: #131c2e; border-radius: 60px 60px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 0.1rem; }
.dd-gauge-num { font-size: 0.85rem; font-weight: 800; color: #06b6d4; line-height: 1; }
.dd-gauge-label { font-size: 0.4rem; color: #64748b; }
.dd-gauge-stars { font-size: 0.65rem; color: #f59e0b; margin-top: 0.2rem; letter-spacing: 1px; }
.dd-gauge-sub { font-size: 0.4rem; color: #475569; margin-top: 0.1rem; }
.dd-status-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.3rem 0.6rem; background: #0f172a; border-top: 1px solid #1e293b; font-size: 0.45rem; color: #475569; }
.dd-status-live { margin-left: auto; color: #10b981; font-weight: 700; }

/* ============================================================
   6. LOTTIE (optional)
   ============================================================ */
.lottie-hero { width: 100%; max-width: 420px; margin: 0 auto; }
.service-lottie { width: 52px; height: 52px; margin-bottom: 1.25rem; }
.service-card .service-icon.has-lottie { background: none; border: none; width: auto; height: auto; padding: 0; }
.service-card .service-icon.has-lottie lottie-player { width: 48px; height: 48px; }
.hero-lottie-wrap { display: flex; align-items: center; justify-content: center; }
.hero-lottie-wrap lottie-player { width: 100%; max-width: 400px; height: auto; }

/* ============================================================
   7. PROJECT TYPE SELECTOR
   ============================================================ */
.pw-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.pw-card { text-align: center; padding: 2rem 1.5rem; background: var(--bg-card, #fff); border: 2px solid var(--border, #e2e8f0); border-radius: 16px; cursor: pointer; transition: all 0.3s ease; position: relative; }
.pw-card:hover { border-color: var(--accent, #2563eb); transform: translateY(-4px); box-shadow: 0 10px 40px rgba(37,99,235,0.12); }
.pw-card.active { border-color: var(--accent, #2563eb); background: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(37,99,235,0.08)); box-shadow: 0 10px 40px rgba(37,99,235,0.15); transform: translateY(-4px); }
.pw-card.active::after { content: ''; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 10px solid var(--accent, #2563eb); }
.pw-icon { width: 60px; height: 60px; margin: 0 auto 1rem; background: rgba(37,99,235,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent, #2563eb); transition: 0.3s ease; }
.pw-card.active .pw-icon, .pw-card:hover .pw-icon { background: var(--accent, #2563eb); color: #fff; box-shadow: 0 4px 20px rgba(37,99,235,0.3); }
.pw-card h4 { font-family: var(--font-primary, 'Space Grotesk', sans-serif); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; }
.pw-card p { font-size: 0.82rem; color: var(--text2, #475569); }
.pw-details { max-height: 0; overflow: hidden; transition: max-height 0.5s ease, opacity 0.3s ease; opacity: 0; }
.pw-details.open { max-height: 400px; opacity: 1; }
.pw-detail { display: none; background: var(--bg-card, #fff); border: 1px solid var(--border, #e2e8f0); border-radius: 16px; padding: 2rem; text-align: center; animation: fadeSlideUp 0.4s ease; }
.pw-detail.active { display: block; }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.pw-detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.pw-stat { padding: 1rem; background: var(--bg-alt, #f8fafc); border-radius: 12px; border: 1px solid var(--border, #e2e8f0); }
.pw-stat-label { font-size: 0.72rem; color: var(--text-muted, #94a3b8); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.3rem; }
.pw-stat-value { font-family: var(--font-primary, 'Space Grotesk', sans-serif); font-size: 1.1rem; font-weight: 800; color: var(--accent, #2563eb); }
.pw-example { font-size: 0.88rem; color: var(--text2, #475569); line-height: 1.7; margin-bottom: 1.5rem; padding: 1rem; background: rgba(37,99,235,0.04); border-radius: 10px; border-left: 3px solid var(--accent, #2563eb); text-align: left; }

/* ============================================================
   8. TECH STACK TABS
   ============================================================ */
.ts-tabs { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.ts-tab { padding: 0.65rem 1.5rem; background: var(--bg-card, #fff); border: 2px solid var(--border, #e2e8f0); border-radius: 50px; font-size: 0.9rem; font-weight: 600; color: var(--text2, #475569); cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 0.4rem; }
.ts-tab:hover { border-color: var(--accent, #2563eb); color: var(--accent, #2563eb); }
.ts-tab.active { background: var(--accent, #2563eb); border-color: var(--accent, #2563eb); color: #fff; box-shadow: 0 4px 20px rgba(37,99,235,0.25); }
.ts-tab-icon { font-size: 1.1rem; }
.ts-panels { position: relative; }
.ts-panel { display: none; animation: fadeSlideUp 0.4s ease; }
.ts-panel.active { display: block; }
.ts-panel-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: start; }
.ts-info h3 { font-family: var(--font-primary, 'Space Grotesk', sans-serif); font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; color: var(--text, #0f172a); }
.ts-info p { font-size: 0.92rem; color: var(--text2, #475569); line-height: 1.7; margin-bottom: 1rem; }
.ts-info ul { padding-left: 1.25rem; }
.ts-info li { font-size: 0.88rem; color: var(--text2, #475569); margin-bottom: 0.4rem; line-height: 1.6; list-style: disc; }
.ts-info li::marker { color: var(--accent, #2563eb); }
.ts-project { background: var(--bg-card, #fff); border: 1px solid var(--border, #e2e8f0); border-radius: 16px; padding: 1.75rem; position: relative; overflow: hidden; }
.ts-project::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent, #2563eb), var(--primary, #1e3a5f)); }
.ts-project-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent, #2563eb); margin-bottom: 0.75rem; }
.ts-project h4 { font-family: var(--font-primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.ts-project p { font-size: 0.85rem; color: var(--text2, #475569); line-height: 1.6; margin-bottom: 1rem; }
.ts-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ts-tags span { padding: 0.25rem 0.7rem; font-size: 0.72rem; font-weight: 600; border-radius: 50px; background: rgba(37,99,235,0.08); color: var(--accent, #2563eb); border: 1px solid rgba(37,99,235,0.15); }

/* ============================================================
   9. DIY vs PANTECH COMPARISON TOGGLE
   ============================================================ */
.cmp-toggle-wrap { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2.5rem; }
.cmp-toggle-label { font-size: 0.92rem; font-weight: 600; color: var(--text-muted, #94a3b8); transition: 0.3s ease; }
.cmp-toggle-label.active { color: var(--accent, #2563eb); }
.cmp-toggle { width: 56px; height: 30px; background: var(--accent, #2563eb); border: none; border-radius: 50px; position: relative; cursor: pointer; transition: background 0.3s ease; padding: 0; }
.cmp-toggle.diy { background: #ef4444; }
.cmp-toggle-knob { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; background: #fff; border-radius: 50%; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.cmp-toggle.diy .cmp-toggle-knob { right: auto; left: 3px; }
.cmp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cmp-card { background: var(--bg-card, #fff); border: 1px solid var(--border, #e2e8f0); border-radius: 16px; overflow: hidden; transition: 0.3s ease; }
.cmp-card:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.08); transform: translateY(-3px); }
.cmp-card-header { padding: 0.75rem 1.25rem; font-size: 0.78rem; font-weight: 700; color: var(--accent, #2563eb); text-transform: uppercase; letter-spacing: 1.5px; background: var(--bg-alt, #f8fafc); border-bottom: 1px solid var(--border, #e2e8f0); }
.cmp-content { padding: 1.5rem 1.25rem; text-align: center; display: none; animation: fadeSlideUp 0.35s ease; }
.cmp-content.active { display: block; }
.cmp-emoji { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.cmp-text { font-family: var(--font-primary, 'Space Grotesk', sans-serif); font-size: 1.2rem; font-weight: 800; margin-bottom: 0.3rem; }
.cmp-diy .cmp-text { color: #ef4444; }
.cmp-pantech .cmp-text { color: var(--accent, #2563eb); }
.cmp-sub { font-size: 0.82rem; color: var(--text2, #475569); }

/* ============================================================
   10. FAB — Bottom-LEFT + CHATBOT — Bottom-RIGHT
   Both same level, same size, balanced
   ============================================================ */

/* FAB: bottom-left */
.fab-wrap {
  position: fixed !important;
  bottom: 2rem !important;
  left: 2rem !important;
  right: auto !important;
  z-index: 1500;
  display: flex;
  flex-direction: column;  
  align-items: flex-start;
  gap: 0.5rem;
}
.fab-main {
  width: 56px !important;
  height: 56px !important;
}

/* Chatbot: bottom-right */
.chatbot-container {
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  left: auto !important;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.chatbot-container .chatbot-toggle {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: 56px !important;
  height: 56px !important;
  background: linear-gradient(135deg, var(--primary, #1e3a5f), var(--accent, #2563eb));
  border: none;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s ease;
  order: 2;
}
.chatbot-container .chatbot-toggle:hover { transform: scale(1.1); }
.chatbot-container .chatbot-toggle .badge {
  position: absolute; top: -2px; right: -2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #ef4444; font-size: 0.65rem;
  font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.chatbot-container .chatbot-wrap {
  order: 1;
  margin-bottom: 0.75rem;
  width: 380px;
  max-width: calc(100vw - 4rem);
}

/* Kill old standalone chatbot from style.css */
body > .chatbot-toggle,
body > .chatbot-wrap {
  display: none !important;
}

/* ============================================================
   11. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .ba-container { height: 420px; }
  .ba-title { font-size: 1.05rem; }
  .ba-before .ba-content { min-width: 100vw; width: 100vw; }
  .fd-body { grid-template-columns: 1fr; }
  .fd-chart { height: 60px; }
  .ba-container-2 { height: 500px; }
  .ba-before-2 .ba-content { min-width: 100vw; width: 100vw; }
  .dd-filters { display: none; }
  .dd-charts { grid-template-columns: 1fr 1fr; }
  .dd-kpi-ribbon { grid-template-columns: repeat(2, 1fr); }
  .pw-cards { grid-template-columns: repeat(2, 1fr); }
  .pw-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .ts-panel-inner { grid-template-columns: 1fr; }
  .cmp-grid { grid-template-columns: 1fr; }
  .fab-wrap { bottom: 1.25rem !important; left: 1.25rem !important; }
  .chatbot-container { bottom: 1.25rem !important; right: 1.25rem !important; }
  .chatbot-container .chatbot-wrap { width: calc(100vw - 2.5rem); }
}
@media (max-width: 480px) {
  .ba-container { height: 380px; }
  .ba-content { padding: 1rem; }
  .ba-errors, .ba-success { display: none; }
  .pw-cards { grid-template-columns: 1fr; }
  .pw-detail-grid { grid-template-columns: 1fr 1fr; }
  .ts-tabs { gap: 0.35rem; }
  .ts-tab { font-size: 0.78rem; padding: 0.5rem 1rem; }
}


/* ============================================================
   TECH STACK DEMOS — Interactive Visuals
   Add to your features.css or link separately
   ============================================================ */

/* Shared demo container */
.ts-demo {
  background: #0d1117;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.demo-toolbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: #161b22;
  border-bottom: 1px solid #1e293b;
}
.demo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.demo-title, .demo-url {
  font-size: 0.65rem;
  color: #64748b;
  margin-left: 0.5rem;
  font-family: 'Courier New', monospace;
}
.demo-url {
  background: #0d1117;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #1e293b;
  flex: 1;
  margin-left: 0.5rem;
}

/* ============================================================
   PYTHON TERMINAL DEMO
   ============================================================ */
.demo-code {
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  line-height: 1.7;
  flex: 1;
  overflow: hidden;
}
.code-line { color: #e2e8f0; }
.code-kw { color: #ff7b72; }
.code-mod { color: #79c0ff; }
.code-fn { color: #d2a8ff; }
.code-str { color: #a5d6ff; }
.code-cmt { color: #484f58; font-style: italic; }
.code-out { color: #3fb950; font-weight: 600; }

/* Typing animation for code lines */
.demo-code .code-line {
  opacity: 0;
  animation: codeAppear 0.3s ease forwards;
}
.demo-code .code-line:nth-child(1) { animation-delay: 0.1s; }
.demo-code .code-line:nth-child(2) { animation-delay: 0.3s; }
.demo-code .code-line:nth-child(3) { animation-delay: 0.5s; }
.demo-code .code-line:nth-child(4) { animation-delay: 0.7s; }
.demo-code .code-line:nth-child(5) { animation-delay: 0.9s; }
.demo-code .code-line:nth-child(6) { animation-delay: 1.1s; }
.demo-code .code-line:nth-child(7) { animation-delay: 1.3s; }
.demo-code .code-line:nth-child(8) { animation-delay: 1.5s; }
.demo-code .code-line:nth-child(9) { animation-delay: 1.7s; }
.demo-code .code-line:nth-child(10) { animation-delay: 1.9s; }
.demo-code .code-line:nth-child(11) { animation-delay: 2.1s; }
.demo-code .code-line:nth-child(12) { animation-delay: 2.3s; }
.demo-code .code-line:nth-child(13) { animation-delay: 2.5s; }
.demo-code .code-line:nth-child(14) { animation-delay: 2.7s; }
@keyframes codeAppear {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   POWER BI DASHBOARD DEMO
   ============================================================ */
.demo-dash-body {
  padding: 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.demo-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.demo-kpi {
  background: #131c2e;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 0.6rem;
  text-align: center;
}
.demo-kpi-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}
.demo-kpi-lbl {
  font-size: 0.55rem;
  color: #64748b;
  margin-top: 0.1rem;
}
.demo-charts-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.75rem;
  flex: 1;
  align-items: center;
}
.demo-donut {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: conic-gradient(#06b6d4 0deg 241deg, #8b5cf6 241deg 317deg, #f59e0b 317deg 360deg);
  position: relative;
  margin: 0 auto;
}
.demo-donut-ring {
  position: absolute; inset: 12px;
  background: #0d1117;
  border-radius: 50%;
}
.demo-donut-center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800;
  color: #06b6d4; z-index: 1;
}
.demo-bars {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.demo-bar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.demo-bar-item span {
  font-size: 0.55rem;
  color: #94a3b8;
  width: 20px;
  font-weight: 600;
}
.demo-bar-track {
  flex: 1;
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
}
.demo-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

/* ============================================================
   SELENIUM SCRAPER DEMO
   ============================================================ */
.demo-scrape-body {
  padding: 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.demo-scrape-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  background: #131c2e;
  border: 1px solid #1e293b;
  border-radius: 6px;
  font-size: 0.7rem;
  color: #cbd5e1;
  opacity: 0;
  animation: scrapeIn 0.4s ease forwards;
}
.demo-animate-1 { animation-delay: 0.3s; }
.demo-animate-2 { animation-delay: 0.7s; }
.demo-animate-3 { animation-delay: 1.1s; }
.demo-animate-4 { animation-delay: 1.5s; }
.demo-animate-5 { animation-delay: 1.9s; }
.demo-animate-6 { animation-delay: 2.3s; }
@keyframes scrapeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo-check {
  color: #10b981;
  font-weight: 700;
  font-size: 0.8rem;
}
.demo-tag-sm {
  margin-left: auto;
  font-size: 0.55rem;
  padding: 0.15rem 0.5rem;
  background: rgba(37,99,235,0.15);
  color: #60a5fa;
  border-radius: 50px;
  font-weight: 600;
}
.demo-scrape-status {
  text-align: center;
  padding: 0.5rem;
  color: #10b981;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(16,185,129,0.08);
  border-radius: 6px;
  border: 1px solid rgba(16,185,129,0.2);
  opacity: 0;
  animation: scrapeIn 0.4s ease forwards;
}

/* ============================================================
   JAVASCRIPT SITE PREVIEW DEMO
   ============================================================ */
.demo-site-preview {
  padding: 0.6rem;
  flex: 1;
  background: #f8fafc;
}
.demo-site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.5rem;
  background: #fff;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  border: 1px solid #e2e8f0;
}
.demo-site-logo-bar {
  width: 60px; height: 8px;
  background: linear-gradient(90deg, #1e3a5f, #2563eb);
  border-radius: 4px;
}
.demo-site-links { display: flex; gap: 0.5rem; align-items: center; }
.demo-site-links span {
  width: 24px; height: 6px;
  background: #cbd5e1;
  border-radius: 3px;
}
.demo-site-cta-bar {
  width: 40px !important; height: 14px !important;
  background: #2563eb !important;
  border-radius: 7px !important;
}
.demo-site-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.6rem;
  background: linear-gradient(135deg, #eef2ff, #f0f9ff);
  border-radius: 6px;
}
.demo-site-h1 {
  height: 10px;
  background: #1e3a5f;
  border-radius: 5px;
  margin-bottom: 0.3rem;
  width: 90%;
}
.demo-site-h1.short { width: 60%; }
.demo-site-p {
  height: 6px;
  background: #94a3b8;
  border-radius: 3px;
  width: 80%;
  margin: 0.4rem 0;
}
.demo-site-btns { display: flex; gap: 0.3rem; margin-top: 0.3rem; }
.demo-site-btns span {
  width: 36px; height: 12px;
  background: #2563eb;
  border-radius: 6px;
}
.demo-site-btns .outline {
  background: transparent;
  border: 1px solid #cbd5e1;
}
.demo-site-hero-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.5rem;
}
.demo-site-card-line {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-bottom: 0.3rem;
}
.demo-site-card-line.short { width: 60%; }
.demo-site-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}
.demo-site-card-item {
  height: 40px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.demo-site-badge {
  text-align: center;
  margin-top: 0.4rem;
  font-size: 0.55rem;
  color: #059669;
  font-weight: 600;
}

/* ============================================================
   POWER AUTOMATE PIPELINE DEMO
   ============================================================ */
.demo-pipeline-body {
  padding: 1rem 0.5rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
}
.demo-pipe-step {
  text-align: center;
  flex-shrink: 0;
}
.demo-pipe-icon {
  width: 40px; height: 40px;
  background: #131c2e;
  border: 2px solid #1e293b;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  margin: 0 auto 0.3rem;
  transition: all 0.3s ease;
}
.demo-pipe-step.active .demo-pipe-icon {
  border-color: #2563eb;
  box-shadow: 0 0 12px rgba(37,99,235,0.4);
}
.demo-pipe-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: #e2e8f0;
}
.demo-pipe-sub {
  font-size: 0.5rem;
  color: #64748b;
}
.demo-pipe-arrow {
  width: 30px;
  height: 2px;
  background: #1e293b;
  position: relative;
  flex-shrink: 0;
  margin: 0 0.15rem;
  margin-bottom: 1.5rem;
}
.demo-pipe-dot-travel {
  position: absolute;
  width: 6px; height: 6px;
  background: #2563eb;
  border-radius: 50%;
  top: -2px;
  left: 0;
  animation: dotTravel 2s ease infinite;
  box-shadow: 0 0 8px #2563eb;
}
.demo-pipe-dot-travel.delay-1 { animation-delay: 0.5s; }
.demo-pipe-dot-travel.delay-2 { animation-delay: 1s; }
.demo-pipe-dot-travel.delay-3 { animation-delay: 1.5s; }
@keyframes dotTravel {
  0% { left: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ============================================================
   AI CHATBOT DEMO
   ============================================================ */
.demo-chat-body {
  padding: 0.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #f8fafc;
  overflow-y: auto;
}
.demo-chat-msg {
  display: flex;
  max-width: 85%;
}
.demo-chat-msg.bot { align-self: flex-start; }
.demo-chat-msg.user { align-self: flex-end; }
.demo-chat-bubble {
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  font-size: 0.68rem;
  line-height: 1.5;
}
.demo-chat-bubble.bot {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
}
.demo-chat-bubble.user {
  background: #2563eb;
  color: #fff;
}
.demo-chat-input {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.65rem;
  color: #94a3b8;
}
.demo-chat-input span { flex: 1; }
.demo-chat-send {
  width: 24px; height: 24px;
  background: #2563eb;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 0.7rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .ts-demo { min-height: 250px; }
  .demo-pipeline-body { flex-wrap: wrap; gap: 0.5rem; }
  .demo-pipe-arrow { width: 20px; }
  .demo-charts-row { grid-template-columns: 1fr; }
  .demo-site-hero { grid-template-columns: 1fr; }
}


/* ============================================================
   3D ROTATING SERVICE CAROUSEL — Hero Section
   Add this to the BOTTOM of features.css
   ============================================================ */

/* Container */
.hero-3d-carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* Glow behind card */
.h3d-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, rgba(30,58,95,0.08) 50%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: h3dGlowShift 6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes h3dGlowShift {
  0%   { background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%); transform: translate(-50%, -50%) scale(1); }
  50%  { background: radial-gradient(circle, rgba(30,58,95,0.25) 0%, transparent 70%); transform: translate(-50%, -50%) scale(1.1); }
  100% { background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%); transform: translate(-50%, -50%) scale(1); }
}

/* 3D Perspective Wrapper */
.h3d-card-wrapper {
  perspective: 1200px;
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

/* The Flipping Card */
.h3d-card {
  position: relative;
  width: 100%;
  min-height: 340px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.h3d-card.flipped {
  transform: rotateY(180deg);
}

/* Card Faces (shared) */
.h3d-face {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  min-height: 340px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg, 16px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border, #e2e8f0);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.08),
    0 0 0 1px rgba(37,99,235,0.05),
    inset 0 1px 0 rgba(255,255,255,0.8);
  overflow: hidden;
}

/* Gradient top bar */
.h3d-face::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent, #2563eb), var(--primary, #1e3a5f), var(--accent-light, #3b82f6));
  border-radius: var(--radius-lg, 16px) var(--radius-lg, 16px) 0 0;
}

/* Front face */
.h3d-front {
  transform: rotateY(0deg);
}

/* Back face */
.h3d-back {
  transform: rotateY(180deg);
}

/* Icon */
.h3d-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-glow, rgba(37,99,235,0.15));
  border: 1px solid rgba(37,99,235,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent, #2563eb);
  margin-bottom: 1.25rem;
  position: relative;
  animation: h3dIconPulse 3s ease-in-out infinite;
}
@keyframes h3dIconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.15); }
  50%      { box-shadow: 0 0 0 10px rgba(37,99,235,0); }
}

/* Badge */
.h3d-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent, #2563eb);
  margin-bottom: 0.5rem;
}

/* Title */
.h3d-title {
  font-family: var(--font-primary, 'Space Grotesk', sans-serif);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text, #0f172a);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

/* Description */
.h3d-desc {
  font-size: 0.88rem;
  color: var(--text2, #475569);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Tags */
.h3d-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.h3d-tags span {
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--accent-glow, rgba(37,99,235,0.08));
  color: var(--accent, #2563eb);
  border: 1px solid rgba(37,99,235,0.15);
  transition: 0.3s ease;
}
.h3d-tags span:hover {
  background: var(--accent, #2563eb);
  color: #fff;
}

/* Navigation */
.h3d-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1;
}
.h3d-dots {
  display: flex;
  gap: 0.4rem;
}
.h3d-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border, #e2e8f0);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.h3d-dot:hover {
  border-color: var(--accent, #2563eb);
}
.h3d-dot.active {
  width: 12px;
  height: 12px;
  background: var(--accent, #2563eb);
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 10px rgba(37,99,235,0.4);
}
.h3d-counter {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  font-family: var(--font-primary, 'Space Grotesk', sans-serif);
  letter-spacing: 1px;
}
.h3d-counter span {
  color: var(--accent, #2563eb);
  font-weight: 800;
}

/* Hover tilt effect */
.h3d-card-wrapper:hover .h3d-card:not(.flipping) {
  transform: rotateX(2deg) rotateY(-3deg);
}
.h3d-card-wrapper:hover .h3d-card.flipped:not(.flipping) {
  transform: rotateY(180deg) rotateX(2deg) rotateY(-3deg);
}

/* Flipping state — disable hover */
.h3d-card.flipping {
  pointer-events: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .h3d-card-wrapper {
    max-width: 360px;
  }
  .h3d-face {
    min-height: 320px;
  }
  .h3d-card {
    min-height: 320px;
  }
}
@media (max-width: 768px) {
  .hero-3d-carousel {
    margin-top: 1rem;
  }
  .h3d-card-wrapper {
    max-width: 100%;
  }
  .h3d-face {
    min-height: 300px;
    padding: 1.5rem;
  }
  .h3d-card {
    min-height: 300px;
  }
  .h3d-glow {
    width: 250px;
    height: 250px;
  }
  .h3d-title {
    font-size: 1.15rem;
  }
}
@media (max-width: 480px) {
  .h3d-face {
    min-height: 280px;
    padding: 1.25rem;
  }
  .h3d-card {
    min-height: 280px;
  }
}



/* ============================================================
   NEW SECTIONS — FAQ, Pricing Calculator, ROI Calculator
   Add to BOTTOM of features.css
   ============================================================ */

/* ============================================================
   1. FAQ ACCORDION
   ============================================================ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition, 0.3s ease);
}
.faq-item:hover {
  border-color: rgba(37,99,235,0.2);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
}
.faq-item.active {
  border-color: rgba(37,99,235,0.3);
  box-shadow: 0 4px 20px rgba(37,99,235,0.08);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border: none;
  background: none;
  font-family: var(--font-primary, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text, #0f172a);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: var(--transition, 0.3s ease);
}
.faq-question:hover { color: var(--accent, #2563eb); }
.faq-item.active .faq-question { color: var(--accent, #2563eb); }
.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-muted, #94a3b8);
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent, #2563eb);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}
.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 1.5rem;
}
.faq-answer p {
  font-size: 0.9rem;
  color: var(--text2, #475569);
  line-height: 1.8;
}
.faq-answer a {
  color: var(--accent, #2563eb);
  font-weight: 600;
  transition: var(--transition);
}
.faq-answer a:hover { text-decoration: underline; }

/* ============================================================
   2. PRICING CALCULATOR
   ============================================================ */
.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.calc-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.calc-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.calc-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #0f172a);
}
.calc-select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg-alt, #f8fafc);
  color: var(--text, #0f172a);
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}
.calc-select:focus {
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 3px var(--accent-glow, rgba(37,99,235,0.15));
}

/* Shared slider styles */
.calc-slider,
.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border, #e2e8f0);
  border-radius: 3px;
  outline: none;
  transition: 0.2s;
}
.calc-slider::-webkit-slider-thumb,
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent, #2563eb);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
  transition: 0.2s;
}
.calc-slider::-webkit-slider-thumb:hover,
.roi-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
}
.calc-slider::-moz-range-thumb,
.roi-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent, #2563eb);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.calc-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 0.15rem;
}

/* Checkboxes */
.calc-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.calc-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--bg-alt, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 12px);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  color: var(--text2, #475569);
}
.calc-check:hover {
  border-color: var(--accent, #2563eb);
}
.calc-check:has(input:checked) {
  border-color: var(--accent, #2563eb);
  background: var(--accent-glow, rgba(37,99,235,0.08));
  color: var(--text, #0f172a);
}
.calc-check input[type="checkbox"] {
  accent-color: var(--accent, #2563eb);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.calc-check-price {
  margin-left: auto;
  font-weight: 700;
  color: var(--accent, #2563eb);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* Result Card */
.calc-result-card,
.roi-result-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 2rem;
  box-shadow: var(--shadow-lg, 0 10px 40px rgba(0,0,0,0.1));
  position: sticky;
  top: calc(var(--nav-height, 72px) + 2rem);
  overflow: hidden;
}
.calc-result-card::before,
.roi-result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent, #2563eb), var(--primary, #1e3a5f), var(--accent-light, #3b82f6));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.calc-result-header,
.roi-result-header {
  font-family: var(--font-primary, 'Space Grotesk', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent, #2563eb);
  margin-bottom: 1.5rem;
}
.calc-result-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text2, #475569);
}
.calc-result-row span:last-child {
  font-weight: 600;
  color: var(--text, #0f172a);
}
.calc-result-divider,
.roi-result-divider {
  height: 1px;
  background: var(--border, #e2e8f0);
  margin: 0.75rem 0;
}
.calc-result-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}
.calc-result-total span:first-child {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text, #0f172a);
}
.calc-result-total span:last-child {
  font-family: var(--font-primary, 'Space Grotesk', sans-serif);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent, #2563eb);
}
.calc-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.6;
  margin-top: 1rem;
}
.calc-cta {
  margin-top: 1.25rem;
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ============================================================
   3. ROI CALCULATOR
   ============================================================ */
.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.roi-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.roi-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.roi-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text, #0f172a);
}
.roi-slider-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.roi-value {
  min-width: 75px;
  text-align: right;
  font-family: var(--font-primary, 'Space Grotesk', sans-serif);
  font-weight: 700;
  color: var(--accent, #2563eb);
  font-size: 1rem;
}

/* ROI Result Stats */
.roi-stat-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius, 12px);
  margin-bottom: 0.5rem;
}
.roi-stat-bad {
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.12);
}
.roi-stat-good {
  background: rgba(16,185,129,0.05);
  border: 1px solid rgba(16,185,129,0.12);
}
.roi-stat-savings {
  background: var(--accent-glow, rgba(37,99,235,0.08));
  border: 1px solid rgba(37,99,235,0.15);
}
.roi-stat-icon { font-size: 1.5rem; flex-shrink: 0; }
.roi-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.roi-stat-num {
  font-family: var(--font-primary, 'Space Grotesk', sans-serif);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text, #0f172a);
}
.roi-stat-bad .roi-stat-num { color: var(--danger, #ef4444); }
.roi-stat-good .roi-stat-num { color: var(--success, #10b981); }
.roi-highlight { color: var(--accent, #2563eb) !important; }

/* Big annual savings */
.roi-big-number {
  text-align: center;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--accent, #2563eb), var(--primary, #1e3a5f));
  border-radius: var(--radius, 12px);
  margin: 0.75rem 0;
}
.roi-big-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}
.roi-big-value {
  font-family: var(--font-primary, 'Space Grotesk', sans-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}
.roi-payback {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text2, #475569);
  margin: 0.75rem 0 1rem;
}
.roi-payback strong {
  color: var(--accent, #2563eb);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .calc-grid { grid-template-columns: 1fr; }
  .roi-grid { grid-template-columns: 1fr; }
  .calc-result-card,
  .roi-result-card { position: static; }
  .faq-question { font-size: 0.92rem; padding: 1rem 1.25rem; }
  .faq-answer { padding: 0 1.25rem; }
}
@media (max-width: 480px) {
  .roi-big-value { font-size: 1.8rem; }
  .calc-result-total span:last-child { font-size: 1.3rem; }
  .calc-check { font-size: 0.78rem; padding: 0.6rem 0.75rem; }
}
