/* ============================================================
   FlowJitsu — landing page
   Palette from the app (lib/src/constants/app_colors.dart):
   sage #6B9080 · coral #E8998D · teal #7EC8E3 · gold #E5B769
   Warm neutrals + a deep forest-green for dramatic dark sections.
   (No purple.)
   ============================================================ */

:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --cream: #F5F2ED;

  --sage: #6B9080;
  --sage-light: #8FB3A5;
  --sage-dark: #4A6B5D;
  --sage-deep: #37564A;

  --forest: #1B2621;      /* dark section background */
  --forest-2: #223029;

  --coral: #E8998D;
  --coral-dark: #D4776A;
  --teal: #7EC8E3;
  --gold: #E5B769;

  --ink: #21302A;
  --ink-soft: #5E6F68;
  --line: #E7E2DB;

  --grad-brand: linear-gradient(135deg, #6B9080 0%, #7EC8E3 100%);
  --grad-warm: linear-gradient(135deg, #E8998D 0%, #E5B769 100%);

  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --maxw: 1160px;

  --sh-sm: 0 1px 2px rgba(27, 38, 33, 0.06), 0 2px 8px rgba(27, 38, 33, 0.05);
  --sh-md: 0 8px 24px rgba(27, 38, 33, 0.10);
  --sh-lg: 0 24px 60px rgba(27, 38, 33, 0.16);
  --sh-xl: 0 40px 90px rgba(27, 38, 33, 0.28);

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--sage-dark);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--sage); }
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--sage-light); }
.eyebrow--light::before { background: var(--sage-light); }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--sage);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  border-radius: 999px; padding: 14px 26px; border: none; cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn--sm { padding: 10px 20px; font-size: 0.92rem; }
.btn--primary { background: var(--sage); color: #fff; box-shadow: 0 6px 18px rgba(74, 107, 93, 0.35); }
.btn--primary:hover { background: var(--sage-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(74, 107, 93, 0.42); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 245, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(231, 226, 219, 0.7);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.15s; }
.nav__links a:hover { color: var(--sage-dark); }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; box-shadow: var(--sh-sm); }
.brand__name { font-weight: 800; font-size: 1.24rem; color: var(--ink); letter-spacing: -0.02em; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(46% 40% at 80% 12%, rgba(126, 200, 227, 0.30), transparent 72%),
    radial-gradient(42% 45% at 8% 4%, rgba(107, 144, 128, 0.20), transparent 72%),
    radial-gradient(50% 55% at 92% 88%, rgba(232, 153, 141, 0.20), transparent 72%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(33, 48, 42, 0.045) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 5.4vw, 4.1rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; margin: 20px 0 20px; }
.hero__lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 33ch; margin-bottom: 26px; }

.trustpills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.trustpills span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.85rem; font-weight: 600; color: var(--sage-dark);
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 999px;
}
.trustpills span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }

.store-badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store-badges--center { justify-content: center; }
.store-badge { display: inline-flex; align-items: center; transition: transform 0.15s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { width: auto; display: block; }
.store-badge--apple img { height: 50px; }
.store-badge--google img { height: 64px; }
.hero__note { margin-top: 16px; font-size: 0.9rem; color: var(--ink-soft); }

/* Device */
.hero__art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.hero__glow {
  position: absolute; width: 460px; height: 460px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(107, 144, 128, 0.28), rgba(126, 200, 227, 0.14) 45%, transparent 70%);
  filter: blur(6px);
}
.phone {
  position: relative; z-index: 2;
  width: 286px; aspect-ratio: 9 / 19.5;
  background: linear-gradient(160deg, #20241f, #0d0f0c);
  border-radius: 46px; padding: 11px;
  box-shadow: var(--sh-xl), inset 0 0 0 2px rgba(255,255,255,0.06);
  transform: rotate(-3deg);
}
.phone__notch { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 98px; height: 27px; background: #0d0f0c; border-radius: 0 0 16px 16px; z-index: 3; }
.phone__screen { width: 100%; height: 100%; object-fit: cover; border-radius: 35px; background: var(--cream); }
.phone__glare { position: absolute; inset: 11px; border-radius: 35px; z-index: 4; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0) 34%); }

.chip {
  position: absolute; z-index: 5;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.92); color: var(--ink);
  font-size: 0.88rem; font-weight: 600;
  padding: 11px 15px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--sh-md); white-space: nowrap;
  backdrop-filter: blur(6px);
  animation: float 6s ease-in-out infinite;
}
.chip b { color: var(--sage-dark); }
.chip__ico { font-size: 1.05rem; line-height: 1; }
.chip--1 { top: 6%;  left: -4%;  animation-delay: 0s; }
.chip--2 { top: 26%; right: -8%; animation-delay: 0.9s; }
.chip--3 { bottom: 24%; left: -9%; animation-delay: 1.7s; }
.chip--4 { bottom: 5%; right: -3%; animation-delay: 2.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Stat bar ---------- */
.statbar { position: relative; z-index: 2; margin-top: 8px; }
.statbar__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); overflow: hidden;
}
.stat { text-align: center; padding: 26px 18px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; height: 56%; width: 1px; background: var(--line); }
.stat__num { display: block; font-size: 1.55rem; font-weight: 800; color: var(--sage-dark); letter-spacing: -0.01em; }
.stat__label { display: block; font-size: 0.86rem; color: var(--ink-soft); margin-top: 4px; }

/* ---------- Belts ---------- */
.belts { padding: 64px 0 28px; text-align: center; }
.belts__label { font-weight: 700; color: var(--ink); font-size: 1.06rem; margin-bottom: 24px; }
.belts__row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.belt {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 0.94rem; color: var(--ink);
  padding: 10px 18px 10px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm);
}
.belt i { width: 26px; height: 12px; border-radius: 3px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.10); }
.belt--white  i { background: #EFEBE4; }
.belt--blue   i { background: #5B8EC9; }
.belt--purple i { background: #8E6FB0; }
.belt--brown  i { background: #8B7355; }
.belt--black  i { background: #2D2D2D; }

/* ---------- Section heads ---------- */
.section { padding: 90px 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 12px; }
.section__head p { color: var(--ink-soft); font-size: 1.08rem; }
.section__head .eyebrow { margin-bottom: 4px; }

/* ---------- Bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: transparent; }
.card h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.i-sage  { background: rgba(107, 144, 128, 0.16); }
.i-coral { background: rgba(232, 153, 141, 0.18); }
.i-teal  { background: rgba(126, 200, 227, 0.20); }
.i-gold  { background: rgba(229, 183, 105, 0.22); }

/* Featured gradient cell */
.card--feature {
  grid-column: span 2; color: #fff; border: none; position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--sage-dark) 0%, var(--sage) 55%, #6FB6C9 130%);
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px;
}
.card--feature::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background: radial-gradient(60% 80% at 90% 10%, rgba(255,255,255,0.22), transparent 60%);
}
.card--feature h3 { font-size: 1.5rem; position: relative; z-index: 1; }
.card--feature p { color: rgba(255,255,255,0.9); font-size: 1rem; position: relative; z-index: 1; max-width: 46ch; }
.card--feature .card__icon { background: rgba(255,255,255,0.18); position: relative; z-index: 1; }
.card--feature:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

/* ---------- Dark showcase ---------- */
.showcase {
  position: relative; background: var(--forest); color: #EDF0EC;
  padding: 96px 0 104px; border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: 20px; overflow: hidden;
}
.showcase::before, .showcase::after { content: ""; position: absolute; border-radius: 50%; filter: blur(20px); pointer-events: none; }
.showcase::before { width: 420px; height: 420px; top: -120px; right: -80px; background: radial-gradient(circle, rgba(126,200,227,0.22), transparent 70%); }
.showcase::after { width: 460px; height: 460px; bottom: -160px; left: -120px; background: radial-gradient(circle, rgba(107,144,128,0.30), transparent 70%); }
.showcase .section__head h2 { color: #fff; }
.showcase .section__head p { color: rgba(237,240,236,0.72); }
.gallery { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.gallery__item { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.gallery__item .phone { transform: none; width: 100%; max-width: 232px; padding: 9px; border-radius: 36px; box-shadow: var(--sh-lg); }
.gallery__item .phone__notch { width: 78px; height: 22px; top: 12px; }
.gallery__item .phone__screen { border-radius: 28px; }
.gallery__item figcaption { font-weight: 600; color: rgba(237,240,236,0.82); font-size: 0.95rem; text-align: center; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; position: relative; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px; box-shadow: var(--sh-sm); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px;
  margin-bottom: 18px; background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 6px 16px rgba(74, 107, 93, 0.30);
}
.step h3 { font-size: 1.22rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { color: var(--ink-soft); }

/* ---------- Maker ---------- */
.maker { padding: 92px 0; }
.maker__card {
  max-width: 820px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 56px 48px; box-shadow: var(--sh-md); position: relative;
}
.maker__avatar {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 22px; display: block;
  object-fit: cover; box-shadow: var(--sh-sm);
}
.maker__quote { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 600; line-height: 1.5; letter-spacing: -0.01em; }
.maker__by { margin-top: 20px; color: var(--ink-soft); font-weight: 600; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  padding: 100px 0; margin-top: 8px;
  background: linear-gradient(135deg, var(--sage-deep) 0%, var(--sage) 60%, #6FB6C9 130%);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.cta::before { content: ""; position: absolute; inset: 0; opacity: 0.5;
  background: radial-gradient(50% 60% at 85% 10%, rgba(255,255,255,0.25), transparent 60%),
              radial-gradient(45% 55% at 10% 90%, rgba(255,255,255,0.15), transparent 60%); }
.cta__inner { position: relative; z-index: 1; max-width: 660px; margin: 0 auto; }
.cta h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta p { font-size: 1.14rem; opacity: 0.94; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.footer { background: var(--forest-2); color: #B7C4BD; padding: 48px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer .brand__name { color: #fff; }
.footer__tag { color: #8DA096; }
.footer__legal { font-size: 0.85rem; color: #728278; }

/* ---------- Reveal on scroll ---------- */
.reveal.armed { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.armed.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .trustpills, .store-badges { justify-content: center; }
  .hero__art { min-height: 520px; margin-top: 12px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--feature { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .statbar__inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .chip { display: none; }
  .hero { padding-top: 48px; }
  .section, .showcase, .maker, .cta { padding-top: 64px; padding-bottom: 64px; }
  .bento { grid-template-columns: 1fr; }
  .card--feature { grid-column: span 1; }
  .gallery { grid-template-columns: 1fr; justify-items: center; }
  .steps { grid-template-columns: 1fr; }
  .maker__card { padding: 40px 26px; }
}

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