/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #060810;
  --bg-2: #0b0f1a;
  --bg-3: #101520;
  --fg: #e8eaf2;
  --fg-muted: #7a8399;
  --fg-dim: #4a5168;
  --accent: #00c8ff;
  --accent-2: #8c4dff;
  --accent-glow: rgba(0, 200, 255, 0.15);
  --green: #00ff87;
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(0, 200, 255, 0.2);
  --font: 'Space Grotesk', sans-serif;
  --mono: 'DM Mono', monospace;
  --max-w: 1280px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
.section-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 1.2rem;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(6, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  font-size: 1.2rem;
  color: var(--accent);
}

.logo-text {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

.logo-text strong { color: var(--fg); }

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--fg); }

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

.status-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8rem 4rem 4rem;
  gap: 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  background: radial-gradient(ellipse at 30% 50%, rgba(0, 200, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border-accent);
  background: var(--accent-glow);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-badge span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.hero-headline {
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.8rem;
}

.headline-accent {
  color: var(--accent);
  display: block;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 3rem;
}

.hero-sub strong { color: var(--fg); }

.hero-proof {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.proof-item {
  display: flex;
  flex-direction: column;
}

.proof-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}

.proof-unit {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

.proof-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-top: 0.15rem;
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* === HERO VISUAL === */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 520px;
}

.orbital-grid {
  position: relative;
  width: 420px;
  height: 420px;
}

.orbital-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbital-ring-1 {
  width: 280px;
  height: 280px;
  border-color: rgba(0, 200, 255, 0.12);
}

.orbital-ring-2 {
  width: 360px;
  height: 360px;
  border-color: rgba(140, 77, 255, 0.08);
}

.orbital-ring-3 {
  width: 420px;
  height: 420px;
  border-color: rgba(0, 200, 255, 0.04);
}

.core-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 200, 255, 0.05);
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.2), inset 0 0 20px rgba(0, 200, 255, 0.1);
}

.core-inner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
}

.core-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ring-pulse 3s ease-out infinite;
}

@keyframes ring-pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.orbit-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: float 6s ease-in-out infinite;
}

.orbit-node-1 { top: 6px; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.orbit-node-2 { top: 50%; right: 6px; transform: translateY(-50%); animation-delay: 1.2s; }
.orbit-node-3 { bottom: 6px; left: 50%; transform: translateX(-50%); animation-delay: 2.4s; }
.orbit-node-4 { top: 50%; left: 6px; transform: translateY(-50%); animation-delay: 0.8s; }
.orbit-node-5 { top: 25%; left: 10%; animation-delay: 1.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.orbit-node-4 { animation-name: float-right; }
@keyframes float-right {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 6px)); }
}

.node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}

.orbit-node-1 .node-dot,
.orbit-node-4 .node-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.node-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.connection-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 200, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* === MANIFESTO === */
.manifesto {
  padding: 8rem 4rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
}

.manifesto-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.manifesto-statement {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 2rem;
}

.manifesto-statement strong { color: var(--accent); }

.manifesto-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.manifesto-body--highlight {
  color: var(--fg);
  font-size: 1.05rem;
  padding: 1.5rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-glow);
  border-radius: 0 4px 4px 0;
}

.manifesto-divider {
  text-align: center;
  margin: 3rem 0;
  color: var(--accent-2);
  font-size: 1.5rem;
  opacity: 0.4;
}

.manifesto-tagline {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-align: center;
  line-height: 1.6;
}

/* === PILLARS === */
.pillars {
  padding: 8rem 4rem;
}

.pillars-header {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
}

.pillars-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.pillar-card {
  background: var(--bg-2);
  padding: 2rem 1.8rem;
  position: relative;
  transition: background 0.2s;
}

.pillar-card:hover { background: var(--bg-3); }

.pillar-icon {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
  opacity: 0.7;
}

.pillar-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  opacity: 0.6;
}

.pillar-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.pillar-desc {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.pillar-stack {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--fg-dim);
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  letter-spacing: 0.05em;
}

/* === STACK === */
.stack-section {
  padding: 8rem 4rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stack-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.stack-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 1.2rem;
}

.stack-desc {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.stack-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.stack-logo-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.8rem 1.2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.stack-logo-item:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.logo-name {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg);
}

.logo-role {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--fg-dim);
}

.stack-callout {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.callout-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.callout-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.3;
}

.callout-text {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
  text-align: center;
  white-space: nowrap;
}

/* === VELOCITY === */
.velocity {
  padding: 8rem 4rem;
}

.velocity-header {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
}

.velocity-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
}

.velocity-title .highlight { color: var(--accent); }

.velocity-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  max-width: var(--max-w);
  margin: 0 auto 4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.stat-card {
  background: var(--bg-2);
  padding: 2.5rem 2rem;
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-value .stat-unit {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--fg-muted);
  margin-left: 0.3rem;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.stat-desc {
  font-size: 0.82rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

.velocity-timeline {
  max-width: var(--max-w);
  margin: 0 auto;
}

.timeline-header { margin-bottom: 2rem; }

.timeline-steps {
  display: flex;
  gap: 0;
  position: relative;
}

.timeline-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 30px;
  right: 30px;
  height: 1px;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  opacity: 0.3;
}

.timeline-step {
  flex: 1;
  padding: 0 1.5rem;
  position: relative;
}

.step-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 2;
}

.step-marker span {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--accent);
}

.step-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.step-content p {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.step-duration {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* === CLOSING === */
.closing {
  padding: 10rem 4rem 8rem;
  text-align: center;
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(140, 77, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.closing-inner { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }

.closing-hex {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0.4;
}

.closing-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.closing-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.closing-cta { display: flex; justify-content: center; }

.cta-box {
  display: inline-block;
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  max-width: 480px;
}

.cta-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}

.cta-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 5rem 4rem 2rem;
}

.footer-inner {
  display: flex;
  gap: 6rem;
  max-width: var(--max-w);
  margin: 0 auto 4rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-name {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.footer-name strong { color: var(--fg); }

.footer-tagline {
  font-size: 0.82rem;
  color: var(--fg-dim);
  max-width: 240px;
  line-height: 1.6;
}

.footer-cols {
  display: flex;
  gap: 4rem;
  flex: 1;
}

.footer-col h5 {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li {
  font-size: 0.82rem;
  color: var(--fg-dim);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--fg-dim);
}

.footer-divider { color: var(--border); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav { padding: 1rem 2rem; }
  .nav-links { display: none; }

  .hero {
    grid-template-columns: 1fr;
    padding: 6rem 2rem 4rem;
  }

  .hero-visual { display: none; }

  .manifesto, .pillars, .stack-section, .velocity, .closing { padding: 5rem 2rem; }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .velocity-stats {
    grid-template-columns: 1fr;
  }

  .timeline-steps {
    flex-direction: column;
    gap: 2rem;
  }

  .timeline-steps::before { display: none; }

  .footer-inner {
    flex-direction: column;
    gap: 3rem;
  }

  .footer-cols {
    flex-wrap: wrap;
    gap: 2rem;
  }
}

/* === PIPELINE APP === */
.pipeline-app {
  padding: 5rem 2rem 2rem;
  min-height: 100vh;
}

.pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.pipeline-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pipeline-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.pipeline-subtitle {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
}

.pipeline-board {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-3) transparent;
}

.pipeline-board::-webkit-scrollbar { height: 4px; }
.pipeline-board::-webkit-scrollbar-track { background: transparent; }
.pipeline-board::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 2px; }

.pipeline-col {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.col-status {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.col-count {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--fg-dim);
  background: var(--bg-3);
  border-radius: 10px;
  padding: 0.1rem 0.5rem;
}

.col-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 200px;
}

.client-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.client-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 4px 20px rgba(0, 200, 255, 0.06);
  transform: translateY(-1px);
}

.card-company {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.card-contact {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--fg-muted);
  margin-bottom: 0.6rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--fg-dim);
}

.card-notes-icon {
  opacity: 0.6;
}

.empty-col {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-dim);
}

/* Stage accent colors */
.pipeline-col[data-status="Lead"] .col-header { border-color: rgba(122, 131, 153, 0.25); }
.pipeline-col[data-status="Qualified"] .col-header { border-color: rgba(0, 200, 255, 0.25); }
.pipeline-col[data-status="Proposal"] .col-header { border-color: rgba(245, 158, 11, 0.25); }
.pipeline-col[data-status="Active"] .col-header { border-color: rgba(0, 255, 135, 0.25); }
.pipeline-col[data-status="Completed"] .col-header { border-color: rgba(140, 77, 255, 0.25); }

.pipeline-col[data-status="Lead"] .col-status { color: var(--fg-muted); }
.pipeline-col[data-status="Qualified"] .col-status { color: #00c8ff; }
.pipeline-col[data-status="Proposal"] .col-status { color: #f59e0b; }
.pipeline-col[data-status="Active"] .col-status { color: var(--green); }
.pipeline-col[data-status="Completed"] .col-status { color: #8c4dff; }

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 16, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-2);
  z-index: 1;
}

.modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: none;
  color: var(--fg-muted);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover { background: var(--bg-3); color: var(--fg); }

.modal-body { padding: 1.6rem; }

.modal-footer {
  padding: 1rem 1.6rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* === FORMS === */
.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder { color: var(--fg-dim); }

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a8399' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2rem;
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.form-error {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: #ff6b6b;
  margin-top: 0.3rem;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #060810;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #1ad4ff;
  box-shadow: 0 4px 16px rgba(0, 200, 255, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  border-color: var(--border);
}

.btn-ghost:hover { background: var(--bg-3); color: var(--fg); border-color: var(--fg-dim); }

.btn-danger {
  background: transparent;
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.3);
}

.btn-danger:hover { background: rgba(255, 107, 107, 0.1); }

/* === NOTES SECTION === */
.notes-section {
  margin-top: 1.2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}

.notes-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.note-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.note-text {
  flex: 1;
  font-size: 0.82rem;
  color: var(--fg);
  line-height: 1.5;
}

.note-date {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--fg-dim);
  white-space: nowrap;
}

.note-delete {
  background: none;
  border: none;
  color: var(--fg-dim);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
  flex-shrink: 0;
}

.note-delete:hover { color: #ff6b6b; }

.note-input-row {
  display: flex;
  gap: 0.5rem;
}

.note-input-row .form-input {
  flex: 1;
  font-size: 0.82rem;
}

.client-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-value {
  font-size: 0.82rem;
  color: var(--fg-muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-badge[data-status="Lead"] { background: rgba(122, 131, 153, 0.15); color: var(--fg-muted); }
.status-badge[data-status="Qualified"] { background: rgba(0, 200, 255, 0.12); color: #00c8ff; }
.status-badge[data-status="Proposal"] { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.status-badge[data-status="Active"] { background: rgba(0, 255, 135, 0.12); color: var(--green); }
.status-badge[data-status="Completed"] { background: rgba(140, 77, 255, 0.12); color: #8c4dff; }

/* Add client form - full width */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

/* Status change buttons */
.status-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.status-btn {
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.65rem;
  border: 1px solid var(--border);
  background: none;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-btn:hover { border-color: var(--fg-muted); color: var(--fg); }
.status-btn.active { background: var(--accent); border-color: var(--accent); color: #060810; }

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-2);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--fg);
  z-index: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.2s ease;
}

@keyframes toastIn {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Loading state */
.loading-card {
  height: 100px;
  background: var(--bg-2);
  border: 1px dashed var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fg-dim);
}

@media (max-width: 600px) {
  .pipeline-app { padding: 4.5rem 1rem 1rem; }
  .pipeline-col { flex: 0 0 260px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .client-detail-grid { grid-template-columns: 1fr; }
  .pipeline-header { flex-direction: column; align-items: flex-start; }
}