/* Modern, minimal landing page for ebosch.io */

:root {
  --bg: #070b14;
  --panel: rgba(10, 16, 30, 0.72);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.66);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  --border: rgba(255, 255, 255, 0.12);

  --a: #7c3aed;
  --b: #22d3ee;
  --c: #60a5fa;

  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 900px at 70% 10%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(1100px 800px at 20% 80%, rgba(34, 211, 238, 0.14), transparent 55%),
    var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(900px, 95dvh);
  display: grid;
  place-items: start center;
  align-content: start;
  padding: 56px 20px 34px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("/images/cover.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.02);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 58% 28%, rgba(124, 58, 237, 0.35), transparent 60%),
    radial-gradient(820px 520px at 30% 70%, rgba(34, 211, 238, 0.22), transparent 62%),
    linear-gradient(to bottom, rgba(7, 11, 20, 0.25), rgba(7, 11, 20, 0.92));
}

.phrase-field {
  position: absolute;
  width: min(560px, 70vw);
  height: 240px;
  left: 50%;
  top: 46%;
  transform: translate(-5%, -50%);
  pointer-events: none;
  z-index: 10;
}

.lang-switcher {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 6px;
  z-index: 20;
}

.lang-btn {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(10, 16, 30, 0.45);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 500;
  text-transform: lowercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: rgba(10, 16, 30, 0.65);
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.28);
}

.lang-btn--active {
  background: rgba(124, 58, 237, 0.35);
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(124, 58, 237, 0.55);
}

.hero__content {
  position: relative;
  width: min(920px, 100%);
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(7, 11, 20, 0.35);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.phrase {
  position: absolute;
  left: var(--x, 50%);
  max-width: 520px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(8, 14, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  -webkit-transform: translateX(-50%) translateY(160px);
  transform: translateX(-50%) translateY(160px);
  -webkit-animation-name: phraseFloat;
  animation-name: phraseFloat;
  -webkit-animation-duration: 7.2s;
  animation-duration: 7.2s;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  will-change: transform, opacity;
}

@-webkit-keyframes phraseFloat {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-50%) translateY(160px);
    transform: translateX(-50%) translateY(160px);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    -webkit-transform: translateX(-50%) translateY(-90px);
    transform: translateX(-50%) translateY(-90px);
  }
}

@keyframes phraseFloat {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-50%) translateY(160px);
    transform: translateX(-50%) translateY(160px);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    -webkit-transform: translateX(-50%) translateY(-90px);
    transform: translateX(-50%) translateY(-90px);
  }
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 16, 30, 0.55);
}

.badge__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--b), var(--a));
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
}

.badge__text {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.title {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 22px);
  color: rgba(255, 255, 255, 0.85);
}

.card {
  margin-top: 8px;
  width: 100%;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 16, 30, 0.48);
  padding: 14px 16px;
}

.card__text {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.86);
}

.muted {
  color: var(--muted);
}

.telegram-link {
  color: #7dd3fc;
  text-decoration-color: rgba(125, 211, 252, 0.7);
  text-underline-offset: 0.2em;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.telegram-link:hover {
  color: #bae6fd;
  text-decoration-color: rgba(186, 230, 253, 0.95);
}

.bottom {
  position: relative;
  padding-top: 8px;
}

.orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.34;
}

.orb--a {
  left: -120px;
  bottom: -180px;
  background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.85), transparent 60%);
}

.orb--b {
  right: -140px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  opacity: 0.28;
  background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.85), transparent 60%);
}

.orb--c {
  left: 38%;
  bottom: -260px;
  width: 380px;
  height: 380px;
  opacity: 0.22;
  background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.9), transparent 60%);
}

.wave {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wave__path {
  fill: rgba(255, 255, 255, 0.06);
}

.footer {
  position: relative;
  padding: 18px 20px 26px;
  display: flex;
  justify-content: center;
}

.footer__text {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 520px) {
  .hero {
    padding-top: 44px;
  }

  .hero__content {
    padding: 18px;
  }

  .phrase-field {
    width: 88vw;
    height: 200px;
    top: 58%;
    transform: translate(-50%, -50%);
  }
}
