/* The home page of the application before it moved to app.<host>: the hero section ported from React and Tailwind
   to plain CSS, with the dark theme tokens of the application. */
@font-face { font-family: "Inter"; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/inter-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --background: hsl(222.2 84% 4.9%);
  --foreground: hsl(210 40% 98%);
  --muted-foreground: hsl(215 20.2% 65.1%);
  --primary: hsl(226 75% 55%);
  --primary-foreground: hsl(210 40% 98%);
  --ring: hsl(216 34% 17%);
  --logo: #ffffff;
  --logo-mark: #adb1b8;
  --radius: 0.5rem;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#globe-container {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: radial-gradient(#0f1b2d, #020816);
}

.globe {
  position: absolute;
  top: -20rem;
  right: -5rem;
  height: 120vh;
  width: 120vw;
}

#globe-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.top-bar {
  z-index: 10;
  display: flex;
  width: 100%;
  flex-shrink: 0;
  align-items: center;
  padding: 2rem 1.75rem 0;
}

.top-bar .brand { display: flex; color: var(--foreground); }
.logo { display: none; height: 3rem; width: auto; color: var(--logo); }
.logo .logo-mark { color: var(--logo-mark); }
.logo-mark-only { display: block; height: 3rem; width: auto; color: var(--logo-mark); }

.mobile-fade {
  position: absolute;
  left: 0;
  right: 0;
  top: 18.75rem;
  bottom: 0;
  background: hsl(222.2 84% 4.9% / 0.3);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 6.25rem, black);
  mask-image: linear-gradient(to bottom, transparent, black 6.25rem, black);
  -webkit-backdrop-filter: blur(0.125rem);
  backdrop-filter: blur(0.125rem);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
}

.hero-text {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.5rem;
  text-align: left;
}

.title {
  margin: 0;
  max-width: 64rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 600;
  text-wrap: balance;
  color: var(--foreground);
}

.title i { font-weight: 300; font-style: italic; }

.description {
  margin: 0;
  max-width: 56rem;
  font-size: 1rem;
  line-height: 1.5rem;
  text-wrap: balance;
  color: var(--muted-foreground);
}

.button {
  display: inline-flex;
  width: fit-content;
  height: 2.75rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  background: var(--primary);
  color: var(--primary-foreground);
  transition: background-color 150ms, color 150ms;
}

.button:hover { background: hsl(226 75% 55% / 0.9); }
.button:active { filter: brightness(0.9); }
.button:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring); }

@media (min-width: 768px) {
  .title { font-size: 2.25rem; line-height: 2.5rem; }
  .description { font-size: 1.125rem; line-height: 1.75rem; }
}

@media (min-width: 1024px) {
  .globe { inset: 0; height: 100%; width: 100%; }
  .logo { display: block; }
  .logo-mark-only { display: none; }
  .mobile-fade { display: none; }
  .hero-text { padding: 0 3rem; }
  .title { font-size: 3rem; line-height: 1; }
  .description { font-size: 1.25rem; line-height: 1.75rem; }
}

@media (min-width: 1280px) {
  .top-bar { padding-inline: 6rem; }
  .hero-text { padding-inline: 6rem; }
}

@media (min-width: 1536px) {
  .hero-text { padding-inline: 13rem; }
}

@keyframes fadeInLeft {
  from { transform: translate(3.75rem, 0); opacity: 0; }
  to { transform: translate(0, 0); opacity: 1; }
}

@keyframes fadeInRight {
  from { transform: translate(-3.75rem, 0); opacity: 0; }
  to { transform: translate(0, 0); opacity: 1; }
}

.fadeInLeft { transform: translate(3.75rem, 0); opacity: 0; }
.fadeInLeft.in-view { animation: fadeInLeft 0.8s ease; transform: translate(0, 0); opacity: 1; }
.fadeInRight { transform: translate(-3.75rem, 0); opacity: 0; }
.fadeInRight.in-view { animation: fadeInRight 0.8s ease; transform: translate(0, 0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .fadeInLeft, .fadeInRight { transform: none; opacity: 1; }
  .fadeInLeft.in-view, .fadeInRight.in-view { animation: none; }
}

/* The 404 page shares the hero's theme without the globe */
.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: radial-gradient(#0f1b2d, #020816);
}
.page main { display: flex; flex: 1; align-items: center; }
.page .hero-text h1 { margin: 0; max-width: 64rem; font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; text-wrap: balance; }
.page .hero-text p { margin: 0; max-width: 56rem; color: var(--muted-foreground); }
.page a { color: var(--foreground); }
@media (min-width: 1024px) { .page .hero-text h1 { font-size: 3rem; line-height: 1; } }
