/* ============================================================
   AUTOS DESIGN — homepage styles
   Brand direction: "Flow" — emerald + Space Grotesk (modern/automation)
   ============================================================ */
:root {
  --brand: #0ea371;          /* emerald */
  --brand-dark: #0c8a60;
  --brand-darker: #0b6e4e;
  --brand-tint: #e7f7f0;     /* pale emerald wash */
  --brand-tint-2: #c9ecdd;
  --ink: #14201a;
  --ink-soft: #51625a;
  --line: #e4e8e5;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(20, 60, 40, .08);
  --shadow-md: 0 12px 30px rgba(15, 70, 48, .14);
  --shadow-lg: 0 26px 60px rgba(15, 70, 48, .20);
  --radius: 10px;
  --container: 1280px;
  /* Type system: Space Grotesk (Latin display) + Noto Sans TC for headings;
     Inter + Noto Sans TC for body. Clean modern sans — no serif. */
  --font-display: "Space Grotesk", "Noto Sans TC", system-ui, -apple-system, "PingFang HK", "Microsoft JhengHei", sans-serif;
  --font-body: "Inter", "Noto Sans TC", system-ui, -apple-system, "PingFang HK", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- TOP UTILITY BAR ---------- */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  gap: 20px;
}
.topbar__contacts { display: flex; gap: 34px; }
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  transition: color .15s;
}
.topbar__item .ico { color: var(--brand); }
.topbar__item:hover { color: var(--brand-dark); }
.topbar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f3f2;
  border-radius: 22px;
  padding: 8px 16px;
  min-width: 280px;
  color: #98a39c;
}
.topbar__search input {
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: var(--ink);
}

/* ---------- BRAND / PARTNER STRIP ---------- */
.brandstrip { background: var(--white); }
.brandstrip__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 84px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.logo__img { height: 38px; width: auto; }
.logo__mark { height: 38px; width: 38px; flex: none; display: block; }
.logo__word { display: inline-flex; flex-direction: column; line-height: 1; }
.logo__word b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo__word > span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 4px;
  color: var(--brand);
  margin-top: 3px;
}

.partners {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.partner-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
  opacity: .9;
  transition: opacity .15s, filter .15s;
}
.partner-logo:hover { opacity: 1; }

/* ---------- NAVIGATION ---------- */
.nav {
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 60;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 500;
  color: #3c473f;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--brand-dark); background: var(--brand-tint); }
.caret { width: 16px; height: 16px; fill: currentColor; transition: transform .2s; }
.has-dropdown:hover .caret { transform: rotate(180deg); }

.nav__lang .globe { width: 18px; height: 18px; fill: var(--brand-dark); }
.lang-current { font-size: 15px; font-weight: 600; }
.dropdown--lang { min-width: 150px; left: auto; right: 0; }
.dropdown--lang a { display: flex; align-items: center; justify-content: space-between; }
.dropdown--lang a.is-active {
  background: var(--brand-tint);
  color: var(--brand-darker);
  font-weight: 700;
}
.dropdown--lang a.is-active::after { content: "✓"; color: var(--brand-dark); }

/* dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 11px 16px;
  font-size: 15px;
  color: #45524a;
  border-radius: 7px;
  transition: background .14s, color .14s, padding-left .14s;
}
.dropdown li a:hover {
  background: var(--brand-tint);
  color: var(--brand-darker);
  padding-left: 20px;
}

/* buttons */
.nav__actions { display: flex; gap: 12px; flex: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 26px;
  border-radius: 8px;
  transition: transform .12s, box-shadow .18s, background .15s, color .15s;
  white-space: nowrap;
}
.btn--solid {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(87, 187, 108, .35);
}
.btn--solid:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(87, 187, 108, .42); }
.btn--outline {
  background: var(--white);
  color: var(--brand-dark);
  border: 2px solid var(--brand);
}
.btn--outline:hover { background: var(--brand-tint); transform: translateY(-2px); }
.btn--white { background: var(--white); color: var(--brand-darker); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: rgba(255,255,255,.12); color: var(--white); border: 2px solid rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn--lg { padding: 15px 38px; font-size: 18px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% 30%, var(--brand-tint) 0%, rgba(234,247,238,0) 60%),
    linear-gradient(180deg, #ffffff 0%, #f4faf6 100%);
}
.hero::before {
  content: "";
  position: absolute;
  right: -60px; top: 40px; bottom: 40px; width: 60%;
  background-image:
    linear-gradient(135deg, rgba(87,187,108,.08) 25%, transparent 25%),
    linear-gradient(225deg, rgba(87,187,108,.06) 25%, transparent 25%);
  background-size: 90px 90px;
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000, transparent 70%);
          mask-image: radial-gradient(circle at 70% 40%, #000, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: 580px;
  padding-top: 30px;
  padding-bottom: 48px;
  position: relative;
  z-index: 1;
}
.hero__pill {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-darker);
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-2);
  padding: 7px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
  letter-spacing: .3px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #14201a;
  margin: 0 0 22px;
}
.hero__brand {
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero__lead {
  font-size: 24px;
  font-weight: 500;
  color: #46554b;
  margin: 0 0 18px;
  line-height: 1.5;
}
.hero__text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.hero__badge {
  display: inline-block;
  font-size: 19px;
  font-weight: 800;
  color: var(--brand-darker);
  background: var(--brand-tint);
  border: 1px dashed var(--brand);
  padding: 8px 18px;
  border-radius: 30px;
  margin: 0 0 10px;
}
.hero__fineprint { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 26px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__visual { position: relative; }
.hero__glow {
  position: absolute;
  width: 78%; aspect-ratio: 1;
  right: 6%; top: 8%;
  background: radial-gradient(circle at 50% 45%, #bfe9c9 0%, rgba(191,233,201,0) 65%);
  filter: blur(6px);
  z-index: 0;
  animation: float 9s ease-in-out infinite;
}
.hero__banner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(40, 90, 60, .16));
  animation: floatY 7s ease-in-out infinite;
}

/* ---------- SHARED SECTION HEAD ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--brand-dark);
  margin-bottom: 12px;
}
.section-head__title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #14201a;
  margin: 0 0 16px;
  line-height: 1.22;
}
.section-head__sub {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- AI PROCESS ---------- */
/* ---------- THE AUTOS DIFFERENCE (client-benefit comparison) ---------- */
.perf { padding: 84px 0; background: #fff; }
.perf__compare { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 20px; max-width: 860px; margin: 0 auto; }
.perf__card { padding: 28px 26px 30px; border-radius: 18px; border: 1px solid var(--brand-tint-2); background: #fbfdfc; }
.perf__card--after { border-color: var(--brand); background: var(--brand-tint); box-shadow: var(--shadow-md); }
.perf__label { display: block; font-size: 13.5px; font-weight: 800; letter-spacing: .2px; color: var(--ink-soft); margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--brand-tint-2); }
.perf__card--after .perf__label { color: var(--brand-darker); border-bottom-color: rgba(11,110,78,.18); }
.perf__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.perf__row { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.5; }
.perf__row::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; }
.perf__row--x { color: var(--ink-soft); }
.perf__row--x::before { content: "✕"; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; background: #eef1ef; color: #9aa59e; }
.perf__row--v { color: #2c3a32; font-weight: 500; }
.perf__row--v::before { content: "✓"; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: var(--brand); color: #fff; }
@media (max-width: 760px) {
  .perf__compare { grid-template-columns: 1fr; max-width: 460px; }
}

.process { padding: 84px 0; background: linear-gradient(180deg, #f4faf6 0%, #ffffff 100%); }
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 22px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-tint-2); }
.step__num {
  position: absolute;
  top: 16px; right: 18px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  color: var(--brand-tint-2);
}
.step__icon { width: 96px; height: 96px; margin: 0 auto 14px; object-fit: contain; }
.step__title { font-size: 18px; font-weight: 800; color: #34423a; margin: 0 0 10px; }
.step__text { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); margin: 0; }

/* ---------- FEATURES / MOCKUPS ---------- */
.features { padding: 84px 0; background: #fbfdfc; overflow: hidden; }
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  margin-top: 64px;
}
.feature--reverse .feature__copy { order: 2; }
.feature--reverse .feature__mock { order: 1; }
.feature__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--brand-dark);
  margin-bottom: 14px;
}
.feature__title { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: #14201a; margin: 0 0 16px; line-height: 1.25; }
.feature__text { font-size: 17px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 22px; }
.feature__list { display: grid; gap: 14px; }
.feature__list li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  color: #45524a;
  line-height: 1.55;
}
.feature__list li::before {
  content: "";
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23379149' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
}

/* mock shared chrome */
.feature__mock { position: relative; display: flex; justify-content: center; min-width: 0; }
.mock-glow {
  position: absolute; inset: -8% 4% -8% 4%;
  background: radial-gradient(60% 60% at 60% 40%, #d7eedd 0%, rgba(215,238,221,0) 70%);
  filter: blur(6px); z-index: 0;
}
.stat-badge {
  position: absolute;
  top: 26px; right: -18px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  z-index: 5;
  min-width: 116px;
}
.stat-badge__label { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 2px; }
.stat-badge__value {
  display: block;
  font-family: var(--font-body);
  font-weight: 800; font-size: 26px; color: var(--brand-darker);
  line-height: 1.1;
}
.stat-badge__value small { font-size: 14px; font-weight: 700; color: var(--ink-soft); margin-left: 2px; }
.stat-badge__bar { display: block; height: 5px; border-radius: 4px; background: var(--brand-tint-2); margin-top: 8px; overflow: hidden; }
.stat-badge__bar i { display: block; height: 100%; width: 72%; border-radius: 4px; background: var(--brand); }

/* chat mock */
.chat {
  position: relative; z-index: 1;
  width: 340px; max-width: 100%;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.chat__head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: #0c3b2e; color: #fff; }
.chat__avatar { width: 38px; height: 38px; border-radius: 50%; background: #16a34a; display: grid; place-items: center; }
.chat__avatar svg { width: 22px; height: 22px; fill: #fff; }
.chat__meta strong { display: block; font-size: 15px; }
.chat__status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #b6e3cd; }
.chat__status i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.chat__body { background: #e7e0d7; padding: 16px 14px; display: grid; gap: 10px; }
.bubble { max-width: 78%; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bubble--in { background: #fff; justify-self: start; border-top-left-radius: 4px; color: #2f3a33; }
.bubble--out { background: #d6f5c8; justify-self: end; border-top-right-radius: 4px; color: #1f3320; }
.bubble__thumbs { display: flex; gap: 6px; margin-top: 8px; }
.bubble__thumbs i { width: 42px; height: 30px; border-radius: 6px; display: block; }
.bubble--typing { display: inline-flex; gap: 4px; background: #fff; justify-self: start; border-top-left-radius: 4px; padding: 11px 13px; }
.bubble--typing i { width: 7px; height: 7px; border-radius: 50%; background: #9fb1a6; animation: blink 1.2s infinite both; }
.bubble--typing i:nth-child(2) { animation-delay: .2s; }
.bubble--typing i:nth-child(3) { animation-delay: .4s; }

/* generator mock */
.gen, .review {
  position: relative; z-index: 1;
  width: 380px; max-width: 100%;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.gen__bar, .review__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f7faf8; }
.gen__dots { display: inline-flex; gap: 6px; }
.gen__dots i { width: 10px; height: 10px; border-radius: 50%; background: #d6ded9; }
.gen__dots i:first-child { background: #f0a8a0; }
.gen__dots i:nth-child(2) { background: #f2d08a; }
.gen__dots i:nth-child(3) { background: #a8d8b4; }
.gen__title { font-size: 14px; font-weight: 700; color: #45524a; }
.gen__brief { display: grid; gap: 10px; padding: 18px; }
.gen__row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #45524a; }
.gen__row i {
  width: 20px; height: 20px; flex: none; border-radius: 6px;
  background: var(--brand-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23379149' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}
.gen__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; }
.gen__cell {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef6f0, #dcefe2);
  display: grid; place-items: center;
  position: relative;
  border: 2px solid transparent;
}
.gen__cell b { font-family: var(--font-body); font-size: 22px; color: #9fc2ab; }
.gen__cell:nth-child(1) { background: linear-gradient(135deg, #b6ead2, #0ea371); }
.gen__cell:nth-child(2) { background: linear-gradient(135deg, #fce9c8, #e0b94e); }
.gen__cell:nth-child(3) { background: linear-gradient(135deg, #cdddf3, #5a86c8); }
.gen__cell:nth-child(4) { background: linear-gradient(135deg, #f6d6cd, #d98a72); }
.gen__cell b { color: rgba(255,255,255,.85); }
.gen__cell--sel { border-color: var(--brand-darker); box-shadow: 0 0 0 3px rgba(87,187,108,.25); }
.gen__cell--sel::after { content: "✓"; position: absolute; top: 6px; right: 8px; color: #fff; font-weight: 800; font-size: 14px; }
.gen__prompt { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.gen__promptText { flex: 1; font-size: 13px; color: var(--ink-soft); background: #f1f4f2; padding: 8px 12px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gen__btn { background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 8px; white-space: nowrap; }

/* review / annotation mock */
.review__rev { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--brand-darker); background: var(--brand-tint); padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
/* keep the feedback card's floating badge clear of the revision chip */
.review .stat-badge { top: auto; bottom: 22px; }
.review__canvas { position: relative; padding: 26px; background: #f4f7f5; }
.review__poster {
  display: block; position: relative;
  width: 150px; margin: 0 auto;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: linear-gradient(160deg, #eafaf0, #cdeed8);
  box-shadow: var(--shadow-sm);
  padding: 18px 16px;
}
.review__pTitle { font-size: 26px; font-weight: 900; color: var(--brand-darker); }
.review__pLine { display: block; height: 7px; border-radius: 4px; background: #b6d8c2; margin-top: 12px; }
.review__pLine--s { width: 60%; }
.review__pLogo { position: absolute; top: 16px; right: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); }
.pin {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-darker);
  color: #fff; font-size: 13px; font-weight: 800; line-height: 1;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  border: 2px solid #fff;
}
.pin--1 { top: 40px; left: 92px; }
.pin--2 { top: 150px; left: 150px; }
.note {
  position: absolute; bottom: 26px; left: 26px;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 10px;
  padding: 8px 12px; font-size: 13px; color: #45524a;
  box-shadow: var(--shadow-md);
}
.note b { width: 18px; height: 18px; border-radius: 50%; background: var(--brand-darker); color: #fff; font-size: 11px; display: grid; place-items: center; }

@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* ---------- AI INSTANT QUOTE ---------- */
.quote { padding: 84px 0; background: linear-gradient(180deg, #ffffff 0%, #f4faf6 100%); }
.quote__panel {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  max-width: 980px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.quote__form { padding: 30px 30px 34px; }
.q-ai {
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-2);
  border-radius: 12px;
  padding: 14px 14px 16px;
  margin-bottom: 22px;
}
.q-ai__label { display: block; font-size: 13px; font-weight: 700; color: var(--brand-darker); margin-bottom: 9px; }
.q-ai__input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  padding: 10px 12px;
  border: 1px solid var(--brand-tint-2);
  border-radius: 9px;
  background: var(--white);
  outline: none;
  resize: vertical;
  min-height: 120px;
  margin-bottom: 10px;
}
.q-ai__input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(87,187,108,.18); }
.q-ai__btn { width: 100%; }
.q-ai__ok { font-size: 12.5px; color: var(--brand-darker); font-weight: 600; margin: 10px 0 0; }
.q-row { margin-bottom: 18px; }
.q-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.q-field { display: block; }
.q-field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.q-field select,
.q-field input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfdfc;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.q-field select:focus,
.q-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(87,187,108,.18); }
.q-legend { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 10px; }
.q-chks { display: flex; flex-wrap: wrap; gap: 9px; }
.q-chk {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; color: #45524a;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 30px;
  cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
}
.q-chk input { accent-color: var(--brand); width: 15px; height: 15px; }
.q-chk.is-on { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-darker); font-weight: 600; }
.q-proofnote { margin: 9px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
.q-break__row--sub { padding-left: 12px; font-size: 13px; color: var(--ink-soft); }

.quote__summary {
  background: linear-gradient(160deg, #f3faf5, #eaf7ee);
  border-left: 1px solid var(--line);
  padding: 30px 26px 32px;
  display: flex;
  flex-direction: column;
}
.q-sum__eyebrow { font-size: 13px; font-weight: 700; color: var(--brand-dark); margin: 0 0 6px; }
.q-aibadge { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--white); background: var(--brand); padding: 2px 8px; border-radius: 20px; margin-left: 4px; vertical-align: middle; }
.q-price {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.15;
  color: var(--brand-darker);
  margin: 0 0 4px;
}
.q-price span { color: var(--ink-soft); font-weight: 600; }
.q-per { font-size: 13px; color: var(--ink-soft); margin: 0 0 18px; }
.q-spec {
  background: rgba(255,255,255,.7);
  border: 1px solid var(--brand-tint-2);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.q-spec__title { font-size: 12px; font-weight: 700; color: var(--ink-soft); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .5px; }
.q-spec__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 3px 0; }
.q-spec__row span { color: var(--ink-soft); }
.q-spec__row b { color: #34423a; font-weight: 600; text-align: right; }
.q-cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.q-cta__btn { width: 100%; }
/* download button: subtle tertiary action on the light summary panel */
.q-cta__dl {
  background: transparent;
  color: var(--brand-dark);
  border: 1px dashed var(--brand);
  font-size: 14px;
  cursor: pointer;
}
.q-cta__dl:hover { background: var(--brand-tint); transform: translateY(-1px); }
.q-disclaimer { font-size: 11.5px; line-height: 1.5; color: var(--ink-soft); margin: 14px 0 0; }

/* ---------- QUOTE BREAKDOWN + EMAIL BOX (on-screen summary) ---------- */
.q-break { background: rgba(255,255,255,.7); border: 1px solid var(--brand-tint-2); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.q-break__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; color: var(--ink-soft); }
.q-break__row b { color: #34423a; font-weight: 700; }
.q-break__row--total { border-top: 1px dashed var(--brand-tint-2); margin-top: 4px; padding-top: 8px; font-size: 15px; }
.q-break__row--total span, .q-break__row--total b { color: var(--brand-darker); font-weight: 800; }
.q-emailbox { margin-top: 10px; display: grid; gap: 8px; padding: 12px; border: 1px dashed var(--brand); border-radius: 10px; background: rgba(255,255,255,.65); }
.q-emailbox__in { width: 100%; font-family: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--brand-tint-2); border-radius: 9px; background: #fff; color: var(--ink); }
.q-emailbox__in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(87,187,108,.18); }
.q-emailbox__send { width: 100%; }
.q-emailbox__msg { font-size: 12.5px; line-height: 1.5; margin: 2px 0 0; color: var(--brand-dark); }
.q-emailbox__msg.is-err { color: #c0392b; }

/* ---------- MULTI-ITEM CART (on-screen summary) ---------- */
.q-items { background: rgba(255,255,255,.7); border: 1px solid var(--brand-tint-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.q-items__title { font-size: 12px; font-weight: 700; color: var(--ink-soft); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .5px; }
.q-item { display: grid; grid-template-columns: 22px 1fr auto 26px; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; }
.q-item + .q-item { border-top: 1px solid var(--brand-tint); }
.q-item__no { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--brand-dark); background: var(--brand-tint); border-radius: 50%; }
.q-item__name { color: #34423a; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.q-item__tag { font-size: 10.5px; font-weight: 700; color: var(--brand-dark); background: var(--brand-tint); border-radius: 999px; padding: 1px 7px; margin-left: 7px; text-transform: uppercase; letter-spacing: .4px; vertical-align: middle; }
.q-item__price { color: #34423a; font-weight: 700; text-align: right; white-space: nowrap; }
.q-item__rm { width: 26px; height: 26px; border: none; background: transparent; color: var(--ink-soft); font-size: 19px; line-height: 1; cursor: pointer; border-radius: 50%; transition: background .15s, color .15s; }
.q-item__rm:hover { background: rgba(192,57,43,.1); color: #c0392b; }
.q-item__rm-spacer { width: 26px; }
.q-item--grand { border-top: 1px dashed var(--brand-tint-2); margin-top: 4px; padding-top: 9px; }
.q-item--grand .q-item__no { background: transparent; color: var(--ink-soft); }
.q-item--grand .q-item__name { color: var(--brand-darker); font-weight: 800; }
.q-item--grand .q-item__price { color: var(--brand-darker); font-weight: 800; font-size: 15px; }
.q-current__title { font-size: 12px; font-weight: 700; color: var(--brand-dark); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .5px; }
.q-additem { width: 100%; margin: 4px 0 14px; padding: 11px 14px; background: transparent; color: var(--brand-dark); border: 1px dashed var(--brand); border-radius: 10px; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s, transform .15s; }
.q-additem:hover { background: var(--brand-tint); transform: translateY(-1px); }

/* ---------- QUOTE DOCUMENT (DESIGNPRO template) — print + emailed PDF ---------- */
.quote-print { display: none; }                 /* shown only when printing */
.quote-canvas { position: fixed; left: -10000px; top: 0; width: 820px; background: #fff; } /* offscreen for html2canvas */
@media print {
  body { background: #fff !important; }
  body > *:not(.quote-print) { display: none !important; }
  .quote-print { display: block; }
  @page { margin: 14mm; }
}
/* the document itself — identical styling on screen (canvas) and in print */
.qd { background: #fff; color: #1b2a24; font-family: "Noto Sans TC", var(--font-body); font-size: 13px; line-height: 1.5; padding: 24px 28px; }
.qd-logobar { margin-bottom: 18px; }
.qd-logo { height: 40px; width: auto; display: block; }
.qd-head { display: flex; justify-content: space-between; gap: 24px; }
.qd-left { flex: 1.3; }
.qd-h1 { font-family: var(--font-body); font-weight: 800; font-size: 34px; letter-spacing: 1px; margin: 0 0 10px; color: #1b2a24; }
.qd-customer { font-size: 14px; font-weight: 600; }
.qd-meta { flex: 1; font-size: 12px; line-height: 1.6; }
.qd-meta > div { margin-bottom: 8px; }
.qd-from { flex: 1.1; font-size: 12px; line-height: 1.55; }
.qd-items { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 12.5px; }
.qd-items thead th { border-bottom: 1.5px solid #1b2a24; padding: 6px; font-weight: 700; text-align: left; }
.qd-items th.qd-c, .qd-items td.qd-c { text-align: center; white-space: nowrap; }
.qd-items th.qd-r, .qd-items td.qd-r { text-align: right; white-space: nowrap; }
.qd-items tbody td { padding: 10px 6px; vertical-align: top; border-bottom: 1px solid #e4ece7; }
.qd-desc { width: 54%; }
.qd-desc b { font-weight: 700; }
.qd-desc div { color: #45524a; }
.qd-totals { margin-top: 14px; margin-left: auto; width: 290px; }
.qd-trow { display: flex; justify-content: space-between; padding: 6px; font-size: 12.5px; }
.qd-trow--total { border-top: 1.5px solid #1b2a24; font-weight: 800; font-size: 14px; }
.qd-note { margin-top: 26px; font-size: 10.5px; color: #6b7d74; }
.qd-terms { margin-top: 28px; }
.qd-terms__h { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #6b7d74; margin-bottom: 6px; }
.qd-terms ol { margin: 0; padding-left: 18px; }
.qd-terms li { font-size: 10.5px; line-height: 1.6; color: #52615a; margin-bottom: 3px; }
.qd-foot { margin-top: 28px; padding-top: 10px; border-top: 1px solid #e4ece7; font-size: 10.5px; color: #8a978f; text-align: center; }

/* ---------- WORKS ---------- */
.works { padding: 84px 0; }
.works__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.work {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #f3faf5;
  transition: transform .18s, box-shadow .18s;
}
.work:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.work img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 351 / 500; }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-darker) 100%);
  color: var(--white);
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 54px 28px;
  flex-wrap: wrap;
}
.cta-band__title { font-family: var(--font-display); font-size: 33px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.2; }
.cta-band__sub { font-size: 17px; margin: 0; opacity: .92; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.footer { background: linear-gradient(180deg, #173a2c 0%, #0f2a20 100%); color: #cdd9d1; border-top: 3px solid var(--brand); }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 28px 44px;
}
.footer__brand .logo__img { height: 30px; width: auto; background: #fff; padding: 6px 12px; border-radius: 8px; margin-bottom: 18px; }
.logo--footer { margin-bottom: 18px; }
.logo--footer .logo__word b { color: #fff; }
.logo--footer .logo__word > span { color: rgba(255,255,255,.7); }
.footer__tag { font-size: 14px; line-height: 1.6; margin: 0 0 18px; max-width: 360px; }
.footer__contact { font-size: 14.5px; line-height: 1.9; }
.footer__contact a:hover { color: var(--brand); }
.footer__col h4 { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 14px; }
.footer__col a { display: block; font-size: 14.5px; padding: 5px 0; color: #b9c8bf; transition: color .14s; }
.footer__col a:hover { color: var(--brand); }
.footer__bar { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13px; color: #8da095; }

@keyframes float  { 0%,100% { transform: translate(0,0); } 50% { transform: translate(0,-14px); } }
@keyframes floatY { 0%,100% { transform: translateY(0); }   50% { transform: translateY(-12px); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .partners { gap: 18px; }
  .partner-logo { height: 22px; }
  .hero__title { font-size: 46px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .topbar__search { min-width: 0; width: 180px; }
  .partners { display: none; }
  .nav__inner { flex-wrap: wrap; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 520px; margin: 0 auto; }
  .works__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 56px; }
  .feature--reverse .feature__copy { order: 1; }
  .feature--reverse .feature__mock { order: 2; }
  .feature__mock { width: 100%; }
  .chat, .gen, .review { width: 100%; }
  .stat-badge { right: 8px; }
  .quote__panel { grid-template-columns: 1fr; }
  .quote__summary { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .topbar__contacts { gap: 16px; }
  .topbar__item span { display: none; }
  .nav__menu { gap: 0; flex-wrap: wrap; }
  .nav__link { padding: 10px 12px; font-size: 15px; }
  .hero__title { font-size: 36px; }
  .hero__cta .btn--lg { padding: 13px 26px; font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .section-head__title { font-size: 30px; }
  .cta-band__inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   AI CHAT ASSISTANT (floating widget)
   ============================================================ */
.aidp-chat { position: fixed; right: 20px; bottom: 20px; z-index: 9999; font-family: inherit; }
.aidp-chat__fab {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff; border: none; cursor: pointer;
  padding: 12px 18px; border-radius: 30px; font-size: 15px; font-weight: 700;
  box-shadow: var(--shadow-md); transition: transform .15s, box-shadow .15s;
}
.aidp-chat__fab:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.aidp-chat__fab svg { width: 22px; height: 22px; fill: #fff; }
.aidp-chat.is-open .aidp-chat__fab { display: none; }
.aidp-chat__panel {
  position: absolute; right: 0; bottom: 0; width: 370px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100vh - 90px);
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
}
/* the class above sets display:flex which beats the UA [hidden]{display:none};
   restore hide-on-close by making the hidden state win on specificity */
.aidp-chat__panel[hidden] { display: none; }
.aidp-chat__head { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 16px; background: var(--brand-darker); color: #fff; }
.aidp-chat__head strong { display: block; font-size: 16px; }
.aidp-chat__sub { font-size: 12px; color: #cdebd5; }
.aidp-chat__head-acts { display: flex; align-items: center; gap: 4px; }
/* clear, large tap targets so the close/reset are always clickable */
.aidp-chat__reset, .aidp-chat__close {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: #fff; cursor: pointer; border-radius: 8px; padding: 0;
}
.aidp-chat__reset:hover, .aidp-chat__close:hover { background: rgba(255,255,255,.18); }
.aidp-chat__close { font-size: 24px; line-height: 1; }
.aidp-chat__reset svg { width: 18px; height: 18px; fill: #fff; }
.aidp-chat__wa { display: inline-block; margin-top: 8px; background: #25d366; color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; padding: 7px 12px; border-radius: 8px; }
.aidp-chat__wa:hover { filter: brightness(1.05); }
.aidp-chat__list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f4f7f5; }
.aidp-chat__msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.55; white-space: normal; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.aidp-chat__msg--assistant { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 4px; }
.aidp-chat__msg--user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.aidp-chat__typing { color: var(--ink-soft); font-style: italic; }
.aidp-chat__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aidp-chat__chip { background: #fff; border: 1px solid var(--brand-tint-2); color: var(--brand-darker); font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 20px; cursor: pointer; }
.aidp-chat__chip:hover { background: var(--brand-tint); }
.aidp-chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.aidp-chat__input { flex: 1; font-family: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--brand-tint-2); border-radius: 22px; outline: none; }
.aidp-chat__input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(87,187,108,.18); }
.aidp-chat__send { background: var(--brand); color: #fff; border: none; font-weight: 700; font-size: 14px; padding: 0 16px; border-radius: 22px; cursor: pointer; }
.aidp-chat__send:disabled { opacity: .6; cursor: default; }
/* quote card inside chat */
.aidp-chat__quote { align-self: stretch; background: #fff; border: 1px solid var(--brand-tint-2); border-radius: 14px; padding: 14px; }
.aidp-chat__quote-h { font-size: 12px; font-weight: 700; color: var(--brand-dark); text-transform: uppercase; letter-spacing: .5px; }
.aidp-chat__quote-total { font-family: var(--font-body); font-weight: 800; font-size: 24px; color: var(--brand-darker); margin: 4px 0 8px; }
.aidp-chat__quote-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 2px 0; color: var(--ink-soft); }
.aidp-chat__quote-row b { color: #34423a; }
.aidp-chat__quote-spec { border-top: 1px dashed var(--brand-tint-2); margin-top: 8px; padding-top: 8px; }
.aidp-chat__quote-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.aidp-chat__qbtn { width: 100%; padding: 10px; border-radius: 9px; font-size: 14px; font-weight: 700; cursor: pointer; border: 1px solid var(--brand); background: #fff; color: var(--brand-darker); }
.aidp-chat__qbtn--solid { background: var(--brand); color: #fff; }
.aidp-chat__qbtn--wa { background: #25d366; color: #fff; border-color: #25d366; }
.aidp-chat__qbtn--wa:hover { filter: brightness(1.05); }
.aidp-chat__qbtn:hover { transform: translateY(-1px); }
.aidp-chat__quote-fine { font-size: 10.5px; color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 480px) {
  .aidp-chat { right: 12px; bottom: 12px; }
  .aidp-chat__panel { width: calc(100vw - 24px); height: calc(100vh - 80px); }
  .aidp-chat__fab span { display: none; }
  .aidp-chat__fab { padding: 14px; }
}

/* ============================================================
   WORKS / GALLERY PAGE
   ============================================================ */
.gallery { padding: 52px 0 84px; }
.gallery__cat { margin-bottom: 56px; }
.gallery__cat-head { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: #14201a; margin: 0 0 8px; }
.gallery__cat-rule { width: 52px; height: 3px; background: var(--brand); border-radius: 3px; margin-bottom: 26px; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery__item { position: relative; border-radius: 14px; overflow: hidden; background: #f1f5f2; box-shadow: var(--shadow-sm); cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--logo { aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); }
.gallery__item--logo img { object-fit: contain; padding: 22px; }
.gallery__more { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.gallery__back { display: inline-block; color: var(--brand-dark); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.gallery__back:hover { color: var(--brand-darker); }
/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(13,28,20,.93); display: none; align-items: center; justify-content: center; z-index: 10000; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.lightbox__close { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 36px; line-height: 1; background: none; border: none; cursor: pointer; }
@media (max-width: 900px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery__grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* ============================================================
   MOTION LAYER (only active when html.motion is set by motion.js;
   never applied under prefers-reduced-motion)
   ============================================================ */
.motion .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1) var(--rd, 0ms),
              transform .7s cubic-bezier(.22,.61,.36,1) var(--rd, 0ms);
  will-change: opacity, transform;
}
.motion .reveal.is-in { opacity: 1; transform: none; }

/* interactive 3D tilt */
.motion .tilt { transition: transform .25s ease; transform-style: preserve-3d; }
.motion .feature__mock.tilt, .motion .perf__card.tilt, .motion .step.tilt, .motion .gallery__item.tilt { will-change: transform; }

/* hero glow follows the cursor for depth */
.motion .hero__glow { transition: transform .25s ease-out; }

/* ambient drifting blob behind the comparison section */
.motion .perf { position: relative; overflow: hidden; }
.motion .perf::before {
  content: ""; position: absolute; width: 520px; height: 520px; left: -130px; top: -170px;
  background: radial-gradient(circle at 50% 50%, rgba(14,163,113,.12), rgba(14,163,113,0) 70%);
  border-radius: 50%; pointer-events: none; z-index: 0;
  animation: blobDrift 16s ease-in-out infinite;
}
.motion .perf::after {
  content: ""; position: absolute; width: 440px; height: 440px; right: -150px; bottom: -180px;
  background: radial-gradient(circle at 50% 50%, rgba(14,163,113,.09), rgba(14,163,113,0) 70%);
  border-radius: 50%; pointer-events: none; z-index: 0;
  animation: blobDrift 19s ease-in-out infinite reverse;
}
.motion .perf > .container { position: relative; z-index: 1; }
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, 46px) scale(1.12); }
}

/* sheen sweep on the primary CTA */
.motion .btn--solid { position: relative; overflow: hidden; }
.motion .btn--solid::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-18deg); pointer-events: none; transition: left .6s ease;
}
.motion .btn--solid:hover::after { left: 130%; }

/* ---- hero 3D floating panels (ambient depth, desktop only) ---- */
.hero3d { display: none; }
.motion .hero3d {
  display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  perspective: 1200px; perspective-origin: 50% 45%;
}
.motion .hero3d__tilt {
  position: absolute; left: 50%; top: 52%; width: 0; height: 0;
  transform-style: preserve-3d; transition: transform .35s ease-out;
}
.motion .hero3d__stage {
  transform-style: preserve-3d;
  animation: hero3dSpin 26s ease-in-out infinite;
}
@keyframes hero3dSpin {
  0%, 100% { transform: rotateY(-15deg) rotateX(7deg); }
  50%      { transform: rotateY(15deg) rotateX(11deg); }
}
.motion .hero3d__panel {
  position: absolute; width: 124px; height: 162px; margin: -81px 0 0 -62px; border-radius: 16px;
  transform: translate3d(var(--tx), var(--ty), var(--tz)) rotateY(var(--r, 0deg));
  background: linear-gradient(150deg, rgba(14,163,113,.34), rgba(14,163,113,.10));
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 24px 55px rgba(15,70,48,.12);
  animation: hero3dFloat 7s ease-in-out infinite;
}
.motion .hero3d__panel:nth-child(even) {
  background: linear-gradient(150deg, rgba(255,255,255,.78), rgba(231,247,240,.42));
  border-color: rgba(14,163,113,.22);
  animation-duration: 9s; animation-direction: reverse;
}
.motion .hero3d__panel:nth-child(3n) { animation-duration: 8s; }
@keyframes hero3dFloat {
  0%, 100% { margin-top: -81px; }
  50%      { margin-top: -93px; }
}
@media (max-width: 900px) { .motion .hero3d { display: none; } }
.hero > .container { position: relative; z-index: 2; }

/* ============================================================
   HOMEPAGE "3 FOCUS AREAS" + SERVICE SHOWCASE PAGES
   ============================================================ */
.focus { padding: 84px 0; background: #fbfdfc; }
.focus__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.focus__card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 32px 28px; text-decoration: none; color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.focus__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.focus__no { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--brand); margin-bottom: 16px; }
.focus__card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: #14201a; margin: 0 0 10px; }
.focus__card p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 16px; }
.focus__more { color: var(--brand-darker); font-weight: 700; font-size: 14.5px; }
@media (max-width: 880px) { .focus__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ---- service page hero + cards ---- */
.svc-hero { padding: 60px 0 36px; background: linear-gradient(180deg, #ffffff 0%, #f4faf6 100%); text-align: center; }
.svc-hero__back { display: block; color: var(--brand-darker); font-weight: 600; font-size: 14px; margin-bottom: 18px; text-decoration: none; }
.svc-hero__back:hover { text-decoration: underline; }
.svc-hero h1 { font-family: var(--font-display); font-size: 46px; font-weight: 700; letter-spacing: -.02em; color: #14201a; margin: 6px 0 16px; line-height: 1.12; }
.svc-hero p { max-width: 700px; margin: 0 auto 26px; font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.svc-hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.svc-wrap { padding: 54px 0 20px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-tint-2); }
.svc-card h3::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--brand); margin-bottom: 14px; }
.svc-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: #14201a; margin: 0 0 8px; }
.svc-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.svc-points { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.svc-point { background: var(--brand-tint); color: var(--brand-darker); border-radius: 999px; padding: 9px 17px; font-size: 14px; font-weight: 700; }
.svc-strip { padding: 10px 0 60px; }
.svc-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1000px; margin: 0 auto; }
.svc-strip__grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-sm); }
@media (max-width: 880px) { .svc-grid { grid-template-columns: 1fr 1fr; } .svc-strip__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } .svc-hero h1 { font-size: 36px; } }

/* ===== rich service-page sections (video / design) ===== */
.section-head--left { text-align: left; max-width: 720px; margin: 0 0 30px; }

.vp-stats { background: var(--brand); color: #fff; padding: 30px 0; }
.vp-stats__row { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.vp-stat { display: flex; flex-direction: column; gap: 2px; }
.vp-stat b { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; }
.vp-stat span { font-size: 13.5px; opacity: .9; }

.vp-gallery-wrap, .vp-flow-wrap, .vp-pricing-wrap { padding: 60px 0; }
.vp-gallery-wrap { background: #f6faf8; }
.vp-gallery { columns: 4; column-gap: 16px; }
.vp-gallery__item { break-inside: avoid; margin: 0 0 16px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.vp-gallery__item img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.vp-gallery__item:hover img { transform: scale(1.05); }
@media (max-width: 1000px) { .vp-gallery { columns: 3; } }
@media (max-width: 720px) { .vp-gallery { columns: 2; } }

.vp-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: none; }
.vp-flow__step { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: transform .25s ease, box-shadow .25s ease; }
.vp-flow__step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vp-flow__no { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--brand); }
.vp-flow__step h4 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: #14201a; margin: 10px 0 6px; }
.vp-flow__step p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
@media (max-width: 880px) { .vp-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .vp-flow { grid-template-columns: 1fr; } }

.vp-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vp-plan { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; }
.vp-plan--feature { border-color: var(--brand); box-shadow: 0 18px 40px -22px rgba(14,163,113,.5); }
.vp-plan h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: #14201a; margin: 0 0 12px; }
.vp-plan__price { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--brand-darker); margin: 0; }
.vp-plan__price span { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.vp-plan__note { font-size: 13px; color: var(--ink-soft); margin: 4px 0 16px; }
.vp-plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.vp-plan li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.5; color: #3a4a42; }
.vp-plan li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.vp-pricing__more { margin: 22px 0 0; font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 880px) { .vp-pricing { grid-template-columns: 1fr; max-width: 460px; } }

.vp-quote { padding: 60px 0; background: #f6faf8; }
