/* ============================================================
   DEPLOYMENT PROOF — Credibility & Metrics Section
   Built by Cerebro for King Kyle
   
   Minimal, metrics-driven social proof.
   No paragraphs. Numbers do the talking.
   ============================================================ */

/* ── Section Container ── */
.dp-section {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0;
  overflow: hidden;
  background: var(--bg);
}

/* Ambient glow */
.dp-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(var(--purple-rgb), 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid lines */
.dp-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.dp-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ── Section Header ── */
.dp-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.dp-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--purple-mid);
  margin-bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.dp-label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  animation: dp-pulse 2s ease-in-out infinite;
}

@keyframes dp-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.dp-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 var(--space-4);
}

.dp-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Metrics Bar — 4 big numbers ── */
.dp-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.dp-metric {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem);
  text-align: center;
  transition: background 0.3s ease;
}

.dp-metric:hover {
  background: var(--surface-2);
}

.dp-metric__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: var(--space-2);
}

.dp-metric__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* ── Deployment Cards (Example Sites) ── */
.dp-deployments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.dp-deploy-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dp-deploy-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Browser chrome mockup */
.dp-card__browser {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.dp-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-ghost);
}

.dp-card__dot:nth-child(1) { background: rgba(139, 92, 246, 0.35); }
.dp-card__dot:nth-child(2) { background: rgba(139, 92, 246, 0.35); }
.dp-card__dot:nth-child(3) { background: rgba(139, 92, 246, 0.35); }

.dp-card__url {
  flex: 1;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Site preview area */
.dp-card__preview {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  overflow: hidden;
}

/* Abstract site wireframe inside preview */
.dp-card__wire {
  position: absolute;
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
}

.dp-card__wire--nav {
  top: 8px; left: 10px; right: 10px; height: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dp-card__wire--hero {
  top: 28px; left: 10px; width: 55%; height: 50px;
  background: rgba(var(--purple-rgb), 0.08);
}

.dp-card__wire--img {
  top: 28px; right: 10px; width: 35%; height: 50px;
  background: rgba(var(--pink-rgb), 0.06);
  border-radius: 4px;
}

.dp-card__wire--row {
  display: flex;
  gap: 8px;
  position: absolute;
  top: 86px; left: 10px; right: 10px; height: 30px;
}

.dp-card__wire--col {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border-radius: 3px;
}

.dp-card__wire--footer {
  position: absolute;
  bottom: 8px; left: 10px; right: 10px; height: 16px;
  background: rgba(255,255,255,0.02);
}

/* Gradient accent per card */
.dp-deploy-card:nth-child(1) .dp-card__preview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #EC4899, #8B5CF6);
}

.dp-deploy-card:nth-child(2) .dp-card__preview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #8B5CF6, #3B82F6);
}

.dp-deploy-card:nth-child(3) .dp-card__preview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #3B82F6, #06b6d4);
}

/* Card info bar */
.dp-card__info {
  padding: clamp(0.875rem, 2vw, 1.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dp-card__name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.dp-card__industry {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Lighthouse mini-scores */
.dp-card__scores {
  display: flex;
  gap: 6px;
}

.dp-card__score {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--emerald);
  border: 2px solid rgba(16,185,129,0.3);
  position: relative;
}

.dp-card__score::after {
  content: attr(data-label);
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* Card build time badge */
.dp-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(0.875rem, 2vw, 1.25rem) clamp(0.875rem, 2vw, 1.25rem);
  border-top: 1px solid var(--border);
  padding-top: clamp(0.6rem, 1.5vw, 0.875rem);
}

.dp-card__time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 4px;
}

.dp-card__time svg {
  width: 12px;
  height: 12px;
  stroke: var(--text-faint);
}

.dp-card__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald);
}

.dp-card__status-dot {
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  animation: dp-pulse 2s ease-in-out infinite;
}

/* ── Bottom proof bar ── */
.dp-proof-bar {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1rem, 2vw, 1.5rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dp-proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.dp-proof-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--purple-mid);
  flex-shrink: 0;
}

/* ── Animations ── */
.dp-metric,
.dp-deploy-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.dp-metric.dp-visible,
.dp-deploy-card.dp-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.dp-metric:nth-child(2),
.dp-deploy-card:nth-child(2) { transition-delay: 0.1s; }
.dp-metric:nth-child(3),
.dp-deploy-card:nth-child(3) { transition-delay: 0.2s; }
.dp-metric:nth-child(4) { transition-delay: 0.3s; }

.dp-header {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.dp-header.dp-visible {
  opacity: 1;
  transform: translateY(0);
}

.dp-proof-bar {
  opacity: 0;
  transition: opacity 0.6s ease 0.4s;
}

.dp-proof-bar.dp-visible {
  opacity: 1;
}

/* Counter animation */
@keyframes dp-count-glow {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
  100% { filter: brightness(1); }
}

.dp-counting {
  animation: dp-count-glow 0.5s ease;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .dp-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .dp-deployments {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .dp-proof-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
  }
}

@media (max-width: 520px) {
  .dp-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .dp-card__scores {
    gap: 4px;
  }

  .dp-card__score {
    width: 30px;
    height: 30px;
    font-size: 9px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .dp-metric,
  .dp-deploy-card,
  .dp-header,
  .dp-proof-bar {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .dp-label::before,
  .dp-card__status-dot {
    animation: none !important;
  }
}

/* ============================================================
   DEPLOYMENT CONSOLE LOG — Verified Builds Display
   Replaces card grid with terminal-style deployment log
   ============================================================ */

/* ── Console Wrapper ── */
.dp-console {
  background: #0a0a0f;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Console chrome bar */
.dp-console__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.dp-console__dots {
  display: flex;
  gap: 6px;
}

.dp-console__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-ghost);
}

.dp-console__dot:nth-child(1) { background: rgba(139, 92, 246, 0.35); }
.dp-console__dot:nth-child(2) { background: rgba(139, 92, 246, 0.35); }
.dp-console__dot:nth-child(3) { background: rgba(139, 92, 246, 0.35); }

.dp-console__title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.dp-console__version {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* ── Column Header Row ── */
.dp-console__header-row {
  display: grid;
  grid-template-columns: 120px 1fr 160px 60px 60px 80px 80px;
  gap: 0;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dp-console__header-row .dp-console__col {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-ghost);
}

/* ── Deployment Row ── */
.dp-console__body {
  padding: 0;
}

.dp-console__row {
  display: grid;
  grid-template-columns: 120px 1fr 160px 60px 60px 80px 80px;
  gap: 0;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.dp-console__row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background 0.3s ease;
}

.dp-console__row:hover {
  background: rgba(139, 92, 246, 0.04);
}

.dp-console__row:hover::before {
  background: var(--purple-mid);
}

.dp-console__row:last-child {
  border-bottom: none;
}

/* Column base */
.dp-console__col {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* Status col */
.dp-console__col--status {
  gap: 6px;
  color: var(--emerald);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.dp-console__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 3px;
  font-size: 9px;
  color: var(--emerald);
  flex-shrink: 0;
}

/* Domain col */
.dp-console__col--domain {
  font-weight: 600;
}

.dp-console__domain-text {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
}

.dp-console__domain-text::before {
  content: '🔒 ';
  font-size: 10px;
  opacity: 0.6;
}

/* Category col */
.dp-console__col--category {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Score cols */
.dp-console__score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.dp-console__score--high {
  color: var(--emerald);
  border: 2px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}

.dp-console__score--perfect {
  color: #34d399;
  border: 2px solid rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.08);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.1);
}

/* Build time col */
.dp-console__col--build {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Live state col */
.dp-console__col--live {
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--emerald);
}

.dp-console__live-dot {
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  animation: dp-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Console Footer ── */
.dp-console__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--border);
}

.dp-console__footer-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dp-console__cursor {
  color: var(--emerald);
  animation: dp-cursor-blink 1.2s step-end infinite;
  font-size: 12px;
}

@keyframes dp-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.dp-console__footer-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-ghost);
}

/* ── Row entrance animation (reuses dp-deploy-card class) ── */
.dp-console__row.dp-deploy-card {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.dp-console__row.dp-deploy-card.dp-visible {
  opacity: 1;
  transform: translateX(0);
}

.dp-console__row[data-deploy="2"] { transition-delay: 0.12s; }
.dp-console__row[data-deploy="3"] { transition-delay: 0.24s; }
.dp-console__row[data-deploy="4"] { transition-delay: 0.36s; }

/* ── Console scan-line effect ── */
.dp-console__body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.15), transparent);
  animation: dp-scanline 4s linear infinite;
  pointer-events: none;
}

@keyframes dp-scanline {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.dp-console__body {
  position: relative;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════
   CONSOLE LOG RESPONSIVE
   ══════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .dp-console__header-row {
    display: none;
  }

  .dp-console__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px 16px;
    padding: 18px 16px;
  }

  .dp-console__col--status {
    grid-column: 1 / -1;
    order: -1;
  }

  .dp-console__col--domain {
    grid-column: 1 / -1;
  }

  .dp-console__col--category {
    grid-column: 1 / -1;
  }

  .dp-console__col--perf::before {
    content: 'PERF ';
    color: var(--text-ghost);
    font-size: 9px;
    letter-spacing: 0.1em;
    margin-right: 4px;
  }

  .dp-console__col--seo::before {
    content: 'SEO ';
    color: var(--text-ghost);
    font-size: 9px;
    letter-spacing: 0.1em;
    margin-right: 4px;
  }

  .dp-console__col--build::before {
    content: 'BUILD ';
    color: var(--text-ghost);
    font-size: 9px;
    letter-spacing: 0.1em;
    margin-right: 4px;
  }

  .dp-console__footer {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .dp-console__chrome {
    padding: 10px 12px;
  }

  .dp-console__title {
    font-size: 9px;
  }

  .dp-console__row {
    padding: 14px 12px;
  }

  .dp-console__domain-text {
    font-size: 12px;
  }

  .dp-console__score {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
}

/* Reduced motion for console log */
@media (prefers-reduced-motion: reduce) {
  .dp-console__row.dp-deploy-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .dp-console__live-dot,
  .dp-console__cursor {
    animation: none !important;
  }

  .dp-console__body::after {
    animation: none !important;
    display: none;
  }
}
