/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  color: #000;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark {
  background: #000;
  color: #fff;
}

body.dark .logo-wrap img { filter: invert(1); }
body:not(.dark) .brand,
body:not(.dark) .tagline,
body:not(.dark) .theme-toggle,
body:not(.dark) .lang-toggle { color: #000; }

/* Hero */
.hero {
  width: 100%;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  transition: opacity 0.25s ease;
}

.hero-content.lang-fade { opacity: 0; }

.logo-wrap {
  margin: 0 auto 1.5rem;
  width: clamp(140px, 28vw, 220px);
  opacity: 0;
  animation: appear 1.2s ease-out 0.2s forwards;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.brand {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
  opacity: 0;
  animation: appear 0.8s ease-out 0.5s forwards;
}

/* Tagline */
.tagline-block {
  max-width: 22rem;
  opacity: 0;
  animation: appear 0.8s ease-out 0.7s forwards;
}

.tagline {
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  font-weight: 400;
  color: #000;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.45;
  transition: opacity 0.25s ease;
}

body.dark .tagline { color: #fff; }

/* Contact Button */
.contact-btn-wrap {
  margin-top: 1.75rem;
  transition: opacity 0.25s ease;
}

.contact-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 2px solid #000;
  cursor: pointer;
  border-radius: 2rem;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  opacity: 0;
  animation: appear 0.8s ease-out 0.9s forwards;
  transition: transform 0.25s ease, background 0.3s, border-color 0.3s, color 0.3s;
}

.contact-btn:hover {
  transform: scale(1.04);
}

body:not(.dark) .contact-btn {
  background: #fff;
  border-color: #000;
  color: #000;
}

body.dark .contact-btn {
  background: #000;
  border-color: #fff;
  color: #fff;
}

/* Animations */
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bottom Actions */
.bottom-actions {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: appearBottom 0.8s ease-out 1.1s forwards;
}

@keyframes appearBottom {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.theme-toggle,
.lang-toggle {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.3s, color 0.3s;
}

.theme-toggle:hover,
.lang-toggle:hover {
  border-color: #000;
}

body.dark .theme-toggle,
body.dark .lang-toggle {
  border-color: #fff;
  background: #000;
  color: #fff;
}

body.dark .theme-toggle:hover,
body.dark .lang-toggle:hover {
  border-color: #fff;
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
body.dark .theme-toggle .icon-sun { display: none; }
body.dark .theme-toggle .icon-moon { display: block; }

.lang-toggle {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: opacity 0.25s ease;
}

.lang-toggle.lang-fade { opacity: 0; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 100;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

body.dark .modal-overlay {
  background: rgba(0, 0, 0, 0.7);
}

.modal {
  position: relative;
  background: #fff;
  border: 2px solid #000;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 20rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #000;
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.is-open .modal {
  transform: scale(1);
}

body.dark .modal {
  background: #000;
  border-color: #fff;
  color: #fff;
}

.modal-text { margin: 0; }
