/* AgentOps - Agent Infrastructure Product Styles */
/* Design System: Enterprise Infrastructure with Developer-First DNA */

/* CSS Variables - Color Palette */
:root {
  /* Primary Colors */
  --deep-navy: #0F172A;
  --electric-blue: #3B82F6;
  --pure-white: #FFFFFF;
  
  /* Secondary Colors */
  --slate-gray: #64748B;
  --light-gray: #F8FAFC;
  --lighter-slate: #94A3B8;
  
  /* Status Colors */
  --success-green: #10B981;
  --warning-amber: #F59E0B;
  --error-red: #EF4444;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 80px 0;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--slate-gray);
  background-color: var(--pure-white);
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--deep-navy);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 24px;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 16px;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.25rem;
  color: var(--slate-gray);
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: var(--font-family);
}

.btn-primary {
  background: var(--electric-blue);
  color: var(--pure-white);
}

.btn-primary:hover {
  background: #2563EB;
  transform: translateY(-1px);
  box-shadow: var(--box-shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--deep-navy);
  border: 2px solid var(--deep-navy);
}

.btn-secondary:hover {
  background: var(--deep-navy);
  color: var(--pure-white);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
}

/* Navigation */
.navbar {
  background: var(--pure-white);
  border-bottom: 1px solid var(--light-gray);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--deep-navy);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--slate-gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--deep-navy);
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--deep-navy) 0%, #1e293b 100%);
  color: var(--pure-white);
}

.hero-content {
  text-align: center;
  margin-bottom: 48px;
}

.hero-title {
  color: var(--pure-white);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--electric-blue);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Hero Visual */
.hero-visual {
  margin-top: 64px;
}

.agent-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.flow-before, .flow-after {
  background: rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.flow-before h4, .flow-after h4 {
  color: var(--pure-white);
  margin-bottom: 16px;
  font-size: 1rem;
}

.flow-arrow {
  font-size: 2rem;
  color: var(--electric-blue);
  font-weight: bold;
}

/* Code Blocks */
.code-block {
  background: var(--deep-navy);
  border-radius: var(--border-radius);
  padding: 16px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 0.875rem;
  overflow-x: auto;
}

.code-block.error {
  border-left: 4px solid var(--error-red);
}

.code-block.success {
  border-left: 4px solid var(--success-green);
}

.code-line {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.code-line.error-line {
  color: var(--error-red);
}

.code-line.success-line {
  color: var(--success-green);
}

.code-block pre {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  white-space: pre-wrap;
}

/* Sections */
section {
  padding: var(--section-padding);
}

section:nth-child(even) {
  background: var(--light-gray);
}

/* Problem Section */
.problem h2, .solution h2 {
  text-align: center;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 64px;
}

.problem-card {
  background: var(--pure-white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  text-align: center;
}

.problem-icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.problem-card h3 {
  margin-bottom: 24px;
  color: var(--deep-navy);
}

.problem-card blockquote {
  font-style: italic;
  color: var(--slate-gray);
  margin-bottom: 16px;
  padding: 16px;
  background: var(--light-gray);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--electric-blue);
}

.quote-source {
  font-size: 0.875rem;
  color: var(--lighter-slate);
  font-weight: 500;
}

.productivity-loss {
  text-align: center;
  margin-top: 64px;
}

.loss-visual {
  background: var(--pure-white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  max-width: 600px;
  margin: 0 auto;
}

.chart-caption {
  font-size: 0.875rem;
  color: var(--lighter-slate);
  margin-top: 16px;
}

/* Solution Section */
.solution-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 48px;
}

.pillar {
  text-align: center;
  padding: 32px;
}

.pillar-icon {
  color: var(--electric-blue);
  margin-bottom: 24px;
}

.pillar h3 {
  margin-bottom: 16px;
  color: var(--deep-navy);
}

.pillar p {
  margin-bottom: 24px;
  color: var(--slate-gray);
}

.pillar ul {
  list-style: none;
  text-align: left;
}

.pillar li {
  padding: 8px 0;
  color: var(--slate-gray);
  position: relative;
  padding-left: 24px;
}

.pillar li::before {
  content: "✓";
  color: var(--success-green);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Developer Experience Section */
.developer-experience {
  background: var(--light-gray);
}

.code-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}

.code-before, .code-after {
  background: var(--pure-white);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
}

.framework-support {
  text-align: center;
}

.framework-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.framework-item {
  background: var(--pure-white);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.framework-name {
  font-weight: 600;
  color: var(--deep-navy);
}

.support-status {
  color: var(--success-green);
  font-weight: 600;
}

/* Enterprise Section */
.enterprise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.enterprise-card {
  background: var(--pure-white);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  border-top: 4px solid var(--electric-blue);
}

.enterprise-card h4 {
  color: var(--deep-navy);
  margin-bottom: 12px;
}

.enterprise-card p {
  color: var(--slate-gray);
  margin: 0;
}

/* Dashboard */
.metrics-dashboard {
  text-align: center;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.metric-card {
  background: var(--deep-navy);
  color: var(--pure-white);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
}

.metric-label {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--electric-blue);
}

/* Getting Started */
.setup-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 64px;
}

.step {
  background: var(--pure-white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  text-align: center;
}

.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--electric-blue);
  color: var(--pure-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 24px;
}

.step h3 {
  margin-bottom: 24px;
}

.step .code-block {
  margin-top: 16px;
  text-align: left;
}

.cta-section {
  text-align: center;
  background: var(--light-gray);
  padding: 64px 32px;
  border-radius: 16px;
}

.cta-section h3 {
  margin-bottom: 32px;
  font-size: 1.5rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cta-note {
  color: var(--lighter-slate);
  margin: 0;
}

/* Footer */
.footer {
  background: var(--deep-navy);
  color: var(--pure-white);
  padding: 64px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 32px;
}

.footer-brand .logo {
  color: var(--pure-white);
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.link-group h4 {
  color: var(--pure-white);
  margin-bottom: 16px;
}

.link-group a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.link-group a:hover {
  color: var(--electric-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-legal a:hover {
  color: var(--electric-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero-stats {
    gap: 24px;
  }
  
  .agent-flow {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .flow-arrow {
    transform: rotate(90deg);
  }
  
  .code-comparison {
    grid-template-columns: 1fr;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-menu {
    display: none; /* Simplified for mobile */
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.problem-card,
.pillar,
.enterprise-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}