/* =====================================================
   RESET
===================================================== */

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

/* =====================================================
   BODY
===================================================== */

body {
  font-family: "Segoe UI", sans-serif;
  background: #f4f7fb;
  color: #2c3e50;
  line-height: 1.6;
}

/* =====================================================
   CONTAINER
===================================================== */

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =====================================================
   LINKS
===================================================== */

a {
  text-decoration: none;
}

/* =====================================================
   HERO
===================================================== */

.hero {
  background: linear-gradient(135deg, #3498db, #2c3e50);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-text {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* =====================================================
   BUTTONS
===================================================== */

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-primary {
  background: #2ecc71;
  color: white;
}

.btn-primary:hover {
  background: #27ae60;
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: #2c3e50;
}

.btn-secondary:hover {
  background: #ecf0f1;
  transform: translateY(-2px);
}

/* =====================================================
   SECTIONS
===================================================== */

section {
  padding: 5px 0;
  margin-bottom: 40px;
}

.section-gray {
  background: #eef3f7;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.section-title p {
  max-width: 700px;
  margin: auto;
  color: #666;
}

/* =====================================================
   CARDS
===================================================== */

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

.card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

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

.card h3 {
  color: #3498db;
  margin-bottom: 15px;
}

.card p {
  color: #555;
}

/* =====================================================
   FEATURES
===================================================== */

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature h4 {
  color: #3498db;
  margin-bottom: 10px;
}

/* =====================================================
   TECHNOLOGIES
===================================================== */

.tech-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.tech-item {
  background: white;
  padding: 12px 22px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

/* =====================================================
   FOOTER
===================================================== */

footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 30px 20px;
}

footer p {
  margin: 5px 0;
}

/* =====================================================
   ADAPTIVE
===================================================== */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

/* =========================================================
   MathJax
========================================================= */

#transitionMatrixResult,
#stationaryDistribution,
#stepResults,
#stationarySystem,
#intensityMatrixResult,
#kolmogorovEquations {
  font-size: 1.5em;
  line-height: 1.4em;
}

.white-link {
  color: #ffffff;
}
.white-link:hover {
  color: #000000;
}
