:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-ink: #111111;
  --color-muted: #647177;
  --color-soft: #f5f7f8;
  --color-line: #dfe5e8;
  --color-cyan: #30c5f0;
  --color-pink: #ff66b2;
  --color-yellow: #ffd873;
  --shadow-soft: 0 18px 50px rgba(17, 17, 17, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-ink);
  background:
    linear-gradient(90deg, rgba(48, 197, 240, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 102, 178, 0.06) 1px, transparent 1px),
    var(--color-soft);
  background-size: 56px 56px;
}

a {
  color: inherit;
}

.site-header {
  color: var(--color-white);
  background: var(--color-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(250px, 58vw);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.domain {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 72px;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 46px;
  padding: 0 0 30px;
  border-bottom: 1px solid var(--color-line);
}

.hero-copy h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.55rem, 6vw, 5.6rem);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.45;
  font-weight: 500;
}

.accent-strip {
  display: grid;
  grid-template-columns: repeat(3, 28px);
  gap: 8px;
  padding-bottom: 8px;
}

.accent {
  display: block;
  width: 28px;
  height: 28px;
  border: 2px solid var(--color-black);
  border-radius: 50%;
}

.accent-cyan {
  background: var(--color-cyan);
}

.accent-pink {
  background: var(--color-pink);
}

.accent-yellow {
  background: var(--color-yellow);
}

.app-section {
  margin-top: 42px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0;
}

.section-kicker {
  order: 2;
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.app-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 22px;
  gap: 16px;
  min-height: 152px;
  padding: 20px;
  overflow: hidden;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.03);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--card-accent, var(--color-cyan));
  opacity: 0.9;
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(17, 17, 17, 0.22);
  box-shadow: var(--shadow-soft);
  background: var(--color-white);
  outline: none;
}

.app-card-featured {
  min-height: 128px;
}

.app-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-black);
  background: var(--card-tint, rgba(48, 197, 240, 0.14));
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: var(--radius);
}

.app-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.app-name {
  font-size: 1.08rem;
  line-height: 1.2;
  font-weight: 700;
}

.app-description {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 0.94rem;
  line-height: 1.36;
  font-weight: 500;
}

.app-url {
  margin-top: auto;
  padding-top: 18px;
  color: #283238;
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.external-icon {
  align-self: start;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--color-black);
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
}

.card-yellow {
  --card-accent: var(--color-yellow);
  --card-tint: rgba(255, 216, 115, 0.28);
}

.card-cyan {
  --card-accent: var(--color-cyan);
  --card-tint: rgba(48, 197, 240, 0.16);
}

.card-pink {
  --card-accent: var(--color-pink);
  --card-tint: rgba(255, 102, 178, 0.14);
}

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

@media (max-width: 700px) {
  .header-inner,
  main {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 82px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 18px 0;
    gap: 12px;
  }

  .brand {
    width: min(220px, 78vw);
  }

  .domain {
    font-size: 0.78rem;
  }

  main {
    padding: 36px 0 52px;
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
  }

  .accent-strip {
    grid-template-columns: repeat(3, 24px);
  }

  .accent {
    width: 24px;
    height: 24px;
  }

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

  .section-kicker {
    order: 0;
  }

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

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

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

  .app-icon svg {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-card {
    transition: none;
  }

  .app-card:hover,
  .app-card:focus-visible {
    transform: none;
  }
}
