/* Fast Factory 4.0 — Design System */
:root {
  --navy: #1B2A4A;
  --navy2: #22406B;
  --blue: #2E75B6;
  --blue-accent: #4472C4;
  --light-blue: #DDE9F7;
  --green: #4E7D32;
  --green2: #70AD47;
  --light-green: #E4F0DC;
  --orange: #E87A1E;
  --red: #C03A2B;
  --text: #3A3A3A;
  --muted: #707070;
  --card-bg: #F3F6FB;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 8px 40px rgba(27, 42, 74, 0.12);
  --header-h: 64px;
  --nav-w: 220px;
  --font: 'IBM Plex Sans Thai', 'Noto Sans Thai', Tahoma, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── Header ── */
.ff-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(27, 42, 74, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s;
}
.ff-header.is-scrolled { box-shadow: var(--shadow-lg); }

.ff-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.ff-header__logo {
  flex-shrink: 0;
}

.ff-header__logo img { height: 40px; width: auto; }

/* ── Top horizontal nav ── */
.ff-header__nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.ff-header__links {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}

.ff-header__links a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  transition: color 0.2s;
}

.ff-header__links a:hover,
.ff-header__links a.is-active {
  color: var(--white);
}

.ff-header__links a.is-active {
  color: var(--green2);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 8px;
  padding: 0.2rem 0.45rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-switch__btn {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.lang-switch__btn:hover {
  color: var(--white);
}

.lang-switch__btn.is-active {
  color: var(--green2);
  background: rgba(112, 173, 71, 0.2);
}

.lang-switch__sep {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  user-select: none;
}

.ff-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.ff-header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.ff-header__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ff-header__toggle.is-open span:nth-child(2) { opacity: 0; }
.ff-header__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ff-header__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  margin-left: 8px;
  background: var(--green);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.2s;
}
.ff-header__cta:hover { background: var(--green2); color: var(--white) !important; }

.ff-compare-disclaimer {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  max-width: 720px;
}

/* ── FAQ (SEO / AEO) ── */
.ff-faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.ff-faq__item {
  background: var(--white);
  border: 1px solid rgba(46, 117, 182, 0.15);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  box-shadow: var(--shadow);
}
.ff-faq__item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  padding: 16px 0;
  list-style: none;
}
.ff-faq__item summary::-webkit-details-marker {
  display: none;
}
.ff-faq__item summary::after {
  content: '+';
  float: right;
  font-weight: 400;
  color: var(--blue);
}
.ff-faq__item[open] summary::after {
  content: '−';
}
.ff-faq__item p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.ff-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ff-footer__copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin-bottom: 12px;
}

.ff-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.ff-footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.ff-footer__links a:hover {
  color: var(--green2);
}

.ff-footer__legal {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

/* ── Side Nav ── */
.ff-layout { display: flex; }

.ff-sidenav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: var(--nav-w);
  height: calc(100vh - var(--header-h));
  background: var(--navy);
  overflow-y: auto;
  z-index: 900;
  padding: 16px 0;
  transition: transform 0.3s;
}
.ff-sidenav__list { list-style: none; }
.ff-sidenav__link {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.ff-sidenav__link:hover,
.ff-sidenav__link.is-active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border-left-color: var(--green2);
}

.ff-main { margin-left: 0; flex: 1; min-width: 0; }
.ff-sidenav { display: none; }

/* ── Sections ── */
.ff-section {
  padding: 72px 0;
  position: relative;
}
.ff-section--compact {
  padding: 56px 0;
}
.ff-section--compact .ff-section__header {
  margin-bottom: 28px;
}
.ff-section--compact .ff-section__lead {
  margin-bottom: 24px;
}
.ff-section--dark {
  background: var(--navy);
  color: var(--white);
}
.ff-section--dark .ff-section__lead { color: rgba(255,255,255,0.75); }
.ff-section--light { background: var(--card-bg); }
.ff-section--green { background: var(--light-green); }

.ff-section__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.ff-section--dark .ff-section__eyebrow { color: var(--green2); }

.ff-section__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--navy);
}
.ff-section--dark .ff-section__title { color: var(--white); }

.ff-section__lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 32px;
}

.ff-section__header { margin-bottom: 40px; }

/* ── Hero ── */
.ff-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, #2a5080 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 80px;
}
.ff-hero::before,
.ff-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.ff-hero::before { width: 500px; height: 500px; top: -120px; right: -80px; }
.ff-hero::after { width: 300px; height: 300px; bottom: -60px; left: 10%; }

.ff-hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(78,125,50,0.3);
  border: 1px solid var(--green2);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green2);
  margin-bottom: 20px;
}

.ff-hero__title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.ff-hero__title em { font-style: normal; color: var(--green2); }
.ff-hero__accent { color: var(--green2); }

.ff-hero__sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.ff-hero__meta {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 32px;
}

.ff-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.ff-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.ff-btn--primary { background: var(--green); color: var(--white); }
.ff-btn--primary:hover { background: var(--green2); color: var(--white); }
.ff-btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.ff-btn--outline:hover { border-color: var(--white); color: var(--white); }
.ff-btn--blue { background: var(--blue); color: var(--white); }
.ff-btn--blue:hover { background: var(--blue-accent); color: var(--white); }

.ff-hero__visual {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
}

/* ── Stats ── */
.ff-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.ff-stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.ff-section--dark .ff-stat { background: rgba(255,255,255,0.08); }
.ff-stat__value {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--orange);
  line-height: 1.1;
}
.ff-section--dark .ff-stat__value { color: var(--green2); }
.ff-stat__label { font-size: 14px; color: var(--muted); margin-top: 6px; }
.ff-section--dark .ff-stat__label { color: rgba(255,255,255,0.65); }

/* ── Case study ── */
.ff-case-study {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  text-align: left;
}
.ff-case-study__header { margin-bottom: 24px; }
.ff-case-study__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green2);
  margin-bottom: 8px;
}
.ff-case-study__title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  color: var(--white);
  margin: 0 0 8px;
  line-height: 1.3;
}
.ff-case-study__meta {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.ff-case-study__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.ff-case-study__label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green2);
  margin: 0 0 8px;
}
.ff-case-study__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
}
.ff-case-study__block--highlight {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 20px;
}
.ff-case-study__list {
  margin: 0;
  padding-left: 1.2em;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.7;
}
.ff-case-study__list li + li { margin-top: 6px; }
.ff-case-study__disclaimer {
  margin: 24px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

/* ── Cards ── */
.ff-cards { display: grid; gap: 20px; }
.ff-cards--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ff-cards--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.ff-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
}
.ff-card--red { border-top-color: var(--red); }
.ff-card--green { border-top-color: var(--green); }
.ff-card--orange { border-top-color: var(--orange); }
.ff-card__title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.ff-card__body { font-size: 15px; color: var(--muted); line-height: 1.6; }
.ff-card__tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  background: var(--light-blue);
  color: var(--blue);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Feature grid ── */
.ff-features { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.ff-features--reverse .ff-features__text { order: 2; }
.ff-features--reverse .ff-features__img { order: 1; }

.ff-feature-list { list-style: none; }
.ff-feature-list li {
  padding: 12px 0 12px 28px;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.ff-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.ff-feature-list li strong { color: var(--navy); }

.ff-features__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ── Key capabilities (compact) ── */
.ff-caps {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.ff-cap-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
}
.ff-cap-card:nth-child(2) { border-top-color: var(--green); }
.ff-cap-card:nth-child(3) { border-top-color: var(--orange); }
.ff-cap-card__img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ff-cap-card__title {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.ff-cap-card__desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.ff-cap-card__list {
  list-style: none;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}
.ff-cap-card__list li {
  padding: 6px 0 6px 20px;
  position: relative;
}
.ff-cap-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ── Compact module grid ── */
.ff-modcompact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  align-items: start;
}
.ff-modcompact__hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}
.ff-modcompact__item {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  min-height: 108px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--blue);
  cursor: default;
  outline: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.ff-modcompact__item--highlight {
  border-left-color: var(--green);
  background: linear-gradient(180deg, var(--light-green) 0%, var(--white) 55%);
}
.ff-modcompact__item:hover,
.ff-modcompact__item:focus-within,
.ff-modcompact__item.is-expanded {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--green2);
  background: var(--card-bg);
  z-index: 5;
}
.ff-modcompact__icon {
  font-size: 20px;
  display: block;
  margin-bottom: 8px;
  line-height: 0;
  color: var(--blue);
  flex-shrink: 0;
}
.ff-modcompact__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.ff-modcompact__name {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}
.ff-modcompact__line {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  transition: opacity 0.2s ease, max-height 0.2s ease, margin 0.2s ease;
  max-height: 4em;
  overflow: hidden;
}
.ff-modcompact__item:hover .ff-modcompact__line,
.ff-modcompact__item:focus-within .ff-modcompact__line,
.ff-modcompact__item.is-expanded .ff-modcompact__line {
  opacity: 0;
  max-height: 0;
  margin: 0;
}
.ff-modcompact__details {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.25s ease, padding 0.25s ease;
}
.ff-modcompact__item:hover .ff-modcompact__details,
.ff-modcompact__item:focus-within .ff-modcompact__details,
.ff-modcompact__item.is-expanded .ff-modcompact__details {
  max-height: 320px;
  opacity: 1;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(46, 117, 182, 0.15);
}
.ff-modcompact__details li {
  position: relative;
  padding: 5px 0 5px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
}
.ff-modcompact__details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
}
.ff-modcompact__details strong {
  color: var(--navy);
  font-weight: 600;
}
.ff-modcompact__foot {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.ff-modcompact__cta {
  margin-top: 20px;
  text-align: center;
}
@media (hover: none) {
  .ff-modcompact__item {
    cursor: pointer;
  }
  .ff-modcompact__item:not(.is-expanded):hover {
    transform: none;
    box-shadow: var(--shadow);
    border-left-color: var(--blue);
    background: var(--white);
  }
  .ff-modcompact__item--highlight:not(.is-expanded):hover {
    border-left-color: var(--green);
    background: linear-gradient(180deg, var(--light-green) 0%, var(--white) 55%);
  }
  .ff-modcompact__item:not(.is-expanded) .ff-modcompact__details {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    border: none;
  }
  .ff-modcompact__item:not(.is-expanded) .ff-modcompact__line {
    opacity: 1;
    max-height: 4em;
    margin: initial;
  }
}

/* ── About brief ── */
.ff-about-brief {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.ff-about-brief__text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 12px;
}

.ff-table--compact th,
.ff-table--compact td {
  padding: 10px 14px;
  font-size: 13px;
}

/* ── Killer features (legacy) ── */
.ff-killer { display: flex; flex-direction: column; gap: 32px; }

.ff-killer__card {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--blue);
}
.ff-killer__card--red { border-left-color: var(--red); }
.ff-killer__card--blue { border-left-color: var(--blue); }
.ff-killer__card--green { border-left-color: var(--green); }

.ff-killer__num {
  grid-column: 1 / -1;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.05em;
  margin-bottom: -12px;
}
.ff-killer__card--red .ff-killer__num { color: var(--red); }
.ff-killer__card--green .ff-killer__num { color: var(--green); }

.ff-killer__title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}
.ff-killer__subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.ff-killer__pain {
  background: #FDF2F0;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
  border-left: 3px solid var(--red);
}
.ff-killer__solve {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 12px;
}
.ff-killer__list {
  list-style: none;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}
.ff-killer__list li {
  padding: 8px 0 8px 22px;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.ff-killer__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.ff-killer__list li strong { color: var(--navy); }

.ff-killer__img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  align-self: center;
}

/* ── Module cards (pain/solution) ── */
.ff-modgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.ff-modcard {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ff-modcard--highlight {
  border-top-color: var(--green);
  background: linear-gradient(180deg, var(--light-green) 0%, var(--white) 40%);
}
.ff-modcard__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ff-modcard__icon { font-size: 24px; }
.ff-modcard__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
}
.ff-modcard__ref {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: var(--light-green);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.ff-modcard__pain {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  padding: 10px 12px;
  background: #FDF2F0;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--red);
}
.ff-modcard__feat {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  flex: 1;
}
.ff-modcard__feat strong { color: var(--navy); }
.ff-modcard__shot {
  margin-top: 8px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.ff-qc-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 48px;
  padding: 32px;
  background: var(--light-green);
  border-radius: var(--radius);
}
.ff-qc-spotlight__title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--navy);
  margin: 8px 0 12px;
}
.ff-qc-spotlight__text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}
.ff-qc-spotlight__img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ── Taglines ── */
.ff-taglines {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.ff-tagline {
  background: rgba(255,255,255,0.08);
  border-left: 4px solid var(--green2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 0;
}
.ff-tagline p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  margin: 0;
}
.ff-tagline strong { color: var(--green2); }

/* ── Module grid (legacy) ── */
.ff-modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.ff-module {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.ff-module:hover { transform: translateY(-2px); }
.ff-module__icon { font-size: 24px; margin-bottom: 8px; }
.ff-module__name { font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 6px; }
.ff-module__desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.ff-module__ai {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  background: var(--light-green);
  color: var(--green);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* ── Flow steps ── */
.ff-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
.ff-flow__step {
  text-align: center;
  position: relative;
}
.ff-flow__num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.ff-flow__title { font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 6px; }
.ff-flow__desc { font-size: 13px; color: var(--muted); }

/* ── Tables ── */
.ff-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.ff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
}
.ff-table th, .ff-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e8ecf2;
}
.ff-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
}
.ff-table th.ff-table__highlight,
.ff-table td.ff-table__highlight {
  background: var(--light-green);
  font-weight: 600;
  color: var(--green);
}
.ff-table tr:hover td { background: rgba(221,233,247,0.3); }
.ff-table tr:hover td.ff-table__highlight { background: var(--light-green); }

/* ── Pricing ── */
.ff-pricing {
  display: flex;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}
.ff-price-box {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 2px solid var(--green2);
  width: 100%;
}
.ff-price-box__amount {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--green2);
}
.ff-price-box__label { font-size: 15px; color: rgba(255,255,255,0.75); margin-top: 4px; }
.ff-price-includes {
  list-style: none;
  margin-top: 24px;
  text-align: left;
}
.ff-price-includes li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ff-price-includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green2);
  font-weight: 700;
}

/* ── Trust badges ── */
.ff-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.ff-trust-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  color: var(--green);
  box-shadow: var(--shadow);
}
.ff-trust-note {
  width: 100%;
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}
.ff-contact-channels {
  max-width: 420px;
  margin: 0 auto 32px;
  text-align: center;
}
.ff-contact-channels__title {
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ── Demo placeholder ── */
.ff-demo-placeholder {
  background: rgba(255,255,255,0.06);
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.ff-demo-placeholder__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.ff-demo-placeholder__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.ff-demo-placeholder__text {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Team ── */
.ff-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.ff-team__card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}
.ff-team__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.ff-team__info { padding: 20px; }
.ff-team__name { font-weight: 700; font-size: 17px; color: var(--navy); }
.ff-team__role { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ── Timeline ── */
.ff-timeline { display: flex; flex-direction: column; gap: 12px; }
.ff-timeline__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
}
.ff-timeline__period {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}
.ff-timeline__text { font-size: 15px; color: var(--text); }

/* ── Video ── */
.ff-video-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy);
}
.ff-video-wrap video { width: 100%; }

/* ── CTA closing ── */
.ff-closing {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ff-closing::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ff-closing__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}
.ff-closing__tagline {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .ff-header__links a { padding: 8px 8px; font-size: 12px; }
}

@media (max-width: 1024px) {
  .ff-sidenav { transform: translateX(-100%); }
  .ff-sidenav.is-open { transform: translateX(0); }
  .ff-main { margin-left: 0; }
  .ff-header__toggle { display: flex; }

  .ff-header__nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
    background: var(--navy);
    transform: translateX(100%);
    transition: transform 0.3s;
    overflow-y: auto;
    z-index: 950;
  }

  .ff-header__nav.is-open {
    transform: translateX(0);
  }

  .ff-header__links {
    flex-direction: column;
    width: 100%;
  }

  .ff-header__links a {
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .lang-switch {
    margin: 16px 0 0;
    align-self: flex-start;
  }

  .ff-header__cta {
    margin: 16px 0 0;
    justify-content: center;
    padding: 12px 20px;
    font-size: 15px;
  }

  .ff-flow { grid-template-columns: repeat(2, 1fr); }
  .ff-killer__card { grid-template-columns: 1fr; }
  .ff-killer__img { max-width: 400px; }
  .ff-cap-card { grid-template-columns: 1fr; }
  .ff-cap-card__img { max-width: 280px; }
}

@media (max-width: 768px) {
  .ff-section { padding: 48px 0; }
  .ff-features { grid-template-columns: 1fr; }
  .ff-features--reverse .ff-features__text,
  .ff-features--reverse .ff-features__img { order: unset; }
  .ff-flow { grid-template-columns: 1fr; }
  .ff-modgrid { grid-template-columns: 1fr; }
  .ff-qc-spotlight { grid-template-columns: 1fr; padding: 24px; }
  .ff-killer__card { padding: 24px 20px; }
  .ff-cap-card { padding: 22px 18px; }
  .ff-modcompact { grid-template-columns: 1fr 1fr; }
  .ff-cards--4 { grid-template-columns: 1fr; }
}

@media (max-width: 375px) {
  .container { padding: 0 16px; }
  .ff-hero__actions { flex-direction: column; }
  .ff-btn { width: 100%; justify-content: center; }
}
