@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/Onest-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/Onest-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/Onest-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #102d34;
  --muted: #58737a;
  --accent: #19b7c4;
  --accent-dark: #087d88;
  --surface: #ffffff;
  --surface-blue: #e8f6f8;
  --line: #cfe1e4;
  --dark: #102d34;
  --dark-muted: #aac2c7;
  --white: #ffffff;
  --header-height: 76px;
  --shadow-float: 0 18px 42px rgba(12, 53, 60, 0.16);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #f8fbfc;
  font-family: "Onest", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-dark); text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.container { width: min(100% - 40px, 1120px); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(16, 45, 52, 0.09);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  width: max-content;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img { flex: 0 0 auto; border-radius: 13px; }

.site-nav {
  display: flex;
  gap: clamp(22px, 3vw, 46px);
  align-items: center;
  justify-content: center;
}

.site-nav a {
  color: #3f5d64;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.header-actions { display: flex; gap: 18px; align-items: center; }

.android-label { color: var(--muted); font-size: 13px; font-weight: 600; }

.header-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 120ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}

.header-download {
  padding: 10px 17px;
  color: var(--white);
  background: var(--dark);
  border-radius: 999px;
  font-size: 13px;
}

.button { min-height: 54px; padding: 14px 24px; border: 0; border-radius: 999px; cursor: pointer; }
.button-primary { color: #052f34; background: var(--accent); }
.button-dark { color: var(--white); background: var(--dark); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  color: var(--ink);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle-icon { position: relative; display: block; width: 20px; height: 14px; }
.menu-toggle-icon i { position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 200ms var(--ease-out); }
.menu-toggle-icon i:first-child { top: 3px; }
.menu-toggle-icon i:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon i:last-child { transform: translateY(-3px) rotate(-45deg); }

.site-footer { padding: 76px 0 26px; color: var(--white); background: var(--dark); }
.site-footer .brand { color: var(--white); }
.footer-main { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 90px; }
.footer-product p { max-width: 360px; margin: 22px 0 0; color: var(--dark-muted); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; }
.footer-links div { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-links strong { margin-bottom: 7px; font-size: 13px; }
.footer-links a { color: var(--dark-muted); font-size: 13px; text-decoration: none; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 64px; padding-top: 22px; color: #8faab0; border-top: 1px solid rgba(255,255,255,0.13); font-size: 12px; }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 220;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 17px 18px 17px 20px;
  color: var(--white);
  background: var(--dark);
  border-radius: 16px;
  box-shadow: var(--shadow-float);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out);
}

.toast.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.toast strong, .toast span { display: block; }
.toast span { margin-top: 3px; color: var(--dark-muted); font-size: 13px; line-height: 1.4; }
.toast button { align-self: start; padding: 2px; color: var(--white); background: transparent; border: 0; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover, .footer-links a:hover { color: var(--accent); }
  .header-download:hover, .button-dark:hover { background: #17434b; color: var(--white); }
  .button-primary:hover { background: #39c6d1; color: #052f34; }
}

.header-download:active, .button:active { transform: scale(0.97); }

@media (max-width: 860px) {
  :root { --header-height: 68px; }
  .container { width: min(100% - 36px, 720px); }
  .header-inner { gap: 18px; }
  .brand { font-size: 18px; }
  .brand img { width: 40px; height: 40px; }
  .header-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-nav { position: fixed; top: calc(var(--header-height) + 10px); right: 18px; left: 18px; display: flex; flex-direction: column; gap: 0; align-items: stretch; padding: 10px 20px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-float); opacity: 0; pointer-events: none; transform: translateY(-8px) scale(0.97); transform-origin: top right; transition: opacity 160ms var(--ease-out), transform 200ms var(--ease-out); }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
  .site-nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav a:last-child { border-bottom: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 50px; }
  .footer-links { gap: 24px; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 720px); }
  .site-footer { padding-top: 56px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-links div:last-child { grid-column: span 2; }
  .footer-bottom { flex-direction: column; align-items: flex-start; margin-top: 46px; }
  .toast { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}
