/* The tools landing page. Tokens, type and the horizon follow asharizon.com. */

@font-face {
  font-family: "Geist";
  src: url("/assets/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;
  --bg: #05080f;
  --panel: #0b111d;
  --panel-2: #101827;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f0f4fa;
  --text-2: #b7c3d6;
  --muted: #8f9cb2;
  --sky: #16b1ff;
  --sky-2: #8adcff;
  --mint: #25d0a4;
  --ember: #ff8a3d;
  --grad: linear-gradient(92deg, #35bcff 0%, #36cdd0 55%, #3fdcae 100%);
  --sans: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px;
  --section: clamp(64px, 8vw, 120px);
  --r-lg: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --planet-d: clamp(1400px, 240vw, 3800px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

svg {
  display: block;
}

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

ul {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 600;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: rgba(22, 177, 255, .32);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--sky-2);
  outline-offset: 3px;
  border-radius: 6px;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -.022em;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  line-height: 1.55;
}

.eyebrow {
  display: block;
  font-size: .75rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.grad {
  display: inline-block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-bottom: .08em;
}

.link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(138, 220, 255, .5);
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}

.link:hover {
  text-decoration-color: var(--sky-2);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: .9375rem;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: relative;
  z-index: 50;
  height: var(--header-h);
  margin-bottom: calc(var(--header-h) * -1);
}

.site-header__bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: .16em;
  border-radius: 8px;
}

.brand__mark {
  width: 35px;
  height: 9px;
  flex: none;
  transition: transform .4s var(--ease);
}

.brand:hover .brand__mark {
  transform: skewX(-8deg);
}

.brand__sub {
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: var(--text-2);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .25s;
}

.btn:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .26);
  transform: translateY(-1px);
}

.btn--primary {
  border-color: transparent;
  color: #03131c;
  background: var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 1px rgba(22, 177, 255, .25), 0 10px 32px -10px rgba(22, 177, 255, .7);
}

.btn--primary:hover {
  background: var(--grad);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 1px rgba(138, 220, 255, .5), 0 14px 44px -10px rgba(22, 177, 255, .95);
}

.btn--light {
  border-color: transparent;
  background: var(--text);
  color: var(--bg);
}

.btn--light:hover {
  background: #fff;
  border-color: transparent;
}

.btn--sm {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: .875rem;
}

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

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: var(--header-h);
}

.sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(90% 60% at 50% -12%, rgba(22, 177, 255, .13), transparent 62%);
}

.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: 50% 0;
  -webkit-mask-image: radial-gradient(62% 58% at 50% 36%, #000 12%, transparent 76%);
  mask-image: radial-gradient(62% 58% at 50% 36%, #000 12%, transparent 76%);
}

.hero__copy {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: clamp(40px, 5vw, 72px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
  flex: none;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 4.4vw, 5.25rem);
  line-height: 1;
  letter-spacing: -.048em;
  max-width: 13.5em;
  margin: clamp(22px, 2.4vw, 32px) auto 0;
}

.hero__sub {
  max-width: 640px;
  margin: clamp(22px, 2.4vw, 32px) auto 0;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  line-height: 1.55;
}

.hero__ground {
  position: relative;
  isolation: isolate;
  margin-top: clamp(56px, 6vw, 84px);
  padding-top: clamp(64px, 9.6vw, 124px);
  padding-bottom: clamp(24px, 3vw, 40px);
}

.horizon {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.horizon i {
  position: absolute;
  display: block;
}

.horizon__bloom {
  left: 50%;
  top: 0;
  width: min(1280px, 170vw);
  height: clamp(380px, 46vw, 620px);
  translate: -50% -58%;
  background: radial-gradient(closest-side, rgba(22, 177, 255, .32), rgba(22, 177, 255, .2) 22%, rgba(22, 177, 255, .1) 44%, rgba(22, 177, 255, .04) 64%, rgba(22, 177, 255, .012) 80%, transparent);
}

.horizon__core {
  left: 50%;
  top: 0;
  width: min(760px, 110vw);
  height: clamp(120px, 15vw, 200px);
  translate: -50% -52%;
  background: radial-gradient(closest-side, rgba(150, 226, 255, .5), rgba(90, 210, 230, .22) 36%, rgba(37, 208, 164, .08) 64%, transparent);
}

.horizon__planet {
  left: 50%;
  top: 0;
  width: var(--planet-d);
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--bg);
}

.horizon__planet::before,
.horizon__planet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  clip-path: inset(0 30% calc(95.8% - 400px) 30%);
}

.horizon__planet::before {
  box-shadow: inset 0 26px 70px -14px rgba(22, 177, 255, .30), inset 0 110px 200px -60px rgba(22, 177, 255, .12);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 45%, #000 55%, transparent 70%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 45%, #000 55%, transparent 70%);
}

.horizon__planet::after {
  box-shadow: inset 0 1.5px 0 0 rgba(214, 243, 255, .95), inset 0 3px 5px 0 rgba(22, 177, 255, .8), inset 0 8px 18px -2px rgba(22, 177, 255, .35);
  -webkit-mask-image: linear-gradient(90deg, transparent 31%, #000 46.5%, #000 53.5%, transparent 69%);
  mask-image: linear-gradient(90deg, transparent 31%, #000 46.5%, #000 53.5%, transparent 69%);
}

/* Tool cards */

.tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 80px -40px rgba(0, 0, 0, .8);
  padding: clamp(22px, 2.6vw, 34px);
  transition: border-color .3s, transform .4s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -110px;
  top: -130px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(22, 177, 255, .26), transparent);
}

.card--ember::after {
  background: radial-gradient(closest-side, rgba(255, 138, 61, .2), transparent);
}

.card:hover,
.card:focus-within {
  border-color: rgba(138, 220, 255, .28);
  transform: translateY(-2px);
}

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

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(22, 177, 255, .16), rgba(37, 208, 164, .05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  color: var(--sky-2);
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__tag {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.card h3 {
  margin-top: clamp(28px, 3.4vw, 44px);
}

/* The whole card is the link's target. */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card__link:focus-visible {
  outline: none;
}

.card:has(.card__link:focus-visible) {
  outline: 2px solid var(--sky-2);
  outline-offset: 3px;
}

.card p {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 52ch;
}

.facts {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 28px;
  font-size: .9375rem;
  color: var(--muted);
}

.facts li {
  position: relative;
  padding-left: 22px;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--mint);
  border-bottom: 1.5px solid var(--mint);
  transform: translateY(-50%) rotate(-45deg);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--text);
  font-weight: 600;
  font-size: .9375rem;
}

.arrow-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--sky-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s var(--ease);
}

.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: auto;
}

/* A second link on a card sits above the stretched one. */
.card__more {
  position: relative;
  z-index: 2;
  padding-block: 10px;
  font-size: .9375rem;
  font-weight: 500;
}

.card:hover .arrow-link svg {
  transform: translateX(4px);
}

/* Call to action */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  padding: clamp(24px, 3.4vw, 44px);
}

.cta > div:first-child {
  flex: 1 1 420px;
}

.cta h2 {
  margin-top: 14px;
}

.cta .lede {
  margin-top: 14px;
  max-width: 56ch;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 26px 34px;
  color: var(--muted);
  font-size: .875rem;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

@media (max-width: 820px) {
  :root {
    --header-h: 64px;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .brand__sub {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
