/* Modern Reset & Base */
:root {
  --primary-color: #2D3436;
  --accent-color: #00B894;
  --accent-gradient: linear-gradient(135deg, #0984e3 0%, #00cec9 100%);
  --bg-color: #F8F9FA;
  --text-color: #2d3436;
  --text-muted: #636e72;
  --max-width: 960px;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #0984e3;
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Header / Hero */
.site-header {
  background: var(--accent-gradient);
  color: white;
  padding: 3rem 1rem;
  /* Slightly reduced padding */
  text-align: center;
  /* Default center for mobile */
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  /* Prevent image spill */
}

.site-title {
  margin: 0;
  font-size: 2.5rem;
  /* Smaller on mobile */
  font-weight: 800;
  letter-spacing: -1px;
}

.site-tagline {
  margin-top: 1rem;
  font-size: 1.15rem;
  opacity: 0.9;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Grid Layout */
.hero-img {
  display: none;
  /* Hidden on small mobile by default or stacked? Let's stack */
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-top: 2rem;
  display: block;
}

@media (min-width: 768px) {
  .site-header {
    text-align: left;
    padding: 4rem 1rem;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .hero-content {
    justify-self: start;
  }

  .site-tagline {
    margin-left: 0;
    margin-right: 0;
    font-size: 1.25rem;
  }

  .site-title {
    font-size: 3.5rem;
  }

  .hero-img {
    margin-top: 0;
    max-height: 500px;
    /* Limit height */
    width: auto;
    justify-self: center;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
  }

  .hero-img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  }
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Language Nav */
.language-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e1e1e1;
}

.language-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid #dfe6e9;
  transition: all 0.2s ease;
}

.language-nav a:hover,
.language-nav a.active {
  color: white;
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.language-nav strong {
  /* If the current language is bolded in markdown, style it like an active pill */
  font-weight: normal;
  color: white;
  background: var(--accent-color);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  display: inline-block;
}

/* Main Content */
.page-content {
  padding-bottom: 4rem;
}

h1,
h2,
h3,
h4 {
  color: var(--primary-color);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 0.5rem;
}

p {
  font-size: 1.1rem;
  color: #444;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 2rem auto;
}

/* Special styling for the install link */
a[href*="apps.apple.com"] {
  display: inline-block;
  background: #000;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 1rem;
  text-decoration: none;
}

a[href*="apps.apple.com"]:hover {
  background: #333;
  transform: scale(1.02);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid #eee;
}