:root {
  --primary: #00a1de;
  --primary-dark: #0088bc;
  --primary-light: #4dbfe9;
  --accent: #ed2939;
  --accent-dark: #c81f2f;
  --ink: #1a1f2e;
  --ink-soft: #4a5266;
  --bg: #f7fbff;
  --card: #ffffff;
  --border: rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 161, 222, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 20px;
}

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

html, body { overflow-x: hidden; }

body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
}

/* -------- Decorative blobs -------- */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
  animation: floatBlob 20s ease-in-out infinite;
}
.blob-1 {
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: var(--primary-light);
}
.blob-2 {
  top: 40%;
  right: -150px;
  width: 500px;
  height: 500px;
  background: var(--primary);
  opacity: 0.35;
  animation-delay: -7s;
}
.blob-3 {
  bottom: -100px;
  left: 30%;
  width: 350px;
  height: 350px;
  background: var(--accent);
  opacity: 0.2;
  animation-delay: -14s;
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-30px, 20px) scale(0.95); }
}

/* -------- Top nav -------- */
.topnav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 900;
  font-size: 1.3rem;
}
.brand img {
  border-radius: 8px;
}
.btn-ghost {
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  background: white;
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  border: 2px solid var(--primary);
  transition: all 0.2s;
}
.btn-ghost:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* -------- Hero -------- */
.hero {
  max-width: 800px;
  margin: 3rem auto 4rem;
  padding: 0 1.5rem;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background: white;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.wave {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bounce 3s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.highlight {
  background: linear-gradient(120deg, transparent 0%, transparent 40%, #fff2a0 40%, #fff2a0 100%);
  padding: 0 0.2em;
}
.mascot {
  display: inline-block;
  animation: swing 4s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes swing {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(15deg); }
  75% { transform: rotate(-10deg); }
}
.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  font-weight: 600;
  max-width: 550px;
  margin: 0 auto 2rem;
}

/* -------- CTA -------- */
.cta-big {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 161, 222, 0.35);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.cta-big:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 161, 222, 0.5);
}
.cta-big:active { transform: translateY(-1px); }
.cta-arrow { transition: transform 0.2s; }
.cta-big:hover .cta-arrow { transform: translateX(4px); }
.cta-block { width: 100%; justify-content: center; }
.hero-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* -------- Preview cards -------- */
.preview {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
}
.preview h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
}
.section-lead {
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 2rem;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.stat-card {
  padding: 1.75rem 1rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-5px) rotate(-1deg); }
.stat-card-blue { background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: white; }
.stat-card-red { background: linear-gradient(135deg, #ff6478, var(--accent)); color: white; }
.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* -------- Vocab carousel -------- */
.vocab-carousel {
  margin-top: 2rem;
}
.carousel-label {
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.vocab-cards {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.vocab-cards::-webkit-scrollbar { display: none; }
.vocab-card {
  flex: 0 0 220px;
  padding: 1.5rem 1rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
  scroll-snap-align: start;
  transition: transform 0.2s;
  cursor: pointer;
}
.vocab-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}
.vocab-lb {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.35rem;
}
.vocab-fr {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

/* -------- Features -------- */
.features {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.feature {
  padding: 2rem 1.25rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
  transition: all 0.2s;
}
.feature:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.feature-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.feature h3 {
  font-weight: 900;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}
.feature p {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

/* -------- Signup -------- */
.signup {
  max-width: 550px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}
.signup-card {
  padding: 2.5rem 2rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.signup-card h2 {
  font-weight: 900;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.signup-sub {
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 2rem;
}
form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
input, select {
  padding: 0.9rem 1.15rem;
  border: 2px solid var(--border);
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  background: #fafcff;
  color: var(--ink);
  transition: all 0.15s;
  outline: none;
}
input:focus, select:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 161, 222, 0.12);
}
input::placeholder { color: #a0a7b8; font-weight: 600; }
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-message {
  min-height: 1.2rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
}
.form-message.success { color: #17a35b; }
.form-message.error { color: var(--accent); }

/* Spinner on button */
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
button.loading .btn-label { display: none; }
button.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* -------- Footer -------- */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.85rem;
}

/* -------- Responsive -------- */
@media (max-width: 640px) {
  .topnav { padding: 1rem; }
  .btn-ghost { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
  .hero { margin: 2rem auto 3rem; }
  .cta-big { padding: 0.9rem 1.5rem; font-size: 0.95rem; }
  .signup-card { padding: 2rem 1.25rem; }
}
