/* Kodlama Robotu · web sitesi. Yazı tipleri sitenin içinde (Google'a istek gitmez); renkler uygulamayla aynı. */
@font-face { font-family: 'Baloo 2'; font-weight: 700; font-display: swap; src: url(fonts/baloo2-700.woff2) format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-weight: 800; font-display: swap; src: url(fonts/baloo2-800.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url(fonts/nunito-600.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url(fonts/nunito-800.woff2) format('woff2'); }

:root {
  --bg: #E9EFF8;
  --surface: #FFFFFF;
  --ink: #1E2533;
  --muted: #5E687C;
  --line: #D2D9E5;
  --blue: #2F7BF5;
  --blue-deep: #1D5FD4;
  --blue-soft: #E6F0FF;
  --orange: #F5A524;
  --orange-deep: #E5841B;
  --green: #2EA05A;
  --purple: #8F5CF0;
  --pink: #E0559A;
  --teal: #13A3B8;
  --radius: 28px;
  --shadow: 0 18px 40px -18px rgba(20, 50, 110, .35);
  --display: 'Baloo 2', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 600 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 10px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 15px 28px; font: 800 16px/1 var(--body); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-orange { color: #fff; background: linear-gradient(180deg, var(--orange), var(--orange-deep)); box-shadow: 0 12px 24px -10px rgba(229, 132, 27, .8), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.btn-small { padding: 11px 20px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .stack { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.btn .stack small { font-size: 11px; letter-spacing: .06em; opacity: .9; }

/* hero: a big blue panel on the light page */
.hero { position: relative; margin: 16px; border-radius: 40px; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 75% 30%, #3E8BFF 0%, transparent 60%), linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%); padding-bottom: 150px; }
.hero .doodles { position: absolute; inset: 0; pointer-events: none; color: rgba(255, 255, 255, .13); }
.hero .doodles svg { position: absolute; }
.nav { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; margin-top: 22px; padding: 10px 10px 10px 22px; border-radius: 999px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 21px/1 var(--display); margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 800; font-size: 15px; opacity: .92; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 20px; padding-top: 56px; }
.eyebrow { display: inline-block; margin-bottom: 18px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-weight: 800; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; }
.hero h1 { font-size: clamp(44px, 6.4vw, 80px); text-shadow: 0 4px 0 rgba(0, 0, 0, .08); }
.hero .lead { margin-top: 20px; max-width: 520px; font-size: 19px; color: #E4EEFF; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-weight: 800; font-size: 15px; color: #E4EEFF; }
.ticks span::before { content: '✓'; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: rgba(255, 255, 255, .22); font-size: 12px; }

/* the robots on the right */
.cast { position: relative; aspect-ratio: 1 / .92; }
.cast img { position: absolute; filter: drop-shadow(0 18px 22px rgba(10, 40, 110, .35)); }
.cast .island { width: 64%; left: 18%; bottom: 0; }
.cast .tiko { width: 46%; left: 27%; top: 8%; z-index: 3; animation: bob 3.4s ease-in-out infinite; }
.cast .r1 { width: 30%; left: 0; top: 34%; z-index: 2; animation: bob 4s ease-in-out .4s infinite; }
.cast .r2 { width: 30%; right: 0; top: 30%; z-index: 2; animation: bob 4.4s ease-in-out .9s infinite; }
.cast .r3 { width: 22%; left: 12%; top: 2%; animation: bob 5s ease-in-out .2s infinite; }
.cast .r4 { width: 24%; right: 8%; top: 0; animation: bob 4.6s ease-in-out 1.2s infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* the worlds: numbered cards that overlap the hero, as in the sketch */
.worlds { position: relative; z-index: 3; margin-top: -120px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 22px 22px 24px; box-shadow: var(--shadow); }
.world:nth-child(3n + 2) { transform: translateY(36px); }
.world:nth-child(3n + 3) { transform: translateY(72px); }
.world .head { display: flex; align-items: center; gap: 12px; }
.num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font: 800 19px/1 var(--display); background: linear-gradient(180deg, #4B90FF, var(--blue-deep)); box-shadow: 0 6px 12px -4px rgba(29, 95, 212, .6); flex: none; }
.world h3 { font-size: 24px; }
.world .pic { margin: 10px auto 6px; width: 78%; aspect-ratio: 4 / 3; display: grid; place-items: center; border-radius: 22px; background: radial-gradient(closest-side, var(--blue-soft), transparent); }
.world .pic img { width: 100%; }
.world p { color: var(--muted); font-size: 15.5px; }
.tag { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--blue-deep); background: var(--blue-soft); }

/* sections */
section.block { padding: 110px 0 0; }
.worlds + section.block { padding-top: 170px; }
.kicker { color: var(--blue-deep); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.title { margin-top: 8px; font-size: clamp(32px, 4vw, 48px); }
.sub { margin-top: 12px; max-width: 620px; color: var(--muted); font-size: 18px; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

/* how it works: a small board that plays itself */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 40px; }
.steps { display: grid; gap: 18px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step h3 { font-size: 22px; }
.step p { color: var(--muted); }
.playbox { padding: 22px; border-radius: 34px; background: var(--surface); box-shadow: var(--shadow); }
.board { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); border-radius: 22px; overflow: hidden; aspect-ratio: 1; }
.board .t { background-size: cover; }
.board .t.a { background-image: url(img/board/floor_1_a.webp); }
.board .t.b { background-image: url(img/board/floor_1_b.webp); }
.board .piece { position: absolute; width: 20%; height: 20%; display: grid; place-items: center; }
.board .piece img { width: 86%; }
.board .bot { animation: walk 7s steps(1, end) infinite; z-index: 2; }
.board .bot img { width: 100%; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .2)); }
/* the robot follows the program below: right, right, down, down, right, down (then starts again) */
@keyframes walk {
  0%, 8% { left: 0; top: 20%; }
  16% { left: 20%; top: 20%; } 26% { left: 40%; top: 20%; } 36% { left: 40%; top: 40%; }
  46% { left: 40%; top: 60%; } 56% { left: 60%; top: 60%; } 66%, 100% { left: 60%; top: 80%; }
}
.strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 12px; border-radius: 18px; background: var(--bg); }
.chip { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue); }
.chip svg { width: 26px; height: 26px; }
.chip.go { width: auto; padding: 0 16px; margin-left: auto; background: var(--green); color: #fff; font-weight: 800; gap: 6px; display: flex; align-items: center; }

/* what children learn */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.skill { display: flex; gap: 14px; align-items: flex-start; }
.skill .ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.skill .ic svg { width: 28px; height: 28px; }
.skill h3 { font-size: 21px; }
.skill p { color: var(--muted); font-size: 15.5px; }

/* robot friends band */
.friends { margin-top: 110px; padding: 64px 0 70px; background: linear-gradient(180deg, var(--blue-soft), #F4F8FF); }
.friends-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 2px; margin-top: 30px; }
.friends-row img { width: 118px; transition: transform .2s; }
.friends-row img:hover { transform: translateY(-8px) rotate(-3deg); }

/* parents */
.parents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.parents .card h3 { font-size: 20px; margin-top: 12px; }
.parents .card p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.badge { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-deep); }
.badge svg { width: 26px; height: 26px; }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; align-items: stretch; }
.price { display: flex; flex-direction: column; gap: 10px; }
.price.best { background: linear-gradient(160deg, var(--blue), var(--blue-deep)); color: #fff; transform: translateY(-10px); }
.price.best .muted, .price.best li { color: #E4EEFF; }
.price .label { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-deep); }
.price.best .label { color: #FFD38A; }
.price h3 { font-size: 30px; }
.price ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.price li { padding-left: 28px; position: relative; color: var(--muted); font-size: 15.5px; }
.price li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue-deep); font-size: 12px; font-weight: 800; }
.price.best li::before { background: rgba(255, 255, 255, .2); color: #fff; }
.muted { color: var(--muted); }
.note { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* questions */
.faq { max-width: 820px; margin: 36px auto 0; display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: 20px; padding: 4px 22px; box-shadow: 0 8px 22px -16px rgba(20, 50, 110, .35); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 10px; font: 800 26px/1 var(--display); color: var(--blue); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* closing call */
.final { margin: 110px 16px 0; border-radius: 40px; color: #fff; text-align: center; padding: 64px 20px; background: linear-gradient(160deg, var(--blue), var(--blue-deep)); position: relative; overflow: hidden; }
.final img { width: 150px; margin: 0 auto 10px; filter: drop-shadow(0 14px 18px rgba(10, 40, 110, .35)); }
.final p { color: #E4EEFF; margin-top: 10px; font-size: 18px; }
.final .btn { margin-top: 26px; }

footer { padding: 56px 0 40px; color: var(--muted); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot h4 { margin: 0 0 10px; color: var(--ink); font: 800 15px/1.2 var(--body); text-transform: uppercase; letter-spacing: .06em; }
.foot a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.foot a:hover { color: var(--blue-deep); }
.foot .brand { color: var(--ink); margin-bottom: 10px; }
.copy { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }

/* legal pages */
.doc-top { margin: 16px; border-radius: 32px; padding: 0 0 70px; color: #fff; background: linear-gradient(160deg, var(--blue), var(--blue-deep)); }
.doc-top h1 { margin-top: 48px; font-size: clamp(34px, 5vw, 54px); }
.doc-top p { margin-top: 10px; color: #E4EEFF; }
.doc { position: relative; margin-top: -48px; padding: 40px clamp(22px, 5vw, 56px); max-width: 880px; margin-inline: auto; }
.doc h2 { font-size: 26px; margin-top: 34px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 20px; margin-top: 22px; }
.doc p, .doc li { color: #3A4458; margin-top: 10px; }
.doc ul { padding-left: 22px; }
.doc .box { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: var(--blue-soft); color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink); width: 34%; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.toc a { color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-weight: 800; font-size: 14px; }

/* smaller screens */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-grid, .how { grid-template-columns: 1fr; }
  .cast { max-width: 520px; margin: 10px auto 0; width: 100%; }
  .cards, .prices { grid-template-columns: 1fr 1fr; }
  .skills, .parents { grid-template-columns: 1fr 1fr; }
  .world:nth-child(n) { transform: none; }
  .world:nth-child(2n) { transform: translateY(30px); }
  .worlds + section.block { padding-top: 130px; }
  .price.best { transform: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero, .final, .doc-top { margin: 8px; border-radius: 28px; }
  .hero { padding-bottom: 120px; }
  .nav { padding-left: 14px; }
  .brand span { font-size: 18px; }
  .cards, .prices, .skills, .parents, .foot { grid-template-columns: 1fr; }
  .world:nth-child(n) { transform: none; }
  .worlds + section.block { padding-top: 90px; }
  section.block { padding-top: 80px; }
  .friends-row img { width: 86px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .board .bot { left: 60%; top: 80%; }
}
