:root {
  --sunbeam: #f9e784;
  --coral: #e49273;
  --rose: #e26f94;
  --mint: #6fe2b9;
  --sky: #6fc9e2;
  --paper: #0f1218;
  --ink: #f5f7fb;
  --panel: #161c25;
  --line: #1f2732;
  --muted: rgba(245, 247, 251, 0.72);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 2rem 1rem;
  text-align: center;
}

.language-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.language-toggle select {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.language-toggle select:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

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

.hero {
  position: relative;
  z-index: 1;
}

.bg-tilt {
  display: none;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background-image: url("public/BG_text.svg"), url("public/BG_text.svg"), url("public/BG_text.svg"), url("public/BG_text.svg"), url("public/BG_text.svg");
  background-repeat: repeat, repeat, repeat, repeat, repeat;
  background-size: 82% 280px, 82% 280px, 82% 280px, 82% 280px, 82% 280px;
  background-position: -40px 0, 120px 56px, -200px 112px, 240px 168px, -60px 224px;
  transform: rotate(-18deg);
  transform-origin: center;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

@media (max-width: 900px) {
  body::before {
    background-size: 120% 280px, 120% 280px, 120% 280px, 120% 280px, 120% 280px;
    background-position: -20px 0, 140px 56px, -150px 112px, 240px 168px, 0 224px;
  }
}

@media (max-width: 640px) {
  body::before {
    background-size: 170% 280px, 170% 280px, 170% 280px, 170% 280px, 170% 280px;
    background-position: -20px 0, 140px 56px, -160px 112px, 240px 168px, 20px 224px;
  }
}

@media (max-width: 480px) {
  body::before {
    background-size: 210% 280px, 210% 280px, 210% 280px, 210% 280px, 210% 280px;
    background-position: -10px 0, 160px 56px, -140px 112px, 260px 168px, 40px 224px;
  }
}

.hero {
  width: min(90vw, 640px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  margin: 0 auto;
}

.intro {
  margin: 0.4rem 0 0.4rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

h1 {
  margin: 0.2rem 0 1.2rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.1;
  color: transparent;
  background: linear-gradient(120deg, var(--sunbeam), var(--mint), var(--sky), var(--coral));
  background-clip: text;
  -webkit-background-clip: text;
}

p {
  margin: 0 auto;
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

a {
  color: var(--rose);
}

a:hover,
a:focus-visible {
  color: var(--coral);
  text-decoration: underline;
}
