/* ========================================
   TOXI Finance Showcase — Interactive Edition
   ======================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  --bg-card-hover: #263347;
  --accent-400: #2dd4bf;
  --accent-500: #14b8a6;
  --accent-600: #0d9488;
  --accent2-400: #818cf8;
  --accent2-500: #6366f1;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #334155;
  --border-light: #475569;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --transition: 0.25s ease;
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.3);
  --shadow-card: 0 4px 16px rgba(0,0,0,0.2);
  --container-max: 1100px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent-400); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-500); }

code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-size: 0.875em;
}

img { max-width: 100%; height: auto; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 600; border: none;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 0.875rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-primary { background: var(--accent-500); color: #fff; }
.btn-primary:hover { background: var(--accent-600); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-light); }
.btn-outline:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid transparent; }
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.navbar.scrolled { border-bottom-color: var(--border-color); background: rgba(15, 23, 42, 0.95); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--text-primary); font-weight: 700; font-size: 1.1rem; }
.nav-logo:hover { color: var(--text-primary); }
.logo-img { width: 32px; height: 32px; border-radius: var(--radius-xs); object-fit: contain; }
.logo-img--sm { width: 24px; height: 24px; }
.logo-text .accent { color: var(--accent-400); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--text-primary); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all var(--transition); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(51,65,85,0.25) 1px, transparent 1px), linear-gradient(90deg, rgba(51,65,85,0.25) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(45, 212, 191, 0.1); border: 1px solid rgba(45, 212, 191, 0.2);
  color: var(--accent-400); font-size: 0.82rem; font-weight: 500;
  border-radius: 999px; margin-bottom: 24px;
}
.hero-title { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.03em; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent-400) 0%, var(--accent2-400) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { max-width: 520px; font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ===== App Mockup ===== */
.hero-visual { display: flex; justify-content: center; }
.app-mockup {
  width: 100%; max-width: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
  transition: transform 0.5s ease;
  animation: mockup-float 6s ease-in-out infinite;
}
.app-mockup:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }

@keyframes mockup-float {
  0%, 100% { transform: perspective(1000px) rotateY(-3deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(1000px) rotateY(-3deg) rotateX(2deg) translateY(-8px); }
}

.mockup-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-color);
}
.mockup-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-bar .dot.red { background: #ff5f56; }
.mockup-bar .dot.yellow { background: #ffbd2e; }
.mockup-bar .dot.green { background: #27c93f; }
.mockup-title { margin-left: 8px; font-size: 0.72rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }

.mockup-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mockup-project {
  padding: 12px; background: var(--bg-primary); border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  opacity: 0; animation: mockup-card-in 0.5s ease forwards;
}
.mockup-project:nth-child(1) { animation-delay: 0.3s; }
.mockup-project:nth-child(2) { animation-delay: 0.5s; }
.mockup-project:nth-child(3) { animation-delay: 0.7s; }

@keyframes mockup-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mockup-project-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mockup-project-name { font-size: 0.82rem; font-weight: 600; }
.status-pill {
  font-size: 0.65rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
}
.pill-collecting { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.pill-settling { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.pill-finished { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.mockup-budget { display: flex; align-items: center; gap: 10px; }
.budget-bar { flex: 1; height: 6px; background: var(--bg-tertiary); border-radius: 3px; overflow: hidden; }
.budget-fill {
  height: 100%; border-radius: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent-500), var(--accent2-500));
  transition: width 1.5s ease;
}
.budget-text { font-size: 0.72rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; white-space: nowrap; }

.mockup-team {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  background: var(--bg-primary); border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  opacity: 0; animation: mockup-card-in 0.5s ease forwards; animation-delay: 0.9s;
}
.mockup-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #fff;
  opacity: 0; animation: avatar-pop 0.3s ease forwards;
}
.av-1 { background: #f59e0b; animation-delay: 1.1s; }
.av-2 { background: #6366f1; animation-delay: 1.25s; }
.av-3 { background: #ec4899; animation-delay: 1.4s; }
.av-4 { background: #10b981; animation-delay: 1.55s; }

@keyframes avatar-pop {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

.mockup-team-label { font-size: 0.7rem; color: var(--text-muted); margin-left: 4px; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-400); margin-bottom: 12px;
}
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-subtitle { max-width: 580px; margin: 0 auto; color: var(--text-secondary); font-size: 1.02rem; }

/* ===== Payment Distribution Demo ===== */
.distro-demo {
  max-width: 800px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 32px; position: relative;
  box-shadow: var(--shadow-card);
}
.distro-controls { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.distro-pool {
  text-align: center; margin-bottom: 32px;
  padding: 24px; background: var(--bg-primary);
  border-radius: var(--radius-sm); border: 1px solid var(--border-color);
}
.pool-header { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; }
.pool-amount { font-size: 2.2rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; color: var(--accent-400); margin-bottom: 12px; }
.pool-bar { height: 12px; background: var(--bg-tertiary); border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.pool-fill {
  height: 100%; width: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent-500), var(--accent2-500));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.pool-remaining { font-size: 0.85rem; color: var(--text-muted); }
.pool-remaining strong { color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; }

.distro-tiers { display: flex; flex-direction: column; gap: 16px; }
.distro-tier {
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  overflow: hidden; transition: all 0.4s ease;
  opacity: 0.4; transform: scale(0.98);
}
.distro-tier.tier-active {
  opacity: 1; transform: scale(1);
  border-color: var(--accent-500);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.1);
}
.distro-tier.tier-done { opacity: 1; transform: scale(1); border-color: var(--border-color); }

.tier-header {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: var(--bg-primary);
}
.tier-priority {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; flex-shrink: 0;
  background: rgba(45, 212, 191, 0.1); color: var(--accent-400);
  border: 1px solid rgba(45, 212, 191, 0.2);
}
.tier-info { flex: 1; }
.tier-name { font-weight: 700; font-size: 0.95rem; display: block; }
.tier-desc { font-size: 0.78rem; color: var(--text-muted); }
.tier-total {
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
  font-size: 0.9rem; color: var(--accent-400); opacity: 0;
  transition: opacity 0.4s ease;
}
.distro-tier.tier-active .tier-total, .distro-tier.tier-done .tier-total { opacity: 1; }

.tier-members { padding: 12px 18px; }
.tier-member {
  display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 12px;
  align-items: center; padding: 8px 0;
}
.tier-member + .tier-member { border-top: 1px solid rgba(51,65,85,0.5); padding-top: 12px; }
.member-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.member-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff; flex-shrink: 0;
  background: var(--av-color, var(--accent-500));
}
.member-name { font-weight: 600; font-size: 0.88rem; white-space: nowrap; }
.member-role { font-size: 0.72rem; color: var(--text-muted); display: none; }
.member-bar-track { height: 8px; background: var(--bg-tertiary); border-radius: 4px; overflow: hidden; }
.member-bar-fill {
  height: 100%; width: 0; border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.member-amount {
  font-family: 'JetBrains Mono', monospace; font-weight: 600;
  font-size: 0.85rem; color: var(--text-primary); min-width: 55px; text-align: right;
  opacity: 0; transition: opacity 0.4s ease;
}
.distro-tier.tier-active .member-amount,
.distro-tier.tier-done .member-amount { opacity: 1; }

/* Bar colors per tier */
.distro-tier[data-tier="0"] .member-bar-fill { background: #f59e0b; }
.distro-tier[data-tier="1"] .member-bar-fill { background: #6366f1; }
.distro-tier[data-tier="2"] .member-bar-fill { background: #ec4899; }
.distro-tier[data-tier="3"] .member-bar-fill { background: #10b981; }

/* ===== Debt Netting Demo ===== */
.netting-demo {
  max-width: 700px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-card);
}
.netting-top { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.netting-controls { display: flex; gap: 10px; }
.netting-status {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6;
  padding: 14px 18px; background: var(--bg-primary);
  border-radius: var(--radius-sm); border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.netting-status.status-highlight {
  border-color: var(--accent-500);
  background: rgba(20, 184, 166, 0.06);
}
.netting-status.status-success {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.06);
}

.netting-canvas { width: 100%; }
.debt-graph { width: 100%; height: auto; }

.debt-node {
  fill: var(--bg-primary); stroke: var(--border-light); stroke-width: 2;
  transition: all 0.5s ease;
}
.node-label { fill: var(--text-primary); font-size: 15px; font-weight: 700; font-family: 'Inter', sans-serif; }

.debt-edge {
  stroke: #64748b; stroke-width: 2.5;
  marker-end: url(#arrow);
  transition: all 0.6s ease;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
}
.debt-edge.visible { stroke-dashoffset: 0; }
.debt-edge.cycle { stroke: var(--accent-400); stroke-width: 3; marker-end: url(#arrow-cycle); stroke-dashoffset: 0; animation: pulse-edge 1.2s ease-in-out infinite; }
.debt-edge.dead { stroke: #ef4444; stroke-width: 2; marker-end: url(#arrow-dead); stroke-dashoffset: 0; stroke-dasharray: 8 4; }
.debt-edge.reduced { stroke: #f59e0b; stroke-width: 3; marker-end: url(#arrow-reduced); stroke-dashoffset: 0; }

@keyframes pulse-edge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.debt-node-group.cycle-node .debt-node {
  stroke: var(--accent-400); stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.4));
}

.label-bg { fill: var(--bg-secondary); stroke: var(--border-color); stroke-width: 1; }
.debt-label-text {
  fill: var(--text-primary); font-size: 13px; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.4s ease;
}
.debt-label-text.amount-changed { fill: #f59e0b; }
.debt-label-text.amount-dead { fill: #ef4444; text-decoration: line-through; }

.debt-label-group { opacity: 0; transition: opacity 0.4s ease; }
.debt-label-group.visible { opacity: 1; }

.netting-legend {
  display: flex; gap: 20px; margin-top: 16px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--border-color);
}
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; }

/* ===== Project Lifecycle ===== */
.lifecycle-demo { max-width: 800px; margin: 0 auto; }
.lifecycle-track {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin-bottom: 40px;
}
.lifecycle-stage {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 16px; border-radius: var(--radius-sm); cursor: pointer;
  transition: all 0.3s ease; min-width: 100px;
  border: 2px solid transparent;
}
.lifecycle-stage:hover { background: rgba(255,255,255,0.03); }
.lifecycle-stage.active {
  background: rgba(45, 212, 191, 0.08);
  border-color: rgba(45, 212, 191, 0.3);
}
.lifecycle-stage.completed .stage-icon { color: #10b981; }
.stage-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-tertiary); color: var(--text-muted);
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
}
.lifecycle-stage.active .stage-icon {
  background: rgba(45, 212, 191, 0.15); color: var(--accent-400);
  border-color: var(--accent-500);
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.2);
}
.lifecycle-stage.completed .stage-icon {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
}
.stage-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); transition: color 0.3s ease; }
.lifecycle-stage.active .stage-label { color: var(--accent-400); }
.lifecycle-stage.completed .stage-label { color: #10b981; }

.lifecycle-connector {
  width: 48px; height: 3px; background: var(--bg-tertiary);
  border-radius: 2px; overflow: hidden; flex-shrink: 0;
}
.connector-fill {
  width: 0; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-500), var(--accent2-500));
  transition: width 0.5s ease;
}
.lifecycle-connector.filled .connector-fill { width: 100%; }

.lifecycle-details { min-height: 180px; position: relative; }
.lifecycle-detail {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 32px;
  opacity: 0; transform: translateY(10px);
  transition: all 0.4s ease;
  position: absolute; top: 0; left: 0; right: 0;
  pointer-events: none;
}
.lifecycle-detail.visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
  position: relative;
}
.lifecycle-detail h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.lifecycle-detail p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 16px; line-height: 1.7; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.action-pill {
  padding: 6px 14px; font-size: 0.78rem; font-weight: 600;
  background: rgba(45, 212, 191, 0.08); color: var(--accent-400);
  border: 1px solid rgba(45, 212, 191, 0.15); border-radius: 999px;
}
.action-pill.pill-locked {
  background: rgba(245, 158, 11, 0.1); color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.2);
}
.action-pill.pill-done {
  background: rgba(16, 185, 129, 0.1); color: #34d399;
  border-color: rgba(16, 185, 129, 0.2);
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-item {
  padding: 28px; background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); transition: all 0.3s ease;
}
.feature-item:hover {
  border-color: var(--border-light); transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.feature-icon-wrap {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: rgba(45, 212, 191, 0.1); color: var(--accent-400);
  margin-bottom: 16px;
}
.feature-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-item p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== Screenshots ===== */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.screenshot-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.3s ease;
}
.screenshot-card:hover { border-color: var(--border-light); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.screenshot-link {
  display: block; position: relative; cursor: zoom-in; overflow: hidden;
}
.screenshot-link img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top;
  display: block; transition: transform 0.3s ease, opacity 0.3s ease;
}
.screenshot-link:hover img { transform: scale(1.03); opacity: 0.8; }
.screenshot-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(15, 23, 42, 0.7); opacity: 0;
  transition: opacity 0.3s ease; color: var(--text-primary);
  font-size: 0.85rem; font-weight: 500;
}
.screenshot-link:hover .screenshot-overlay { opacity: 1; }
.screenshot-card h4 { padding: 14px 16px 4px; font-size: 0.95rem; font-weight: 700; }
.screenshot-card p { padding: 0 16px 14px; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

/* ===== CTA ===== */
.cta-section { padding: 80px 0; }
.cta-card {
  text-align: center; padding: 60px 40px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(45, 212, 191, 0.2); border-radius: var(--radius);
}
.cta-card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 12px; }
.cta-card p { max-width: 480px; margin: 0 auto 28px; color: var(--text-secondary); font-size: 1rem; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-primary); border-top: 1px solid var(--border-color); padding: 24px 0;
}
.footer-container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-left { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; }
.footer-right { font-size: 0.82rem; color: var(--text-muted); }

/* ===== Lightbox ===== */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; flex-direction: column;
  padding: 40px; cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox-close {
  position: absolute; top: 16px; right: 24px;
  background: none; border: none; color: var(--text-primary);
  font-size: 2.5rem; cursor: pointer; opacity: 0.7;
  transition: opacity var(--transition); z-index: 1001; line-height: 1;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-img { max-width: 90vw; max-height: 80vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); object-fit: contain; }
.lightbox-caption { margin-top: 16px; color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; }

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1; transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .app-mockup { max-width: 360px; transform: none; }
  .app-mockup:hover { transform: none; }
  @keyframes mockup-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .lifecycle-track { flex-wrap: wrap; }
  .lifecycle-connector { width: 24px; }

  .tier-member { grid-template-columns: 1fr 1fr auto; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px); padding: 20px 24px; gap: 16px;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links.open { display: flex; }
  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero-title { font-size: 2rem; }
  .section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .distro-demo { padding: 20px; }
  .netting-demo { padding: 16px; }
  .tier-member { grid-template-columns: 1fr; gap: 8px; }
  .member-amount { text-align: left; }
  .lifecycle-track { gap: 4px; }
  .lifecycle-stage { min-width: 70px; padding: 12px 8px; }
  .lifecycle-connector { width: 16px; }
  .stage-icon { width: 44px; height: 44px; }
  .footer-container { flex-direction: column; text-align: center; }
  .cta-card { padding: 40px 20px; }
  .member-role { display: none; }
}

@media (min-width: 641px) {
  .member-role { display: block; }
}
