:root {
  --bg-dark: #0b1220;
  --bg-light: #121b2e;
  --text: #f8f9fa;
  --muted: #aab3c5;
  --accent: #00b19a;
  --yellow: #f5d547;
  --radius: 12px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at 50% 20%, var(--bg-light) 0%, var(--bg-dark) 70%);
  color: var(--text);
}

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

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
}
.brand .logo {
  width: 28px;
  height: 28px;
  background: var(--yellow);
  border-radius: 6px;
}
.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav a:hover {
  color: var(--accent);
}
.lang {
  background: transparent;
  border: 1px solid var(--muted);
  border-radius: 6px;
  color: var(--text);
  padding: 0.25rem 0.5rem;
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 5rem;
}
.hero > div {
  flex: 1 1 400px;
  text-align: left;
}
.kicker {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 1rem 0;
  line-height: 1.3;
}
.lead {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.badge {
  background: var(--yellow);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.badge[aria-disabled="true"] {
  opacity: 0.7;
  cursor: default;
}
.btn {
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.btn:hover {
  background: var(--accent);
  color: #000;
}
.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Screenshot / icon */
.screenshot {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.app-icon {
  display: block;
  width: 220px;
  height: 220px;
  border-radius: 24%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* Features */
.section {
  text-align: left;
  margin-top: 3rem;
}
.section .kicker {
  text-align: center;
  margin-bottom: 2rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.05);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  transition: background 0.25s ease, transform 0.25s ease;
}
.card.feature:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}
.card.feature svg {
  color: var(--yellow);
  flex-shrink: 0;
}
.card.feature h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
.card.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Divider */
hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 3rem 0;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer a {
  color: var(--accent);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .screenshot {
    justify-content: flex-start;
  }
}

/* --- Language dropdown visibility fix --- */
.lang {
  background-color: var(--bg-dark);
  color: var(--text);
  border: 1px solid var(--muted);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.9rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23aab3c5' d='M0 0l5 6 5-6H0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 0.8rem;
}

/* Ensures dropdown list text is visible (Safari/WebKit fix) */
.lang option {
  background-color: var(--bg-dark);
  color: var(--text);
}

/* Optional hover/focus style */
.lang:hover,
.lang:focus {
  border-color: var(--accent);
  outline: none;
}
