:root {
  --brand-blue: #3a8fb7;
  --logo-blue: #2e8db4;
  --logo-red: #ff3131;
  --ink: #0f172a;
  --muted: #475569;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img {
  max-width: 100%;
}

a {
  color: var(--brand-blue);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 6vw;
  background: var(--brand-blue);
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 20px;
  line-height: 1.1;
}

.brand small {
  font-size: 12px;
  opacity: 0.95;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.25;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.container {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  padding: 70px 0;
  background: linear-gradient(135deg, #eef9fd, #ffffff);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
}

.lead {
  max-width: 720px;
  font-size: 18px;
  color: var(--muted);
}

.eyebrow {
  color: var(--logo-red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--brand-blue);
  color: var(--white);
  text-decoration: none;
  text-align: center;
}

.button.secondary {
  background: var(--surface);
  color: var(--brand-blue);
  border: 1px solid var(--border);
}

.app-social-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 44px;
  align-items: center;
  padding: 46px 0 24px;
}

.app-social-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.app-social-copy p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
}

.app-link-group {
  max-width: 660px;
  padding-top: 20px;
  margin-top: 22px;
  border-top: 1px solid var(--border);
}

.app-link-group h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.social-actions,
.download-actions {
  margin-top: 14px;
}

.app-slideshow {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1 / 1;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, var(--surface));
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.slide {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: contain;
  opacity: 0;
  animation: appSlideShow 12s infinite;
}

.slide-one {
  animation-delay: 0s;
}

.slide-two {
  animation-delay: 4s;
}

.slide-three {
  animation-delay: 8s;
}

@keyframes appSlideShow {
  0%,
  28% {
    opacity: 1;
  }

  35%,
  100% {
    opacity: 0;
  }
}

.section-divider {
  height: 1px;
  margin-top: 34px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border) 12%,
    var(--brand-blue) 50%,
    var(--border) 88%,
    transparent
  );
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  padding: 34px 0 42px;
}

.card,
.panel,
.contact-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.card {
  padding: 22px;
}

.panel,
.contact-box {
  padding: 24px;
  margin: 28px 0;
}

.container.panel {
  margin: 28px auto;
}

.content {
  padding: 42px 0 56px;
}

.content section {
  margin-top: 28px;
}

.content h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin-top: 0;
}

.content h2,
.card h2,
.panel h2,
.contact-box h2 {
  margin-top: 0;
}

.page-links {
  padding: 0 0 50px;
}

.page-links ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding-left: 20px;
}

dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 18px;
}

dt {
  font-weight: 800;
}

dd {
  margin: 0;
}

.site-footer {
  padding: 24px 6vw;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 6px 0;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
  }

  .app-social-section {
    grid-template-columns: 1fr;
  }

  .app-slideshow {
    margin: 10px auto 0;
  }
}

@media (max-width: 760px) {
  .site-nav {
    gap: 8px 12px;
  }

  .hero {
    padding: 48px 0;
  }

  .app-social-section {
    padding-top: 34px;
  }

  .app-slideshow {
    width: min(100%, 420px);
    margin: 10px auto 0;
  }

  dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 32px, 1080px);
  }

  .site-header {
    gap: 14px;
    padding: 14px 16px;
  }

  .brand {
    width: 100%;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
    text-align: center;
  }

  .site-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.18);
    text-decoration: none;
  }

  .button {
    width: 100%;
    padding: 11px 14px;
  }

  .actions {
    width: 100%;
  }

  .hero {
    padding: 40px 0 38px;
  }

  .hero h1 {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.14;
  }

  .lead {
    font-size: 16px;
    line-height: 1.58;
  }

  .app-social-section {
    gap: 28px;
    padding: 34px 0 18px;
  }

  .app-link-group {
    padding-top: 18px;
    margin-top: 20px;
  }

  .social-actions,
  .download-actions {
    display: grid;
    gap: 10px;
  }

  .social-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .download-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-slideshow {
    margin-top: 4px;
  }

  .section-divider {
    margin-top: 26px;
  }

  .grid {
    padding-top: 28px;
  }

  .card,
  .panel,
  .contact-box {
    padding: 20px;
  }

  .page-links ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .social-actions,
  .download-actions {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 30px;
  }
}
