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

:root {
  --navy-900: #0a0e1a;
  --navy-800: #111827;
  --navy-700: #1a2235;
  --navy-600: #243049;
  --electric-400: #00e5ff;
  --electric-500: #00d9ff;
  --electric-600: #00bcd4;
  --paper-50: #fafbfc;
  --paper-100: #f3f4f6;
  --paper-200: #e5e7eb;
}

body {
  background: var(--navy-900);
  color: var(--paper-100);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--navy-600);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  font-size: 1.75rem;
}

.logo-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--paper-50);
}

.logo-subtitle {
  display: none;
  font-size: 0.75rem;
  color: rgba(243, 244, 246, 0.6);
}

@media (min-width: 640px) {
  .logo-subtitle {
    display: block;
  }
}

.main-nav {
  display: flex;
  gap: 0.25rem;
}

.nav-tab {
  padding: 0.5rem 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
  color: rgba(243, 244, 246, 0.7);
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: var(--electric-500);
  background: rgba(0, 217, 255, 0.1);
}

.nav-tab.active {
  color: var(--electric-500);
  background: rgba(0, 217, 255, 0.15);
}

/* Main content */
main {
  padding-top: 64px;
}

.section {
  max-width: 1024px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--paper-50);
  margin-bottom: 3rem;
}

.section-subtitle {
  text-align: center;
  color: rgba(243, 244, 246, 0.6);
  margin-bottom: 2rem;
}

/* Hero Section */
.hero-section {
  min-height: calc(70vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  animation: fade-in 0.8s ease-out forwards;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--paper-50);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-title .highlight {
  color: var(--electric-400);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(243, 244, 246, 0.8);
  font-weight: 300;
  margin-bottom: 3rem;
}

.flow-animation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.flow-step {
  background: rgba(26, 34, 53, 0.8);
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: var(--electric-400);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
}

.flow-arrow {
  color: var(--electric-400);
  font-size: 1.5rem;
}

/* Info Card */
.info-card {
  background: linear-gradient(135deg, rgba(26, 34, 53, 0.9) 0%, rgba(17, 24, 39, 0.9) 100%);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.info-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.info-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--paper-50);
  margin-bottom: 1rem;
}

.info-content p {
  color: rgba(243, 244, 246, 0.8);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.info-highlight {
  color: var(--electric-400) !important;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem !important;
}

/* Comparison Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.comparison-card {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(243, 244, 246, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
}

.comparison-card.traditional {
  border-color: rgba(239, 68, 68, 0.3);
}

.comparison-card.nomcp {
  border-color: rgba(0, 217, 255, 0.3);
  background: rgba(0, 217, 255, 0.05);
}

.comparison-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: 'IBM Plex Mono', monospace;
}

.comparison-card.traditional h3 {
  color: #f87171;
}

.comparison-card.nomcp h3 {
  color: var(--electric-400);
}

.comparison-list {
  list-style: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
  color: rgba(243, 244, 246, 0.7);
}

.comparison-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.comparison-list li::before {
  content: counter(list-item) ".";
  color: inherit;
  min-width: 1.5rem;
}

.comparison-card.traditional .comparison-list li::before {
  color: #f87171;
}

.comparison-card.nomcp .comparison-list li::before {
  color: var(--electric-400);
}

.comparison-checkmark {
  font-size: 4rem;
  text-align: center;
  margin-top: 2rem;
  color: var(--electric-400);
}

/* Code Block */
.code-block-wrapper {
  margin: 1.5rem 0;
}

.code-block {
  background: #0d1117;
  padding: 1.25rem;
  border-radius: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #e6edf3;
  border: 1px solid rgba(0, 217, 255, 0.1);
  overflow-x: auto;
}

/* Request/Response Cards */
.request-response-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.request-response-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(0, 217, 255, 0.15);
  border-radius: 0.75rem;
  padding: 1rem;
}

.method-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.method-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
}

.method-badge.get {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.method-badge.post {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.request-response-card code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
  color: var(--paper-100);
}

.request-response-card p {
  color: rgba(243, 244, 246, 0.6);
  font-size: 0.875rem;
}

/* Principles Grid */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.principle-card {
  background: rgba(26, 34, 53, 0.6);
  border: 1px solid rgba(0, 217, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  animation: fade-in 0.5s ease-out forwards;
  opacity: 0;
}

.principle-card:nth-child(1) { animation-delay: 0ms; }
.principle-card:nth-child(2) { animation-delay: 100ms; }
.principle-card:nth-child(3) { animation-delay: 200ms; }
.principle-card:nth-child(4) { animation-delay: 300ms; }
.principle-card:nth-child(5) { animation-delay: 400ms; }

.principle-card:hover {
  border-color: rgba(0, 217, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 217, 255, 0.1);
}

.principle-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.principle-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--paper-50);
  margin-bottom: 0.5rem;
}

.principle-card p {
  color: rgba(243, 244, 246, 0.6);
  font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--paper-50);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--electric-500) 0%, var(--electric-600) 100%);
  color: var(--navy-900);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
}

.cta-button.secondary {
  background: transparent;
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: var(--electric-400);
}

.cta-button.secondary:hover {
  background: rgba(0, 217, 255, 0.1);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--navy-600);
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: 4rem;
}

.site-footer p {
  color: rgba(243, 244, 246, 0.5);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer-joke {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem !important;
  color: rgba(243, 244, 246, 0.3) !important;
}

.footer-link {
  color: rgba(0, 229, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--electric-400);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(17, 24, 39, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 217, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 217, 255, 0.5);
}

/* Selection */
::selection {
  background: rgba(0, 217, 255, 0.3);
  color: #fff;
}

/* Responsive */
@media (max-width: 640px) {
  .info-card {
    flex-direction: column;
  }
  
  .code-block {
    font-size: 0.75rem;
    padding: 1rem;
  }
}