/* ============================================================
   Improve Me To The Moon — landing page
   LIGHT theme (bright off-white + nebula violet + lunar gold),
   matched to the app (theme.dart).
   ============================================================ */

:root {
  --bg: #f4f5fb;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --card-2: #f7f8fc;
  --line: rgba(20, 20, 45, 0.09);
  --line-2: rgba(20, 20, 45, 0.16);
  --text: #16162a;
  --muted: #5f5f7c;
  --violet: #6d5df6;
  --violet-soft: #7a6af7;
  --teal: #12b2a3;
  --gold: #e0a50f;
  --green: #43b96a;
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1140px;
  --shadow: 0 22px 55px rgba(20, 20, 45, 0.12);
  --shadow-sm: 0 8px 24px rgba(20, 20, 45, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: 760px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.accent, .brand__accent { color: var(--violet); }

/* --- NAV --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 245, 251, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.brand__icon { border-radius: 8px; }
.nav__links { display: flex; align-items: center; gap: 22px; font-size: 15px; color: var(--muted); }
.nav__links > a:hover { color: var(--text); }

.lang { display: flex; gap: 4px; background: rgba(20,20,45,0.05); padding: 3px; border-radius: 10px; }
.lang__btn {
  border: 0; background: transparent; cursor: pointer; line-height: 0;
  padding: 5px 7px; border-radius: 7px; filter: grayscale(0.55); opacity: 0.65; transition: all .15s ease;
}
.lang__btn svg { display: block; border-radius: 2px; }
.lang__btn:hover { opacity: 1; }
.lang__btn--active { background: #fff; filter: none; opacity: 1; box-shadow: 0 1px 3px rgba(20,20,45,0.12); }

.btn { display: inline-block; padding: 10px 20px; border-radius: 12px; font-weight: 700; transition: transform .15s ease, box-shadow .2s ease; }
.btn--primary { background: linear-gradient(135deg, var(--violet), #8a76f0); color: #fff; box-shadow: 0 6px 20px rgba(109,93,246,0.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(109,93,246,0.5); }

/* --- HERO --- */
.hero { position: relative; padding: 84px 0 60px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 520px; z-index: 0;
  background: radial-gradient(60% 60% at 70% 20%, rgba(109,93,246,0.14), transparent 70%),
              radial-gradient(40% 40% at 20% 10%, rgba(18,178,163,0.10), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.pill {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--violet);
  background: rgba(109,93,246,0.10); border: 1px solid rgba(109,93,246,0.28);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 22px;
}
.pill--gold { background: var(--gold); color: #fff; border: 0; letter-spacing: 0.08em; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; }
.lead { color: var(--muted); font-size: 19px; margin: 22px 0 26px; max-width: 34em; }

.spark {
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; max-width: 380px; margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.spark__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.spark__label { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.spark__next { border: 1px solid var(--line-2); background: var(--card-2); color: var(--text);
  border-radius: 9px; padding: 5px 10px; font-size: 12px; cursor: pointer; transition: background .15s ease; }
.spark__next:hover { background: #eceef7; }
.spark__text { font-size: 16px; font-style: italic; line-height: 1.45; }

/* Store badges */
.store-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-row--center { justify-content: center; margin-top: 30px; }
.store-badge { display: inline-block; transition: transform .15s ease, filter .2s ease; position: relative; }
.store-badge img { height: 52px; width: auto; }
.store-badge:hover { transform: translateY(-2px); filter: brightness(1.06); }
.store-badge--soon { opacity: 0.5; cursor: default; }
.store-badge--soon:hover { transform: none; }
.store-badge--soon::after {
  content: "soon"; position: absolute; top: -8px; right: -8px;
  background: var(--gold); color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 7px; border-radius: 999px;
}
.hero__rating { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* Phone — dark device bezel framing the light screenshot */
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__glow { position: absolute; inset: -10% -20%; z-index: -1;
  background: radial-gradient(closest-side, rgba(109,93,246,0.20), transparent 70%); filter: blur(20px); }
.phone {
  width: 264px; border-radius: 40px; padding: 11px;
  background: linear-gradient(160deg, #2a2650, #14141f);
  border: 1px solid rgba(20,20,45,0.15); box-shadow: var(--shadow);
}
.phone--hero { width: 300px; }
.phone__shot { width: 100%; border-radius: 30px; display: block; background: var(--bg); }

/* --- TRUST STRIP --- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #eef0f8; }
.trust__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: center; padding: 18px 22px; }
.trust__item { color: var(--muted); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.trust__item svg { color: var(--teal); }

/* --- SECTIONS --- */
.section { padding: 88px 0; }
.section--alt { background: #eef0f8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__title { font-size: clamp(27px, 3.6vw, 40px); font-weight: 800; text-align: center; letter-spacing: -0.02em; }
.section__sub { color: var(--muted); text-align: center; max-width: 42em; margin: 12px auto 0; font-size: 17px; }
.section .grid, .section .steps, .section .showcase, .section .areas, .section .faq { margin-top: 48px; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(109,93,246,0.45); box-shadow: 0 14px 34px rgba(109,93,246,0.14); }
.feature__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(109,93,246,0.12); color: var(--violet); margin-bottom: 14px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.step__num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet), #8a76f0); color: #fff;
  font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* Showcase */
.showcase { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.showcase__item { text-align: center; }
.showcase__item figcaption { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* Gamification highlight */
.section--game { background:
  radial-gradient(800px 380px at 15% 10%, rgba(109,93,246,0.10), transparent 60%),
  radial-gradient(700px 360px at 90% 90%, rgba(224,165,15,0.08), transparent 60%), var(--bg); }
.game { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.game__phones { display: flex; justify-content: center; gap: 18px; }
.game__phones .phone { width: 210px; }
.phone--tilt-l { transform: rotate(-4deg) translateY(6px); }
.phone--tilt-r { transform: rotate(4deg); }
.game__list { list-style: none; display: grid; gap: 22px; }
.game__list li { display: flex; gap: 16px; align-items: flex-start; }
.game__ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(109,93,246,0.12); color: var(--violet); }
.game__list h3 { font-size: 18px; margin-bottom: 4px; }
.game__list p { color: var(--muted); font-size: 14px; }

/* Life areas */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 780px; margin-left: auto; margin-right: auto; }
.area-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm); }
.area-card__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.area-card__t { font-weight: 700; font-size: 16px; }
.area-card__d { color: var(--muted); font-size: 13px; }

/* Pro */
.section--pro { padding: 88px 0; background:
  radial-gradient(900px 420px at 80% 0%, rgba(224,165,15,0.10), transparent 60%), var(--bg); }
.pro__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.pro__list { list-style: none; margin: 22px 0 28px; display: grid; gap: 12px; }
.pro__list li { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(18,178,163,0.16); color: var(--teal); font-weight: 800; font-size: 14px; flex-shrink: 0; }
.pro__visual { display: flex; justify-content: center; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq__item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 17px; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--violet); font-size: 22px; font-weight: 400; transition: transform .2s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* CTA band */
.cta-band { padding: 84px 0; text-align: center; background:
  radial-gradient(700px 400px at 50% 0%, rgba(109,93,246,0.14), transparent 65%), #eef0f8;
  border-top: 1px solid var(--line); }
.cta-band__icon { margin: 0 auto 18px; border-radius: 18px; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { color: var(--muted); font-size: 18px; margin-top: 10px; }

/* Footer */
.footer { background: #e7e9f3; border-top: 1px solid var(--line); padding: 44px 0 26px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer__brand .brand { font-size: 18px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.footer__links { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__legal { color: #7c7c93; font-size: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }

/* --- RESPONSIVE --- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy .lead { margin-left: auto; margin-right: auto; }
  .hero .store-row, .hero .spark { margin-left: auto; margin-right: auto; }
  .hero__visual { order: -1; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .game { grid-template-columns: 1fr; gap: 36px; }
  .game__phones { order: -1; }
  .game__phones .phone { width: 180px; }
  .pro__inner { grid-template-columns: 1fr; }
  .pro__visual { order: -1; }
  .pro__copy .section__title, .pro__copy .section__sub { text-align: center !important; }
  .pro__list { max-width: 400px; margin-left: auto; margin-right: auto; }
  .pro__copy .store-row { justify-content: center; }
}
@media (max-width: 720px) {
  .nav__links > a:not(.btn) { display: none; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid, .areas { grid-template-columns: 1fr; }
  .store-row { justify-content: center; }
  .store-badge img { height: 48px; }
}
