:root {
  color-scheme: light;
  --ink: #1d1c19;
  --muted: #6f6b63;
  --paper: #f4f1ea;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(29, 28, 25, 0.11);
  --shadow: 0 24px 70px rgba(60, 52, 40, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(255, 255, 255, 0.95), transparent 31rem),
    linear-gradient(145deg, #f7f4ed 0%, #f1eee7 58%, #ede9e0 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
}

.ambient-one {
  top: -19rem;
  right: -7rem;
  background: #8da6ff;
}

.ambient-two {
  bottom: -22rem;
  left: -10rem;
  background: #f6b972;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 32px;
}

.hero {
  min-height: 330px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.brand-mark {
  width: 25px;
  height: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  transform: rotate(9deg);
}

.brand-mark span {
  border-radius: 2px;
  background: var(--ink);
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(3) {
  opacity: 0.35;
}

.hero-copy {
  grid-column: 1 / -1;
  align-self: end;
  padding: 62px 0 48px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.2em;
}

h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(54px, 9vw, 110px);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.intro {
  max-width: 460px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  letter-spacing: -0.02em;
}

.hero-meta {
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #56a76b;
  box-shadow: 0 0 0 4px rgba(86, 167, 107, 0.12);
}

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

.app-card {
  position: relative;
  min-height: 340px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 27px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: card-in 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--delay, 0ms);
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: auto -14% -35% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(4px);
  transition: transform 300ms ease;
}

.app-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 34px 90px rgba(60, 52, 40, 0.16);
}

.app-card:hover::before {
  transform: scale(1.16);
}

.app-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.accent-violet {
  --accent: #755fe3;
  --accent-soft: rgba(117, 95, 227, 0.25);
}

.accent-cyan {
  --accent: #168aa1;
  --accent-soft: rgba(22, 138, 161, 0.24);
}

.accent-amber {
  --accent: #c3792f;
  --accent-soft: rgba(220, 142, 60, 0.28);
}

.accent-rose {
  --accent: #c85f73;
  --accent-soft: rgba(200, 95, 115, 0.24);
}

.accent-green {
  --accent: #4f8e68;
  --accent-soft: rgba(79, 142, 104, 0.24);
}

.accent-blue {
  --accent: #4e75c9;
  --accent-soft: rgba(78, 117, 201, 0.24);
}

.card-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.app-mark {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 30px var(--accent-soft);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.card-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition:
    color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.card-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-card:hover .card-arrow {
  color: #fff;
  background: var(--accent);
  transform: rotate(4deg);
}

.card-body {
  position: relative;
  z-index: 1;
}

.card-eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.card-body h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 660;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.card-description {
  min-height: 3.4em;
  margin: 15px 0 21px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.card-hostname {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: rgba(29, 28, 25, 0.52);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skeleton {
  background:
    linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.78) 40%, transparent 60%),
    rgba(255, 255, 255, 0.45);
  background-size: 220% 100%;
  animation: shimmer 1.35s ease-in-out infinite;
}

.empty-state {
  margin: 0;
  padding: 80px 20px;
  border: 1px dashed var(--line);
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
}

footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 70px;
  color: rgba(29, 28, 25, 0.45);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.footer-rule {
  width: 34px;
  height: 1px;
  background: var(--line);
}

.noscript {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  background: #1d1c19;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  to {
    background-position: -120% 0;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 32px, 620px);
    padding-top: 30px;
  }

  .hero {
    min-height: 285px;
  }

  .hero-copy {
    padding: 54px 0 36px;
  }

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

  .app-card {
    min-height: 300px;
  }
}

@media (max-width: 520px) {
  .hero-meta {
    font-size: 0;
  }

  .hero-meta .status-dot {
    display: block;
  }

  h1 {
    font-size: clamp(50px, 18vw, 76px);
  }

  .intro {
    max-width: 290px;
  }

  .app-card {
    min-height: 285px;
    padding: 22px;
    border-radius: 23px;
  }

  footer {
    padding-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
