:root {
  --brand: #2baba7;
  --brand-pressed: #218e8b;
  --brand-soft: #e3f5f4;

  --bg: #ffffff;
  --bg-surface: #f6f7f8;
  --text: #0f1620;
  --text-secondary: #5a6471;
  --text-muted: #8b95a3;
  --border: #e5e8ec;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --max-width: 1080px;
  --pad-x: clamp(20px, 5vw, 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #34c4c0;
    --brand-pressed: #28a3a0;
    --brand-soft: #173b3a;
    --bg: #0e1418;
    --bg-surface: #161d22;
    --text: #f0f3f6;
    --text-secondary: #aab3bd;
    --text-muted: #7a8590;
    --border: #252e35;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  color: var(--brand-pressed);
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  color: var(--text);
}
p {
  margin: 0;
  color: var(--text-secondary);
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px var(--pad-x);
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.brand img {
  width: 32px;
  height: 32px;
}
.nav__links {
  display: none;
  gap: 24px;
  margin-left: auto;
}
.nav__links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}
.nav__links a:hover {
  color: var(--text);
}
.nav__lang {
  display: inline-flex;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px;
}
.nav__lang button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}
.nav__lang button[aria-pressed='true'] {
  background: var(--brand);
  color: #fff;
}
@media (min-width: 720px) {
  .nav__links {
    display: inline-flex;
  }
  .nav__lang {
    margin-left: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px var(--pad-x) 64px;
}
@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    padding-block: 64px 96px;
  }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-soft);
  color: var(--brand-pressed);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}
.badge > i {
  font-size: 13px;
  opacity: 0.9;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero__lead {
  font-size: 17px;
  max-width: 520px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.hero__hint {
  font-size: 13px;
  color: var(--text-muted);
}
.hero__art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__art img {
  width: min(60vw, 240px);
  height: auto;
  filter: drop-shadow(0 24px 60px rgba(43, 171, 167, 0.25));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.btn__ico {
  font-size: 1.05em;
  opacity: 0.95;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-pressed);
  color: #fff;
}
.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------- Features ---------- */
.features {
  background: var(--bg-surface);
  padding: 64px var(--pad-x);
}
.features > h2,
.how > h2,
.download > h2 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 auto 40px;
  max-width: var(--max-width);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: default;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.feature:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.feature__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 1.75rem;
  line-height: 1;
}
.feature h3 {
  font-size: 17px;
  margin-bottom: 8px;
  text-align: center;
}
.feature p {
  font-size: 14px;
}

/* ---------- How ---------- */
.how {
  padding: 64px var(--pad-x);
  max-width: var(--max-width);
  margin: 0 auto;
}
.how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.how__steps li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  cursor: default;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.how__steps li:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.how__num {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.how__steps h3 {
  font-size: 17px;
  margin-bottom: 4px;
}
.how__steps p {
  font-size: 14px;
}

/* ---------- Download ---------- */
.download {
  background: var(--bg-surface);
  padding: 64px var(--pad-x);
}
.download__sub {
  text-align: center;
  margin: -24px auto 32px;
  max-width: 600px;
  font-size: 15px;
}
.download__cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (min-width: 900px) {
  .download__cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.download__cards .card {
  padding: 16px 10px;
}
.download__cards .card__icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.download__cards .card__title {
  font-size: 14px;
}
.download__cards .card__sub {
  font-size: 12px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.card__icon {
  font-size: 1.75rem;
  color: var(--brand);
  margin-bottom: 10px;
  line-height: 1;
}
.card--soon .card__icon {
  opacity: 0.55;
}
.card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.card--soon {
  opacity: 0.6;
  cursor: default;
}
.card--soon:hover {
  border-color: var(--border);
  transform: none;
}
.card__title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}
.card__sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px var(--pad-x);
  margin-top: 24px;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--text);
}
.footer__terms {
  font-weight: 400;
  font-size: 13px;
  color: var(--text-secondary);
}
.footer__terms:hover {
  color: var(--brand);
}
.footer__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 13px;
}
.footer__meta a {
  color: var(--text-secondary);
}
.footer__meta a:hover {
  color: var(--brand);
}
.footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer__contact i {
  font-size: 0.95em;
  opacity: 0.85;
}
.dot {
  opacity: 0.5;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px var(--pad-x);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}
.cookie-banner[hidden] {
  display: none !important;
}
.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-banner__text {
  flex: 1 1 280px;
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.cookie-banner__text a {
  color: var(--brand);
  text-decoration: underline;
}
.cookie-banner__text a:hover {
  color: var(--brand-pressed);
}
.cookie-banner__accept {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 18px;
}

/* ---------- Legal / terms page ---------- */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px var(--pad-x) 80px;
}
.legal-page h1 {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  margin-bottom: 8px;
}
.legal-page .legal-updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.legal-page h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}
.legal-page p,
.legal-page li {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 12px;
}
.legal-page ul {
  margin: 0 0 16px;
  padding-left: 1.25em;
}
.legal-page a {
  color: var(--brand);
}
.legal-page a:hover {
  color: var(--brand-pressed);
}
.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
}
