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

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

:root {
  --font-geist-sans: "Geist Local";
  --font-geist-mono: "Geist Mono Local";
}

.wordmark-ai {
  display: inline-block;
  margin-inline: 0.1em;
}

.wordmark-lockup {
  position: relative;
  display: inline-grid;
  width: max-content;
  max-width: 100%;
}

.wordmark-lockup .hero-wordmark {
  white-space: nowrap;
}

.language-toggle {
  position: absolute;
  z-index: 3;
  top: clamp(16px, 2.3vw, 34px);
  right: clamp(18px, 3.2vw, 50px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fbf7ee;
  background: rgba(3, 15, 24, 0.36);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  backdrop-filter: blur(12px);
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0.12em;
  line-height: 1;
  opacity: 1;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.language-toggle:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(3, 15, 24, 0.58);
  transform: translateY(-1px);
}

.language-toggle:focus-visible {
  border-radius: 2px;
  outline: 1px solid #f28a3d;
  outline-offset: 5px;
}

.language-option {
  opacity: 0.34;
  transition: color 160ms ease, opacity 160ms ease;
}

.language-divider {
  opacity: 0.28;
}

html[data-language="de"] [data-language-option="de"],
html[data-language="en"] [data-language-option="en"] {
  color: #f28a3d;
  opacity: 1;
}

.more-button {
  top: auto;
  right: auto;
  bottom: calc(100% + 4px);
  left: calc(52.1% + 7px);
  display: grid;
  width: 108px;
  height: 108px;
  padding: 0;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: translateX(-50%);
  transition: transform 220ms ease;
}

.button-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform 520ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.button-petal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 29px;
  margin-top: -50px;
  margin-left: -4px;
  border-radius: 75% 45% 72% 42% / 88% 72% 45% 28%;
  background: rgba(251, 247, 238, 0.84);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
  transform: rotate(calc(var(--petal) * 22.5deg)) skewX(-7deg);
  transform-origin: 50% 50px;
}

.button-petal:nth-child(4n + 1) {
  width: 9px;
  height: 31px;
  margin-top: -52px;
  margin-left: -4.5px;
  background: rgba(242, 138, 61, 0.92);
  transform-origin: 50% 52px;
}

.button-petal:nth-child(2n) {
  opacity: 0.72;
  border-radius: 48% 78% 42% 72% / 76% 90% 30% 48%;
}

.button-core {
  position: relative;
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: #02080c;
  box-shadow: 0 9px 28px rgba(0, 0, 0, 0.42), inset 0 0 18px rgba(255, 255, 255, 0.035);
}

.more-button .button-mark {
  width: auto;
  height: auto;
  border-radius: 0;
  color: #fbf7ee;
  background: transparent;
  font-size: 31px;
  font-weight: 260;
  line-height: 0.8;
  transform: translateY(-1px);
}

.more-button:hover {
  background: transparent;
  transform: translateX(-50%) translateY(-2px);
}

.more-button:hover .button-burst {
  transform: rotate(11deg) scale(1.035);
}

.more-button:disabled {
  cursor: default;
}

.more-button:disabled:hover {
  transform: translateX(-50%);
}

.more-button:disabled:hover .button-burst {
  transform: none;
}

@media (min-width: 1000px) and (max-height: 1000px) {
  .hero-copy {
    bottom: clamp(56px, 7vh, 72px);
  }
}

@media (max-width: 720px) {
  .language-toggle {
    top: 12px;
    right: 16px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .more-button {
    width: 94px;
    height: 94px;
    transform: translateX(-50%);
  }

  .button-petal {
    height: 25px;
    margin-top: -44px;
    transform-origin: 50% 44px;
  }

  .button-core {
    width: 46px;
    height: 46px;
  }

  .more-button .button-mark {
    font-size: 28px;
  }

  .more-button:hover {
    transform: translateX(-50%) translateY(-2px);
  }
}
