/* Lenjou landing — the app's "ocean" palette (mobile/lib/core/theme/app_colors.dart). */
@font-face { font-family: Vazirmatn; font-weight: 400; font-display: swap; src: url(assets/fonts/Vazirmatn-Regular.ttf) format("truetype"); }
@font-face { font-family: Vazirmatn; font-weight: 700; font-display: swap; src: url(assets/fonts/Vazirmatn-Bold.ttf) format("truetype"); }
@font-face { font-family: Vazirmatn; font-weight: 900; font-display: swap; src: url(assets/fonts/Vazirmatn-Black.ttf) format("truetype"); }

:root {
  --bg: #2B58A8;
  --nav: #1B3A75;
  --stage: #0F2A5C;
  --card: #7B9BE0;
  --hdr: #A8DCCB;
  --cream: #C9EDE2;
  --cream-fg: #154C46;
  --acc: #F2A93B;
  --acc-on: #4A2F14;
  --pri: #3E7F35;
  --pale: #EAF3FF;
  --sheet: #F4FAF8;
  --ink: #1D2A44;
  --muted: #55617A;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: var(--ink);
  background: var(--sheet);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-acc { background: var(--acc); color: var(--acc-on); box-shadow: 0 6px 0 #C9832A; }
.btn-acc:hover { box-shadow: 0 8px 0 #C9832A; }
.btn-ghost { color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 9px 18px; font-size: 15px; box-shadow: 0 4px 0 #C9832A; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(27, 58, 117, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.top-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 46px; width: auto; }
.top-nav { display: flex; gap: 22px; margin-inline-start: auto; }
.top-nav a { color: #DCE7FF; text-decoration: none; font-weight: 700; font-size: 15px; }
.top-nav a:hover { color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 10%, #3D6FC4 0%, var(--bg) 45%, var(--nav) 100%);
  color: #fff;
  padding: 56px 0 120px;
}
.hero-row { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; position: relative; z-index: 1; }
.pill {
  display: inline-block; padding: 4px 16px; border-radius: 999px;
  background: rgba(168, 220, 203, .18); color: var(--hdr);
  font-weight: 700; font-size: 14px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 900; }
.mark { color: var(--acc); }
.lead { font-size: clamp(16px, 1.8vw, 19px); color: #DCE7FF; max-width: 34em; margin: 18px 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 26px 0 0; color: var(--hdr); font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }

.hero-art { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 4 / 5; }
.hero-kid { position: absolute; inset-inline: 0; bottom: 0; margin-inline: auto; height: 100%; width: auto; filter: drop-shadow(0 18px 24px rgba(9, 22, 50, .35)); animation: bob 4s ease-in-out infinite; }
.float { position: absolute; width: 96px; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(9, 22, 50, .35)); }
.f-whale { top: 4%; inset-inline-end: -6%; animation-delay: -1s; }
.f-octo { bottom: 6%; inset-inline-start: -8%; width: 110px; animation-delay: -2.5s; }
.f-compass { top: 38%; inset-inline-end: -12%; width: 76px; animation-delay: -3.5s; }

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

.bubbles i {
  position: absolute; bottom: -40px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06);
  animation: rise 14s linear infinite;
}
.bubbles i:nth-child(1) { left: 8%;  width: 18px; height: 18px; animation-delay: 0s; }
.bubbles i:nth-child(2) { left: 22%; width: 10px; height: 10px; animation-delay: -4s; }
.bubbles i:nth-child(3) { left: 41%; width: 24px; height: 24px; animation-delay: -8s; }
.bubbles i:nth-child(4) { left: 63%; width: 12px; height: 12px; animation-delay: -2s; }
.bubbles i:nth-child(5) { left: 78%; width: 20px; height: 20px; animation-delay: -10s; }
.bubbles i:nth-child(6) { left: 92%; width: 14px; height: 14px; animation-delay: -6s; }
@keyframes rise { to { transform: translateY(-110vh); opacity: 0; } }

.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; }

/* Sections */
.sec { padding: 84px 0; }
.sec-cream { background: var(--cream); color: var(--cream-fg); }
.sec-blue { background: var(--bg); color: #fff; }
.sec-deep { background: linear-gradient(160deg, var(--nav), var(--stage)); color: #fff; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; }
.sec-head p { margin: 12px 0 0; font-size: 17px; opacity: .85; }

.grid { display: grid; gap: 24px; }
.feats { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; color: var(--ink);
  border-radius: var(--radius); padding: 28px 26px;
  box-shadow: 0 8px 0 rgba(21, 76, 70, .12);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card img { width: 76px; height: 76px; object-fit: contain; margin-bottom: 14px; }
.card h3 { font-size: 20px; font-weight: 900; color: var(--bg); }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }

/* Crew */
.crew { grid-template-columns: repeat(3, 1fr); }
.mate { margin: 0; text-align: center; }
.mate-art { height: 320px; display: flex; align-items: flex-end; justify-content: center; }
.mate-art img { max-height: 320px; width: auto; filter: drop-shadow(0 12px 18px rgba(9, 22, 50, .3)); transition: transform .25s ease; }
.mate figcaption {
  margin-top: 18px; background: rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 18px 20px; display: grid; gap: 4px;
}
.mate strong { font-size: 20px; color: var(--acc); }
.mate span { color: #DCE7FF; font-size: 15.5px; }

/* Subjects */
.subjects { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.subjects li {
  background: #fff; border-radius: var(--radius); padding: 18px 10px 16px;
  text-align: center; font-weight: 700; color: var(--bg);
  box-shadow: 0 6px 0 rgba(43, 88, 168, .1);
}
.subjects img { width: 84px; margin: 0 auto 8px; border-radius: 50%; }

/* Steps */
.steps { grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0; }
.step {
  position: relative; background: #fff; color: var(--ink);
  border-radius: var(--radius); padding: 22px 24px 28px; text-align: center;
}
.step img { height: 200px; width: auto; margin: 0 auto 10px; }
.num {
  position: absolute; top: 18px; inset-inline-start: 18px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--acc); color: var(--acc-on); font-weight: 900; font-size: 20px;
}
.step h3 { font-size: 20px; font-weight: 900; color: var(--cream-fg); }
.step p { margin: 6px 0 0; color: var(--muted); }

/* Download */
.dl { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.dl h2 { font-size: clamp(28px, 3.8vw, 40px); font-weight: 900; }
.dl-copy > p { color: #DCE7FF; font-size: 17px; margin: 14px 0 28px; max-width: 36em; }
.stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 560px; }
.store {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 16px; text-decoration: none;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.22);
  transition: background .15s ease, transform .15s ease;
}
.store:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.store img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.store svg { width: 34px; height: 34px; fill: var(--hdr); flex: none; }
.store span { display: grid; font-weight: 900; font-size: 18px; line-height: 1.4; }
.store small { font-weight: 400; font-size: 13px; color: #B9CBEF; }
.store-web { background: var(--acc); border-color: var(--acc); color: var(--acc-on); }
.store-web:hover { background: #F6B957; }
.store-web svg { fill: var(--acc-on); }
.store-web small { color: #6B4A22; }
.ios-tip { margin: 22px 0 0; font-size: 14.5px; color: #B9CBEF; max-width: 36em; }
.dl-art { position: relative; justify-self: center; }
.dl-art > img:first-child { height: 340px; width: auto; }
.f-chest { width: 120px; bottom: 0; inset-inline-end: -40px; }

/* Footer */
.foot { background: var(--stage); color: #B9CBEF; padding: 30px 0; }
.foot-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; }
.foot-row img { height: 40px; width: auto; }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot p { margin: 0 auto 0 0; font-size: 14px; }

/* Responsive */
@media (max-width: 960px) {
  .feats, .crew, .steps { grid-template-columns: repeat(2, 1fr); }
  .subjects { grid-template-columns: repeat(3, 1fr); }
  .top-nav { display: none; }
  .top-row .btn-sm { margin-inline-start: auto; }
}
@media (max-width: 760px) {
  .hero { padding: 32px 0 100px; }
  .hero-row, .dl { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .cta-row, .hero-points { justify-content: center; }
  .lead { margin-inline: auto; }
  .hero-art { width: min(300px, 80%); }
  .dl-copy { text-align: center; }
  .dl-copy > p, .ios-tip { margin-inline: auto; }
  .stores { margin-inline: auto; }
  .dl-art > img:first-child { height: 260px; }
}
@media (max-width: 560px) {
  .feats, .crew, .steps { grid-template-columns: 1fr; }
  .subjects { grid-template-columns: repeat(2, 1fr); }
  .stores { grid-template-columns: 1fr; }
  .sec { padding: 64px 0; }
  .float { width: 72px; }
  .f-octo { width: 80px; inset-inline-start: -4%; }
  .f-compass { inset-inline-end: -6%; width: 58px; }
  .foot p { margin: 0; width: 100%; }
}

/* Light motion, one per character */
.m-explorer { animation: hop 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.m-cook { animation: stir 4s ease-in-out infinite; transform-origin: 50% 100%; }
.m-captain { animation: sway 5.5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0) scale(1, 1); } 70% { transform: translateY(0) scale(1.03, .97); } 80% { transform: translateY(-14px) scale(.98, 1.02); } 90% { transform: translateY(0) scale(1.02, .98); } }
@keyframes stir { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-3deg) translateY(-3px); } 75% { transform: rotate(3deg) translateY(-3px); } }
@keyframes sway { 0%, 100% { transform: rotate(-1.5deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-6px); } }
.mate:hover .mate-art img { animation-duration: 1.6s; }

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