/* DeployMetrix Landing Page — Dark Theme */
:root {
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;
  --green-400: #4ade80;
  --green-500: #22c55e;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-100);
  background: var(--gray-950);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========================================================================
   NAVIGATION
   ======================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s ease;
}
.nav-scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem 0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--gray-100);
}
.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand-500), var(--cyan-500));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: white;
}
.logo-mark-sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
  border-radius: 7px;
}
.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--gray-100); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-links.open, .nav-actions.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open { flex-direction: column; gap: 1rem; }
  .nav-actions.open { gap: 1rem; }
  .nav-mobile-toggle { display: block; }
}

/* ========================================================================
   BUTTONS
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: white;
  border-color: var(--brand-600);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-400), var(--brand-500));
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}
.btn-glow {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}
.btn-outline {
  border-color: var(--gray-700);
  color: var(--gray-300);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--brand-400);
  color: var(--brand-400);
  background: rgba(99, 102, 241, 0.05);
}
.btn-ghost {
  color: var(--gray-400);
  background: transparent;
}
.btn-ghost:hover { color: var(--gray-100); }
.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 10px;
}
.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
}

/* ========================================================================
   HERO SECTION
   ======================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}
.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--brand-500);
  top: -200px;
  left: -100px;
  animation: float 8s ease-in-out infinite;
}
.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: var(--cyan-500);
  bottom: -150px;
  right: -100px;
  animation: float 10s ease-in-out infinite reverse;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero .container {
  position: relative;
  text-align: center;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-400);
  margin-bottom: 2rem;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green-400);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--gray-100);
  margin-bottom: 1.5rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--brand-400), var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-100);
}
.hero-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-800);
}

@media (max-width: 640px) {
  .hero-stats { gap: 1.25rem; }
  .hero-stat-divider { display: none; }
}

/* ========================================================================
   TECH STRIP
   ======================================================================== */
.tech-strip {
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tech-strip-label {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.tech-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.tech-logo {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: color 0.2s;
}
.tech-logo:hover { color: var(--gray-300); }

/* ========================================================================
   SECTIONS
   ======================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-badge {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--gray-100);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================================================
   FEATURES
   ======================================================================== */
.features {
  padding: 6rem 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08);
}
.feature-card-lg {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 0 1.5rem;
  padding: 2.5rem;
}
.feature-card-lg .feature-icon { grid-row: span 2; align-self: start; }
.feature-card-lg .feature-tags { grid-column: 2; }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--icon-color, var(--brand-400));
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-100);
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.9375rem;
  color: var(--gray-400);
  line-height: 1.6;
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.feature-tags span {
  padding: 0.25rem 0.75rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand-400);
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-lg {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .feature-card-lg .feature-tags { grid-column: 1; }
}

/* ========================================================================
   SHOWCASE
   ======================================================================== */
.showcase {
  padding: 6rem 0;
  background: rgba(255,255,255,0.01);
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.showcase-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s ease;
}
.showcase-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.showcase-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.showcase-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}
.showcase-finpay { background: linear-gradient(135deg, #22c55e, #16a34a); }
.showcase-medwatch { background: linear-gradient(135deg, #ef4444, #dc2626); }
.showcase-dataforge { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
.showcase-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-100);
}
.showcase-status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--green-400);
  font-weight: 500;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-healthy { background: var(--green-400); animation: pulse-dot 2s infinite; }
.showcase-desc {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.showcase-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}
.showcase-tech span {
  padding: 0.2rem 0.625rem;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  font-size: 0.6875rem;
  color: var(--gray-400);
  font-weight: 500;
}
.showcase-services {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
}
.showcase-svc {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--gray-300);
}
.showcase-svc code {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-left: auto;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
}
.svc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.svc-green { background: var(--green-400); }
.showcase-btn { width: 100%; justify-content: center; }

@media (max-width: 768px) {
  .showcase-grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   ARCHITECTURE
   ======================================================================== */
.architecture {
  padding: 6rem 0;
}
.arch-diagram {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.arch-layer {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 1.5rem;
}
.arch-layer-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: 1rem;
}
.arch-items {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.arch-item {
  flex: 1;
  min-width: 140px;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-200);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
}
.arch-item small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-500);
  margin-top: 0.25rem;
}
.arch-traefik { background: rgba(99, 102, 241, 0.1); border-color: rgba(99, 102, 241, 0.2); }
.arch-landing { background: rgba(34, 211, 238, 0.08); border-color: rgba(34, 211, 238, 0.15); }
.arch-api { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.15); }
.arch-ui { background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.15); }
.arch-agent { background: rgba(249, 115, 22, 0.08); border-color: rgba(249, 115, 22, 0.15); }
.arch-pg { background: rgba(99, 102, 241, 0.08); border-color: rgba(99, 102, 241, 0.12); }
.arch-redis { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.12); }
.arch-minio { background: rgba(234, 179, 8, 0.08); border-color: rgba(234, 179, 8, 0.12); }
.arch-signoz { background: rgba(249, 115, 22, 0.08); border-color: rgba(249, 115, 22, 0.12); }
.arch-grafana { background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.12); }
.arch-uptime { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.12); }
.arch-ch { background: rgba(236, 72, 153, 0.08); border-color: rgba(236, 72, 153, 0.12); }
.arch-arrow {
  text-align: center;
  font-size: 1.25rem;
  color: var(--gray-600);
  line-height: 1;
}

/* ========================================================================
   STATS
   ======================================================================== */
.stats {
  padding: 6rem 0;
  background: rgba(255,255,255,0.01);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.stat-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}
.stat-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}
.stat-value {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand-400), var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-200);
  margin-bottom: 0.25rem;
}
.stat-desc {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================================================
   REPLACES
   ======================================================================== */
.replaces {
  padding: 6rem 0;
}
.replaces-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.replace-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: all 0.2s ease;
}
.replace-item:hover {
  border-color: rgba(99, 102, 241, 0.15);
  background: rgba(99, 102, 241, 0.03);
}
.replace-tool {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-decoration: line-through;
  flex: 1;
}
.replace-arrow {
  color: var(--brand-400);
  font-size: 1.25rem;
  font-weight: 600;
}
.replace-feature {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-200);
  flex: 1;
  text-align: right;
}

@media (max-width: 640px) {
  .replaces-grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   CTA
   ======================================================================== */
.cta {
  padding: 6rem 0;
}
.cta-content {
  position: relative;
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--gray-100);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.cta-content p {
  font-size: 1.1rem;
  color: var(--gray-400);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.cta-actions {
  position: relative;
  z-index: 1;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-100);
  font-weight: 700;
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--gray-300); }
.footer-copy {
  font-size: 0.8125rem;
  color: var(--gray-600);
}

/* ========================================================================
   ANIMATIONS
   ======================================================================== */
.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.15s; opacity: 0; }
.delay-2 { animation-delay: 0.3s; opacity: 0; }
.delay-3 { animation-delay: 0.45s; opacity: 0; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================================
   SCROLLBAR
   ======================================================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-950); }
::-webkit-scrollbar-thumb { background: var(--gray-700); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-600); }
