:root {
  --color-primary: #0057ff;
  --color-accent: #96efff;
  --color-text: #20242e;
  --color-muted: #999999;
  --color-white: #ffffff;
  --color-deep: #001b75;
  --color-surface: #f5f7fb;
  --color-border: rgba(32, 36, 46, 0.12);
  --container: 1360px;
  --shadow-phone: 0 40px 100px rgba(0, 17, 72, 0.42);
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 16px;
  color: var(--color-text);
  background: var(--color-white);
  border-radius: 8px;
  transform: translateY(-160%);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  color: var(--color-white);
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-compact {
  background-color: rgba(0, 27, 117, 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.site-nav {
  position: relative;
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.brand-icon {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 42px;
  font-size: 15px;
  font-weight: 600;
}

.desktop-nav a,
.language-toggle {
  opacity: 0.86;
  transition: opacity 150ms ease;
}

.desktop-nav a:hover,
.language-toggle:hover {
  opacity: 1;
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.language-picker {
  position: relative;
}

.language-toggle,
.menu-toggle {
  border: 0;
  padding: 0;
  color: var(--color-white);
  background: transparent;
  cursor: pointer;
}

.language-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
}

.language-toggle img {
  width: 18px;
  filter: brightness(0) invert(1);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 172px;
  padding: 8px;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 17, 72, 0.28);
}

.language-menu button {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button.is-active {
  color: var(--color-primary);
  background: #edf3ff;
}

.nav-download {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  color: var(--color-primary);
  background: var(--color-white);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.nav-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 17, 72, 0.24);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.menu-toggle img {
  width: 25px;
  filter: brightness(0) invert(1);
}

.menu-toggle[aria-expanded="false"] .menu-close-icon,
.menu-toggle[aria-expanded="true"] .menu-open-icon {
  display: none;
}

.mobile-menu {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  padding: 18px;
  color: var(--color-text);
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 17, 72, 0.32);
}

.mobile-menu a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--color-border);
  font-weight: 650;
}

.mobile-menu a:last-child {
  margin-top: 8px;
  justify-content: center;
  color: var(--color-white);
  background: var(--color-primary);
  border: 0;
  border-radius: 12px;
}

.hero {
  min-height: 760px;
  display: flex;
  align-items: stretch;
  color: var(--color-white);
  background-color: var(--color-deep);
  background-image: url("./assets/hero-background.png");
  background-position: center;
  background-size: cover;
}

.hero-inner {
  min-height: 760px;
  padding-top: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
  align-items: start;
  gap: 40px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-top: 72px;
}

.section-label {
  margin: 0 0 24px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-label.light {
  color: var(--color-accent);
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(4.2rem, 6.4vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -0.064em;
  line-height: 0.92;
}

.hero h1 span {
  display: block;
}

.hero h1 > span:first-child {
  white-space: nowrap;
}

.hero-accent {
  margin-top: 12px;
  color: var(--color-accent);
}

.hero-body {
  max-width: 610px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.45;
}

.store-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-download-option {
  position: relative;
  display: inline-flex;
}

.store-link {
  display: inline-flex;
  min-height: 58px;
  transition:
    transform 150ms ease,
    filter 150ms ease;
}

.store-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.store-link img {
  width: auto;
  height: 58px;
  object-fit: contain;
}

.store-qr-popover {
  display: none;
}

.store-disclosure {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .store-qr-popover {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 18px);
    z-index: 20;
    width: 180px;
    padding: 14px 14px 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text);
    text-align: center;
    background: var(--color-white);
    border: 1px solid rgba(0, 87, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(0, 17, 72, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    pointer-events: none;
    transition:
      opacity 160ms ease,
      visibility 160ms ease,
      transform 160ms ease;
  }

  .store-qr-popover::after {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 14px;
    height: 14px;
    content: "";
    background: var(--color-white);
    border-right: 1px solid rgba(0, 87, 255, 0.12);
    border-bottom: 1px solid rgba(0, 87, 255, 0.12);
    transform: translate(-50%, -7px) rotate(45deg);
  }

  .store-qr-popover > img {
    width: 148px;
    height: 148px;
    object-fit: contain;
    border-radius: 10px;
  }

  .store-qr-popover strong {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.2;
  }

  .store-qr-popover > span {
    margin-top: 3px;
    color: #6f7480;
    font-size: 12px;
    line-height: 1.3;
  }

  .store-download-option:hover .store-qr-popover,
  .store-download-option:focus-within .store-qr-popover {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

.hero-visual {
  align-self: end;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.hero-product-image {
  width: min(100%, 500px);
  max-height: 700px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 38px 38px 0 0;
  box-shadow: var(--shadow-phone);
  transform: rotate(2.2deg) translateY(18px);
}

.value-section {
  padding: 92px 0 106px;
  background: var(--color-white);
}

.value-section > .container {
  display: grid;
  grid-template-columns: 0.95fr 1.6fr;
  gap: 84px;
  align-items: end;
}

.section-heading h2,
.story-copy h2,
.business-panel h2,
.privacy-inner h2,
.download-copy h2,
.support-inner h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.4vw, 4.6rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.section-heading > p:last-child,
.story-copy > p:last-child,
.privacy-inner > div > p,
.download-copy > p,
.business-panel > p {
  color: #747987;
  font-size: 18px;
  line-height: 1.7;
}

.value-heading > p:last-child {
  max-width: 520px;
  margin: 20px 0 0;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
}

.benefit-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
}

.benefit-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  border-radius: 50%;
}

.benefit-icon img {
  width: 25px;
  filter: brightness(0) invert(1);
}

.benefit-item h3 {
  margin: 3px 0 7px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.benefit-item p {
  margin: 0;
  color: #747987;
  font-size: 14px;
  line-height: 1.55;
}

.product-stories {
  padding: 60px 0 150px;
  background: var(--color-surface);
}

.story {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(330px, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 130px;
  border-bottom: 1px solid var(--color-border);
}

.story:last-child {
  border-bottom: 0;
}

.story-reverse .story-media {
  order: 2;
}

.story-reverse .story-copy {
  order: 1;
}

.story-media {
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.story-media img {
  width: min(100%, 420px);
  max-height: 640px;
  object-fit: cover;
  object-position: top center;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 28px 80px rgba(32, 36, 46, 0.16);
}

.story-copy {
  max-width: 620px;
}

.story-copy h2 {
  max-width: 600px;
}

.story-copy > p:last-child {
  max-width: 580px;
  margin: 28px 0 0;
}

.business-section {
  padding: 110px 0;
  background: var(--color-white);
}

.business-panel {
  padding: 76px 80px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 96px;
  align-items: end;
  background: #edf3ff;
  border-radius: 28px;
}

.business-panel h2 {
  font-size: clamp(2.35rem, 3.6vw, 3.9rem);
}

.business-panel > p {
  margin: 0;
}

.privacy-section {
  padding: 126px 0;
  background: var(--color-white);
}

.privacy-inner {
  max-width: 960px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 40px;
}

.privacy-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  border-radius: 50%;
}

.privacy-icon img {
  width: 40px;
  filter: brightness(0) invert(1);
}

.privacy-inner h2 {
  font-size: clamp(2.75rem, 4.7vw, 5rem);
}

.privacy-inner > div > p {
  max-width: 760px;
  margin: 26px 0 0;
}

.text-link {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 750;
}

.text-link img,
.support-email img {
  width: 18px;
}

.download-section {
  padding: 126px 0;
  color: var(--color-white);
  background: var(--color-primary);
}

.download-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 100px;
}

.download-copy h2 {
  max-width: 700px;
}

.download-copy > p {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.qr-card {
  margin: 0;
  padding: 18px;
  color: var(--color-text);
  background: var(--color-white);
  border-radius: 18px;
}

.qr-card img {
  width: 100%;
  aspect-ratio: 1;
}

.qr-card figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.support-section {
  padding: 100px 0;
  background: var(--color-white);
}

.support-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.support-inner h2 {
  font-size: clamp(2.5rem, 4.1vw, 4.2rem);
}

.support-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.site-footer {
  padding: 44px 0;
  color: #6f7480;
  background: #f7f8fb;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  min-height: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.footer-brand {
  color: var(--color-text);
  font-size: 20px;
}

.footer-brand .brand-icon {
  width: 34px;
  height: 34px;
}

.footer-inner p {
  margin: 0;
  font-size: 13px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  font-size: 13px;
  font-weight: 650;
}

@media (max-width: 1199px) {
  .container {
    width: min(100% - 56px, var(--container));
  }

  .site-nav {
    gap: 26px;
  }

  .desktop-nav {
    gap: 25px;
  }

  .language-toggle > span:last-child {
    display: none;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(3.85rem, 6.1vw, 5.4rem);
  }

  .hero-product-image {
    width: min(100%, 430px);
    transform: rotate(1deg) translateY(12px);
  }

  .value-section > .container {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .story {
    gap: 72px;
  }

  .business-panel {
    gap: 56px;
    padding: 64px;
  }

  .download-inner {
    gap: 58px;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .nav-download {
    display: none;
  }

  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero,
  .hero-inner {
    min-height: 900px;
  }

  .hero-inner {
    padding-top: 150px;
    grid-template-columns: 1fr;
    align-items: start;
    text-align: center;
  }

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

  .hero h1,
  .hero-body {
    margin-inline: auto;
  }

  .store-actions {
    justify-content: center;
  }

  .hero-visual {
    align-self: end;
  }

  .hero-product-image {
    width: min(78vw, 430px);
  }

  .benefit-grid {
    gap: 28px;
  }

  .benefit-item {
    grid-template-columns: 1fr;
  }

  .story,
  .story.story-reverse {
    min-height: 0;
    padding: 92px 0;
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .story-reverse .story-media,
  .story-reverse .story-copy {
    order: initial;
  }

  .story-media {
    min-height: 570px;
  }

  .story-copy {
    max-width: 700px;
  }

  .business-panel,
  .download-inner {
    grid-template-columns: 1fr;
  }

  .qr-grid {
    max-width: 520px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 40px, var(--container));
  }

  html {
    scroll-padding-top: 76px;
  }

  .site-nav {
    min-height: 76px;
  }

  .brand {
    font-size: 21px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .nav-actions {
    gap: 8px;
  }

  .language-toggle {
    padding: 0 8px;
  }

  .language-toggle img {
    display: none;
  }

  .mobile-menu {
    top: 72px;
  }

  .hero,
  .hero-inner {
    min-height: 820px;
  }

  .hero-inner {
    padding-top: 124px;
    gap: 44px;
  }

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

  .hero h1 {
    font-size: clamp(3.25rem, 15vw, 4.65rem);
    line-height: 0.94;
  }

  .hero h1 > span:first-child {
    white-space: normal;
  }

  .hero-body {
    margin-top: 26px;
    font-size: 1.06rem;
  }

  .store-actions {
    margin-top: 30px;
    gap: 10px;
  }

  .store-link,
  .store-link img {
    height: 50px;
    min-height: 50px;
  }

  .store-disclosure {
    max-width: 340px;
    margin: 16px auto 0;
    line-height: 1.5;
  }

  .hero-product-image {
    width: min(88vw, 360px);
    max-height: 430px;
    border-radius: 26px 26px 0 0;
    transform: none;
  }

  .value-section {
    padding: 80px 0 86px;
  }

  .value-section > .container {
    gap: 44px;
  }

  .section-heading h2,
  .story-copy h2,
  .business-panel h2,
  .privacy-inner h2,
  .download-copy h2,
  .support-inner h2 {
    font-size: clamp(2.35rem, 11.5vw, 3.45rem);
  }

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

  .benefit-item {
    grid-template-columns: 54px 1fr;
  }

  .product-stories {
    padding-bottom: 60px;
  }

  .story,
  .story.story-reverse {
    padding: 74px 0;
  }

  .story-media {
    min-height: 490px;
  }

  .story-media img {
    max-height: 500px;
    border-radius: 24px 24px 0 0;
  }

  .story-copy > p:last-child,
  .privacy-inner > div > p,
  .download-copy > p,
  .business-panel > p {
    font-size: 16px;
  }

  .business-section,
  .privacy-section,
  .download-section {
    padding: 82px 0;
  }

  .business-panel {
    width: min(100% - 24px, var(--container));
    padding: 42px 30px;
    gap: 28px;
    border-radius: 22px;
  }

  .privacy-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .privacy-icon {
    width: 68px;
    height: 68px;
  }

  .privacy-icon img {
    width: 32px;
  }

  .qr-grid {
    display: none;
  }

  .download-copy {
    text-align: center;
  }

  .download-copy .store-actions {
    justify-content: center;
  }

  .support-section {
    padding: 74px 0;
  }

  .support-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
  }

  .support-email {
    min-height: 44px;
    font-size: 1.1rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 18px 24px;
  }
}

@media (max-width: 420px) {
  .store-actions {
    flex-direction: column;
    align-items: center;
  }

  .store-link,
  .store-link img {
    height: 54px;
    min-height: 54px;
  }

  .hero,
  .hero-inner {
    min-height: 900px;
  }
}

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