:root {
  --blue: #2457e6;
  --blue-dark: #173dba;
  --cyan: #23b8cf;
  --violet: #7655e9;
  --coral: #f36f62;
  --green: #3ba76d;
  --ink: #182035;
  --muted: #59647a;
  --line: #dfe5ef;
  --soft: #f4f7fc;
  --white: #ffffff;
  --header-height: 72px;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

.content-shell,
.nav-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 24px rgb(20 48 124 / 16%);
}

.nav-shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand,
.footer-brand {
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 34px;
}

.primary-navigation a,
.back-link {
  position: relative;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
}

.primary-navigation a:not(.nav-contact)::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.primary-navigation a:hover::after,
.primary-navigation a.active::after {
  transform: scaleX(1);
}

.nav-contact {
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--white);
  color: var(--blue-dark) !important;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: rgb(255 255 255 / 14%);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  transition: transform 180ms ease, opacity 180ms ease;
}

.section-anchor {
  scroll-margin-top: var(--header-height);
}

.hero {
  padding: calc(var(--header-height) + 54px) 0 58px;
  background: var(--soft);
  overflow: hidden;
}

.hero-grid,
.split-layout,
.contact-layout {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 86px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 670px;
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 5vw, 4.65rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-description {
  max-width: 610px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-media,
.section-media {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  max-height: 590px;
  object-fit: contain;
  border-radius: 8px;
}

.primary-button,
.submit-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgb(36 87 230 / 23%);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover,
.submit-button:hover {
  transform: translateY(-2px);
  background: var(--blue-dark);
  box-shadow: 0 18px 34px rgb(36 87 230 / 28%);
}

.play-mark {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--white);
}

.apps-section,
.about-section,
.contact-section {
  padding: 106px 0;
}

.about-section {
  background: var(--soft);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.centered-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading > p:last-child,
.section-copy p {
  color: var(--muted);
}

.app-card {
  width: min(920px, 100%);
  min-height: 210px;
  margin: 0 auto;
  padding: 26px;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 50px rgb(28 44 82 / 9%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: #aebded;
  box-shadow: 0 24px 60px rgb(28 44 82 / 14%);
}

.app-icon {
  width: 142px;
  height: 142px;
  border-radius: 28px;
  object-fit: cover;
}

.app-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.app-kicker {
  margin-bottom: 8px;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.app-name {
  margin-bottom: 10px;
  font-size: 1.65rem;
  font-weight: 800;
}

.app-description {
  max-width: 570px;
  color: var(--muted);
}

.app-status {
  padding: 9px 13px;
  border-radius: 6px;
  background: #e8f7f1;
  color: #207b50;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.section-media img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.section-copy p {
  font-size: 1.02rem;
}

.contact-layout {
  align-items: stretch;
}

.contact-media img {
  height: 100%;
  min-height: 500px;
}

.contact-form {
  align-self: center;
  padding: 34px;
  display: grid;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgb(28 44 82 / 10%);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfd7e6;
  border-radius: 6px;
  background: #fbfcfe;
  color: var(--ink);
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input {
  height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 132px;
  padding: 12px 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(36 87 230 / 12%);
}

.submit-button {
  width: 100%;
  margin-top: 4px;
}

.site-footer {
  background: #152343;
  color: #dbe5ff;
}

.footer-main {
  min-height: 210px;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
}

.footer-contact,
.footer-note {
  display: grid;
  gap: 6px;
}

.footer-contact a,
.footer-bottom a {
  color: var(--white);
}

.footer-main p,
.footer-main a,
.footer-bottom p {
  margin: 0;
}

.footer-brand {
  color: var(--white);
  font-size: 1.6rem;
}

.footer-note {
  justify-self: end;
  text-align: right;
}

.footer-label {
  color: #7dd9e3;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-bottom {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgb(255 255 255 / 15%);
  font-size: 0.84rem;
}

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 28px;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 6px;
  background: #111a2c;
  color: var(--white);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 14px 36px rgb(0 0 0 / 24%);
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.legal-main {
  padding: calc(var(--header-height) + 64px) 24px 90px;
  background: var(--soft);
}

.legal-article {
  width: min(840px, 100%);
  margin: 0 auto;
  color: #35405a;
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.legal-header h1 {
  margin-bottom: 14px;
  color: var(--ink);
}

.legal-article h2 {
  margin: 42px 0 14px;
  color: var(--ink);
  font-size: 1.45rem;
}

.legal-article a {
  color: var(--blue-dark);
  font-weight: 600;
}

.legal-article li + li {
  margin-top: 10px;
}

.legal-footer .footer-bottom {
  min-height: 80px;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .primary-navigation {
    position: fixed;
    inset: var(--header-height) 0 auto;
    padding: 26px 24px 34px;
    display: grid;
    gap: 12px;
    background: var(--blue-dark);
    box-shadow: 0 18px 28px rgb(16 34 80 / 24%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .primary-navigation.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-navigation a {
    padding: 10px 0;
  }

  .nav-contact {
    margin-top: 8px;
    text-align: center;
  }

  .hero-grid,
  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .hero-description {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-media {
    width: min(680px, 100%);
    margin: 0 auto;
  }

  .app-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .app-icon {
    width: 120px;
    height: 120px;
  }

  .app-status {
    grid-column: 2;
    justify-self: start;
  }

  .section-media {
    width: min(700px, 100%);
    margin: 0 auto;
  }

  .contact-media img {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 64px;
  }

  .content-shell,
  .nav-shell {
    width: min(100% - 32px, 1180px);
  }

  .brand {
    font-size: 1.12rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 28px;
  }

  h1 {
    font-size: 2.42rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-media img {
    max-height: 250px;
  }

  .apps-section,
  .about-section,
  .contact-section {
    padding: 76px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .app-card {
    min-height: 0;
    padding: 20px;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
  }

  .app-icon {
    width: 82px;
    height: 82px;
    border-radius: 18px;
  }

  .app-name {
    font-size: 1.25rem;
  }

  .app-description {
    grid-column: 1 / -1;
    font-size: 0.9rem;
  }

  .app-status {
    grid-column: 1 / -1;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 22px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-note {
    justify-self: center;
    text-align: center;
  }

  .footer-brand {
    grid-row: 1;
  }

  .footer-bottom {
    padding: 20px 0;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .legal-main {
    padding-right: 16px;
    padding-left: 16px;
  }
}

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

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