@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #ffffff;
  color: #2d3748;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at top, rgba(102, 126, 234, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Top Navigation Bar */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  font-size: 1.3em;
  font-weight: 700;
  color: #667eea;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: -0.5px;
}

.nav-logo:hover {
  color: #5568d3;
}

.nav-links {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-link {
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95em;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #667eea;
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #667eea;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.external-icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: all 0.3s ease;
  transform: translateY(0) translateX(0);
}

.external-link:hover .external-icon {
  opacity: 1;
  transform: translateY(-2px) translateX(2px);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: #4a5568;
  transition: all 0.3s ease;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 20px 60px;
  position: relative;
  z-index: 2;
}

.project-header {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 2px solid #e2e8f0;
}

.header-content h1 {
  font-size: 2.5em;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 15px;
}

.meta-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.status-badge {
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.active {
  background: #d4f4dd;
  color: #22863a;
  border: 1px solid #9ae6b4;
  margin-top: 30px
}

.status-badge.development {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fcd34d;
  margin-top: 30px
}

.status-badge.flagship {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: 1px solid #5568d3;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  margin-top: 30px
}

.timeline {
  color: #718096;
  font-size: 0.95em;
  font-weight: 500;
}

.project-tagline {
  font-size: 1.2em;
  color: #4a5568;
  line-height: 1.6;
}

section {
  margin-bottom: 60px;
}

h2 {
  color: #667eea;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #667eea, transparent);
}

h3 {
  color: #2d3748;
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
}

p {
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 1.02em;
}

.overview-section p {
  font-size: 1.05em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.stat-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
  transform: translateY(-3px);
}

.stat-value {
  font-size: 2.5em;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 5px;
}

.stat-label {
  color: #718096;
  font-size: 0.9em;
  font-weight: 500;
}

/* Proof CTA Banner */
.proof-cta {
  margin-top: 40px;
  padding: 25px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.proof-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.proof-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.proof-text {
  color: white;
  font-size: 1.1em;
  font-weight: 600;
}

.proof-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #667eea;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.3s ease;
}

.proof-link:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.proof-link:hover .arrow-icon {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .proof-cta-content {
    flex-direction: column;
    text-align: center;
  }

  .proof-link {
    width: 100%;
    justify-content: center;
  }
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.server-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.server-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
  transform: translateY(-3px);
}

.server-card h3 {
  color: #667eea;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.server-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.spec {
  background: #f7fafc;
  color: #4a5568;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

.server-services {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.server-services li {
  color: #4a5568;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.95em;
}

.server-services li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.server-note {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
  color: #718096;
  font-size: 0.9em;
  font-style: italic;
}

.tech-section {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
}

.code-block {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-top: 15px;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  font-family: 'Fira Code', monospace;
  font-size: 0.9em;
  line-height: 1.6;
}

.code-block code {
  color: #2d3748;
}

code {
  background: #f7fafc;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  font-size: 0.9em;
  color: #667eea;
}

.monitoring-features {
  display: grid;
  gap: 15px;
  margin-top: 15px;
}

.feature-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 3px solid #667eea;
}

.feature-item strong {
  color: #2d3748;
  display: block;
  margin-bottom: 5px;
}

.feature-item p {
  margin: 0;
  font-size: 0.95em;
  color: #4a5568;
}

.security-note {
  background: #e0e7ff;
  border: 1px solid #c3dafe;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

.security-note strong {
  color: #5a67d8;
}

.timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #667eea, #e2e8f0);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #667eea;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #e2e8f0;
}

.timeline-content {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.timeline-content h3 {
  color: #667eea;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.timeline-content p {
  margin: 0;
  color: #4a5568;
}

.challenge-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-left: 4px solid #667eea;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.challenge-card:hover {
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
  transform: translateX(5px);
}

.challenge-card h3 {
  color: #667eea;
  margin-bottom: 15px;
}

.learning-card {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px;
  font-size: 1.05em;
  line-height: 1.8;
}

.learning-card p {
  color: #2d3748;
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.tech-category {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.tech-category h3 {
  color: #2d3748;
  font-size: 1.1em;
  margin-bottom: 15px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background: #f7fafc;
  color: #667eea;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
  transform: translateY(-1px);
}

.cta-section {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 12px;
  margin-top: 60px;
}

.cta-section h2::after {
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #667eea, transparent);
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
}

.cta-btn {
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta-btn.primary {
  background: #667eea;
  color: white;
}

.cta-btn.primary:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cta-btn.secondary {
  background: white;
  color: #667eea;
  border-color: #667eea;
}

.cta-btn.secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

footer {
  text-align: center;
  padding: 40px 20px;
  background-color: #f7fafc;
  font-size: 0.9em;
  color: #718096;
  border-top: 1px solid #e2e8f0;
  margin-top: 60px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 20px;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 15px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .container {
    padding: 100px 20px 40px;
  }

  .header-content h1 {
    font-size: 2em;
  }

  .project-tagline {
    font-size: 1.05em;
  }

  h2 {
    font-size: 1.5em;
  }

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

  .architecture-grid,
  .tech-categories {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline-marker {
    left: -27px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-btn {
    width: 100%;
  }
}
