@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap");

:root {
  --gx-blue: #1e5fa8;
  --gx-blue-dark: #123c69;
  --gx-green: #168145;
  --gx-green-light: #eaf8f0;
  --gx-ink: #142033;
  --gx-muted: #667085;
  --gx-line: #e4eaf1;
  --gx-white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--gx-ink);
  background: #fbfdff;
  font-family: "DM Sans", Arial, sans-serif;
}

a { color: inherit; }

.home-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 68px;
  padding: 8px max(24px, calc((100vw - 1320px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--gx-line);
  box-shadow: 0 4px 14px rgba(20, 60, 110, 0.2);
  backdrop-filter: blur(12px);
}

.home-brand {
  position: relative;
  left: -56px;
  display: inline-flex;
  justify-self: start;
}

.home-brand img {
  width: 96px;
  height: 52px;
  object-fit: contain;
}

.home-navigation {
  position: relative;
  left: -56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 36px);
}

.home-navigation a {
  position: relative;
  padding: 8px 0;
  color: #475467;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.home-navigation a:hover,
.home-navigation a[aria-current="page"] { color: var(--gx-blue); }

.home-navigation a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gx-green);
  border-radius: 999px;
}

.header-login {
  position: relative;
  left: -56px;
  min-height: 40px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: end;
  color: #ffffff;
  background: #142033;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(20, 32, 51, 0.18);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.header-login svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.header-login:hover {
  background: #1d2d45;
  box-shadow: 0 8px 20px rgba(20, 32, 51, 0.24);
  transform: translateY(-1px);
}

.header-action,
.primary-action,
.secondary-action {
  min-height: 48px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-action,
.primary-action {
  color: var(--gx-white);
  background: linear-gradient(135deg, var(--gx-green), #1b9955);
  box-shadow: 0 10px 24px rgba(22, 129, 69, 0.2);
}

.header-action:hover,
.primary-action:hover,
.secondary-action:hover { transform: translateY(-2px); }

.home-hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 78px);
  padding: clamp(48px, 6vw, 76px) clamp(24px, 2.5vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 520px);
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 3.5vw, 60px);
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 14%, rgba(22, 129, 69, 0.11), transparent 25rem),
    radial-gradient(circle at 68% 85%, rgba(30, 95, 168, 0.09), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  transform: translate(-60px, -102px);
}

.hero-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -54px;
  left: -144px;
  width: min(920px, 96vw);
  height: 230px;
  background: radial-gradient(ellipse at center, rgba(30, 95, 168, 0.38) 0%, rgba(30, 95, 168, 0.23) 38%, rgba(30, 95, 168, 0.09) 62%, transparent 82%);
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.hero-introduction {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--gx-muted);
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.5;
  font-weight: 400;
}

.benefit-list {
  margin-top: 32px;
  display: grid;
  gap: 18px;
}

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

.benefit-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gx-blue-dark);
}

.benefit-mark svg {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-mark .icon-accent {
  stroke: var(--gx-green);
}

.benefit-item h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}

.benefit-item p {
  margin: 4px 0 0;
  color: var(--gx-muted);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action {
  min-height: 54px;
  padding-right: 25px;
  padding-left: 25px;
}

.secondary-action {
  color: var(--gx-blue-dark);
  background: var(--gx-white);
  border: 1px solid #cbdbea;
  box-shadow: 0 8px 20px rgba(18, 60, 105, 0.07);
}

.trust-list {
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: #526071;
  font-size: 13px;
  font-weight: 400;
  list-style: none;
}

.trust-list li::before {
  content: "•";
  margin-right: 8px;
  color: var(--gx-green);
}

.app-showcase {
  position: relative;
  min-height: 697px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transform: translateY(-30px);
}

.device-stage {
  position: relative;
  width: min(500px, 100%);
  height: 627px;
}

.app-device {
  position: absolute;
  z-index: 1;
  padding: 10px;
  background: #172235;
  border: 1px solid #26364e;
  border-radius: 40px;
  box-shadow: 0 32px 68px rgba(18, 60, 105, 0.24);
}

.app-device-primary {
  top: 0;
  left: 50%;
  width: 308px;
  height: 627px;
  transform: translateX(-50%);
}

.device-speaker {
  position: absolute;
  z-index: 2;
  top: 19px;
  left: 50%;
  width: 64px;
  height: 6px;
  background: #172235;
  border-radius: 999px;
  transform: translateX(-50%);
}

.device-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(to bottom, #23466f 0 5.6%, #fbfcfe 5.6% 100%);
  border: 0;
  border-radius: 29px;
}

.phone-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transition: opacity 700ms ease-in-out;
}

.phone-slide--active {
  opacity: 1;
}

.google-play-slot {
  position: relative;
  width: 165px;
  height: 50px;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #0b2b3a;
  border-radius: 5px;
  box-shadow: none;
}

.google-play-slot img {
  position: absolute;
  bottom: 5px;
  left: 11px;
  width: 143px;
  height: auto;
  display: block;
}

.google-play-kicker {
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 46px;
  color: #0b2b3a;
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.how-section {
  padding: clamp(76px, 8vw, 112px) clamp(24px, 5vw, 72px);
  background: #ffffff;
  scroll-margin-top: 84px;
}

.how-heading {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.how-heading h2 {
  margin: 0;
  color: var(--gx-ink);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.how-heading p {
  margin: 16px 0 0;
  color: var(--gx-muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
}

.how-grid {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.how-card {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 280px;
  padding: 30px;
  grid-column: span 2;
  background: #ffffff;
  border: 1px solid var(--gx-line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(20, 60, 110, 0.06);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.how-card::after {
  content: "↗";
  position: absolute;
  top: 26px;
  right: 28px;
  color: #6f8eae;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}

.how-card:hover {
  border-color: #ccdeee;
  box-shadow: 0 16px 34px rgba(20, 60, 110, 0.1);
  transform: translateY(-2px);
}

.how-card:focus-visible {
  outline: 3px solid rgba(30, 95, 168, 0.24);
  outline-offset: 3px;
}

.how-card:nth-child(4) { grid-column: 2 / span 2; }
.how-card:nth-child(5) { grid-column: 4 / span 2; }

.how-card-number {
  display: block;
  margin-bottom: 14px;
  color: #5c7fa6;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
}

.how-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gx-blue-dark);
  background: #eef6ff;
  border: 1px solid #d9e9f8;
  border-radius: 14px;
}

.how-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-icon .icon-accent { stroke: var(--gx-green); }

.how-card h3 {
  margin: 24px 0 10px;
  color: var(--gx-ink);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
}

.how-card p {
  margin: 0;
  color: var(--gx-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}

.how-action {
  margin-top: 38px;
  display: flex;
  justify-content: center;
}

body.how-modal-open { overflow: hidden; }

.how-modal[hidden] { display: none; }

.how-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
}

.how-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 29, 47, 0.56);
  backdrop-filter: blur(3px);
}

.how-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 38px;
  color: var(--gx-ink);
  background: #ffffff;
  border: 1px solid rgba(228, 234, 241, 0.9);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(15, 29, 47, 0.24);
}

.how-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #526274;
  background: #f4f7fa;
  border: 0;
  border-radius: 999px;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.how-modal-close:focus-visible {
  outline: 3px solid rgba(30, 95, 168, 0.24);
  outline-offset: 2px;
}

.how-modal-icon {
  margin-bottom: 22px;
}

.how-modal-icon .how-icon {
  width: 62px;
  height: 62px;
}

.how-modal-dialog h2 {
  margin: 0;
  padding-right: 44px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  line-height: 1.15;
}

.how-modal-dialog p {
  margin: 16px 0 0;
  color: var(--gx-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .how-card,
  .how-card:nth-child(4),
  .how-card:nth-child(5) {
    grid-column: auto;
  }

  .how-card:last-child { grid-column: 1 / -1; }

}

@media (max-width: 640px) {
  .how-section { padding: 64px 20px; }
  .how-heading { margin-bottom: 32px; text-align: left; }
  .how-heading p { font-size: 16px; }
  .how-grid { grid-template-columns: 1fr; gap: 16px; }

  .how-card,
  .how-card:last-child {
    min-height: 0;
    padding: 24px;
    grid-column: auto;
  }

  .how-modal { padding: 16px; }
  .how-modal-dialog { padding: 30px 24px 26px; border-radius: 18px; }
  .how-modal-close { top: 14px; right: 14px; }

}

.temporary-anchor {
  position: absolute;
  bottom: 0;
}

@media (max-width: 1400px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .hero-content {
    transform: translateY(-102px);
  }
}

@media (max-width: 1040px) {
  .home-header {
    grid-template-columns: auto 1fr auto;
    gap: 20px;
  }

  .home-navigation {
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
  }

  .home-hero { grid-template-columns: 1fr; }

  .hero-content,
  .app-showcase {
    transform: none;
  }

  .app-showcase { min-height: 697px; }
}

@media (max-width: 760px) {
  .home-header {
    grid-template-columns: 1fr auto;
    padding-right: 18px;
    padding-left: 18px;
  }

  .home-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 3px 0 2px;
    scrollbar-width: none;
  }

  .home-navigation::-webkit-scrollbar { display: none; }

  .home-navigation a { flex: 0 0 auto; }

  .home-brand,
  .home-navigation,
  .header-login {
    left: 0;
  }

  .header-login {
    min-height: 38px;
    padding: 0 15px;
    font-size: 13px;
  }

  .header-action {
    min-height: 44px;
    padding-right: 16px;
    padding-left: 16px;
    font-size: 13px;
  }

  .home-hero {
    padding: 54px 20px 68px;
    gap: 48px;
  }

  h1 { font-size: clamp(38px, 11vw, 50px); }

  .app-showcase { min-height: 637px; }

  .device-stage {
    width: min(440px, 100%);
    height: 567px;
  }

  .app-device-primary {
    width: 279px;
    height: 567px;
  }
}

@media (max-width: 480px) {
  .home-brand img {
    width: 78px;
    height: 44px;
  }

  .header-action {
    padding-right: 13px;
    padding-left: 13px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .trust-list {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-showcase { min-height: 530px; }

  .device-stage {
    width: min(340px, 100%);
    height: 468px;
  }

  .app-device-primary {
    width: 233px;
    height: 468px;
  }

  .google-play-slot {
    margin-top: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
  }
}
