/* ===================================================
   FTP Transfer — Website Styles
   =================================================== */

:root {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-light: #dbeafe;
  --green: #16a34a;
  --green-light: #dcfce7;
  --red: #dc2626;
  --orange: #d97706;
  --purple: #7c3aed;
  --teal: #0d9488;
  --surface: #f0f2f5;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --text-secondary: #6b7280;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* clip (not hidden) prevents horizontal scroll without breaking position: sticky */
  overflow-x: clip;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100vw;
}

/* ===== TYPOGRAPHY ===== */
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }


/* ===== NAVBAR ===== */
#mainNav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  z-index: 1030;
  transition: box-shadow 0.2s;
}
#mainNav.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}
.footer .brand-logo { height: 28px; }
.brand-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem;
}
.brand-icon.small { width: 28px; height: 28px; font-size: 0.8rem; }
.brand-name {
  font-size: 1.2rem; font-weight: 800;
  color: var(--text); letter-spacing: -0.5px;
}
.nav-link {
  font-weight: 500; color: var(--text-secondary) !important;
  font-size: 0.9rem; padding: 0.4rem 0.75rem !important;
  border-radius: 6px; transition: all 0.15s;
}
.nav-link:hover { color: var(--primary) !important; background: var(--primary-light); }

/* ===== HERO ===== */
.hero-section {
  background: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, #e5e7eb 1px, transparent 1px),
    linear-gradient(to bottom, #e5e7eb 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
}
.hero-grid-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255,255,255,0.0) 0%, rgba(255,255,255,1) 100%);
}
.min-vh-hero { min-height: 80vh; padding: 2rem 0; }
.badge-pill {
  display: inline-flex; align-items: center;
  background: var(--green-light); color: var(--green);
  border: 1px solid #bbf7d0;
  padding: 0.35rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -1.5px; color: var(--text);
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 480px; line-height: 1.7;
}
.hero-cta {
  font-size: 1rem; font-weight: 600;
  box-shadow: 0 4px 20px rgba(29,78,216,0.35);
  transition: all 0.2s;
}
.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(29,78,216,0.4);
}
.trust-chip {
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-secondary);
}

/* ===== APP PREVIEW ===== */
.hero-app-preview {
  perspective: 1200px;
  overflow: hidden;
  max-width: 100%;
}
.app-window {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.14), 0 0 0 1px var(--border);
  overflow: hidden;
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.app-window:hover { transform: rotateY(0deg) rotateX(0deg); }
.app-titlebar {
  background: #f0f0f0;
  border-bottom: 1px solid #d0d0d0;
  padding: 0 0.75rem;
  height: 32px;
  display: flex; align-items: center; gap: 0.5rem;
}
.titlebar-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--text-secondary);
}
.titlebar-icon.dark { color: #64748b; }
.win-controls {
  display: flex; align-items: center; gap: 0;
}
.win-ctrl {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 100%;
  font-size: 0.8rem; cursor: pointer;
  color: var(--text-secondary);
  transition: background 0.12s, color 0.12s;
  padding: 0 8px;
}
.win-ctrl:hover { background: #e5e7eb; color: var(--text); }
.win-ctrl.close:hover { background: #c42b1c; color: #fff; }
.win-ctrl.dark { color: #64748b; }
.win-ctrl.dark:hover { background: #334155; color: #fff; }
.app-title-text { font-size: 0.75rem; color: var(--text-secondary); margin-left: 0.5rem; }
.app-body { padding: 0.75rem; background: var(--surface); }
.server-card {
  background: #fff; border-radius: 8px;
  border: 1px solid var(--border); padding: 0.75rem;
}
.server-header {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; margin-bottom: 0.5rem;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444;
}
.status-dot.connected { background: #22c55e; }
.server-field-row {
  display: flex; gap: 0.5rem; align-items: center;
  font-size: 0.72rem; margin-bottom: 0.25rem;
}
.field-label { color: var(--text-secondary); font-weight: 600; min-width: 32px; }
.field-val { color: var(--text); font-family: var(--mono); font-size: 0.68rem; }
.file-list { display: flex; flex-direction: column; gap: 1px; }
.file-item {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; padding: 0.2rem 0.3rem;
  border-radius: 4px; color: var(--text);
}
.file-item:hover { background: var(--primary-light); }
.file-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.file-item.folder { color: #d97706; }
.file-item .bi-folder-fill { color: #f59e0b; }
.file-item .bi-file-zip-fill { color: var(--text-secondary); }
.file-item .bi-file-image-fill { color: #22c55e; }
.file-item .bi-filetype-js { color: #eab308; }
.file-item .bi-filetype-html { color: #e84118; }
.file-item .bi-filetype-css { color: #2196f3; }
.file-item .bi-filetype-php { color: #7e57c2; }
.transfer-arrow-row {
  text-align: center; padding: 0.5rem 0;
}
.xfer-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--primary); color: white;
  border-radius: 50%; font-size: 1rem;
  cursor: pointer; box-shadow: 0 2px 8px rgba(29,78,216,0.4);
}
.queue-preview {
  background: #fff; border-radius: 8px;
  border: 1px solid var(--border); padding: 0.6rem;
}
.queue-header {
  font-size: 0.75rem; font-weight: 600;
  display: flex; align-items: center;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--border);
  margin-bottom: 0.4rem;
}
.queue-row {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; padding: 0.2rem 0;
}
.queue-row.active { color: var(--primary); font-weight: 600; }
.mini-progress {
  flex: 1; height: 4px; background: #e5e7eb;
  border-radius: 2px; overflow: hidden;
}
.mini-bar { height: 100%; background: var(--primary); border-radius: 2px; }
.xfer-speed { font-size: 0.68rem; color: var(--primary); font-weight: 600; white-space: nowrap; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--primary);
  padding: 2.5rem 0;
}
.stat-number {
  font-size: 2.5rem; font-weight: 900;
  color: #fff; letter-spacing: -1px;
}
.stat-label {
  font-size: 0.85rem; color: rgba(255,255,255,0.75);
  font-weight: 500; margin-top: 0.25rem;
}

/* ===== SECTIONS ===== */
.section-pad { padding: 5rem 0; }
.section-label {
  display: inline-block;
  background: var(--primary-light); color: var(--primary);
  font-size: 0.75rem; font-weight: 700;
  padding: 0.35rem 1rem; border-radius: 100px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.section-label-dark {
  display: inline-block;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8);
  font-size: 0.75rem; font-weight: 700;
  padding: 0.35rem 1rem; border-radius: 100px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.5px; line-height: 1.2;
}
.section-sub {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto;
}

/* ===== PROBLEM / SOLUTION ===== */
.problem-list, .solution-list { display: flex; flex-direction: column; gap: 1.25rem; }
.problem-item, .solution-item {
  display: flex; gap: 1rem; align-items: flex-start;
}
.problem-icon, .solution-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.problem-icon { background: #fff1f2; color: var(--red); }
.solution-icon { background: #f0fdf4; color: var(--green); }
.problem-item strong, .solution-item strong {
  font-weight: 700; font-size: 0.95rem; display: block; margin-bottom: 0.25rem;
}
.solution-item h3 {
  font-weight: 700; font-size: 0.95rem; display: block; margin-bottom: 0.25rem;
}
.problem-item p, .solution-item p {
  font-size: 0.88rem; color: var(--text-secondary); margin: 0;
}
.arrow-divider { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

/* ===== STEPS ===== */
.step-card {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--border); padding: 2rem;
  height: 100%; transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.step-number {
  font-size: 0.75rem; font-weight: 800;
  color: var(--primary); letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.step-icon {
  width: 52px; height: 52px; background: var(--primary-light);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--primary); margin-bottom: 1.25rem;
}
.step-card h3 { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.75rem; }
.step-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.step-detail { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.detail-tag {
  background: var(--surface); color: var(--text-secondary); 
  font-size: 0.72rem; font-weight: 500;
  padding: 0.2rem 0.5rem; border-radius: 4px;
  border: 1px solid var(--border);
}

/* ===== DIAGRAM ===== */
.diagram-card {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--border); padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.diagram-node {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem 1rem;
  font-size: 0.85rem; font-weight: 600;
}
.diagram-node i { font-size: 2rem; color: var(--text-secondary); }
.diagram-node.highlight { background: var(--primary-light); border-color: var(--primary); }
.diagram-node.highlight i { color: var(--primary); }
.node-sub { font-size: 0.72rem; color: var(--text-secondary); font-weight: 400; margin-top: -0.25rem; }
.diagram-arrows { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.d-arrow { color: var(--primary); font-size: 1rem; }
.d-arrow.small-a { font-size: 0.8rem; color: var(--text-secondary); }
.mode-badge {
  background: var(--primary-light); color: var(--primary);
  font-size: 0.8rem; font-weight: 600;
  padding: 0.35rem 0.75rem; border-radius: 100px;
  border: 1px solid #bfdbfe;
  display: inline-flex; align-items: center;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--border); padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.feature-icon-wrap {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
}
.feature-icon-wrap.blue { background: #eff6ff; color: var(--primary); }
.feature-icon-wrap.green { background: #f0fdf4; color: var(--green); }
.feature-icon-wrap.purple { background: #f5f3ff; color: var(--purple); }
.feature-icon-wrap.orange { background: #fffbeb; color: var(--orange); }
.feature-icon-wrap.teal { background: #f0fdfa; color: var(--teal); }
.feature-icon-wrap.red { background: #fff1f2; color: var(--red); }
.feature-card h3 { font-weight: 700; margin-bottom: 0.75rem; font-size: 1.25rem; }
.feature-card h5 { font-weight: 700; margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.feature-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.feature-list li {
  font-size: 0.85rem; color: var(--text-secondary);
  display: flex; align-items: center; gap: 0.5rem;
}
.feature-list li::before {
  content: '✓'; color: var(--green);
  font-weight: 700; font-size: 0.8rem;
}

/* ===== ACTIVITY LOG ===== */
.log-features { display: flex; flex-direction: column; gap: 0.75rem; }
.log-feature-item { display: flex; align-items: center; gap: 0.75rem; }
.log-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  padding: 0.2rem 0.5rem; border-radius: 4px; min-width: 44px;
  text-align: center; flex-shrink: 0; font-family: var(--mono);
}
.log-badge.info { background: rgba(107,114,128,0.2); color: #9ca3af; }
.log-badge.ok { background: rgba(22,163,74,0.2); color: #4ade80; }
.log-badge.xfer { background: rgba(29,78,216,0.25); color: #60a5fa; }
.log-badge.warn { background: rgba(217,119,6,0.2); color: #fbbf24; }
.log-badge.err { background: rgba(220,38,38,0.2); color: #f87171; }

.log-terminal {
  background: #0f172a; border-radius: 12px;
  border: 1px solid #1e293b;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
  overflow: hidden;
  max-width: 100%;
}
.terminal-header {
  background: #1e293b; padding: 0;
  height: 32px;
  display: flex; align-items: center; padding-left: 0.75rem;
  border-bottom: 1px solid #334155;
}
.terminal-body {
  padding: 1rem; font-family: var(--mono); font-size: 0.78rem;
  line-height: 1.8; max-height: 420px; overflow-y: auto;
  overflow-x: hidden; word-break: break-all;
}
.terminal-body::-webkit-scrollbar { width: 4px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb { background: #334155; border-radius: 2px; }
.log-line { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; }
.log-time { color: #475569; font-size: 0.72rem; }
.log-info { color: #6b7280; font-weight: 600; }
.log-ok { color: #16a34a; font-weight: 600; }
.log-xfer { color: #1d4ed8; font-weight: 600; }
.log-warn { color: #d97706; font-weight: 600; }
.log-err { color: #dc2626; font-weight: 600; }
.log-msg-info { color: #94a3b8; }
.log-msg-ok { color: #4ade80; }
.log-msg-xfer { color: #93c5fd; }
.log-msg-warn { color: #fbbf24; }
.log-msg-err { color: #f87171; }
.progress-bar-text { color: #60a5fa; }

/* ===== QUEUE DEMO ===== */
.queue-demo-card {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  max-width: 100%;
}
.queue-demo-tabs {
  display: flex; align-items: center;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
  background: var(--surface); gap: 0.25rem;
}
.q-tab {
  background: none; border: none; padding: 0.4rem 0.9rem;
  font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; border-radius: 6px; transition: all 0.15s;
  display: flex; align-items: center; gap: 0.4rem;
}
.q-tab.active { background: var(--primary); color: white; }
.q-tab:hover:not(.active) { background: var(--border); }
.q-count {
  font-size: 0.72rem; font-weight: 700;
  background: rgba(0,0,0,0.1); padding: 0.1rem 0.4rem;
  border-radius: 100px;
}
.q-tab.active .q-count { background: rgba(255,255,255,0.25); }
.q-count.success { background: #dcfce7; color: var(--green); }
.q-count.failed { background: #fee2e2; color: var(--red); }
.queue-demo-table { padding: 0; overflow-x: auto; }
.q-table-head {
  display: flex; align-items: center;
  padding: 0.6rem 1rem; border-bottom: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 700; color: var(--text-secondary);
  background: #fafafa;
}
.q-table-row {
  display: flex; align-items: center;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
  font-size: 0.85rem; transition: background 0.15s;
}
.q-table-row:last-child { border-bottom: none; }
.q-table-row:hover { background: #f9fafb; }
.q-table-row.active-row { background: #eff6ff; }
.q-table-row.error-row { background: #fff5f5; }
.q-col-icon { width: 24px; flex-shrink: 0; }
.q-col-name { flex: 1; font-weight: 500; padding-right: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-col-size { width: 80px; flex-shrink: 0; color: var(--text-secondary); }
.q-col-prog { width: 140px; flex-shrink: 0; display: flex; align-items: center; gap: 0.5rem; }
.q-col-speed { width: 80px; flex-shrink: 0; font-weight: 600; }
.q-col-time { width: 60px; flex-shrink: 0; color: var(--text-secondary); }
.q-col-err { flex: 1; }
.q-prog-bar { flex: 1; height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }
.q-prog-fill { height: 100%; background: var(--primary); border-radius: 3px; }
.q-prog-pct { font-size: 0.78rem; font-weight: 600; color: var(--primary); white-space: nowrap; }

/* ===== MINI FEATURES ===== */
.mini-feature-card {
  background: #fff; border-radius: 12px;
  border: 1px solid var(--border); padding: 1.5rem;
  text-align: center; height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.mini-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}
.feature-mini-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.mini-feature-card h6 { font-weight: 700; margin-bottom: 0.5rem; }

/* ===== TRUST CARDS ===== */
.trust-card {
  background: var(--surface); border-radius: 16px;
  border: 1px solid var(--border); padding: 2rem; height: 100%;
}
.trust-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
}
.trust-icon.experience { background: #eff6ff; color: var(--primary); }
.trust-icon.expertise { background: #f5f3ff; color: var(--purple); }
.trust-icon.authority { background: #f0fdf4; color: var(--green); }
.trust-icon.trustworthy { background: #fffbeb; color: var(--orange); }
.trust-card h5 { font-weight: 700; margin-bottom: 0.75rem; }
.trust-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.trust-evidence {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.8rem; color: var(--text-secondary);
  padding-top: 0.75rem; border-top: 1px solid var(--border);
}

/* ===== DONATION MODEL ===== */
.donation-model-row {
  background: var(--surface); border-radius: 20px;
  border: 1px solid var(--border); padding: 3rem;
  margin-top: 3rem;
}
.donation-cta-box {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--border); padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.donation-heart {
  font-size: 2.5rem; color: #ef4444;
  animation: heartbeat 1.5s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* ===== USE CASES ===== */
.usecase-card {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--border); padding: 2rem; height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.usecase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.usecase-emoji { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1; }
.usecase-card h5 { font-weight: 700; margin-bottom: 0.75rem; }
.usecase-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.usecase-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.usecase-tags span {
  background: var(--primary-light); color: var(--primary);
  font-size: 0.75rem; font-weight: 600;
  padding: 0.2rem 0.6rem; border-radius: 4px;
}

/* ===== SPECS TABLE ===== */
.specs-table { background: #fff; border-radius: 16px; border: 1px solid var(--border); overflow: hidden; }
.specs-row {
  display: flex; align-items: flex-start; gap: 1.5rem;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.specs-row:last-child { border-bottom: none; }
.specs-row:hover { background: var(--surface); }
.specs-label {
  min-width: 160px; font-weight: 700; font-size: 0.9rem;
  color: var(--text); flex-shrink: 0;
  display: flex; align-items: center;
}
.specs-value { font-size: 0.9rem; color: var(--text-secondary); }

/* ===== FAQ ===== */
.faq-accordion .faq-item {
  background: #fff; border: 1px solid var(--border) !important;
  border-radius: 12px !important; overflow: hidden; margin-bottom: 0.75rem;
}
.faq-btn {
  font-weight: 600; font-size: 0.95rem; color: var(--text);
  background: #fff; padding: 1.25rem 1.5rem;
  box-shadow: none !important;
}
.faq-btn:not(.collapsed) { color: var(--primary); }
.faq-btn::after { filter: none; }
.faq-body {
  font-size: 0.9rem; color: var(--text-secondary);
  padding: 0 1.5rem 1.25rem;
  line-height: 1.7;
}
.faq-body code {
  background: var(--surface); color: var(--primary);
  padding: 0.15rem 0.4rem; border-radius: 4px;
  font-size: 0.85rem;
}

/* ===== DOWNLOAD SECTION ===== */
.download-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1e3a8a 50%, #312e81 100%);
  position: relative; overflow: hidden;
  max-width: 100%;
}
.download-section::before {
  content: '';
  position: absolute; top: -50%; left: -10%;
  width: 120%; height: 200%;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.download-platform-btn {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: white; text-decoration: none;
  padding: 1.25rem 1.5rem; border-radius: 12px;
  transition: all 0.2s; width: 100%;
}
.download-platform-btn:hover {
  background: rgba(255,255,255,0.2); color: white;
  transform: translateY(-2px);
}
.download-main-btn {
  padding: 1.5rem 2rem;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.download-main-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
.download-arrow { font-size: 1.4rem; opacity: 0.8; }
.platform-icon { font-size: 2rem; flex-shrink: 0; }
.platform-label { font-weight: 700; font-size: 1rem; }
.platform-sub { font-size: 0.8rem; opacity: 0.7; margin-top: 0.15rem; }

/* ===== PRICING ===== */
.pricing-card {
  background: #fff; border-radius: 20px;
  border: 2px solid var(--primary);
  box-shadow: 0 16px 56px rgba(29,78,216,0.15);
  overflow: hidden;
}
.pricing-card-header {
  background: linear-gradient(135deg, #1e3a8a 0%, var(--primary) 100%);
  padding: 2rem;
  text-align: center;
}
.pricing-plan-name {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 1rem;
}
.pricing-price-row {
  display: flex; align-items: baseline; justify-content: center;
  gap: 0.25rem; margin-bottom: 0.25rem;
}
.pricing-currency { font-size: 1.75rem; font-weight: 700; color: #fff; line-height: 1; }
.pricing-amount {
  font-size: 5rem; font-weight: 900; color: #fff;
  line-height: 1; letter-spacing: -3px;
}
.pricing-period { font-size: 1.1rem; color: rgba(255,255,255,0.75); font-weight: 500; }
.pricing-billed-note { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.pricing-nonrefund-note {
  margin-top: 0.6rem;
  background: rgba(251,191,36,0.15);
  border: 1px solid rgba(251,191,36,0.35);
  color: #fcd34d;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  text-align: left;
  line-height: 1.4;
}
.pricing-buy-btn {
  font-size: 1.05rem; font-weight: 700;
  background: #fff; color: var(--primary);
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: all 0.2s;
}
.pricing-buy-btn:hover {
  background: #f0f9ff; color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.pricing-guarantee {
  font-size: 0.8rem; color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center; gap: 0.25rem;
}
.pricing-card-body { padding: 2rem; }
.pricing-includes-label {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 1rem;
}
.pricing-feature-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.pricing-feature-list li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; color: var(--text);
}
.pricing-feature-list li i { font-size: 1rem; flex-shrink: 0; }

/* Pricing sidebar */
.pricing-sidebar {
  background: var(--surface); border-radius: 16px;
  border: 1px solid var(--border); padding: 2rem; height: 100%;
}
.pricing-reason {
  display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem;
}
.pricing-reason-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.pricing-reason strong { display: block; font-weight: 700; margin-bottom: 0.25rem; font-size: 0.9rem; }
.pricing-reason p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }
.pricing-compare {
  background: #fff; border-radius: 12px;
  border: 1px solid var(--border); padding: 1.25rem;
}
.compare-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 0.75rem;
}
.compare-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.compare-row:last-child { border-bottom: none; }
.compare-price { font-weight: 600; color: var(--text-secondary); }
.compare-price.highlight { color: var(--primary); }

/* Pricing mini card (in trust section) */
.pricing-mini-badge {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.3rem 0.8rem; border-radius: 100px;
}
.pricing-mini-price {
  display: flex; align-items: baseline; justify-content: center; gap: 0.25rem;
}
.price-big {
  font-size: 3rem; font-weight: 900; color: var(--primary); line-height: 1; letter-spacing: -1.5px;
}
.price-per { font-size: 1rem; color: var(--text-secondary); font-weight: 500; }
.pricing-include-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.pricing-include-list li { font-size: 0.9rem; display: flex; align-items: center; }

/* ===== FOOTER ===== */
.footer {
  background: #0f172a; padding: 4rem 0 2rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.9rem; transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-social {
  color: var(--text-secondary); font-size: 1.2rem;
  text-decoration: none; transition: color 0.15s;
}
.footer-social:hover { color: #fff; }

/* ===== HOW IT WORKS PAGE ===== */
.screenshot-img {
  width: 100%; height: auto; display: block;
  border-radius: 16px; border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.hiw-step + .hiw-step { margin-top: 4rem; }

/* ===== DOCUMENTATION PAGE ===== */
.docs-sidebar {
  position: sticky; top: 90px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem;
}
.docs-sidebar h6 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.docs-nav { list-style: none; padding: 0; margin: 0; }
.docs-nav li { margin-bottom: 0.25rem; }
.docs-nav a {
  display: block; padding: 0.4rem 0.75rem;
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-secondary); text-decoration: none;
  border-radius: 6px; transition: all 0.15s;
}
.docs-nav a:hover { color: var(--primary); background: var(--primary-light); }
.docs-section { scroll-margin-top: 90px; }
.docs-section + .docs-section { margin-top: 3.5rem; }
.docs-section h2 {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.docs-section h5 { font-weight: 700; margin-top: 1.75rem; margin-bottom: 0.75rem; }
.docs-section p, .docs-section li { color: var(--text-secondary); font-size: 0.95rem; }
.docs-section code {
  background: var(--surface); color: var(--primary-dark);
  padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.85em;
}
.docs-note {
  background: var(--primary-light); border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0; padding: 0.9rem 1.1rem;
  font-size: 0.9rem; color: var(--text);
}

/* ===== UTILITIES (former inline styles) ===== */
.bg-soft { background: #f8fafc; }
.bg-navy { background: #0f172a; }
.pb-tight { padding-bottom: 3rem; }
.pt-tight { padding-top: 3rem; }
.w-68 { width: 68%; }
.w-43 { width: 43%; }
.fs-icon-xl { font-size: 3rem; }
.fs-icon-md { font-size: 1.4rem; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===================================================
   RESPONSIVE — Mobile-First
   =================================================== */

/* ── Tablet / large-phone (≤ 991px) ── */
@media (max-width: 991px) {
  /* Hero */
  .hero-section { padding: 3.5rem 0 2.5rem; }
  .min-vh-hero { min-height: unset; padding: 1.5rem 0; }
  .app-window { transform: none; margin-top: 2rem; }

  /* Diagram: let nodes wrap */
  .diagram-card .row { flex-wrap: wrap; justify-content: center; }
  .diagram-card .col { flex: 0 0 auto; width: auto; }

  /* Specs */
  .specs-label { min-width: 120px; }

  /* Trust pricing row */
  .donation-model-row { padding: 2rem; }
}

/* ── Mobile (≤ 767px) ── */
@media (max-width: 767px) {
  /* Global spacing */
  .section-pad { padding: 3rem 0; }

  /* Navbar — clean up collapsed menu */
  #mainNav .navbar-collapse {
    background: #fff;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding: 1rem 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  #mainNav .navbar-nav { padding: 0 1rem; gap: 0 !important; }
  #mainNav .nav-link { padding: 0.65rem 0.75rem !important; border-radius: 8px; }
  #mainNav .nav-item.ms-2 { margin: 0.75rem 0.75rem 0 !important; }
  #mainNav .nav-item.ms-2 .btn { width: 100%; justify-content: center; }

  /* Hero */
  .hero-title { font-size: 2rem; letter-spacing: -0.5px; }
  .hero-subtitle { font-size: 1rem; }
  .badge-pill { font-size: 0.75rem; }
  .hero-trust-row { gap: 0.6rem !important; }
  .trust-chip { font-size: 0.78rem; }

  /* Hero CTA buttons — full-width stack */
  .hero-section .d-flex.flex-wrap.gap-3 {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .hero-section .btn-lg { width: 100%; justify-content: center; text-align: center; }

  /* App preview — hide on phone to avoid clutter */
  .hero-app-preview { display: none; }

  /* Stats bar */
  .stats-bar { padding: 1.75rem 0; }
  .stat-number { font-size: 2rem; }
  .stat-label { font-size: 0.8rem; }

  /* Problem/solution arrow — rotate to point down */
  .arrow-divider { margin: 1rem 0; }
  .arrow-divider i { transform: rotate(90deg); display: inline-block; }

  /* Transfer diagram — stack vertically */
  .diagram-card .row.align-items-center { flex-direction: column; gap: 0.75rem; }
  .diagram-card .col { width: 100%; text-align: center; }
  .diagram-arrows { flex-direction: row; gap: 1rem; }
  .diagram-arrows .d-arrow { transform: rotate(90deg); }
  .diagram-node { flex-direction: row; gap: 0.75rem; padding: 0.75rem 1rem; justify-content: center; }
  .diagram-node i { font-size: 1.4rem; }

  /* Mode badges — wrap */
  .diagram-card .row.mt-3 { justify-content: flex-start !important; }
  .mode-badge { font-size: 0.72rem; }

  /* Queue table — hide less important columns */
  .q-col-size,
  .q-col-speed,
  .q-col-time { display: none !important; }
  .q-col-prog { width: 100px; }
  .q-table-row, .q-table-head { padding: 0.6rem 0.75rem; }

  /* Log terminal */
  .log-terminal { margin-top: 2rem; }
  .terminal-body { font-size: 0.7rem; max-height: 280px; }
  .log-line { flex-wrap: wrap; gap: 0.25rem; }
  .log-time { display: none; } /* hide timestamp on tiny screens */

  /* Specs */
  .specs-row { flex-direction: column; gap: 0.2rem; }
  .specs-label { min-width: unset; font-size: 0.85rem; }
  .specs-value { font-size: 0.85rem; color: var(--text-secondary); }

  /* Pricing card — reduce giant price */
  .pricing-amount { font-size: 3.5rem; letter-spacing: -2px; }
  .pricing-card-header { padding: 1.5rem; }
  .pricing-card-body { padding: 1.5rem; }

  /* Pricing sidebar compare table */
  .pricing-sidebar { margin-top: 0; }

  /* Trust section pricing mini */
  .price-big { font-size: 2.2rem; }
  .donation-model-row { padding: 1.5rem; }
  .pricing-include-list li { font-size: 0.85rem; }

  /* Download button */
  .download-main-btn { flex-direction: column; text-align: center; gap: 0.75rem; padding: 1.25rem; }
  .download-main-btn .download-arrow { display: none; }
  .download-main-btn .platform-icon { font-size: 2.5rem; }
  .download-main-btn .text-start { text-align: center !important; }

  /* Use case cards */
  .usecase-tags { gap: 0.3rem; }
  .usecase-tags span { font-size: 0.7rem; }

  /* Step / feature / trust cards */
  .step-card, .feature-card, .trust-card { padding: 1.5rem; }

  /* Footer */
  .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
  .footer { padding: 3rem 0 1.5rem; }
}

/* ── Small phone (≤ 480px) ── */
@media (max-width: 480px) {
  /* Hero */
  .hero-section { padding: 2.5rem 0 2rem; }
  .hero-title { font-size: 1.75rem; }
  .hero-subtitle { font-size: 0.92rem; }

  /* Section labels / titles */
  .section-title { font-size: 1.5rem; }
  .section-sub { font-size: 0.95rem; }

  /* Stats — 2 column grid */
  .stats-bar .col-6 { padding: 0.5rem; }
  .stat-number { font-size: 1.8rem; }

  /* Navbar brand */
  .brand-name { font-size: 1.1rem; }
  .brand-logo { height: 28px; }

  /* Cards full-width padding */
  .step-card, .feature-card, .trust-card,
  .mini-feature-card, .usecase-card { padding: 1.25rem; } 

  /* Pricing */
  .pricing-amount { font-size: 3rem; }
  .pricing-currency { font-size: 1.4rem; }
  .pricing-feature-list li { font-size: 0.82rem; }

  /* Queue tabs — allow scroll */
  .queue-demo-tabs { overflow-x: auto; flex-wrap: nowrap; gap: 0; padding: 0.5rem; }
  .q-tab { white-space: nowrap; font-size: 0.8rem; padding: 0.35rem 0.7rem; }

  /* Log */
  .log-features { gap: 0.5rem; }
  .log-feature-item { gap: 0.5rem; }

  /* Download section */
  .download-section .col-lg-9 { padding: 0 0.5rem; }

  /* Diagram nodes */
  .diagram-node { padding: 0.6rem 0.75rem; }

  /* Problem/solution items */
  .problem-item, .solution-item { gap: 0.75rem; }
  .problem-icon, .solution-icon { width: 38px; height: 38px; font-size: 1rem; }

  /* Specs table */
  .specs-table { border-radius: 12px; }
  .specs-row { padding: 0.75rem 1rem; }

  /* Footer links */
  .footer-links a { font-size: 0.85rem; }
  .footer-links li { margin-bottom: 0.35rem; }
}
