:root {
  color-scheme: light dark;
  --background: #ffffff;
  --background-soft: #f7fbfd;
  --surface: rgba(255, 255, 255, 0.84);
  --sky: #e0f5ff;
  --sky-strong: #cceefe;
  --text: #0d476e;
  --text-body: #163d59;
  --muted: #587083;
  --border: rgba(13, 71, 110, 0.12);
  --blue: #38a6e0;
  --yellow: #ffc757;
  --purple: #a927ce;
  --orange: #f4a000;
  --shadow: 0 24px 70px rgba(19, 79, 114, 0.12);
  --page: min(1200px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

img,
svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 5px;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  padding: 18px 20px 0;
}

.header-inner {
  width: min(1360px, 100%);
  min-height: 72px;
  margin-inline: auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(13, 71, 110, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand img {
  border-radius: 50%;
}

.desktop-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}

.desktop-nav a,
.site-footer a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.desktop-nav a:hover,
.site-footer a:hover {
  color: #087ebc;
}

.mobile-menu {
  position: relative;
  display: none;
}

.mobile-menu summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--background-soft);
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.menu-icon {
  width: 20px;
  display: grid;
  gap: 4px;
}

.menu-icon span {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.mobile-menu[open] .menu-icon span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu[open] .menu-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-menu[open] .menu-icon span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu nav {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  width: min(280px, calc(100vw - 24px));
  padding: 10px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--background-soft);
  box-shadow: 0 20px 55px rgba(7, 37, 55, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mobile-menu:not([open]) nav {
  display: none;
}

.mobile-menu nav a {
  padding: 11px 13px;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.mobile-menu nav a:hover,
.mobile-menu nav a:focus-visible,
.mobile-menu nav a[aria-current="page"] {
  background: var(--sky);
}

main {
  overflow: hidden;
}

.hero {
  width: min(1440px, 100%);
  min-height: 760px;
  margin: -90px auto 0;
  padding: 190px max(40px, calc((100% - 1200px) / 2)) 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
  background:
    radial-gradient(circle at 76% 40%, rgba(255, 255, 255, 0.95) 0 16%, transparent 48%),
    linear-gradient(142deg, #f7fcff 10%, var(--sky) 72%, #f8fcff 100%);
  border-radius: 0 0 50% 8% / 0 0 12% 4%;
}

.hero-copy {
  padding-top: 34px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-copy > p {
  margin-bottom: 22px;
  color: var(--text);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.42;
}

.app-store-button {
  display: inline-block;
  margin: 0 0 28px;
  padding: 13px 20px;
  border: 1px solid rgba(13, 71, 110, 0.12);
  border-radius: 13px;
  background: var(--text);
  color: var(--background);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.app-store-button:hover {
  background: #0d476e;
  transform: translateY(-1px);
}

.proof-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.proof-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-weight: 650;
}

.proof-icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(56, 166, 224, 0.12);
  color: #168fcf;
}

.proof-icon-yellow {
  background: rgba(255, 199, 87, 0.2);
  color: #ec9e00;
}

.proof-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone {
  margin: 0;
  justify-self: center;
  filter: drop-shadow(0 38px 34px rgba(14, 54, 78, 0.2));
}

.phone-frame {
  width: min(350px, 34vw);
  padding: 10px;
  border: 4px solid #13181c;
  border-radius: 54px;
  background: #050708;
  box-shadow:
    inset 0 0 0 2px #69737a,
    0 3px 0 #a9b1b6;
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 42px;
}

.features {
  width: var(--page);
  margin-inline: auto;
  padding: 120px 0 80px;
}

.section-heading h2 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: clamp(2.2rem, 4.3vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-heading p {
  color: var(--text);
  font-size: clamp(1.08rem, 1.8vw, 1.4rem);
}

.feature-flow {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr minmax(40px, 0.55fr) 1fr minmax(40px, 0.55fr) 1fr;
  align-items: center;
}

.feature-flow article {
  display: grid;
  justify-items: center;
  text-align: center;
}

.feature-flow h3 {
  margin: 22px 0 0;
  color: #0c3261;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.25;
}

.feature-icon {
  width: 66px;
  height: 66px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon.blue {
  color: #1599e6;
}

.feature-icon.purple {
  color: var(--purple);
}

.feature-icon.orange {
  color: var(--orange);
}

.flow-line {
  height: 1px;
  background: var(--border);
}

.site-footer {
  width: var(--page);
  margin-inline: auto;
  padding: 34px 0 42px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer nav {
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cookie-notice {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  left: auto;
  width: min(430px, calc(100% - 44px));
  max-width: none;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text-body);
  box-shadow: 0 20px 60px rgba(7, 37, 55, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cookie-notice:not([open]) {
  display: none;
}

.cookie-notice h2 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 1.16rem;
  line-height: 1.3;
}

.cookie-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cookie-notice a {
  display: inline-block;
  margin-top: 8px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.cookie-notice form {
  margin-top: 16px;
}

.cookie-notice button {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 11px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  cursor: pointer;
}

.legal-main {
  width: min(800px, calc(100% - 40px));
  min-height: 72vh;
  margin-inline: auto;
  padding: 92px 0 70px;
}

.legal-main h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
}

.legal-intro {
  max-width: 680px;
  margin-bottom: 44px;
  color: var(--muted);
  font-size: 1.1rem;
}

.legal-content {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--background-soft);
  overflow: hidden;
}

.legal-content section {
  padding: clamp(22px, 4vw, 34px);
}

.legal-content section + section {
  border-top: 1px solid var(--border);
}

.legal-content h2 {
  margin-bottom: 9px;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.3;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 0;
}

.legal-content p + p,
.legal-content p + ul {
  margin-top: 12px;
}

.legal-content ul {
  padding-left: 1.3em;
}

.contact-button {
  display: inline-flex;
  margin-top: 18px;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 820px) {
  .site-header {
    padding: 10px 12px 0;
  }

  .header-inner {
    min-height: 62px;
    padding: 8px 14px;
    border-radius: 18px;
  }

  .brand {
    gap: 8px;
    font-size: 1.2rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    min-height: 0;
    margin-top: -72px;
    padding: 150px 26px 80px;
    grid-template-columns: 1fr;
    gap: 52px;
    border-radius: 0 0 44% 6% / 0 0 5% 2%;
  }

  .hero-copy {
    padding-top: 0;
  }

  .phone-frame {
    width: min(330px, 78vw);
  }

  .features {
    padding-top: 90px;
  }

  .feature-flow {
    margin-top: 54px;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .flow-line {
    width: 1px;
    height: 36px;
  }
}

@media (max-width: 520px) {
  :root {
    --page: calc(100% - 32px);
  }

  body {
    font-size: 16px;
  }

  .header-inner {
    gap: 10px;
    padding-inline: 10px;
  }

  .brand {
    gap: 6px;
    font-size: 1rem;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 3.7rem);
  }

  .hero {
    padding-inline: 20px;
  }

  .proof-list {
    grid-template-columns: 1fr 1fr;
  }

  .proof-list li {
    font-size: 0.92rem;
  }

  .proof-list li:last-child {
    grid-column: 1 / -1;
  }

  .legal-main {
    padding-top: 70px;
  }

  .cookie-notice {
    right: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #08131b;
    --background-soft: #101f29;
    --surface: rgba(13, 31, 42, 0.86);
    --sky: #102c3d;
    --sky-strong: #173b50;
    --text: #bce8ff;
    --text-body: #e7f3f8;
    --muted: #a7bcc7;
    --border: rgba(188, 232, 255, 0.14);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  }

  .header-inner {
    border-color: rgba(255, 255, 255, 0.08);
  }

  .hero {
    background:
      radial-gradient(circle at 76% 40%, rgba(19, 47, 64, 0.9) 0 16%, transparent 48%),
      linear-gradient(142deg, #0a1d29 10%, #102c3d 72%, #0a1d29 100%);
  }

  .feature-flow h3 {
    color: #dff3ff;
  }

}
