/* Base system */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
  --bg: #050308;
  --bg-soft: #0c0812;
  --panel: #140f1f;
  --panel-alt: #1d1630;
  --text: #f4eeff;
  --text-muted: #cbbde4;
  --primary: #b57edc;
  --secondary: #ddb8fa;
  --line: rgba(244, 238, 255, 0.14);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.33);
  --radius-lg: 18px;
  --radius-md: 12px;
  --maxw: 1120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(181, 126, 220, 0.22), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(133, 91, 168, 0.2), transparent 27%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--secondary);
}

h1,
h2,
h3 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

main {
  width: min(var(--maxw), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  z-index: 3000;
  background: var(--primary);
  color: #160c23;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.navbar {
  width: min(var(--maxw), calc(100% - 2rem));
  margin: 1rem auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: rgba(8, 5, 14, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  position: sticky;
  top: 0.7rem;
  z-index: 2000;
  overflow: visible;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  will-change: transform, opacity;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    border-color 0.3s ease;
}

.navbar.hidden {
  transform: translate3d(0, -145%, 0);
  opacity: 0.02;
}

.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-progress {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: -0.55rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(244, 238, 255, 0.08);
  overflow: hidden;
  pointer-events: none;
}

.nav-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(181, 126, 220, 0.3), rgba(221, 184, 250, 0.95), rgba(103, 199, 255, 0.72));
  transform: scaleX(0);
  transform-origin: left center;
}

.nav-links li a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links li a:hover,
.nav-links li a.active,
.nav-links li a[aria-current='page'] {
  color: var(--text);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
}

.hamburger .bar {
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 4px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.language-select {
  appearance: none;
  min-width: 7.4rem;
  padding: 0.58rem 2.2rem 0.58rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: rgba(20, 15, 31, 0.92);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--secondary) 50%),
    linear-gradient(135deg, var(--secondary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.language-select option {
  background: var(--panel);
  color: var(--text);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.section {
  padding: 4rem 0;
}

.glass-card {
  background: linear-gradient(160deg, rgba(181, 126, 220, 0.16), rgba(20, 15, 31, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(181, 126, 220, 0.38);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.cta-btn,
button[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(130deg, var(--primary), #8b5faf);
  color: #f9f5ff;
  font-weight: 800;
  padding: 0.8rem 1.35rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cta-btn:hover,
button[type='submit']:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.cta-btn.alt {
  background: transparent;
  border-color: rgba(181, 126, 220, 0.6);
  color: var(--secondary);
}

.footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  padding: 2.4rem 1rem 1.4rem;
  background: rgba(10, 6, 16, 0.9);
}

.footer-content {
  width: min(var(--maxw), calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.footer-logo-img {
  width: 100px;
  height: auto;
}

.footer-nav ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer h3 {
  margin-bottom: 0.65rem;
  color: var(--text);
  font-size: 1.1rem;
}

.footer-contact p,
.footer-nav a {
  color: var(--text-muted);
}

.socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.15rem;
}

.social-icon:hover {
  border-color: rgba(181, 126, 220, 0.7);
  color: var(--primary);
}

.footer-bottom {
  width: min(var(--maxw), calc(100% - 2rem));
  margin: 1.4rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  text-align: center;
  font-size: 0.92rem;
}

.animate-up,
.animate-fade-in {
  --reveal-delay: 0s;
  opacity: 1;
  transform: none;
}

.delay-1 {
  --reveal-delay: 0.12s;
}

.delay-2 {
  --reveal-delay: 0.24s;
}

body.motion-ready .animate-up,
body.motion-ready .animate-fade-in {
  opacity: 0;
  transform: translate3d(0, var(--reveal-distance, 18px), 0) scale(var(--reveal-scale, 1));
  transition:
    opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay);
  will-change: transform, opacity;
}

body.motion-ready .animate-fade-in {
  --reveal-distance: 0px;
  --reveal-scale: 0.985;
}

body.motion-ready .animate-up.visible,
body.motion-ready .animate-fade-in.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html,
  body {
    scroll-behavior: auto;
  }

  .navbar,
  .cta-btn,
  button[type='submit'],
  .hamburger .bar,
  .animate-up,
  .animate-fade-in,
  .nav-progress-bar {
    animation: none !important;
    transition: none !important;
  }

  .animate-up,
  .animate-fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .navbar {
    position: sticky;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 210px;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(10, 6, 16, 0.95);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.9rem;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .nav-actions {
    margin-left: auto;
    gap: 0.55rem;
  }

  .language-select {
    min-width: 6.7rem;
    padding: 0.5rem 2rem 0.5rem 0.8rem;
    font-size: 0.88rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .socials {
    justify-content: center;
  }
}
