/* Variables */
:root {
  --bg: #f7faf8;
  --surface: #ffffff;
  --primary: #0f766e;
  --primary-deep: #005c55;
  --accent: #64d2c8;
  --text: #181c1c;
  --text-secondary: #3e4947;
  --border: #d9e4e2;
  --max-w: 960px;
  --radius: 12px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-brand:hover { text-decoration: none; }
.site-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}
.site-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.lang-switcher { display: flex; gap: 8px; }
.lang-btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.85);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lang-btn:hover, .lang-btn.active {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

/* Hero */
.hero {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 72px 24px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 36px;
}
.store-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-store {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: opacity 0.15s;
  cursor: pointer;
}
.btn-store:hover { opacity: 0.85; text-decoration: none; }
.btn-appstore { background: #fff; color: var(--primary); }
.btn-playstore { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }

/* Sections */
section { padding: 64px 24px; }
.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 40px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(15,118,110,0.06);
}
.feature-icon { font-size: 2.2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* Contact */
#contact { background: var(--surface); }
.contact-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.contact-card p { margin-bottom: 10px; color: var(--text-secondary); }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card strong { color: var(--text); }
.contact-card a { color: var(--primary); }
.contact-card .developed-by { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 16px; }

/* Footer */
footer {
  background: var(--primary-deep);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.9rem;
}
footer a { color: var(--accent); }
footer a:hover { color: #fff; }
.footer-links { margin-top: 10px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }

/* Legal pages */
.legal-hero {
  background: var(--primary);
  color: #fff;
  padding: 48px 24px 40px;
  text-align: center;
}
.legal-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.legal-hero .last-updated { opacity: 0.75; font-size: 0.9rem; }
.legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.legal-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 36px 0 12px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--text-secondary); margin-bottom: 14px; line-height: 1.7; }
.legal-body a { color: var(--primary); }
.legal-body ul { margin: 10px 0 14px 20px; color: var(--text-secondary); }
.legal-body ul li { margin-bottom: 6px; line-height: 1.6; }

/* Responsive */
@media (max-width: 600px) {
  .header-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
  .lang-switcher { flex-wrap: wrap; }
  .hero { padding: 48px 20px; }
  section { padding: 48px 16px; }
  .contact-card { padding: 20px 20px; }
}
