
:root {
  --navy-950: #07172f;
  --navy-900: #0b2447;
  --navy-800: #12345d;
  --blue-700: #173f75;
  --blue-100: #e7f0fa;
  --yellow-500: #f7be17;
  --yellow-400: #ffcc2f;
  --green-700: #157347;
  --green-100: #e8f7ef;
  --ink: #12233d;
  --muted: #5d6d82;
  --line: #dce5ef;
  --surface: #ffffff;
  --canvas: #f5f8fc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--yellow-400);
  outline-offset: 4px;
}

.site-shell { min-height: 100vh; }

.platform-hero, .ios-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 160px);
  padding: 88px 20px;
  color: white;
  background:
    radial-gradient(circle at 88% 14%, rgba(247, 190, 23, 0.19), transparent 25%),
    linear-gradient(145deg, var(--navy-950), var(--navy-800));
}

.platform-hero::before, .ios-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
}

.platform-copy, .platform-grid, .ios-copy, .ios-phone { position: relative; z-index: 1; }
.platform-copy { width: min(760px, 100%); margin: 0 auto 40px; text-align: center; }

.platform-copy h1, .ios-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.platform-copy > p:last-child, .ios-copy > p:last-of-type {
  margin: 20px auto 0;
  color: #d3dfed;
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.65;
}

.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: min(760px, 100%); margin: 0 auto; }

.platform-card {
  display: flex;
  flex-direction: column;
  min-height: 286px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 24px;
  color: white;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.platform-card:hover { transform: translateY(-4px); border-color: rgba(255, 204, 47, 0.85); box-shadow: 0 22px 42px rgba(0, 0, 0, 0.26); }
.android-platform { background: rgba(20, 103, 70, 0.32); }
.ios-platform { background: rgba(255, 255, 255, 0.09); }

.platform-icon { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 18px; background: rgba(255, 255, 255, 0.14); color: var(--yellow-400); }
.platform-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.platform-content { display: flex; flex-direction: column; margin-top: 30px; }
.platform-content strong { font-size: 27px; }
.platform-content small { margin-top: 6px; color: #d8e3f0; font-size: 14px; line-height: 1.5; }
.platform-action { margin-top: auto; color: var(--yellow-400); font-size: 14px; font-weight: 800; }

.system-link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; margin: 18px auto 0; color: #f6cf55; font-size: 14px; font-weight: 700; text-decoration: none; }
.system-link:hover { text-decoration: underline; }

.ios-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr); align-items: center; gap: 70px; }
.ios-copy, .ios-phone { width: min(100%, 600px); }
.ios-copy { justify-self: end; }
.ios-copy > p:last-of-type { max-width: 600px; margin-left: 0; }
.ios-copy .system-link { margin-left: 0; }

.open-app-button { display: inline-flex; align-items: center; gap: 9px; margin-top: 28px; padding: 15px 20px; border-radius: 13px; background: linear-gradient(135deg, var(--yellow-400), var(--yellow-500)); color: var(--navy-950); font-size: 15px; font-weight: 800; text-decoration: none; box-shadow: 0 12px 24px rgba(247, 190, 23, 0.22); }
.open-app-button:hover { transform: translateY(-2px); }

.ios-phone { justify-self: start; display: grid; max-width: 300px; min-height: 500px; padding: 18px; border: 8px solid #14243b; border-radius: 42px; background: #0a182d; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); }
.phone-screen { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; min-height: 455px; border-radius: 27px; background: linear-gradient(150deg, #103764, #07172f); }
.phone-top { position: absolute; top: 10px; width: 88px; height: 23px; border-radius: 20px; background: #071221; }
.phone-logo { display: grid; width: 86px; height: 86px; place-items: center; border-radius: 23px; background: white; box-shadow: 0 16px 28px rgba(0,0,0,.2); }
.phone-logo img { width: 68px; height: 68px; object-fit: contain; }
.phone-screen strong { margin-top: 18px; font-size: 25px; }
.phone-screen small { margin-top: 5px; color: #d3dfed; font-size: 13px; }
.phone-home-indicator { position: absolute; bottom: 11px; width: 96px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.75); }
.ios-install { padding-top: 78px; }
.ios-callout { margin-bottom: 0; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-logo { display: block; object-fit: contain; }
.brand-logo-goup { width: 72px; height: 62px; }
.brand-logo-goit { width: 132px; height: 58px; }

.official-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 700;
}

.official-badge svg, .download-note svg, .security-callout > svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.download-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 20px 80px;
  color: white;
  background:
    radial-gradient(circle at 86% 8%, rgba(247, 190, 23, 0.18), transparent 24%),
    linear-gradient(145deg, var(--navy-950), var(--navy-800));
}

.download-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
}

.hero-copy, .download-grid {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin-inline: auto;
}

.hero-copy {
  max-width: 780px;
  margin-bottom: 40px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--yellow-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5ce3a1;
  box-shadow: 0 0 0 5px rgba(92, 227, 161, 0.12);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-description {
  max-width: 680px;
  margin: 20px auto 0;
  color: #d3dfed;
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.65;
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 22px;
  align-items: stretch;
}

.app-card, .qr-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.app-card {
  padding: 30px;
  background: var(--surface);
  color: var(--ink);
}

.app-card-top { display: flex; align-items: center; gap: 20px; }

.app-icon {
  width: 92px;
  height: 92px;
  border: 1px solid #e4e8ef;
  border-radius: 24px;
  box-shadow: 0 12px 24px rgba(11, 36, 71, 0.13);
}

.app-identity h2 {
  margin: 8px 0 2px;
  color: var(--navy-900);
  font-size: 26px;
  line-height: 1.1;
}

.app-identity p { margin: 0; color: var(--muted); font-size: 15px; }

.production-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 28px 0;
  border-block: 1px solid var(--line);
}

.app-details div { padding: 18px 12px; border-right: 1px solid var(--line); }
.app-details div:first-child { padding-left: 0; }
.app-details div:last-child { border-right: 0; }
.app-details dt { margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.app-details dd {
  margin: 0;
  color: var(--navy-900);
  font-size: 15px;
  font-weight: 800;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 70px;
  padding: 13px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--yellow-400), var(--yellow-500));
  box-shadow: 0 12px 24px rgba(247, 190, 23, 0.22);
  color: var(--navy-950);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(247, 190, 23, 0.3);
}

.download-button svg, .step-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.download-button span { display: flex; flex-direction: column; }
.download-button strong { font-size: 18px; }
.download-button small { margin-top: 2px; font-size: 12px; font-weight: 600; opacity: 0.72; }

.download-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.checksum { margin-top: 17px; color: var(--muted); font-size: 12px; }
.checksum summary { width: fit-content; cursor: pointer; font-weight: 700; }
.checksum code {
  display: block;
  margin-top: 10px;
  padding: 12px;
  overflow-wrap: anywhere;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--navy-800);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.5;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.qr-copy h2 { margin: 6px 0 8px; font-size: 24px; }
.qr-copy p {
  margin: 0 auto 20px;
  color: #d3dfed;
  font-size: 14px;
  line-height: 1.55;
}

.qr-kicker {
  color: var(--yellow-400);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.qr-frame { width: 184px; padding: 12px; border-radius: 18px; background: white; }
.qr-frame img { display: block; width: 100%; height: auto; }
.qr-domain { margin: 14px 0 0; color: #f0f5fb; font-size: 12px; font-weight: 700; }

.install-section {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0;
}

.section-heading { max-width: 650px; margin-bottom: 34px; }
.eyebrow.muted { margin-bottom: 10px; color: var(--blue-700); }
.section-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.035em;
}
.section-heading > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 17px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-grid li {
  position: relative;
  min-height: 250px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.step-number {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
}

.step-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  background: var(--navy-900);
  color: var(--yellow-400);
}
.step-icon svg { width: 25px; height: 25px; stroke-width: 1.8; }
.steps-grid h3 { margin: 23px 0 9px; color: var(--navy-900); font-size: 19px; }
.steps-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.security-callout {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  margin-top: 20px;
  padding: 22px 24px;
  border: 1px solid #c8dae9;
  border-radius: 18px;
  background: var(--blue-100);
  color: var(--navy-800);
}

.security-callout > svg { flex: 0 0 auto; width: 26px; height: 26px; }
.security-callout h3, .security-callout p { margin: 0; }
.security-callout h3 { font-size: 16px; }
.security-callout p { margin-top: 5px; color: #496079; font-size: 14px; line-height: 1.55; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(20px, calc((100vw - 1080px) / 2));
  border-top: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-size: 12px;
}
.site-footer p { margin: 0; }

@media (max-width: 820px) {
  .ios-hero { grid-template-columns: 1fr; gap: 40px; }
  .ios-copy { justify-self: center; width: min(620px, 100%); text-align: center; }
  .ios-copy > p:last-of-type { margin-inline: auto; }
  .ios-copy .system-link { margin-inline: auto; }
  .ios-phone { justify-self: center; min-height: 440px; max-width: 260px; }
  .phone-screen { min-height: 395px; }
  .download-grid { grid-template-columns: 1fr; }
  .qr-card {
    display: grid;
    grid-template-columns: 1fr 140px;
    column-gap: 22px;
    text-align: left;
  }
  .qr-copy p { margin-bottom: 0; }
  .qr-frame { grid-column: 2; grid-row: 1 / span 2; width: 140px; }
  .qr-domain { grid-column: 1; text-align: left; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid li { min-height: 0; }
}

@media (max-width: 600px) {
  .platform-hero, .ios-hero { min-height: auto; padding: 58px 14px 66px; }
  .platform-copy { margin-bottom: 28px; text-align: left; }
  .platform-copy > p:last-child { margin-left: 0; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-card { min-height: 0; padding: 24px; }
  .platform-content { margin-top: 21px; }
  .platform-action { margin-top: 24px; }
  .ios-copy { text-align: left; }
  .ios-copy > p:last-of-type { margin-left: 0; }
  .ios-copy .system-link { margin-left: 0; }
  .ios-phone { max-width: 220px; min-height: 368px; }
  .phone-screen { min-height: 323px; }
  .phone-logo { width: 72px; height: 72px; border-radius: 20px; }
  .phone-logo img { width: 57px; height: 57px; }
  .site-header { width: min(100% - 28px, 1180px); min-height: 78px; }
  .brand-lockup { gap: 8px; }
  .brand-logo-goup { width: 48px; height: 46px; }
  .brand-logo-goit { width: 90px; height: 45px; }
  .official-badge { padding: 9px; }
  .official-badge span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .download-hero { padding: 52px 14px 58px; }
  .hero-copy { margin-bottom: 28px; text-align: left; }
  .hero-description { margin-left: 0; }
  .app-card, .qr-card { border-radius: 22px; }
  .app-card { padding: 22px 18px; }
  .app-card-top { gap: 14px; }
  .app-icon { width: 72px; height: 72px; border-radius: 19px; }
  .app-identity h2 { font-size: 22px; }
  .app-details { grid-template-columns: repeat(2, 1fr); }
  .app-details div { border-bottom: 1px solid var(--line); }
  .app-details div:nth-child(2) { border-right: 0; }
  .app-details div:nth-child(3), .app-details div:nth-child(4) { border-bottom: 0; }
  .app-details div:nth-child(3) { padding-left: 0; }
  .qr-card { display: flex; text-align: center; }
  .qr-copy p { margin-bottom: 20px; }
  .qr-frame { width: 176px; }
  .qr-domain { text-align: center; }
  .install-section { width: calc(100% - 28px); padding: 62px 0; }
  .site-footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .download-button { transition: none; }
}
