:root {
  --bg: #f2f8ff;
  --ink: #0f1f36;
  --accent: #ff9f1c;
  --brand: #1976d2;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 0% 0%, #e5f1ff 0%, var(--bg) 48%);
  overflow-x: hidden;
}

.hero {
  min-height: 72vh;
  padding: 56px 20px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(120deg, rgba(25, 118, 210, 0.9), rgba(16, 36, 66, 0.95)),
    url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=2000&q=80")
      center / cover no-repeat;
  color: #f7fbff;
}

.hero-content {
  width: min(920px, 100%);
  text-align: center;
}

.hero-logo {
  width: min(640px, 92vw);
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.hero-highlight {
  display: inline-block;
  margin: 0 auto 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 215, 106, 0.16);
  border: 1px solid rgba(255, 215, 106, 0.55);
  color: #fff3cf;
  font-weight: 800;
  letter-spacing: 0.2px;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  margin: 18px 0 12px;
}

.lead {
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  max-width: 780px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.download-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 44px;
  font-weight: 800;
  font-size: 0.95rem;
}

.store-btn.apk {
  background: #f8c14d;
  color: #0f1f36;
}

.store-btn.muted {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #f0f6ff;
}

.cta {
  display: inline-block;
  text-decoration: none;
  color: #0c1b31;
  background: var(--accent);
  font-weight: 800;
  border-radius: 14px;
  padding: 12px 20px;
  min-height: 44px;
}

.section {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 56px 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.card {
  background: var(--card);
  border: 1px solid #d5e4f7;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 14px 28px rgba(10, 30, 52, 0.08);
}

.alt {
  background: #e9f2ff;
  border-radius: 20px 20px 0 0;
}

.stack {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.stack li {
  background: #fff;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
}

.newsletter {
  background: #fff;
  border: 1px solid #d5e4f7;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 28px rgba(10, 30, 52, 0.08);
}

.newsletter p {
  margin-top: 0;
}

.newsletter-form {
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.newsletter-form label {
  font-weight: 700;
}

.newsletter-form input {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #b9cde7;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: #1976d2;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
  min-height: 44px;
}

.newsletter-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.newsletter-feedback {
  min-height: 24px;
  margin-top: 12px;
  font-weight: 700;
}

.newsletter-feedback.ok {
  color: #1d7f45;
}

.newsletter-feedback.error {
  color: #b02a37;
}

footer {
  text-align: center;
  padding: 22px;
  background: #0d1a2f;
  color: #d8e5f8;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-link {
  color: #e4f0ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #fff;
}

.footer-credit {
  margin: 8px 0 0;
  color: #a9bdd9;
  font-size: 0.95rem;
}

.legal-body {
  min-height: 100vh;
  background: radial-gradient(circle at 0% 0%, #e5f1ff 0%, var(--bg) 50%);
}

.legal-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 32px 20px 44px;
}

.legal-card {
  background: #fff;
  border: 1px solid #d5e4f7;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(10, 30, 52, 0.08);
  padding: 24px;
}

.legal-back {
  margin: 0 0 12px;
}

.legal-title {
  margin: 0 0 8px;
}

.legal-meta {
  margin: 0 0 20px;
  color: #315079;
  font-size: 0.95rem;
}

.legal-notice {
  margin: 0 0 24px;
  border-radius: 12px;
  padding: 14px;
  background: #fff7e8;
  border: 1px solid #ffd8a4;
}

.legal-section {
  margin-bottom: 24px;
}

.legal-section h2 {
  margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
  line-height: 1.62;
}

.legal-section ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.legal-placeholder {
  font-family: "Space Grotesk", sans-serif;
  color: #7f3200;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 42px 16px;
  }

  .hero-logo {
    width: min(540px, 100%);
    margin-bottom: 16px;
  }

  .hero-highlight {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 14px;
    text-align: center;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .download-hero {
    gap: 8px;
    margin-bottom: 14px;
  }

  .store-btn {
    width: 100%;
  }

  .section {
    padding: 40px 16px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card {
    padding: 16px;
  }

  .newsletter {
    padding: 18px;
  }

  .newsletter-form {
    max-width: none;
  }

  .newsletter-form button {
    width: 100%;
  }

  .legal-shell {
    padding: 20px 16px 30px;
  }

  .legal-card {
    border-radius: 14px;
    padding: 16px;
  }
}

@media (max-width: 430px) {
  .hero {
    padding: 32px 12px;
  }

  .section {
    padding: 30px 12px;
  }

  .hero-highlight {
    font-size: 0.9rem;
    padding: 9px 12px;
  }

  .card {
    border-radius: 14px;
  }

  .newsletter {
    border-radius: 14px;
    padding: 14px;
  }

  .newsletter-form input,
  .newsletter-form button {
    font-size: 16px;
  }
}
