/* Reset and base styles */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #14b8a6;
  --text: #0f172a;
  --muted: #475569;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --border: #e2e8f0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(135deg, #e2e8f0 0%, #eef2ff 50%, #f0fdfa 100%);
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 2.5rem;
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

h3 {
  font-size: 1.8rem;
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

p {
  margin-bottom: 1rem;
  color: var(--text);
  font-weight: 500;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 0 4rem;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 200px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 2px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-card p {
  color: var(--text);
  font-weight: 500;
  line-height: 1.6;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
  padding: 1rem 0;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Responsive */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 2rem;
}

.p-2 {
  padding: 2rem;
}

/* Hero specific styles */
.hero-label {
  display: inline-block;
  background: rgba(37, 99, 235, 0.10);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 50px;
  padding: 0.35rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-description {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

/* Features section */
.features {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.about {
  padding: 4rem 0;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.tech-stack {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
}

.tech-stack ul {
  list-style: none;
  padding: 0;
}

.tech-stack li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(102, 126, 234, 0.2);
  color: #2c3e50;
  font-weight: 500;
}

.tech-stack li:last-child {
  border-bottom: none;
}

.cta {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.footer {
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.1);
  color: white;
  text-align: center;
}

.footer-content p {
  margin: 0.5rem 0;
  color: var(--muted);
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Hero figure (Figure 1 below hero text) */
.hero-figure {
  margin: 3rem auto 0;
  max-width: 860px;
  text-align: center;
}

.hero-figure-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

/* Feature cards with images */
.feature-card {
  text-align: left;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 16px 16px 0 0;
  display: block;
  padding: 12px;
}

.feature-card h3,
.feature-card p {
  padding: 0 1.5rem;
}

.feature-card h3 {
  padding-top: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  padding-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

.feature-card-no-img {
  padding: 1.5rem;
}

.feature-card-no-img h3,
.feature-card-no-img p {
  padding: 0;
}

.feature-card-no-img h3 {
  font-size: 1rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  margin-bottom: 0;
}

.feature-card-no-img p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

/* Pipeline section */
.pipeline-section {
  padding: 4rem 0;
}

.pipeline-figure {
  text-align: center;
  margin: 0 0 2.5rem;
}

.pipeline-figure-img {
  width: 100%;
  max-width: 780px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pipeline-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.pipeline-stages {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 780px;
  margin: 0 auto;
}

.pipeline-stage {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.pipeline-stage-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pipeline-stage-text h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.pipeline-stage-text p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* 2x2 grid for feature cards (with images they need more room) */
.features-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-figure {
    margin-top: 2rem;
  }

  .pipeline-stage {
    flex-direction: column;
  }
}

/* Palette overrides */
.hero-subtitle,
.hero-description,
.tech-stack li {
  color: var(--muted);
}

.features,
.cta {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}

.tech-stack {
  background: rgba(37, 99, 235, 0.08);
}

.tech-stack li {
  border-bottom: 1px solid rgba(37, 99, 235, 0.15);
}

.footer {
  background: var(--surface-muted);
  color: var(--muted);
}
