* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Onest', system-ui, -apple-system, sans-serif;
  background-color: #0a0e1a;
  color: #e5e7eb;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(37, 99, 235, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  mask-image: radial-gradient(ellipse at 50% 30%, black 25%, transparent 75%);
  animation: gridPulse 8s ease-in-out infinite alternate;
}

@keyframes gridPulse {
  0% { opacity: 0.7; background-size: 50px 50px; }
  100% { opacity: 1; background-size: 52px 52px; }
}

.content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

.glass-card {
  background: rgba(18, 22, 35, 0.7);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 2rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fade-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 0.88, 0.3, 1.1), transform 0.8s cubic-bezier(0.16, 0.88, 0.3, 1.1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.primary-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 3rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -8px rgba(37, 99, 235, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.primary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
}

.primary-btn:hover::before {
  left: 100%;
}

.primary-btn:hover {
  background: linear-gradient(135deg, #3b78f0, #2563eb);
  box-shadow: 0 15px 35px -6px #2563ebcc;
  transform: translateY(-3px);
}

.primary-btn.large {
  padding: 1.3rem 3rem;
  font-size: 1.15rem;
}

.secondary-btn {
  background: transparent;
  color: #bfdbfe;
  border: 2px solid rgba(37, 99, 235, 0.5);
  padding: 1rem 2.5rem;
  border-radius: 3rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.secondary-btn:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: #2563eb;
  color: white;
  transform: translateY(-3px);
}

.secondary-btn.large {
  padding: 1.3rem 3rem;
  font-size: 1.15rem;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* HERO SECTION */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 90vh;
  padding: 2rem 0 4rem;
  gap: 3rem;
}

.hero-text {
  flex: 1 1 500px;
}

.hero-text h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 1.8rem;
  background: linear-gradient(to right, #ffffff, #bdd3ff, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.hero-sub {
  font-size: 1.3rem;
  color: #b0c4e8;
  margin-bottom: 2rem;
  max-width: 620px;
  line-height: 1.6;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 2rem;
}

.badge {
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(37, 99, 235, 0.55);
  padding: 0.55rem 1.4rem;
  border-radius: 2.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #d0e0ff;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-pulse {
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 8px rgba(37,99,235,0.3); }
  50% { box-shadow: 0 0 18px rgba(37,99,235,0.8); }
}

.stat-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'JetBrains Mono', monospace;
}

.stat-label {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 0.3rem;
}

/* LIVE DEMO PREVIEW */
.hero-visual {
  flex: 1 1 480px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.live-demo-preview {
  width: 100%;
  max-width: 550px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}

.demo-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.15);
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
}

.demo-status {
  font-size: 0.85rem;
  color: #22c55e;
  font-weight: 500;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.demo-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.doc-in, .doc-out {
  flex: 1;
  background: rgba(20, 30, 50, 0.6);
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 1rem;
  padding: 1rem;
}

.doc-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.doc-name {
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  color: #e2e8f0;
  margin-bottom: 0.3rem;
}

.doc-status {
  font-size: 0.75rem;
  color: #94a3b8;
}

.demo-arrow {
  flex-shrink: 0;
}

.json-preview {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

.json-line {
  margin-bottom: 0.3rem;
}

.json-key {
  color: #60a5fa;
}

.json-value {
  color: #fbbf24;
}

.json-bool {
  color: #22c55e;
}

.demo-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(37, 99, 235, 0.2);
}

.processing-bar {
  height: 6px;
  background: rgba(100, 116, 139, 0.3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.processing-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  width: 75%;
  animation: processingGrow 3s ease-in-out infinite;
}

@keyframes processingGrow {
  0% { width: 0%; }
  50% { width: 100%; }
  100% { width: 75%; }
}

.processing-text {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
}

/* INDUSTRY SELECTOR */
.industry-selector {
  margin: 6rem 0;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.industry-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.industry-card:hover {
  transform: translateY(-5px);
  border-color: #2563eb;
  box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.4);
}

.industry-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.industry-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: white;
}

.industry-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.industry-stat {
  display: inline-block;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

/* BEFORE/AFTER COMPARISON */
.before-after {
  margin: 6rem 0;
}

.comparison-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}

.comparison-side {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  padding: 2rem;
}

.before-side {
  border: 2px solid rgba(220, 60, 60, 0.4);
}

.after-side {
  border: 2px solid #2563eb;
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.3);
}

.comparison-label {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(100, 116, 139, 0.3);
}

.comparison-detail {
  display: flex;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.detail-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.detail-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.detail-text strong {
  color: white;
  font-size: 1.05rem;
}

.detail-text span {
  color: #94a3b8;
  font-size: 0.9rem;
}

.comparison-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-badge {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  font-weight: 800;
  font-size: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5);
}

/* ROI CALCULATOR */
.roi-calculator {
  margin: 6rem 0;
}

.calculator-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
}

.calculator-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
}

.input-group input {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 0.75rem;
  padding: 0.9rem 1.2rem;
  font-size: 1.1rem;
  color: white;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.calculator-results {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.result-card {
  text-align: center;
  padding: 1.5rem;
  background: rgba(20, 30, 50, 0.6);
  border-radius: 1rem;
  border: 1px solid rgba(100, 116, 139, 0.3);
  min-width: 180px;
}

.result-card.highlight {
  border-color: #2563eb;
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.3);
}

.result-label {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.result-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  font-family: 'JetBrains Mono', monospace;
}

.result-arrow {
  font-size: 2rem;
  color: #60a5fa;
}

.result-savings {
  flex: 1 1 100%;
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(100, 116, 139, 0.3);
}

.savings-label {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 0.3rem;
}

.savings-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'JetBrains Mono', monospace;
}

.savings-value.annual {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* PIPELINE SECTION */
.pipeline-section {
  margin: 6rem 0;
}

.pipeline-flow {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: visible;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pipeline-step {
  flex: 0 1 160px;
  width: 160px;
  height: 200px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 1.2rem;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pipeline-step:hover {
  transform: translateY(-5px);
  border-color: #2563eb;
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
}

.step-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.8rem;
  color: #60a5fa;
}

.pipeline-step h4 {
  font-size: 0.95rem;
  color: white;
  margin-bottom: 0.4rem;
}

.pipeline-step p {
  font-size: 0.75rem;
  color: #94a3b8;
}

.pipeline-connector {
  display: none;
}

.pipeline-connector::after {
  content: '';
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.tech-tag {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  color: #93c5fd;
  font-weight: 500;
}

/* SOCIAL PROOF */
.social-proof {
  margin: 6rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: #2563eb;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

.quote-icon {
  font-size: 4rem;
  color: rgba(37, 99, 235, 0.3);
  line-height: 0.5;
  margin-bottom: 1rem;
}

.testimonial-text {
  color: #e2e8f0;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1.2rem;
}

.author-name {
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.author-title {
  color: #94a3b8;
  font-size: 0.85rem;
}

.testimonial-metric {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 2rem;
  padding: 0.6rem 1.2rem;
  display: inline-block;
  color: #60a5fa;
  font-weight: 600;
  font-size: 0.9rem;
}

/* TECH STACK */
.tech-stack {
  margin: 6rem 0;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.tech-badge {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(37, 99, 235, 0.4);
  padding: 0.7rem 1.7rem;
  border-radius: 2.8rem;
  font-weight: 500;
  color: #d4e2ff;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.25);
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: #2563eb;
  color: white;
  box-shadow: 0 0 28px rgba(37, 99, 235, 0.5);
  transform: translateY(-3px);
}

/* FINAL CTA */
.final-cta {
  margin: 6rem 0;
}

.cta-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 3rem;
  text-align: center;
}

.cta-container h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.cta-container p {
  font-size: 1.2rem;
  color: #94a3b8;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.cta-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(100, 116, 139, 0.3);
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.95rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .pipeline-flow {
    justify-content: start;
  }
}

@media (max-width: 768px) {
  .comparison-wrapper {
    grid-template-columns: 1fr;
  }
  
  .comparison-divider {
    padding: 1rem 0;
  }
  
  .hero {
    min-height: auto;
    padding: 3rem 0;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .stat-proof {
    justify-content: center;
  }
  
  .calculator-results {
    flex-direction: column;
  }
  
  .result-arrow {
    transform: rotate(90deg);
  }
  
  .content-wrapper {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .pipeline-flow {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .industry-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-flow {
    flex-direction: column;
    align-items: center;
  }

  .pipeline-step {
    flex: 0 1 160px;
    width: 160px;
    height: 200px;
  }

  .pipeline-connector {
    width: 2px;
    height: 30px;
    flex: 0 0 30px;
  }

  .pipeline-connector::after {
    content: '↓';
    top: auto;
    bottom: -15px;
    left: -10px;
  }
}