:root {
  color-scheme: light;
  --ink: #394652;
  --deep-ink: #17212a;
  --muted: #687783;
  --paper: #eef3f6;
  --line: rgba(23, 33, 42, 0.13);
  --blue: #0563bb;
  --cyan: #00aeef;
  --red: #ed4242;
  --violet: #7459db;
  --amber: #d79013;
  --radius: 1.15rem;
  --shadow: 0 1.5rem 4rem rgba(23, 33, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--deep-ink);
  border-radius: 0.5rem;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  background-image: url("/assets/dirk.jpg");
  background-position: center center;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(255, 255, 255, 0.82);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 82rem);
  margin-inline: auto;
  padding: clamp(4rem, 8vh, 7rem) clamp(0rem, 4vw, 4rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
p {
  text-wrap: balance;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.6rem, 7vw, 6.4rem);
  line-height: 0.94;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.role-intro {
  margin: 1.25rem 0 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
}

.role-intro .typed {
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.typed-cursor {
  color: var(--blue);
  font-weight: 400;
}

.social-links {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.social-links a {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(57, 70, 82, 0.16);
  border-radius: 50%;
  backdrop-filter: blur(0.75rem);
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0.8rem 2rem rgba(23, 33, 42, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.social-links svg,
.app-icon svg {
  width: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.social-links .social-dot {
  fill: currentColor;
  stroke: none;
}

.social-links .astrobin-link svg path {
  stroke: currentColor;
}

.social-links .astrobin-link svg {
  width: 1.65rem;
}

.social-links .astrobin-link .astrobin-box,
.social-links .astrobin-link .astrobin-planet,
.social-links .astrobin-link .astrobin-a {
  fill: currentColor;
  stroke: none;
}

.social-links .astrobin-link .astrobin-ring {
  fill: none;
  stroke: white;
  stroke-width: 2.5;
}

.social-links .qrz-link span {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.hero-logo {
  display: block;
  width: min(35rem, 70vw);
  height: auto;
  margin-top: 1.7rem;
}

.applications {
  background:
    radial-gradient(circle at 86% 5%, rgba(0, 174, 239, 0.13), transparent 23rem),
    linear-gradient(rgba(23, 33, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 42, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 3rem 3rem, 3rem 3rem, auto;
}

.applications-inner {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
  padding-block: clamp(5rem, 10vw, 8rem) 3rem;
}

.section-heading {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--deep-ink);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.section-heading > p {
  max-width: 22rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.destination-group + .destination-group {
  margin-top: clamp(3rem, 7vw, 5rem);
}

.destination-group h3 {
  margin: 0 0 1.25rem;
  color: var(--deep-ink);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.04em;
}

.app-card {
  --accent: var(--blue);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  padding: clamp(1.2rem, 3vw, 1.65rem);
  color: white;
  background: #17212a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.app-card::before,
.app-card::after {
  position: absolute;
  inset: 0;
  content: "";
}

.app-card::before {
  z-index: -2;
  background-position: center;
  background-size: cover;
  transition: transform 500ms ease;
}

.app-card::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 16, 22, 0.02) 20%, rgba(9, 16, 22, 0.26) 58%, rgba(9, 16, 22, 0.92) 100%);
}

.app-card:hover,
.app-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-0.3rem);
}

.app-card:hover::before,
.app-card:focus-visible::before {
  transform: scale(1.035);
}

.home-card { --accent: var(--cyan); }
.racing-card { --accent: var(--red); }
.astro-card { --accent: var(--violet); }
.telemetry-card { --accent: var(--amber); }
.dechapper-card { --accent: #f08a3e; }
.zonhoven-card { --accent: #78c14b; }

.racing-card::before {
  background-image: url("/assets/yanoa-racing-hero.webp");
  background-position: center 42%;
}

.home-card::before {
  background:
    radial-gradient(circle at 77% 25%, rgba(188, 255, 235, 0.9) 0 5%, transparent 5.5%),
    linear-gradient(35deg, transparent 0 42%, rgba(170, 249, 255, 0.2) 42.2% 43%, transparent 43.2% 100%),
    linear-gradient(145deg, transparent 0 50%, rgba(255, 255, 255, 0.18) 50.2% 51%, transparent 51.2% 100%),
    repeating-linear-gradient(90deg, rgba(196, 247, 255, 0.08) 0 1px, transparent 1px 3rem),
    repeating-linear-gradient(0deg, rgba(196, 247, 255, 0.08) 0 1px, transparent 1px 3rem),
    linear-gradient(135deg, #0b667e, #123247 62%, #071c2a);
}

.astro-card::before {
  background-image: url("/assets/astro-m51.webp");
  background-position: center;
}

.telemetry-card::before {
  background:
    linear-gradient(116deg, transparent 0 16%, rgba(255, 188, 52, 0.9) 16.2% 17%, transparent 17.2% 37%, rgba(42, 226, 179, 0.78) 37.2% 38%, transparent 38.2%),
    linear-gradient(66deg, transparent 0 47%, rgba(255, 255, 255, 0.52) 47.2% 47.7%, transparent 48%),
    repeating-linear-gradient(90deg, rgba(139, 229, 222, 0.1) 0 1px, transparent 1px 2.5rem),
    repeating-linear-gradient(0deg, rgba(139, 229, 222, 0.1) 0 1px, transparent 1px 2.5rem),
    radial-gradient(circle at 75% 35%, rgba(31, 222, 181, 0.26), transparent 26%),
    linear-gradient(135deg, #092c34, #10202b 65%, #07151d);
}

.dechapper-card::before {
  background-image: url("/assets/dechapper-hero.webp");
  background-position: center 46%;
}

.zonhoven-card::before {
  background-image: url("/assets/zonhoven-united-hero.webp");
  background-position: center 44%;
}

.app-icon {
  display: grid;
  width: 3.6rem;
  height: 3.6rem;
  place-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  backdrop-filter: blur(0.7rem);
}

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

.app-copy strong {
  display: block;
  color: white;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  letter-spacing: -0.025em;
}

.app-copy small {
  display: block;
  margin-top: 0.15rem;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-arrow {
  color: white;
  font-size: 1.5rem;
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  margin-top: clamp(5rem, 9vw, 8rem);
  padding-top: 2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

footer img {
  width: 9rem;
  height: auto;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--deep-ink);
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 760px) {
  .hero {
    align-items: end;
    background-position: 68% center;
  }

  .hero::before {
    background: rgba(255, 255, 255, 0.8);
  }

  .hero-content {
    padding-block: 6rem 3rem;
  }

  h1 {
    font-size: clamp(3.5rem, 17vw, 5rem);
  }

  .hero-logo {
    width: min(30rem, 88vw);
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 1rem;
  }

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

  footer {
    grid-template-columns: 1fr auto;
  }

  footer img {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero-content,
  .applications-inner {
    width: min(100% - 1.25rem, 76rem);
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
