:root {
  --bg-start: #9575e3;
  --bg-mid: #7b5ad0;
  --bg-end: #6040b9;
  --purple: #5f38d6;
  --purple-dark: #452c92;
  --text: #2f3d70;
  --muted: #6575a3;
  --yellow: #ffd34e;
  --yellow-strong: #ffbf32;
  --blue: #62d2ff;
  --green: #8cf4ca;
  --pink: #ff98d0;
  --panel: #ffffff;
  --panel-soft: #f5f8ff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-mid);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Nunito, "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent 26%),
    linear-gradient(155deg, var(--bg-start) 0%, var(--bg-mid) 48%, var(--bg-end) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 16%, #ffffff 0 4px, transparent 5px),
    radial-gradient(circle at 25% 10%, var(--yellow) 0 6px, transparent 7px),
    radial-gradient(circle at 72% 13%, #ffffff 0 4px, transparent 5px),
    radial-gradient(circle at 86% 20%, var(--blue) 0 8px, transparent 9px),
    radial-gradient(circle at 9% 64%, var(--pink) 0 8px, transparent 9px),
    radial-gradient(circle at 88% 78%, var(--green) 0 7px, transparent 8px),
    radial-gradient(circle at 45% 86%, #ffffff 0 4px, transparent 5px);
  animation: twinkle 5s ease-in-out infinite alternate;
}

a {
  color: inherit;
}

.page,
.page-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 24px 0 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 10px 12px 10px 16px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 28px rgba(55, 33, 129, 0.16);
  animation: floatIn 0.55s ease-out both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(69, 44, 146, 0.28);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe77d 0%, var(--yellow) 100%);
  color: #8b5700;
  box-shadow: 0 10px 18px rgba(82, 53, 164, 0.18);
}

.language-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 12px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  box-shadow: 0 10px 18px rgba(82, 53, 164, 0.16);
}

.language-control label {
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 900;
}

.language-control select {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #7b5bff 0%, var(--purple) 100%);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  padding: 0 30px 0 12px;
  outline: none;
  cursor: pointer;
}

.language-control select option,
.language-select option {
  background: #ffffff;
  color: var(--purple-dark);
  font-weight: 900;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.language-select {
  min-height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: #ffffff;
  color: var(--purple-dark);
  font: inherit;
  font-weight: 900;
  padding: 0 8px;
  outline: none;
  cursor: pointer;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.star {
  position: absolute;
  color: var(--yellow);
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1;
  text-shadow: 0 10px 18px rgba(58, 35, 134, 0.28);
  animation: starFloat 4.8s ease-in-out infinite, starPulse 2.6s ease-in-out infinite;
}

.star-one {
  top: 7%;
  left: 7%;
  transform: rotate(-12deg);
}

.star-two {
  right: 9%;
  top: 11%;
  color: var(--pink);
  transform: rotate(15deg);
  animation-delay: -1.4s;
}

.star-three {
  right: 15%;
  bottom: 9%;
  color: var(--blue);
  transform: rotate(-8deg);
  animation-delay: -2.2s;
}

.cloud {
  position: absolute;
  width: 160px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 28px rgba(63, 39, 135, 0.14);
  animation: cloudDrift 13s ease-in-out infinite alternate;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 16px;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  left: 22px;
  width: 68px;
  height: 68px;
}

.cloud::after {
  right: 20px;
  width: 84px;
  height: 84px;
}

.cloud-one {
  left: -42px;
  top: 27%;
}

.cloud-two {
  right: -54px;
  top: 44%;
  transform: scale(0.9);
  animation-delay: -3s;
}

.hill {
  position: fixed;
  left: -8vw;
  right: -8vw;
  bottom: -10vw;
  z-index: 0;
  height: min(22vw, 220px);
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(circle at 18% 36%, rgba(255, 255, 255, 0.22), transparent 12%),
    linear-gradient(180deg, #94ee74 0%, #45c46f 100%);
  pointer-events: none;
  animation: hillGlow 7s ease-in-out infinite alternate;
}

.bubble {
  position: absolute;
  width: var(--size, 18px);
  height: var(--size, 18px);
  left: var(--left, 50%);
  bottom: -80px;
  border: 3px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.9) 0 12%, transparent 13%),
    rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 20px rgba(55, 33, 129, 0.16);
  animation: bubbleRise var(--speed, 11s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.bubble-one { --left: 10%; --size: 20px; --speed: 10s; --delay: -2s; }
.bubble-two { --left: 32%; --size: 14px; --speed: 12s; --delay: -6s; }
.bubble-three { --left: 58%; --size: 24px; --speed: 13s; --delay: -4s; }
.bubble-four { --left: 78%; --size: 16px; --speed: 9s; --delay: -1s; }
.bubble-five { --left: 91%; --size: 28px; --speed: 14s; --delay: -8s; }

.sparkle-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(255, 255, 255, 0.32) 49%, transparent 52% 100%) 22% 18% / 20px 20px no-repeat,
    linear-gradient(0deg, transparent 0 46%, rgba(255, 255, 255, 0.32) 49%, transparent 52% 100%) 22% 18% / 20px 20px no-repeat,
    linear-gradient(90deg, transparent 0 46%, rgba(255, 232, 111, 0.42) 49%, transparent 52% 100%) 73% 27% / 26px 26px no-repeat,
    linear-gradient(0deg, transparent 0 46%, rgba(255, 232, 111, 0.42) 49%, transparent 52% 100%) 73% 27% / 26px 26px no-repeat,
    linear-gradient(90deg, transparent 0 46%, rgba(140, 244, 202, 0.38) 49%, transparent 52% 100%) 42% 82% / 24px 24px no-repeat,
    linear-gradient(0deg, transparent 0 46%, rgba(140, 244, 202, 0.38) 49%, transparent 52% 100%) 42% 82% / 24px 24px no-repeat;
  animation: sparkleDance 4.8s ease-in-out infinite;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 5vw, 44px);
  border: 7px solid #ffffff;
  border-radius: 34px;
  background:
    radial-gradient(circle at 93% 12%, rgba(255, 211, 78, 0.38), transparent 22%),
    radial-gradient(circle at 8% 90%, rgba(98, 210, 255, 0.2), transparent 28%),
    linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
  box-shadow:
    0 24px 50px rgba(55, 33, 129, 0.28),
    inset 0 -16px 30px rgba(103, 71, 188, 0.06);
  overflow: hidden;
  animation: floatIn 0.7s ease-out both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -60% auto auto -20%;
  width: 54%;
  height: 220%;
  background: linear-gradient(110deg, transparent 0 30%, rgba(255, 255, 255, 0.58) 46%, transparent 62% 100%);
  transform: rotate(16deg);
  animation: shineSweep 6.5s ease-in-out infinite;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, #7b5bff 0%, var(--purple) 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(82, 53, 164, 0.26);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

h1 span {
  color: var(--purple);
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 800;
  line-height: 1.58;
}

.mascot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
}

.mascot::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), transparent 38%),
    linear-gradient(180deg, #ffe77d 0%, var(--yellow) 100%);
  box-shadow: 0 18px 30px rgba(125, 78, 12, 0.18);
  animation: mascotTile 4.4s ease-in-out infinite;
}

.mascot img {
  position: relative;
  width: min(168px, 35vw);
  height: auto;
  border-radius: 36px;
  border: 6px solid #ffffff;
  box-shadow: 0 16px 28px rgba(55, 33, 129, 0.24);
  animation: mascotBounce 3.4s ease-in-out infinite;
}

.actions,
.language-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe77d 0%, var(--yellow) 100%);
  color: #7a4600;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(82, 53, 164, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 22px rgba(82, 53, 164, 0.22);
}

.button.secondary {
  background: #eef4ff;
  color: var(--purple-dark);
}

.language-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.info-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.card {
  position: relative;
  min-height: 100%;
  padding: 24px;
  border: 5px solid #ffffff;
  border-radius: 26px;
  background:
    radial-gradient(circle at 95% 8%, rgba(98, 210, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  box-shadow: 0 18px 34px rgba(55, 33, 129, 0.2);
  overflow: hidden;
  animation: cardPop 0.62s ease-out both;
}

.card:nth-child(2) {
  animation-delay: 0.09s;
}

.card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9), transparent 22%),
    rgba(98, 210, 255, 0.22);
}

.card h2 {
  margin-bottom: 10px;
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 900;
}

.card h3 {
  margin-bottom: 8px;
  color: var(--purple);
  font-size: 19px;
  font-weight: 900;
}

.card p,
.card li {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.68;
}

ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

li::marker {
  color: var(--yellow-strong);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  min-height: 76px;
  padding: 14px;
  border: 2px solid #e7edff;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: inset 0 -8px 16px rgba(103, 71, 188, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.feature-list li:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 56, 214, 0.24);
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 18px;
  border: 5px solid #ffffff;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), transparent 40%),
    linear-gradient(180deg, #ffed9b 0%, #ffd65f 100%);
  box-shadow: 0 16px 30px rgba(125, 78, 12, 0.18);
  animation: floatIn 0.72s ease-out 0.12s both;
}

.contact-strip strong {
  display: block;
  color: #7a4600;
  font-size: 18px;
  font-weight: 900;
}

.contact-strip a {
  color: #5f38d6;
  font-weight: 900;
}

.policy-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.policy-card {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  border: 5px solid #ffffff;
  border-radius: 28px;
  background:
    radial-gradient(circle at 96% 10%, rgba(255, 211, 78, 0.14), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  box-shadow: 0 18px 34px rgba(55, 33, 129, 0.2);
  overflow: hidden;
  animation: cardPop 0.62s ease-out both;
}

.policy-card h2 {
  color: var(--purple-dark);
}

.policy-card h3 {
  margin-top: 18px;
}

.policy-card p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.72;
}

.policy-card a {
  color: var(--purple);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.policy-card table {
  width: 100%;
  margin: 14px 0 4px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 2px solid #e7edff;
  border-radius: 18px;
  background: #ffffff;
}

.policy-card th,
.policy-card td {
  padding: 14px;
  border-bottom: 2px solid #eef3ff;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.policy-card th {
  color: var(--purple-dark);
  background: #f3f7ff;
  font-weight: 900;
}

.policy-card tr:last-child td {
  border-bottom: 0;
}

.policy-card td:first-child {
  color: var(--text);
  font-weight: 900;
}

.small-note {
  margin: 20px 0 0;
  color: rgba(246, 251, 255, 0.96);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 10px rgba(69, 44, 146, 0.34);
}

@keyframes mascotBounce {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes mascotTile {
  0%,
  100% {
    transform: rotate(8deg) scale(1);
  }
  50% {
    transform: rotate(12deg) scale(1.035);
  }
}

@keyframes starFloat {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -14px;
  }
}

@keyframes starPulse {
  0%,
  100% {
    filter: drop-shadow(0 10px 18px rgba(58, 35, 134, 0.24));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(255, 232, 111, 0.86));
  }
}

@keyframes cloudDrift {
  0% {
    margin-left: 0;
  }
  100% {
    margin-left: 28px;
  }
}

@keyframes bubbleRise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0;
  }
  12% {
    opacity: 0.82;
  }
  100% {
    transform: translate3d(28px, -112vh, 0) scale(1.1);
    opacity: 0;
  }
}

@keyframes sparkleDance {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes hillGlow {
  0% {
    filter: saturate(1);
  }
  100% {
    filter: saturate(1.18) brightness(1.04);
  }
}

@keyframes shineSweep {
  0%,
  45% {
    transform: translateX(-45%) rotate(16deg);
    opacity: 0;
  }
  58% {
    opacity: 0.65;
  }
  78%,
  100% {
    transform: translateX(260%) rotate(16deg);
    opacity: 0;
  }
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardPop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes twinkle {
  0% {
    opacity: 0.72;
  }
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 820px) {
  .page {
    padding: 14px 0 28px;
  }

  .topbar {
    align-items: stretch;
    border-radius: 24px;
    flex-direction: column;
  }

  .language-control {
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mascot {
    min-height: 150px;
  }

  .mascot::before {
    width: 138px;
    height: 138px;
    border-radius: 30px;
  }

  .language-grid,
  .info-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .policy-card {
    overflow-x: auto;
  }

  .policy-card table {
    min-width: 620px;
  }
}
