/* CSS Variables - Stakater Theme */
:root {
  /* Backgrounds */
  --primary-bg: #0a192f;
  --secondary-bg: #112240;
  --light-bg: #ffffff;
  --light-gray-bg: #f8f9fa;

  /* Accents */
  --accent-teal: #64ffda;
  --accent-blue: #5cabff;

  /* Text */
  --text-on-dark: #ccd6f6;
  --text-muted-dark: #8892b0;
  --text-on-light: #1a202c;
  --text-muted-light: #6c757d;

  /* UI Elements */
  --border-color: #233554;
  --shadow: rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-h1: 3.5rem;
  --font-h2: 2.5rem;
  --font-h3: 1.75rem;
  --font-body: 1.125rem;
  --line-height: 1.6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--font-body);
  line-height: var(--line-height);
  color: var(--text-on-light);
  overflow-x: hidden;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow);
}

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

.nav-logo {
  color: var(--accent-teal);
  font-weight: bold;
  font-size: 1.25rem;
}

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

.nav-menu a {
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.nav-menu a:hover {
  color: var(--accent-teal);
}

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

/* Sections */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
}

.section-dark {
  background: var(--primary-bg);
  color: var(--text-on-dark);
}

.section-light {
  background: var(--light-bg);
  color: var(--text-on-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: var(--font-h2);
  margin-bottom: 1rem;
}

.section-content {
  margin-top: 2rem;
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.section-hero {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
}

.hero-title {
  font-size: var(--font-h1);
  margin-bottom: 1rem;
  color: var(--accent-teal);
  font-weight: 700;
}

.hero-subtitle {
  font-size: var(--font-h3);
  margin-bottom: 1.5rem;
  color: var(--text-on-dark);
}

.hero-tagline {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  color: var(--text-muted-dark);
  font-weight: 300;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-primary {
  background: var(--accent-teal);
  color: var(--primary-bg);
  border: 2px solid var(--accent-teal);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

/* Lead Text */
.lead {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Challenge Section */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.challenge-card {
  background: var(--light-gray-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px var(--shadow);
  transition: transform 0.3s ease;
}

.challenge-card:hover {
  transform: translateY(-5px);
}

.challenge-card h3 {
  color: var(--text-on-light);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.challenge-card p {
  color: var(--text-muted-light);
}

/* Solution Section */
.solution-description {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: var(--text-muted-dark);
}

.service-portfolio {
  margin-top: 3rem;
}

.service-portfolio h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: var(--font-h3);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.service-item {
  background: var(--secondary-bg);
  padding: 2rem 1rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-item:hover {
  border-color: var(--accent-teal);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(100, 255, 218, 0.2);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-item p {
  font-weight: 500;
  color: var(--text-on-dark);
}

/* Architecture Section */
.architecture-container {
  margin: 3rem 0;
  text-align: center;
}

.architecture-diagram {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--shadow);
}

.tech-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tech-card {
  background: var(--light-gray-bg);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-blue);
}

.tech-card h4 {
  color: var(--text-on-light);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.tech-card p {
  color: var(--text-muted-light);
}

.tech-card code {
  background: #e9ecef;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  color: var(--accent-blue);
  font-size: 0.95rem;
}

/* Differentiation Section */
.diff-table {
  max-width: 1000px;
  margin: 2rem auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.diff-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.diff-header {
  background: var(--secondary-bg);
  font-weight: bold;
  font-size: 1.25rem;
}

.diff-row:not(.diff-header) {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-color);
}

.diff-row:not(.diff-header):hover {
  background: rgba(100, 255, 218, 0.1);
}

.diff-cell {
  padding: 1.5rem;
}

.diff-cell strong {
  color: var(--accent-teal);
}

/* Value Section */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.value-column h3 {
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
  font-size: var(--font-h3);
}

.value-list {
  list-style: none;
  padding-left: 0;
}

.value-list li {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  position: relative;
  color: var(--text-on-light);
}

.value-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: bold;
  font-size: 1.5rem;
}

.value-list strong {
  color: var(--text-on-light);
}

/* Demo Section */
.section-demo {
  text-align: center;
}

.demo-flows {
  margin-top: 3rem;
}

.demo-flows h3 {
  font-size: var(--font-h3);
  margin-bottom: 2rem;
}

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

.demo-card {
  background: var(--secondary-bg);
  padding: 2rem;
  border-radius: 8px;
  border-top: 4px solid var(--accent-teal);
  transition: transform 0.3s ease;
}

.demo-card:hover {
  transform: translateY(-5px);
}

.demo-card h4 {
  color: var(--accent-teal);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.demo-card p {
  color: var(--text-muted-dark);
}

.demo-cta {
  margin-top: 4rem;
}

.demo-ready {
  font-size: 1.75rem;
  color: var(--accent-teal);
  font-weight: 300;
  font-style: italic;
}

/* Footer */
.footer {
  background: var(--primary-bg);
  color: var(--text-muted-dark);
  text-align: center;
  padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --font-h1: 2.5rem;
    --font-h2: 2rem;
    --font-h3: 1.5rem;
    --font-body: 1rem;
  }

  .nav-menu {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .nav-logo {
    font-size: 1rem;
  }

  .section {
    min-height: auto;
    padding: 4rem 0;
  }

  .challenge-grid,
  .service-grid,
  .tech-highlights,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .diff-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .diff-cell {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-tagline {
    font-size: 1.125rem;
  }
}
