:root {
  --primary: #38b8eb;
  --primary-dark: #2a9fd4;
  --btn-edge: #1482b8;
  --text: #1a2340;
  --muted: #5a6b85;
  --surface: #f7f9fc;
  --border: #e8edf5;
  --success: #58cc02;
  --card: rgba(255, 255, 255, 0.97);
  --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(520px circle at 8% -4%, rgba(125, 216, 245, 0.38), transparent 60%),
    radial-gradient(420px circle at 96% 104%, rgba(179, 236, 255, 0.32), transparent 60%),
    radial-gradient(300px circle at 72% 42%, rgba(56, 184, 235, 0.28), transparent 60%),
    radial-gradient(220px circle at 24% 78%, rgba(200, 240, 255, 0.30), transparent 60%),
    linear-gradient(150deg, #2e9fd4 0%, #3ab8e8 42%, #1e8fc4 100%);
  background-attachment: fixed;
}

.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}

/* Header */
header { position: relative; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(20, 35, 64, 0.18);
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(20, 35, 64, 0.22));
}

nav {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  border-bottom: 3px solid rgba(20, 35, 64, 0.18);
  transition: transform 0.05s ease, background 0.12s ease, border-bottom-width 0.05s ease;
}

nav a:hover { background: rgba(255, 255, 255, 0.28); }
nav a:active { transform: translateY(2px); border-bottom-width: 1px; }

.lang-switch {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.lang-switch button {
  background: transparent;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  font-family: var(--font);
  font-weight: 800;
  cursor: pointer;
  opacity: 0.85;
}

.lang-switch button.active {
  background: #ffffff;
  color: var(--text);
  opacity: 1;
}

/* Mascot + speech bubble */
.mascot-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 26px 0 -22px;
  padding-left: 6px;
  position: relative;
  z-index: 3;
}

.mascot {
  width: 104px;
  height: 104px;
  flex-shrink: 0;
  object-fit: contain;
  animation: bob 3s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.bubble {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 12px 16px;
  max-width: 340px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(20, 35, 64, 0.16);
}

.bubble::before {
  content: "";
  position: absolute;
  left: -8px;
  bottom: 16px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 9px solid #fff;
}

/* Card */
main { position: relative; z-index: 2; }

.card {
  background: var(--card);
  border-radius: 28px;
  padding: 34px 28px 30px;
  box-shadow: 0 24px 44px rgba(20, 35, 64, 0.24);
}

h1 { font-size: 27px; font-weight: 800; margin: 0 0 10px; }
h2 { font-size: 20px; font-weight: 800; margin: 28px 0 8px; }
h3 { font-size: 16px; font-weight: 700; margin: 18px 0 4px; }

p, li { color: var(--text); }
.muted { color: var(--muted); font-size: 14px; }

a { color: var(--primary-dark); font-weight: 700; }

.panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 16px;
}

.panel h2 { margin-top: 0; }

.placeholder {
  background: #fff6d6;
  border: 1px dashed #e0b400;
  border-radius: 8px;
  padding: 2px 6px;
  font-weight: 700;
  color: #7a5a00;
}

/* Buttons (like app PrimaryButton) */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 15px 24px;
  border-radius: 16px;
  border-bottom: 6px solid var(--btn-edge);
  font-family: var(--font);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 4px 8px rgba(26, 35, 64, 0.18);
  transition: transform 0.05s ease, border-bottom-width 0.05s ease;
}

.btn:hover { background: #43c0f0; }
.btn:active { transform: translateY(2px); border-bottom-width: 3px; }

/* Language blocks */
[data-lang-block] { display: none; }
[data-lang-block].active { display: block; }
.bubble [data-lang-block].active { display: inline; }

/* Footer */
footer {
  text-align: center;
  padding: 26px 20px 4px;
}

footer .muted { color: rgba(255, 255, 255, 0.9); }

@media (max-width: 480px) {
  .card { padding: 26px 20px 24px; border-radius: 24px; }
  .mascot { width: 84px; height: 84px; }
  .bubble { font-size: 15px; }
  h1 { font-size: 24px; }
  .btn { width: 100%; }
}
