@font-face {
  font-family: 'ZTNature';
  src: url('assets/fonts/ZTNature-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ZTNature';
  src: url('assets/fonts/ZTNature-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ZTNature';
  src: url('assets/fonts/ZTNature-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ZTNature';
  src: url('assets/fonts/ZTNature-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1a1530;
  --primary: #a855f7;
  --primary-light: #c084fc;
  --text: #ffffff;
  --text-muted: #b0aacc;
  --glow: rgba(168, 85, 247, 0.22);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'ZTNature', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

/* Soft ambient glow behind the composition */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 78% 70%, var(--glow), transparent 70%),
    radial-gradient(ellipse 40% 35% at 18% 30%, rgba(168, 85, 247, 0.1), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.logo-wrapper {
  position: fixed;
  top: 28px;
  right: 40px;
  z-index: 10;
  text-decoration: none;
  animation: fade-in 0.7s ease both;
}

.logo-img {
  height: 32px;
  width: auto;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.content-left {
  flex: 1;
  max-width: 600px;
  padding: 100px 60px 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-right {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.landing-badge {
  display: inline-block;
  width: fit-content;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  animation: fade-up 0.7s ease 0.1s both;
}

h1.title {
  font-size: clamp(2.4rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.1;
  animation: fade-up 0.75s ease 0.2s both;
}

.description {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 28em;
  animation: fade-up 0.75s ease 0.35s both;
}

.dino-img {
  height: 85vh;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
  pointer-events: none;
  user-select: none;
  animation: fade-in 1s ease 0.15s both, float 5.5s ease-in-out 1s infinite;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  .page {
    flex-direction: column;
    overflow: visible;
  }

  .content-right {
    order: 1;
    flex: 0 0 auto;
    height: 42vh;
    min-height: 220px;
    max-height: 340px;
    align-items: flex-end;
    justify-content: center;
    padding-top: calc(24px + env(safe-area-inset-top, 0px));
  }

  .dino-img {
    height: 100%;
    max-width: 100%;
  }

  .content-left {
    order: 2;
    flex: 1;
    max-width: 100%;
    padding: 24px 28px calc(40px + env(safe-area-inset-bottom, 0px));
    align-items: center;
    text-align: center;
    justify-content: flex-start;
  }

  .landing-badge {
    margin-left: auto;
    margin-right: auto;
  }

  h1.title {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }

  .description {
    font-size: 1rem;
  }

  .logo-wrapper {
    top: 18px;
    right: 20px;
  }

  .logo-img {
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-wrapper,
  .landing-badge,
  h1.title,
  .description,
  .dino-img {
    animation: none;
  }
}

/* ── Legal pages ── */

.legal-body {
  overflow-x: hidden;
  overflow-y: auto;
}

.legal-body::before {
  display: none;
}

.impressum-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 60px 40px 100px;
  max-width: 760px;
  margin: 0 auto;
}

.impressum-back {
  color: var(--primary);
  font-family: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 40px;
  display: inline-block;
}

.impressum-back:hover {
  opacity: 0.75;
}

.impressum-title {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 48px;
}

.impressum-section {
  margin-bottom: 36px;
}

.impressum-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 8px;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
}

.impressum-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 20px;
  margin-bottom: 8px;
}

.impressum-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 14px;
  margin-bottom: 6px;
}

.impressum-section p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 10px;
}

.impressum-section p.uppercase {
  text-transform: uppercase;
}

.impressum-section ul {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.impressum-section li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 6px;
}

.impressum-section a {
  color: var(--primary);
  text-decoration: none;
}

.impressum-section a:hover {
  text-decoration: underline;
}

/* ── Footer links ── */

.footer-links {
  position: fixed;
  bottom: 16px;
  right: 24px;
  display: flex;
  gap: 16px;
  z-index: 20;
}

.impressum-link {
  font-size: 0.75rem;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

.impressum-link:hover,
.impressum-link[aria-current='page'] {
  color: var(--primary);
}

@media (max-width: 768px) {
  .impressum-page {
    padding: 40px 24px 100px;
  }

  .impressum-title {
    font-size: 1.8rem;
  }

  .footer-links {
    bottom: 12px;
    right: 16px;
    gap: 12px;
  }

  .page {
    padding-bottom: 48px;
  }
}
