/* ============================
   DESIGN SYSTEM — DropShipping Hub
   ============================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary:    #080b14;
  --bg-secondary:  #0d1220;
  --bg-card:       #111827;
  --bg-card-hover: #161f30;
  --border:        rgba(255,255,255,0.07);
  --border-hover:  rgba(255,255,255,0.15);

  --accent-purple: #8b5cf6;
  --accent-blue:   #3b82f6;
  --accent-cyan:   #06b6d4;
  --accent-green:  #10b981;
  --accent-pink:   #ec4899;
  --accent-amber:  #f59e0b;

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(139,92,246,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================
   HEADER
   ============================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(8,11,20,0.8);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}
.logo-icon { font-size: 1.3rem; }
.logo-accent { color: var(--accent-purple); }

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--accent-green);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 50% 0%, rgba(139,92,246,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 80% 60%, rgba(59,130,246,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-label {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  color: #a78bfa;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 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: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  box-shadow: var(--shadow-card);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 28px;
}
.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ============================
   ÉQUATION
   ============================ */
.equation-section {
  padding: 0 0 80px;
}
.equation-card {
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(59,130,246,0.08));
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-xl);
  padding: 36px 48px;
  text-align: center;
}
.equation-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-purple);
  margin-bottom: 20px;
}
.equation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 1rem;
  font-weight: 700;
}
.eq-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-hover);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  letter-spacing: 0.05em;
}
.eq-op {
  color: var(--text-muted);
  font-size: 1.2rem;
}
.eq-result {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* ============================
   SECTIONS
   ============================ */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-secondary); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ============================
   WORKFLOWS GRID
   ============================ */
.workflows-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.wf-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.wf-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
  opacity: 0;
  transition: opacity 0.3s;
}
.wf-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.wf-card:hover::before { opacity: 1; }

.wf-priority {
  border-color: rgba(139,92,246,0.3);
  background: linear-gradient(135deg, rgba(139,92,246,0.05), var(--bg-card));
}

.wf-full { grid-column: span 3; }

.wf-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(220,38,38,0.15);
  color: #f87171;
  border: 1px solid rgba(220,38,38,0.25);
  margin-bottom: 16px;
}
.wf-badge-2 { background: rgba(234,88,12,0.15); color: #fb923c; border-color: rgba(234,88,12,0.25); }
.wf-badge-3 { background: rgba(202,138,4,0.15); color: #fbbf24; border-color: rgba(202,138,4,0.25); }
.wf-badge-5 { background: rgba(59,130,246,0.15); color: #60a5fa; border-color: rgba(59,130,246,0.25); }
.wf-badge-7 { background: rgba(100,116,139,0.15); color: #94a3b8; border-color: rgba(100,116,139,0.25); }

.wf-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.wf-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}
.wf-lever {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lever-ops   { background: rgba(249,115,22,0.15); color: #fb923c; }
.lever-ltv   { background: rgba(16,185,129,0.15); color: #34d399; }
.lever-aov   { background: rgba(245,158,11,0.15); color: #fcd34d; }
.lever-conv  { background: rgba(59,130,246,0.15); color: #60a5fa; }
.lever-sup   { background: rgba(168,85,247,0.15); color: #c084fc; }
.lever-traf  { background: rgba(236,72,153,0.15); color: #f472b6; }

.wf-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.wf-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.wf-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.trigger-icon { font-size: 0.9rem; }
.wf-trigger code {
  background: rgba(139,92,246,0.15);
  color: #a78bfa;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.78rem;
}

.wf-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.node-tag {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
}

.wf-automation {
  display: flex;
  align-items: center;
  gap: 12px;
}
.automation-bar {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.automation-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
  border-radius: 999px;
  transition: width 1s ease;
}
.automation-pct {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 600;
}

/* ============================
   TEAM
   ============================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.team-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}

.team-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.team-role {
  font-size: 0.78rem;
  color: var(--accent-purple);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.team-workflows {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}
.wf-pill {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(139,92,246,0.15);
  color: #a78bfa;
  border: 1px solid rgba(139,92,246,0.25);
  font-weight: 600;
}
.content-pill { background: rgba(6,182,212,0.15); color: #22d3ee; border-color: rgba(6,182,212,0.25); }
.strategy-pill { background: rgba(16,185,129,0.15); color: #34d399; border-color: rgba(16,185,129,0.25); }

.team-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================
   KPIs
   ============================ */
.kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.kpi-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}
.kpi-highlight {
  border-color: rgba(139,92,246,0.4);
  background: linear-gradient(135deg, rgba(139,92,246,0.08), var(--bg-card));
}

.kpi-icon { font-size: 1.6rem; margin-bottom: 12px; }
.kpi-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.kpi-label {
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 6px;
}
.kpi-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================
   TECH STACK
   ============================ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stack-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: border-color 0.3s, background 0.3s;
}
.stack-item:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.05);
}
.stack-logo { font-size: 2rem; margin-bottom: 10px; }
.stack-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.stack-desc { font-size: 0.75rem; color: var(--text-muted); }

/* ============================
   GITHUB STEPS
   ============================ */
.github-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.gh-step {
  display: flex;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.3s;
}
.gh-step:hover { border-color: var(--border-hover); }

.gh-step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: white;
}

.gh-step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.gh-step-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.6;
}

.gh-cmd {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: monospace;
  font-size: 0.8rem;
  color: #a78bfa;
  line-height: 1.8;
  overflow-x: auto;
}
.gh-cmd code { display: block; }

.gh-tree {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.gh-tree pre {
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.8;
  white-space: pre;
}

.gh-roles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gh-role {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 8px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-purple);
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.footer-info {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .workflows-grid { grid-template-columns: repeat(2, 1fr); }
  .wf-full { grid-column: span 2; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .kpis-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .workflows-grid { grid-template-columns: 1fr; }
  .wf-full { grid-column: span 1; }
  .team-grid { grid-template-columns: 1fr; }
  .kpis-grid { grid-template-columns: 1fr 1fr; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }
  .hero-stat-divider { width: 100%; height: 1px; }
  .equation { font-size: 0.85rem; gap: 8px; }
}
