html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(209, 92, 255, 0.2), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(255, 79, 181, 0.12), transparent 22%),
    radial-gradient(circle at 72% 56%, rgba(255, 152, 40, 0.1), transparent 22%),
    linear-gradient(180deg, #16191f 0%, #0f1218 42%, #06040c 100%);
  line-height: 1.7;
  overflow-x: hidden;
  font-weight: 400;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px),
    radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px),
    radial-gradient(circle at 55% 75%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px);
  background-size: 260px 260px, 320px 320px, 280px 280px;
  opacity: 0.45;
}

body::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.015), transparent),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.01), transparent);
  mix-blend-mode: screen;
  opacity: 0.45;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(255, 152, 40, 0.9);
  outline-offset: 2px;
}

.container {
  width: min(92%, 1180px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 8, 15, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  min-width: 0;
  justify-self: start;
}

.nav-icon {
  width: clamp(140px, 15vw, 210px);
  height: 72px;
  object-fit: contain;
  display: block;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav-links {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.nav-links a,
.footer-col a,
.cookie-link-btn {
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  transform: translateY(-1px);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 79, 181, 0.24);
  box-shadow: 0 10px 24px rgba(255, 79, 181, 0.12);
}

.nav-actions-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.nav-menu {
  display: contents;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(2, 6, 16, 0.14);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 79, 181, 0.24);
}

.nav-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 22px rgba(2, 6, 16, 0.12);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.lang-switch a.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 79, 181, 0.82), rgba(255, 152, 40, 0.82));
  box-shadow: 0 12px 24px rgba(255, 79, 181, 0.16);
}

main {
  padding: clamp(2.2rem, 4vw, 3.8rem) 0 clamp(2.2rem, 4vw, 3.8rem);
}

main > .container {
  width: min(92%, 1040px);
}

.hero-card,
.legal-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-card {
  padding: clamp(1.9rem, 3vw, 2.65rem);
  margin-bottom: 1.35rem;
  background:
    radial-gradient(circle at top left, rgba(255, 79, 181, 0.08), transparent 28%),
    radial-gradient(circle at 86% 20%, rgba(255, 152, 40, 0.09), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.hero-copy-text {
  max-width: 52rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.legal-card {
  padding: clamp(1.35rem, 2.4vw, 2rem);
  display: grid;
  gap: 1rem;
}

.legal-block {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-card, 0 18px 38px rgba(2, 6, 16, 0.24));
}

.legal-block h2 {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  color: var(--text);
}

.legal-block p,
.legal-block li {
  color: var(--muted);
  font-size: 0.96rem;
}

.legal-block strong {
  color: var(--text);
  font-weight: 700;
}

.legal-block ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.legal-block a {
  color: #ffd8b5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer {
  margin-top: clamp(0.45rem, 1.2vw, 0.85rem);
  padding: clamp(1.05rem, 2vw, 1.45rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 8, 15, 0.9);
  backdrop-filter: blur(18px);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2.8vw, 2rem);
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1 1 460px;
  max-width: none;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0;
  text-decoration: none;
  flex: 0 0 auto;
}

.footer-wordmark-img {
  width: clamp(138px, 14vw, 190px);
  height: auto;
  display: block;
}

.footer-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.footer-brand .footer-legal {
  margin-top: 0.35rem;
  color: rgba(245, 239, 255, 0.62);
  font-size: 0.74rem;
}

.footer-cols {
  flex: 0 1 auto;
  display: flex;
  gap: clamp(1.2rem, 3vw, 2rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-col {
  min-width: 132px;
}

.footer-col h5 {
  color: var(--text);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer-col li {
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-col a,
.cookie-link-btn {
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
}

.cookie-link-btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-col a:hover,
.footer-col a:focus-visible,
.cookie-link-btn:hover,
.cookie-link-btn:focus-visible {
  color: var(--text);
}

@media (max-width: 760px) {
  nav .container {
    width: min(calc(100% - 1rem), 1180px);
  }

  .nav-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    gap: 0.75rem;
    padding: 0.65rem 0;
  }

  .nav-brand {
    justify-self: start;
  }

  .nav-icon {
    width: clamp(132px, 42vw, 170px);
    height: 58px;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .nav-menu {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    padding: 0.85rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
      radial-gradient(circle at top left, rgba(255, 79, 181, 0.10), transparent 34%),
      radial-gradient(circle at 92% 8%, rgba(255, 152, 40, 0.08), transparent 28%),
      rgba(10, 8, 15, 0.96);
    box-shadow: 0 20px 42px rgba(2, 6, 16, 0.28);
    backdrop-filter: blur(18px);
  }

  nav.nav-open .nav-menu {
    display: grid;
    gap: 0.75rem;
  }

  .nav-links {
    display: grid;
    width: 100%;
    justify-content: stretch;
    gap: 0.45rem;
  }

  .nav-links a {
    width: 100%;
  }

  .nav-actions-group {
    width: 100%;
    justify-content: center;
    justify-self: stretch;
  }

  .lang-switch {
    width: 100%;
  }

  .lang-switch a {
    flex: 1;
  }

  .footer-top {
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
    text-align: left;
  }

  .footer-cols {
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .nav-menu {
    padding: 0.75rem;
    border-radius: 20px;
  }

  .nav-links {
    gap: 0.35rem;
  }

  .nav-links a {
    min-height: 38px;
    padding: 0.42rem 0.72rem;
    font-size: 0.62rem;
  }

  main > .container,
  .hero-card,
  .legal-card {
    width: min(92%, 1040px);
  }

  .hero-card,
  .legal-card {
    padding: 1.35rem;
  }

  .footer-brand {
    flex-direction: column;
    text-align: center;
  }
}
