:root {
  --blue: #2878ff;
  --purple: #9561ff;
  --navy: #101c46;
  --muted: #7180a5;
  --white: #fff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--navy);
  background:
    radial-gradient(ellipse at 5% 20%, #e4efff 0, transparent 32%),
    radial-gradient(ellipse at 90% 70%, #f0e8ff 0, transparent 30%),
    #fbfcff;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container {
  width: min(1200px, 90%);
  margin: auto;
}

/* Navigation */
header { padding-top: 14px; }

nav {
  min-height: 70px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255,255,255,.86);
  border: 1px solid #edf1fa;
  border-radius: 40px;
  box-shadow: 0 10px 40px #243d6b08;
  position: relative;
  z-index: 5;
}

.logo {
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -1px;
  direction: ltr;
  white-space: nowrap;
}

.logo span { color: var(--blue); }

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

.nav-links a {
  padding: 12px 17px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  transition: .25s;
}

.nav-links a:hover,
.nav-links a.active {
  background: #eaf1ff;
  color: var(--blue);
}

.login {
  border: 1.5px solid #a9c2ff;
  color: var(--blue);
  padding: 12px 20px;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

/* Hero */
.hero {
  min-height: 510px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  padding: 50px 0 55px;
}

.hero-content { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--blue);
  border: 1px solid #e5edff;
  border-radius: 30px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 22px;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  background: #48d8ad;
  border-radius: 50%;
}

h1 {
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.35;
  letter-spacing: -2px;
  font-weight: 950;
}

.gradient-text {
  background: linear-gradient(100deg, #00a9ef, #4269ff, #a34dff);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-description {
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
  max-width: 480px;
  margin: 18px auto 25px;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: white;
  background: linear-gradient(110deg, #159eff, #a044f5);
  padding: 16px 34px;
  border-radius: 35px;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 12px 28px #6a75ff30;
  transition: transform .25s, box-shadow .25s;
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px #6a75ff45;
}

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
  color: #58698f;
  font-size: 12px;
  font-weight: 700;
}

.trust-item { display: flex; align-items: center; gap: 7px; }

.trust-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f4ff;
  font-size: 17px;
}

/* Cody character - CSS only */
.character-area {
  min-height: 420px;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
}

.blob {
  position: absolute;
  width: 340px;
  height: 310px;
  background: linear-gradient(140deg, #dceaff, #e9ddff);
  border-radius: 45% 55% 55% 45% / 45% 40% 60% 55%;
  z-index: -1;
  animation: blob 8s ease-in-out infinite;
}

.spark {
  position: absolute;
  font-size: 36px;
  animation: float 3s ease-in-out infinite;
}

.spark.one { top: 45px; right: 12%; }
.spark.two { bottom: 85px; left: 8%; animation-delay: 1s; }
.spark.three { top: 100px; left: 9%; animation-delay: .5s; }

.cody {
  width: 235px;
  height: 300px;
  position: relative;
  animation: float 4s ease-in-out infinite;
  margin-top: 24px;
}

.antenna {
  position: absolute;
  width: 7px;
  height: 38px;
  background: #7389ff;
  border-radius: 8px;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
}

.antenna::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #48dcff, #8665ff);
  top: -15px;
  left: -7px;
  box-shadow: 0 0 22px #7b9bff80;
}

.head {
  position: absolute;
  top: 12px;
  left: 10px;
  width: 215px;
  height: 170px;
  border: 5px solid #d8e1ff;
  border-radius: 48% 48% 43% 43%;
  background: linear-gradient(145deg, #fff, #e7edff);
  box-shadow: 0 18px 35px #445b9c20, inset 0 -7px 12px #c4d1ff40;
  z-index: 2;
}

.ear {
  position: absolute;
  width: 25px;
  height: 43px;
  border-radius: 12px;
  top: 75px;
  background: #aebdff;
}

.ear.left { left: -16px; }
.ear.right { right: -16px; }

.eye {
  position: absolute;
  top: 57px;
  width: 42px;
  height: 48px;
  background: #25396e;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px #d9e2ff;
}

.eye::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  top: 8px;
  left: 9px;
  border-radius: 50%;
  background: white;
}

.eye.left { left: 38px; }
.eye.right { right: 38px; }

.cheek {
  position: absolute;
  top: 112px;
  width: 25px;
  height: 12px;
  border-radius: 50%;
  background: #ffb9d4;
  opacity: .8;
}

.cheek.left { left: 20px; }
.cheek.right { right: 20px; }

.smile {
  position: absolute;
  width: 46px;
  height: 22px;
  border-bottom: 5px solid #5269a3;
  border-radius: 0 0 50% 50%;
  top: 112px;
  left: 80px;
}

.body-bot {
  position: absolute;
  width: 145px;
  height: 115px;
  bottom: 0;
  left: 45px;
  border: 5px solid #d8e1ff;
  border-radius: 35px 35px 25px 25px;
  background: linear-gradient(145deg, #fff, #e8efff);
  box-shadow: 0 20px 30px #445b9c18;
}

.chest-code {
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  color: #637eff;
  direction: ltr;
}

.arm {
  position: absolute;
  width: 28px;
  height: 77px;
  top: 190px;
  border: 5px solid #d8e1ff;
  border-radius: 20px;
  background: #f7f9ff;
}

.arm.left { left: 25px; transform: rotate(18deg); }
.arm.right { right: 20px; transform: rotate(-30deg); }

.floating-code {
  position: absolute;
  left: 0;
  top: 85px;
  background: #3e5ed9;
  color: white;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 14px 30px #3e5ed930;
  transform: rotate(-8deg);
  direction: ltr;
  font-family: monospace;
  font-size: 13px;
  line-height: 1.9;
}

.floating-game {
  position: absolute;
  right: 0;
  bottom: 65px;
  padding: 15px 18px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 12px 30px #445b9c15;
  font-size: 29px;
  transform: rotate(8deg);
}

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

@keyframes blob {
  0%, 100% { border-radius: 45% 55% 55% 45% / 45% 40% 60% 55%; }
  50% { border-radius: 55% 45% 40% 60% / 55% 55% 45% 45%; }
}

.learning-section {
  padding: 35px 0 75px;
  border-top: 1px solid #e9eef9;
  background: #ffffff70;
}

.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 950;
  margin-bottom: 10px;
}

.section-heading p { color: var(--muted); line-height: 1.8; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid #ffffff;
  border-radius: 24px;
  padding: 25px 18px 20px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}

.card:hover { transform: translateY(-6px); box-shadow: 0 16px 35px #344a7812; }
.card:nth-child(1) { background: #f3eaff; }
.card:nth-child(2) { background: #e4fbf2; }
.card:nth-child(3) { background: #e6f5ff; }
.card:nth-child(4) { background: #fff2df; }

.card-icon { font-size: 47px; margin-bottom: 13px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: #69799e; font-size: 13px; line-height: 1.9; min-height: 49px; margin-bottom: 15px; }

.card-link {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 25px; padding: 12px; background: #ffffffb8;
  font-size: 13px; font-weight: 850; transition: .2s;
}

.card-link:hover { background: white; }

.about { padding: 65px 0; text-align: center; }
.about p { color: var(--muted); max-width: 650px; margin: 12px auto 22px; line-height: 2; }

footer {
  border-top: 1px solid #e9eef9;
  padding: 25px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 10px; }
  .hero { gap: 10px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floating-code { left: -5px; }
  .floating-game { right: -5px; }
}

@media (max-width: 650px) {
  header { padding-top: 8px; }
  nav { border-radius: 22px; padding: 12px 15px; flex-wrap: wrap; }
  .logo { font-size: 24px; }
  .login { padding: 9px 12px; font-size: 12px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; justify-content: flex-start; }
  .nav-links a { white-space: nowrap; font-size: 12px; }
  .hero { grid-template-columns: 1fr; padding-top: 38px; gap: 0; }
  .hero-content { order: 1; }
  .character-area { order: 2; min-height: 350px; margin-top: 10px; }
  .cody { transform: scale(.88); }
  .floating-code { left: 2%; }
  .floating-game { right: 2%; }
  .hero-description { font-size: 15px; }
  .trust-row { gap: 12px; }
  .cards { gap: 10px; }
  .card { padding: 20px 12px; border-radius: 19px; }
  .card h3 { font-size: 17px; }
  .card p { font-size: 12px; }
  .card-icon { font-size: 38px; }
}

@media (max-width: 380px) {
  .cards { grid-template-columns: 1fr; }
  .floating-code { font-size: 11px; }
}

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