/* Landing palette (trimmed). */
:root {
  --color-rosewater: #f2d5cf;
  --color-flamingo: #eebebe;
  --color-pink: #f4b8e4;
  --color-mauve: #ca9ee6;
  --color-red: #e78284;
  --color-maroon: #ea999c;
  --color-peach: #ef9f76;
  --color-yellow: #e5c890;
  --color-green: #a6d189;
  --color-teal: #81c8be;
  --color-sky: #99d1db;
  --color-sapphire: #85c1dc;
  --color-blue: #8caaee;
  --color-lavender: #babbf1;
  --color-text: #c6d0f5;
  --color-subtext0: #a5adce;
  --color-overlay0: #737994;
  --color-surface0: #414559;
  --color-mantle: #292c3c;
  --color-crust: #232634;
  --color-base: #303446;

  --ring: rgba(140, 170, 238, 0.24);
  --border: rgba(148, 156, 187, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  background: linear-gradient(
    to bottom right,
    var(--color-base),
    var(--color-crust)
  );
  color: var(--color-text);
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      600px 600px at 50% 40%,
      rgba(140, 170, 238, 0.12),
      transparent 70%
    ),
    radial-gradient(
      900px 900px at 50% 55%,
      rgba(129, 200, 190, 0.08),
      transparent 75%
    ),
    radial-gradient(
      1px 1px at 20% 30%,
      rgba(198, 208, 245, 0.12),
      transparent 60%
    ),
    radial-gradient(
      1px 1px at 80% 70%,
      rgba(198, 208, 245, 0.1),
      transparent 60%
    );
  opacity: 0.9;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px);
}

.hero {
  max-width: 48rem;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 34px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.logo {
  width: 44px;
  height: 44px;
}

.brand-name {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
  text-align: center;
}

.tagline {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.05;
  font-weight: 850;
  color: #fff;
  text-align: center;
  letter-spacing: -0.4px;
}

.subtitle {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(198, 208, 245, 0.82);
  text-align: center;
}

.central-featured {
  position: relative;
  margin-top: 8px;
  height: min(520px, 68vh);
  width: 100%;
  display: grid;
  place-items: center;
}

.central-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(360px, 84vw);
  height: min(360px, 84vw);
  border-radius: 999px;
  border: 1px solid rgba(148, 156, 187, 0.18);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08) inset,
    0 0 0 18px rgba(35, 38, 52, 0.16);
  background: radial-gradient(
    120px 120px at 50% 50%,
    rgba(35, 38, 52, 0.6),
    rgba(35, 38, 52, 0) 70%
  );
}

.central-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(420px, 92vw);
  height: min(420px, 92vw);
  border-radius: 999px;
  border: 1px dashed rgba(148, 156, 187, 0.18);
  opacity: 0.6;
}

.featured-center {
  position: relative;
  z-index: 2;
  width: min(320px, 88vw);
  padding: 18px 18px 16px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.featured-item {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(220px, 78vw);
  --radius: min(250px, 40vw);
  --angle: 180deg;
  transform: translate(-50%, -50%) rotate(var(--angle))
    translateY(calc(-1 * var(--radius))) rotate(calc(-1 * var(--angle)));
}

.tool1 {
  --angle: 180deg;
}

.tool2 {
  --angle: 135deg;
  --radius: clamp(280px, 38vw, 330px);
}

.tool3 {
  --angle: 90deg;
  --radius: min(290px, 40vw);
}

.tool4 {
  --angle: 45deg;
  --radius: clamp(280px, 38vw, 330px);
}

.tool5 {
  --angle: 0deg;
}

.tool6 {
  --angle: 315deg;
  --radius: clamp(280px, 38vw, 330px);
}

.tool7 {
  --angle: 270deg;
  --radius: min(290px, 40vw);
}

.tool8 {
  --angle: 225deg;
  --radius: clamp(280px, 38vw, 330px);
}

.link-box {
  display: block;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: transparent;
  border: 0;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06) inset,
    0 10px 24px rgba(0, 0, 0, 0.18);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease;
}

.link-box:hover {
  background: rgba(41, 44, 60, 0.22);
  transform: translateY(-1px);
}

.link-box:active {
  transform: translateY(0px);
}

.link-box strong {
  display: block;
  font-size: 15px;
  font-weight: 850;
  color: #fff;
  letter-spacing: -0.2px;
}

.link-box small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(198, 208, 245, 0.82);
}

.link-box--placeholder {
  opacity: 0.55;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.link-box--placeholder:hover {
  transform: none;
  background: transparent;
}

.footer {
  margin-top: 42px;
  font-size: 12px;
  color: rgba(165, 173, 206, 0.72);
  text-align: center;
}

.footer-link {
  color: rgba(198, 208, 245, 0.86);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link:hover {
  color: #fff;
}

.footer-sep {
  padding: 0 8px;
  color: rgba(165, 173, 206, 0.55);
}

@media (min-width: 640px) {
  .hero {
    padding: 44px;
  }
  .central-featured {
    height: min(560px, 68vh);
  }
  .featured-center {
    padding: 20px 22px 18px;
  }

  .link-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 66px;

    border-radius: 999px;
    padding: 14px 18px 12px;
    background: rgba(41, 44, 60, 0.14);
    border: 1px solid var(--border);
  }

  .link-box:hover {
    box-shadow:
      0 0 0 1px var(--ring),
      0 12px 28px rgba(0, 0, 0, 0.22);
  }
}

@media (max-width: 640px) {
  .central-featured {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    height: auto;
  }

  .central-featured::before,
  .central-featured::after {
    display: none;
  }

  .featured-center {
    width: 100%;
    padding: 8px 0 0;
  }

  .featured-item {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    transform: none;
  }

  .link-box {
    border-radius: 14px;
  }

  .footer {
    margin-top: 26px;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 24px;
  }
  .tagline {
    margin-top: 12px;
  }
  .link-box {
    padding: 13px 13px 11px;
  }
}
