/* ============================================================
   FLWR — modern SaaS aesthetic (Cluely-inspired)
   lavender + charcoal + electric blue, Inter/Geist typography
   ============================================================ */

:root {
  /* Palette */
  --bg:        #ffffff;
  --lav:       #dde2ee;   /* lavender */
  --lav-soft:  #eef1f8;
  --lav-tint:  #f6f8fc;
  --ink:       #19191d;   /* near-black */
  --ink-2:     #31343e;
  --muted:     #7d8390;
  --muted-2:   #9aa0ac;
  --line:      #e7e9f1;
  --blue:      #3c83f5;
  --blue-deep: #2f6fe0;
  --blue-soft: #e7f0ff;

  --shadow-sm: 0 1px 2px rgba(25,25,29,.05), 0 4px 14px rgba(25,25,29,.05);
  --shadow-md: 0 8px 30px rgba(25,25,29,.08);
  --shadow-lg: 0 30px 70px -20px rgba(31,52,102,.28);

  --r-sm: 12px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 780px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--muted-2); transform: translateY(-1px); }

.btn--blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(60,131,245,.32);
}
.btn--blue:hover { background: var(--blue-deep); transform: translateY(-1px); }

/* ---------- Pill / eyebrow ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.pill__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(60,131,245,.18);
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}
.eyebrow--center { text-align: center; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(231,233,241,.9);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__mark { display: block; }
.brand__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.brand--light .brand__name { color: #fff; }

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 15px;
  color: var(--muted);
  font-weight: 450;
  transition: color .16s ease;
}
.nav__links a:hover { color: var(--ink); }

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

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.mobile-menu a { padding: 12px 4px; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 10px; border-bottom: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(120% 80% at 50% -10%, #eaf1ff 0%, rgba(234,241,255,0) 55%),
    linear-gradient(180deg, var(--lav-soft) 0%, #ffffff 62%);
}
.hero__inner { position: relative; text-align: center; max-width: 860px; margin: 0 auto; }
.hero .pill { margin-bottom: 26px; }
.hero__title {
  font-size: clamp(44px, 7vw, 78px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.hero__title .grad {
  background: linear-gradient(100deg, var(--blue) 0%, #7b5cf5 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 600px;
  margin: 24px auto 0;
  letter-spacing: -0.014em;
}
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero__note { margin-top: 16px; font-size: 13.5px; color: var(--muted-2); }

/* Browser mockup */
.mock {
  position: relative;
  max-width: 940px;
  margin: 58px auto 0;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  background: var(--lav-tint);
  border-bottom: 1px solid var(--line);
}
.mock__dots { display: flex; gap: 7px; }
.mock__dots span { width: 11px; height: 11px; border-radius: 50%; background: #d7dbe6; }
.mock__url {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
}
.mock__body {
  padding: 0;
  background:
    radial-gradient(90% 60% at 80% 0%, #eef1fb 0, rgba(238,241,251,0) 60%),
    #fff;
}
/* mini site inside the mockup */
.mini {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 340px;
}
.mini__nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px;
}
.mini__logo { font-weight: 700; letter-spacing: .12em; font-size: 14px; }
.mini__links { display: flex; gap: 16px; }
.mini__links i { display: block; width: 42px; height: 8px; border-radius: 6px; background: #e4e7f0; }
.mini__cta { width: 78px; height: 26px; border-radius: 999px; background: var(--ink); }
.mini__hero {
  text-align: center;
  padding: 26px 26px 40px;
}
.mini__badge { display: inline-block; width: 120px; height: 22px; border-radius: 999px; background: var(--blue-soft); margin-bottom: 18px; }
.mini__h { height: 26px; border-radius: 8px; margin: 0 auto 12px; background: linear-gradient(90deg,#2a2d36,#4a4e5c); }
.mini__h.w1 { width: 62%; }
.mini__h.w2 { width: 44%; background: linear-gradient(90deg, var(--blue), #7b5cf5); }
.mini__sub { width: 52%; height: 10px; border-radius: 6px; background: #e4e7f0; margin: 16px auto 22px; }
.mini__btns { display: flex; gap: 10px; justify-content: center; margin-bottom: 26px; }
.mini__btns b { display: block; width: 96px; height: 30px; border-radius: 999px; }
.mini__btns b:first-child { background: var(--ink); }
.mini__btns b:last-child { background: #fff; border: 1px solid var(--line); }
.mini__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 520px; margin: 0 auto; }
.mini__cards span { height: 66px; border-radius: 12px; background: var(--lav-soft); border: 1px solid var(--line); }
.mini__cards span:nth-child(2) { background: #eaf1ff; }

/* ---------- Logo / trust strip ---------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.trust__inner { padding: 26px 24px; text-align: center; }
.trust__label { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 16px; }
.trust__row { display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center; align-items: center; }
.trust__row span { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: -0.01em; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--tint { background: var(--lav-tint); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section__title { font-size: clamp(32px, 4.6vw, 50px); letter-spacing: -0.04em; }
.section__sub { color: var(--muted); font-size: 19px; margin: 18px 0 0; letter-spacing: -0.014em; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #dfe2ee; }
.step__num {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-size: 15px; font-weight: 600;
  margin-bottom: 18px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -0.025em; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #dfe2ee; }
.feature__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 18px;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 21px; margin-bottom: 8px; letter-spacing: -0.025em; }
.feature p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Work / showcase ---------- */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work__card {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.work__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.work__thumb { aspect-ratio: 16 / 11; position: relative; }
.work__thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(25,25,29,.04) 100%);
}
.work__thumb--1 { background: linear-gradient(150deg, #eaf1ff, #cdd9f5); }
.work__thumb--2 { background: linear-gradient(150deg, #f0ecff, #d9d2f7); }
.work__thumb--3 { background: linear-gradient(150deg, #e6f6f1, #c9e6db); }
.work__card figcaption { padding: 20px 22px 24px; }
.work__card h3 { font-size: 20px; margin-bottom: 4px; letter-spacing: -0.025em; }
.work__card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Why (split) ---------- */
.why { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.why__text .section__title { text-align: left; margin-bottom: 20px; }
.why__text p { color: var(--muted); margin: 0 0 18px; font-size: 17px; }
.why__text .btn { margin-top: 8px; }
.why__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.stat strong { display: block; font-size: 40px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.stat strong em { font-style: normal; color: var(--blue); }
.stat span { color: var(--muted); font-size: 14.5px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 18px;
}
.quote p { font-size: 17px; line-height: 1.5; color: var(--ink-2); margin: 0; letter-spacing: -0.014em; }
.quote footer { display: flex; align-items: center; gap: 12px; }
.quote__avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(140deg, var(--blue), #7b5cf5); flex: none; }
.quote__who { font-size: 14px; }
.quote__who b { display: block; font-weight: 600; color: var(--ink); }
.quote__who span { color: var(--muted); }

/* ---------- Apply / Form ---------- */
.section--apply { background: linear-gradient(180deg, #fff 0%, var(--lav-tint) 100%); }
.apply { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: start; }
.apply__intro { position: sticky; top: 100px; }
.apply__intro .section__title { text-align: left; margin-bottom: 18px; }
.apply__intro > p { color: var(--muted); font-size: 18px; }
.apply__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.apply__list li { padding-left: 30px; position: relative; font-size: 15.5px; color: var(--ink-2); }
.apply__list li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233c83f5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 38px;
  box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 20px; }
.field--split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field__legend {
  display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--ink);
}
.req { color: var(--blue); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--lav-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(60,131,245,.14);
}
.field input.invalid, .field textarea.invalid { border-color: #e5484d; background: #fdf2f2; }

.radio-row { display: flex; gap: 12px; }
.radio {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px;
  cursor: pointer;
  background: var(--lav-tint);
  transition: border-color .16s ease, background .16s ease, color .16s ease;
  font-size: 15px;
}
.radio input { accent-color: var(--blue); }
.radio:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-deep); font-weight: 500; }

.error { display: block; color: #d93a3f; font-size: 13px; margin-top: 6px; }
.form__note { font-size: 13px; color: var(--muted); text-align: center; margin: 14px 0 0; }

.form__success { text-align: center; padding: 14px 0; }
.form__success-mark {
  width: 58px; height: 58px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff; font-size: 26px;
  box-shadow: 0 8px 20px rgba(60,131,245,.35);
}
.form__success h3 { font-size: 24px; margin-bottom: 8px; letter-spacing: -0.03em; }
.form__success p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 4px 24px;
  transition: box-shadow .16s ease, border-color .16s ease;
}
.faq__item[open] { box-shadow: var(--shadow-sm); border-color: #dfe2ee; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  font-size: 18px; font-weight: 550; letter-spacing: -0.02em;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-size: 24px; font-weight: 400; color: var(--blue);
  transition: transform .2s ease; line-height: 1;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); margin: 0 0 20px; font-size: 15.5px; }

/* ---------- Final CTA ---------- */
.cta-final { padding: 40px 0 100px; }
.cta-final__inner {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(120% 120% at 50% 0%, #2b3350 0%, #17181f 60%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 76px 28px;
}
.cta-final__inner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 0%, rgba(60,131,245,.32) 0, rgba(60,131,245,0) 60%);
}
.cta-final h2 { position: relative; font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -0.04em; margin: 0 auto 14px; max-width: 640px; }
.cta-final p { position: relative; color: rgba(255,255,255,.72); font-size: 18px; margin: 0 auto 30px; max-width: 500px; }
.cta-final .btn--blue { position: relative; }

/* ---------- Footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px 60px; align-items: start; }
.footer__brand p { color: var(--muted); font-size: 15px; margin: 12px 0 0; max-width: 320px; }
.footer__email { display: inline-block; margin-top: 12px; color: var(--blue); font-size: 15px; font-weight: 500; }
.footer__email:hover { color: var(--blue-deep); }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: flex-end; }
.footer__links a { color: var(--muted); font-size: 14.5px; transition: color .16s ease; }
.footer__links a:hover { color: var(--ink); }
.footer__copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 24px; margin: 12px 0 0;
  font-size: 13.5px; color: var(--muted-2);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .work, .quotes { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .why { grid-template-columns: 1fr; gap: 40px; }
  .apply { grid-template-columns: 1fr; gap: 36px; }
  .apply__intro { position: static; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: flex; }
  .section { padding: 68px 0; }
  .hero { padding: 60px 0 52px; }
  .steps, .features { grid-template-columns: 1fr; }
  .field--split { grid-template-columns: 1fr; }
  .form { padding: 26px 20px; }
  .why__stats { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
  .mock { margin-top: 44px; }
  .mini__cards { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
