/* Homepage-only shell: base tokens, navigation, footer and transient UI. */
:root {
  --bg: #f3eefa;
  --bg-alt: #ebe4f6;
  --bg-radial-2: #fff0f5;
  --bg-radial-3: #f0f9ff;
  --surface: #fff;
  --surface-alt: #faf7fd;
  --text: #2d2a3c;
  --text-muted: #7b7794;
  --text-dim: #b8b4cd;
  --pri: #7c5cfc;
  --pri-hover: #6a48e0;
  --pri-light: #f3f0ff;
  --pri-glow: rgba(124, 92, 252, .12);
  --pri-gradient: linear-gradient(135deg, #7c5cfc, #a78bfa);
  --clay-sm: 3px 3px 8px rgba(174, 174, 192, .15), -3px -3px 8px rgba(255, 255, 255, .9);
  --clay-pri: 6px 6px 16px rgba(124, 92, 252, .2), -6px -6px 16px rgba(255, 255, 255, .9);
  --clay-pri-pressed: inset 3px 3px 8px rgba(124, 92, 252, .15), 2px 2px 4px rgba(124, 92, 252, .1);
  --radius: 22px;
  --radius-lg: 30px;
  --radius-full: 9999px;
  --font: "Nunito", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --t-fast: .2s cubic-bezier(.34, 1.56, .64, 1);
  --t: .3s cubic-bezier(.34, 1.56, .64, 1);
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

body::before {
  top: -15%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(ellipse, var(--bg-radial-2) 0, transparent 70%);
  opacity: .7;
}

body::after {
  bottom: -20%;
  left: -15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(ellipse, var(--bg-radial-3) 0, transparent 70%);
  opacity: .6;
}

a {
  color: var(--pri);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--t-fast);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--pri);
  outline-offset: 2px;
}

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

button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(38px, 5.5vw, 58px); }
h2 { font-size: clamp(30px, 4.5vw, 44px); }
h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
h4 { font-size: 17px; font-weight: 800; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 9999;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--pri);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  transition: top .2s;
}

.skip-link:focus { top: 12px; color: #fff; outline-offset: 0; }

.btn {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--t);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 20px; font-size: 13px; font-weight: 700; }

.btn-primary {
  background: var(--pri-gradient);
  color: #fff;
  box-shadow: var(--clay-pri);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 92, 252, .25), -6px -6px 16px rgba(255, 255, 255, .9);
  transform: translateY(-3px);
}

.btn-primary:active { box-shadow: var(--clay-pri-pressed); transform: translateY(1px); }

.navbar {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid rgba(124, 92, 252, .08);
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 2px 20px rgba(124, 92, 252, .04);
  backdrop-filter: blur(24px) saturate(1.8);
}

.nav-inner {
  display: flex;
  width: 100%;
  max-width: var(--container);
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.03em;
  transition: all var(--t-fast);
}

.nav-brand:hover { color: var(--pri); }

.nav-brand span {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--pri-light);
  color: var(--pri);
  box-shadow: var(--clay-sm);
  font-size: 12px;
  font-weight: 700;
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  transition: all var(--t-fast);
}

.nav-links a.active,
.nav-links a:hover {
  background: var(--pri-light);
  color: var(--pri-hover);
  box-shadow: var(--clay-sm);
}

.nav-links .btn {
  margin-left: 8px;
  padding: 10px 22px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.nav-links .btn-primary { background: linear-gradient(135deg, #5a3fd9, #7c5cfc); }
.nav-links .btn-primary:hover { background: linear-gradient(135deg, #4f35c7, #6a48e0); color: #fff; }

.nav-hamburger {
  display: none;
  z-index: 110;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--text);
  transition: all var(--t);
}

.nav-hamburger[aria-expanded="true"] .hamburger-line:first-child { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.footer {
  padding: 52px 0 36px;
  background: linear-gradient(180deg, var(--text), #1a1728);
  color: #fff;
}

.footer-inner {
  display: grid;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
}

.footer-brand h3 { margin-bottom: 10px; color: #fff; font-size: 20px; font-weight: 900; }
.footer-brand p { color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.65; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.footer-badge { padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-full); background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .75); font-size: 11px; font-weight: 800; }
.footer-col h4 { margin-bottom: 14px; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.footer-col a { display: block; padding: 5px 0; color: rgba(255, 255, 255, .75); font-size: 14px; font-weight: 600; transition: all var(--t-fast); }
.footer-col a:hover { color: #fff; transform: translateX(4px); }

.footer-bottom {
  max-width: var(--container);
  margin: 36px auto 0;
  padding: 28px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .65);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 2000;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: var(--text);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  font-size: 14px;
  font-weight: 700;
  transform: translateX(-50%);
  animation: toastIn .3s ease;
}

.scroll-to-top {
  display: flex;
  position: fixed;
  right: 24px;
  bottom: max(78px, calc(78px + env(safe-area-inset-bottom)));
  z-index: 290;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--pri-gradient);
  color: #fff;
  box-shadow: var(--clay-pri);
  font-size: 22px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform var(--t);
}

.scroll-to-top:hover { box-shadow: 0 8px 24px rgba(124, 92, 252, .3); transform: translateY(-3px); }
.scroll-to-top:active { box-shadow: var(--clay-pri-pressed); transform: translateY(1px); }

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

[hidden] { display: none !important; }

@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { width: 100%; min-width: 0; overflow-x: hidden; font-size: 15px; }
  body::before, body::after { display: none; }
  html { -webkit-text-size-adjust: 100%; }
  .navbar { z-index: 1100; min-height: 60px; padding-right: 12px; padding-left: 12px; background: #fff; backdrop-filter: none; }
  .navbar.menu-open { backdrop-filter: none; }
  .nav-inner { min-width: 0; justify-content: flex-start; gap: 6px; }
  .nav-brand { order: 1; flex: 1 1 auto; min-width: 0; max-width: none; overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
  .nav-brand span { display: none; }
  .language-picker { order: 2; flex: 0 0 auto; margin: 0 !important; }
  .language-picker select { width: 110px !important; max-width: 110px !important; min-height: 38px !important; padding-right: 24px !important; padding-left: 8px !important; }
  .nav-hamburger { display: flex; position: relative; order: 3; z-index: 1102; width: 40px; height: 40px; flex: 0 0 40px; align-items: center; justify-content: center; }
  .nav-links, .nav-links.open { position: fixed; top: 60px; right: 0; bottom: 0; left: 0; order: 4; z-index: 1101; width: 100%; min-height: calc(100dvh - 60px); padding: 20px 16px calc(28px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; gap: 6px; overflow-y: auto; overscroll-behavior: contain; background: #fff; box-shadow: 0 18px 30px rgba(45, 42, 60, .12); -webkit-overflow-scrolling: touch; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links .btn { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: flex-start; margin-left: 0; padding: 14px 18px; color: var(--text); font-size: 17px; line-height: 1.25; visibility: visible; opacity: 1; }
  .nav-links .btn { justify-content: center; margin: 8px 0 0; color: #fff; }
  .footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .footer-inner { padding-right: 0; padding-left: 0; grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 360px) {
  .language-picker select { width: 96px !important; max-width: 96px !important; }
  .nav-brand { font-size: 17px; }
}

@media (min-width: 641px) {
  .nav-inner { max-width: 1480px; gap: 12px; }
  .nav-brand { flex: 0 0 auto; white-space: nowrap; }
  .nav-links { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
  .nav-links a { flex: 0 0 auto; white-space: nowrap; }
  .language-picker { flex: 0 0 auto; }
}

@media (min-width: 1181px) and (max-width: 1700px) {
  .navbar { padding-right: 16px; padding-left: 16px; }
  .nav-inner { gap: 6px; }
  .nav-brand { gap: 6px; font-size: 20px; }
  .nav-brand span { padding: 4px 9px; font-size: 11px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 9px 10px; font-size: 14px; }
  .nav-links .btn { margin-left: 3px; padding: 9px 14px; }
  .language-picker { margin-left: 3px !important; }
  .language-picker select { width: 132px !important; max-width: 132px !important; padding-right: 24px !important; padding-left: 8px !important; }
}

@media (min-width: 641px) and (max-width: 1180px) {
  .navbar { padding-right: 16px; padding-left: 16px; }
  .nav-inner { min-width: 0; justify-content: flex-start; gap: 8px; }
  .nav-brand { order: 1; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .nav-brand span { display: none; }
  .language-picker { order: 2; margin: 0 !important; }
  .language-picker select { width: 132px !important; max-width: 132px !important; min-height: 38px !important; }
  .nav-hamburger { display: flex; order: 3; width: 40px; height: 40px; flex: 0 0 40px; align-items: center; justify-content: center; }
  .nav-links, .nav-links.open { position: fixed; top: 60px; right: 0; bottom: 0; left: 0; z-index: 1101; width: 100%; min-height: calc(100dvh - 60px); padding: 20px 16px calc(28px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; overflow-y: auto; background: #fff; box-shadow: 0 18px 30px rgba(45, 42, 60, .12); }
  .nav-links { order: 4; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links .btn { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: flex-start; margin-left: 0; padding: 14px 18px; font-size: 17px; line-height: 1.25; }
  .nav-links .btn { justify-content: center; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::after, ::before { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .footer, .nav-hamburger, .navbar { display: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 14px; }
}
