:root {
  --bg: #f6efe5;
  --bg-accent: #efe1d2;
  --surface: rgba(255, 252, 247, 0.86);
  --surface-strong: rgba(255, 249, 241, 0.96);
  --line: rgba(41, 53, 62, 0.12);
  --line-strong: rgba(41, 53, 62, 0.22);
  --text: #1f2b34;
  --muted: #55636d;
  --navy: #1b4461;
  --teal: #177b72;
  --gold: #b77922;
  --shadow: 0 24px 48px rgba(43, 39, 33, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(23, 123, 114, 0.16), transparent 28rem),
    radial-gradient(circle at right 10% top 20%, rgba(183, 121, 34, 0.16), transparent 24rem),
    linear-gradient(180deg, #fbf7f0 0%, var(--bg) 52%, #f2e8db 100%);
}

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

a {
  color: inherit;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 20rem;
  height: 20rem;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.48;
  pointer-events: none;
}

.page-glow-one {
  top: 4rem;
  left: -5rem;
  background: rgba(24, 110, 125, 0.26);
}

.page-glow-two {
  top: 16rem;
  right: -5rem;
  background: rgba(214, 149, 56, 0.24);
}

.hero,
.jump-nav,
.directory,
.footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.hero {
  padding: 0.85rem 0 0.65rem;
}

.hero__topline {
  display: inline-flex;
  padding: 0.34rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.78fr) minmax(220px, 0.72fr);
  gap: 0.72rem;
  align-items: stretch;
  margin-top: 0.58rem;
}

.hero__copy,
.hero__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero__copy {
  padding: 1rem 1.15rem;
}

.hero__brand-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.95rem;
  align-items: center;
}

.hero__logo-shell {
  display: grid;
  place-items: center;
  width: 4.4rem;
  min-width: 4.4rem;
  padding: 0.45rem 0.3rem;
  border: 1px solid rgba(27, 68, 97, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero__logo {
  width: 2.7rem;
  height: auto;
}

.hero__brand-copy {
  min-width: 0;
}

.hero__copy::after {
  content: "";
  position: absolute;
  inset: auto -3.5rem -3.5rem auto;
  width: 12rem;
  height: 12rem;
  background: linear-gradient(135deg, rgba(23, 123, 114, 0.18), rgba(27, 68, 97, 0.02));
  border-radius: 34px;
  transform: rotate(18deg);
}

.hero__eyebrow,
.hero__panel-label {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0.28rem 0 0.34rem;
  max-width: none;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: clamp(1.72rem, 3vw, 2.78rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero__lede {
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.3;
}

.hero__panel {
  padding: 0.82rem;
  background:
    linear-gradient(160deg, rgba(255, 253, 250, 0.92), rgba(246, 239, 229, 0.76)),
    var(--surface);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 3.95rem;
  padding: 0.58rem;
  border: 1px solid rgba(27, 68, 97, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.stat-card__value {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: clamp(1.18rem, 2vw, 1.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat-card__label {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.15;
}

.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.05rem 0 0.85rem;
}

.jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.72);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.jump-pill:hover,
.jump-pill:focus-visible,
.app-card__link:hover,
.app-card__link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.jump-pill__label {
  font-weight: 700;
}

.jump-pill__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.9rem;
  min-height: 1.9rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}

.directory {
  display: grid;
  gap: 1.4rem;
  padding-bottom: 1.8rem;
}

.section {
  scroll-margin-top: 1.2rem;
}

.section__header {
  margin-bottom: 0.8rem;
}

.section__title {
  margin: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section__summary {
  margin: 0.38rem 0 0;
  max-width: none;
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.97rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.app-card__media {
  position: relative;
}

.app-card__thumb {
  aspect-ratio: 16 / 8.6;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(27, 68, 97, 0.12), rgba(23, 123, 114, 0.08));
}

.app-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.72rem;
  padding: 0.92rem 0.95rem 0.98rem;
}

.app-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(27, 68, 97, 0.08);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.app-card__title {
  margin: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 1.2rem;
  line-height: 1.1;
}

.app-card__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.app-card__host {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.app-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.1rem;
  padding: 0.76rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.app-card__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: clamp(18rem, 108%, 24rem);
  padding: 0.62rem 0;
  background: rgba(192, 35, 35, 0.92);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-24deg);
  box-shadow: 0 10px 22px rgba(122, 20, 20, 0.24);
  pointer-events: none;
}

.app-card__link::after {
  content: "->";
  font-size: 0.95rem;
}

.footer {
  padding: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.noscript {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto 2rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(168, 52, 44, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 245, 242, 0.95);
  color: #8a3f32;
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .hero__lede {
    white-space: normal;
  }

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

@media (max-width: 720px) {
  .hero {
    padding-top: 0.78rem;
  }

  .hero__copy,
  .hero__panel {
    padding: 0.92rem;
  }

  .hero__brand-block {
    gap: 0.72rem;
  }

  .hero__logo-shell {
    width: 3.85rem;
    min-width: 3.85rem;
    padding: 0.35rem 0.22rem;
    border-radius: 18px;
  }

  .hero__logo {
    width: 2.35rem;
  }

  .hero h1 {
    max-width: none;
  }

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

  .card-grid {
    grid-template-columns: 1fr;
  }

  .jump-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 0.55rem 0 0.8rem;
    background: linear-gradient(180deg, rgba(246, 239, 229, 0.96), rgba(246, 239, 229, 0.72));
    backdrop-filter: blur(10px);
  }

  .app-card__watermark {
    width: clamp(16rem, 112%, 22rem);
    padding: 0.56rem 0;
    font-size: 0.92rem;
  }
}

@media (min-width: 981px) {
  .hero h1,
  .hero__lede {
    white-space: nowrap;
  }

  .section__summary {
    white-space: nowrap;
  }
}
