:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-strong: rgba(255, 255, 255, 0.84);
  --text: #172033;
  --muted: #647084;
  --line: rgba(23, 32, 51, 0.1);
  --accent: #1663ff;
  --accent-dark: #0c3a91;
  --shadow: 0 24px 70px rgba(19, 35, 74, 0.14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 4%, rgba(22, 99, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 88% 10%, rgba(60, 180, 255, 0.14), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 64%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(23, 32, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

a {
  color: inherit;
}

.site-header,
main,
.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand,
.nav-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 750;
}

.brand {
  gap: 12px;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 34px rgba(22, 99, 255, 0.25);
  font-size: 0.9rem;
}

.nav-link {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  backdrop-filter: blur(16px);
}

.hero {
  padding: 72px 0 68px;
}

.eyebrow,
.app-category {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 26px;
  font-size: clamp(3.2rem, 6.6vw, 5.9rem);
  line-height: 1.03;
  letter-spacing: -0.062em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-action {
  background: var(--text);
  color: white;
  box-shadow: 0 16px 34px rgba(19, 35, 74, 0.18);
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
  backdrop-filter: blur(16px);
}

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

.primary-action:hover {
  background: var(--accent-dark);
}

.showcase {
  padding: 28px 0 76px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.055em;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.control {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(19, 35, 74, 0.08);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease;
}

.control:hover {
  transform: translateY(-2px);
  background: white;
}

.carousel-shell {
  position: relative;
  margin-inline: -8px;
}

.app-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 8px;
  padding: 8px 8px 24px;
  scrollbar-width: thin;
}

.app-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  scroll-snap-align: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 32px 84px rgba(19, 35, 74, 0.18);
}

.icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.app-icon {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 25%;
  box-shadow:
    0 20px 40px rgba(19, 35, 74, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.fallback-icon {
  display: grid;
  place-items: center;
  color: white;
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #244477, #1663ff);
}

.card-body {
  flex: 1;
}

.card-body h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.card-body p:not(.app-category) {
  color: var(--muted);
  line-height: 1.55;
}

.app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  border-radius: 999px;
  background: var(--text);
  color: white;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.app-link:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 720px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1160px);
  }

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

  h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 13vw, 4.65rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
  }

  .desktop-break {
    display: none;
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-carousel {
    grid-auto-columns: minmax(260px, 86vw);
  }

  .site-footer {
    flex-direction: column;
  }
}
