/* ===================== Design tokens (exact from Figma) ===================== */
:root {
  --dark: #172f27;
  --dark-card: #182520;
  --lime: #b8e250;
  --surface: #f9f9f9;
  --border: #ececec;
  --gray: #6e6e6e;
  --gray-2: #454141;
  --gray-3: #999999;
  --white: #ffffff;
  --radius-full: 144px;
  --radius-card: 33px;
  --radius-lg: 30px;
  --radius-md: 20px;
  --max-width: 1440px;
  --content-width: 1304px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Adaptive surfaces — same brand palette, flipped for dark mode */
  --page-bg: #ffffff;
  --surface-bg: #f9f9f9;
  --surface-border: #ececec;
  --text-heading: #172f27;
  --text-body: #6e6e6e;
  --text-body-2: #454141;
}

:root[data-theme="dark"] {
  --page-bg: #0e1c16;
  --surface-bg: #16261f;
  --surface-border: rgba(184, 226, 80, 0.16);
  --text-heading: #f2f7f4;
  --text-body: #a9b8b0;
  --text-body-2: #c7d2cc;
  --dark-card: #12211b;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-heading);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }

.text-lime { color: var(--lime); }

/* ===================== Buttons & badges ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 20px;
  white-space: nowrap;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-2px); opacity: 0.92; }
.magnetic { transition: transform 0.15s ease-out; will-change: transform; }
.magnetic:hover { opacity: 1; }
.btn-lime { background: var(--lime); color: var(--dark); }
.btn-lg { height: 60px; }
.btn-dark-outline { background: var(--dark); color: var(--white); width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 20px;
}
.showcase-inner > .badge,
.section-head > .badge { align-self: flex-start; }
.badge-white { background: var(--white); color: var(--dark); }
.badge-outline { background: var(--surface-bg); border: 1px solid var(--surface-border); color: var(--text-heading); }

.icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-badge img { width: 24px; height: 24px; }

/* ===================== Layout helpers ===================== */
.section-head { max-width: var(--content-width); margin: 0 auto; padding: 100px 68px 50px; }
#process .section-head h2 { margin-top: 32px; }
.section-head-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.section-head-center > .badge { align-self: center; }
.section-head-row { display: flex; gap: 50px; align-items: center; margin-top: 30px; }
.section-head-row h2 { flex: 0 0 606px; max-width: 606px; }
.section-head-row p { flex: 1; font-size: 20px; color: var(--text-heading); }

h1, h2, h3 { font-weight: 700; line-height: 1.14; }
h2 { font-size: 58px; }
h3 { font-size: 20px; font-weight: 700; }

/* ===================== HERO ===================== */
.hero {
  background: var(--dark);
  position: relative;
  padding-bottom: 200px;
}

.site-header { padding: 46px 68px 0; position: relative; z-index: 10; }
.navbar {
  max-width: 982px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-full);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 31px;
}
.logo img { height: 37px; }
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 20px; font-weight: 500; color: var(--dark); }
.nav-right .btn { height: 60px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-bg);
  color: var(--text-heading);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}
.theme-toggle:hover { background: var(--lime); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--dark); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  max-width: 982px;
  margin: 8px auto 0;
  background: var(--page-bg);
  border-radius: 24px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(23,47,39,0.15);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 20px; font-size: 17px; font-weight: 500; color: var(--text-heading); border-radius: 16px; }
.mobile-menu a:hover { background: var(--surface-bg); }

.hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 90px 68px 0;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.hero-content { display: flex; flex-direction: column; gap: 30px; width: 704px; flex-shrink: 0; }
.hero-content > .btn { align-self: flex-start; }
.hero-text { display: flex; flex-direction: column; gap: 30px; color: var(--white); }
.hero-text h1 { font-size: 58px; line-height: 1.14; }
.hero-sub { font-size: 20px; font-weight: 400; }
.hero-media { flex: 1; border-radius: var(--radius-lg); overflow: hidden; }
.hero-media img { width: 100%; height: 470px; object-fit: cover; }

.trusted-by {
  max-width: 1035px;
  margin: 120px auto 0;
  padding: 0 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.trusted-title { color: var(--white); font-size: 32px; font-weight: 600; text-align: center; }
.trusted-logos { display: flex; flex-direction: column; align-items: center; gap: 30px; width: 100%; }
.trusted-logos-mobile { display: none; }
.trusted-row { display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; }
.trusted-row img { height: 32px; opacity: 0.5; }

/* ===================== SHOWCASE ===================== */
.showcase-wrap {
  position: relative;
  margin: -180px 48px 0;
}
.showcase {
  background: var(--lime);
  -webkit-mask-image: url('assets/icons/showcase-bg-panel.svg');
  mask-image: url('assets/icons/showcase-bg-panel.svg');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  padding: 125px 0 190px;
  position: relative;
  z-index: 1;
}
.showcase-inner { max-width: var(--content-width); margin: 0 auto; padding: 0 68px; display: flex; flex-direction: column; gap: 30px; }
.showcase-heading { display: flex; gap: 50px; align-items: flex-start; }
.showcase-heading h2 { flex: 0 0 461px; color: var(--dark); }
.showcase-heading p { flex: 1; font-size: 20px; padding-top: 8px; color: var(--gray-2); }

.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}
.phone-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 370 / 397;
  text-align: left;
  display: block;
}
.phone-card img { width: 100%; height: 100%; object-fit: cover; }
.phone-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(23,47,39,0.25) 56%, rgba(23,47,39,0.8) 100%);
}
.phone-card-label {
  position: absolute;
  left: 30px;
  bottom: 24px;
  color: var(--white);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  z-index: 2;
  max-width: 78%;
}
.phone-card-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(114,114,114,0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.phone-card-arrow svg { width: 22px; height: 22px; }
.phone-card:hover .phone-card-arrow { background: var(--dark); }

/* ===================== STRIP ===================== */
.strip {
  position: relative;
  margin: 60px 0 0;
  padding: 100px 68px 130px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
  gap: 30px;
}
.strip::-webkit-scrollbar { display: none; }
.strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/icons/strip-bottom-outline.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}
.strip-track { position: relative; z-index: 1; display: flex; gap: 30px; flex-shrink: 0; animation: strip-scroll 40s linear infinite; }
.strip:hover .strip-track,
.strip.strip-paused .strip-track { animation-play-state: paused; }
@keyframes strip-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 30px)); }
}
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
}
.strip-card { display: flex; flex-direction: column; gap: 20px; }
.strip-card-nolink { cursor: default; }
.strip-card img { border-radius: var(--radius-lg); height: 600px; object-fit: cover; }
.strip-card p { font-size: 20px; font-weight: 500; color: var(--text-body); }
.strip-card-wide { width: 890px; }
.strip-card-wide img { width: 890px; }
.strip-card-narrow { width: 400px; }
.strip-card-narrow img { width: 400px; }

/* ===================== SERVICES ===================== */
.service-grid {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 68px 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 28px 31px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 226px;
  justify-content: center;
  transition: border-color 0.2s ease;
}
.service-card:hover { border-color: var(--lime); }
.service-card h3 { font-size: 18px; }
.service-card p { font-size: 16px; color: var(--text-body); line-height: 1.5; }

/* ===================== ABOUT ===================== */
.about { background: var(--dark); padding: 80px 68px; }
.about-inner { max-width: var(--content-width); margin: 0 auto; display: flex; gap: 15px; align-items: stretch; }

.about-card {
  width: 481px;
  flex-shrink: 0;
  background: var(--lime);
  border-radius: var(--radius-md);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 34px 30px;
}
.about-card-inner { display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; width: 100%; }
.about-card-text { display: flex; flex-direction: column; align-items: center; gap: 30px; width: 100%; margin-top: auto; margin-bottom: auto; }
.about-line-white { width: 60%; opacity: 0; height: 0; } /* decorative hairline from design, negligible visually */
.about-card-inner h3 { font-size: 32px; line-height: 1.25; color: var(--dark); }
.about-flourish { display: flex; align-items: center; gap: 20px; width: 100%; justify-content: center; }
.about-flourish img:not(.about-mark) { width: 145px; }
.about-mark { width: 20px; height: 20px; }
.about-card-inner p { font-size: 20px; color: var(--gray-2); }

.about-media { position: relative; flex: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--dark); }
.about-slide {
  position: absolute; inset: 0;
  width: 100%; height: 596px; object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.about-slide.active { opacity: 1; position: relative; }
.about-badge { position: absolute; top: 33.5px; left: 32px; z-index: 2; }

.about-progress {
  width: 100%;
  max-width: 350px;
  height: 4px;
  border-radius: 2px;
  background: rgba(23,47,39,0.15);
  overflow: hidden;
  margin-bottom: 20px;
}
.about-progress-fill { height: 100%; width: 0%; background: var(--dark); border-radius: 2px; }
.about-progress-fill.animating { transition: width linear; }

.about-stats {
  position: absolute;
  right: 21px;
  bottom: 18px;
  width: 372px;
  background: var(--lime);
  border-radius: var(--radius-md);
  padding: 18px 21px;
  text-align: right;
}
.about-stats-label { font-size: 20px; font-weight: 500; color: var(--gray-2); }
.about-stats-number { font-size: 48px; font-weight: 600; margin-top: 8px; color: var(--dark); }
.about-stats-number span { font-size: 32px; font-weight: 500; color: var(--gray-2); }
.about-stats-row { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 8px; font-size: 20px; font-weight: 500; color: var(--dark); }
.about-stats-row img { width: 24px; height: 24px; }

/* ===================== WHY CHOOSE US ===================== */
.why-grid {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 68px 100px;
  display: grid;
  grid-template-columns: 352px 1fr 352px;
  gap: 33px;
  align-items: stretch;
}
.why-card { border-radius: var(--radius-card); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; }
.why-card-dark { background: var(--dark); color: var(--white); }
.why-card-dark .icon-badge { margin-bottom: 15px; }
.why-card-dark h3 { color: var(--white); margin-bottom: 15px; }
.why-card-dark p { font-size: 16px; }

.why-card-photo {
  position: relative;
  background: linear-gradient(to bottom, rgba(23,47,39,0.2) 26%, var(--dark) 100%), url('assets/images/why-stopwatch.png') center/cover;
  padding: 25px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.why-photo-overlay-content {
  background: var(--lime);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  width: 100%;
}
.why-icon-row { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.why-bare-icon { width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; }
.why-bare-icon img { width: 28px; height: 28px; }
.why-photo-overlay-content h3 { font-size: 20px; color: var(--dark); }
.why-photo-overlay-content p { font-size: 15px; color: var(--dark); }

/* ===================== PROCESS ===================== */
.process-grid {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 68px 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 33px;
}
.process-card {
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 33px 31px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  transition: border-color 0.2s ease;
}
.process-card:hover { border-color: var(--lime); }
.process-icon-box {
  width: 100%;
  height: 241px;
  border-radius: 15px;
  background: rgba(217,217,217,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-icon-box img { width: auto; height: 200px; max-width: 80%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0,0,0,0.1)); }
.step-pill {
  display: inline-flex;
  padding: 11px 22px;
  border-radius: 115px;
  border: 0.8px solid var(--surface-border);
  background: var(--surface-bg);
  font-size: 14px;
  font-weight: 500;
}
.process-card h3 { font-size: 18px; }
.process-card p { font-size: 16px; color: var(--text-body); line-height: 1.5; }

/* ===================== TESTIMONIALS ===================== */
.testimonials { background: var(--dark); padding: 80px 72px; }
.testimonials-inner { max-width: 1296px; margin: 0 auto; position: relative; }
.testimonials-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 50px; }
.testimonials-head h2 { color: var(--white); font-size: 58px; }
.carousel-controls { display: flex; gap: 20px; }
.carousel-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid #999;
  opacity: 0.4;
  display: flex; align-items: center; justify-content: center;
}
.carousel-btn img { width: 20px; height: 20px; }
#testimonial-prev img { transform: scaleX(-1); }
.carousel-btn-active { border-color: var(--lime); opacity: 1; }

.testimonial-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  padding: 43px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex: 0 0 calc((100% - 60px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}
.quote-mark { font-size: 80px; color: var(--lime); font-weight: 600; line-height: 1; }
.testimonial-text { color: var(--white); font-size: 20px; line-height: 1.5; }
.testimonial-author { display: flex; align-items: center; gap: 20px; }
.avatar {
  width: 65px; height: 65px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.avatar-initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--dark);
  font-size: 20px; font-weight: 600;
}
.author-name { color: var(--white); font-size: 20px; font-weight: 600; }
.author-role { color: var(--gray-3); font-size: 16px; margin-top: 4px; }

/* ===================== FAQ ===================== */
.faq-list { max-width: 1035px; margin: 0 auto; padding: 0 68px; display: flex; flex-direction: column; gap: 30px; }
.faq-item { background: var(--surface-bg); border: 1px solid var(--surface-border); border-radius: var(--radius-card); overflow: hidden; }
.faq-item-open { border-color: var(--lime); }
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px;
  padding: 38px;
  text-align: left;
  font-size: 32px;
  font-weight: 600;
  color: var(--text-heading);
}
.faq-icon { width: 40px; height: 40px; flex-shrink: 0; }
:root[data-theme="dark"] .faq-icon { filter: brightness(0) invert(1); }
.icon-close { display: none; }
.faq-item-open .icon-close { display: block; }
.faq-item-open .icon-plus { display: none; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { font-size: 20px; padding: 0 38px 38px; color: var(--text-heading); }
.faq-item-open .faq-answer { max-height: 300px; }

.faq-footer-note { text-align: center; font-size: 20px; margin: 50px auto 100px; }
.faq-footer-note a { color: var(--lime); font-weight: 700; text-decoration: underline; }

/* ===================== FOOTER ===================== */
.footer { margin: 0 68px; }
.footer-panel {
  background: var(--dark);
  -webkit-mask-image: url('assets/icons/footer-bg-panel.svg');
  mask-image: url('assets/icons/footer-bg-panel.svg');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  padding: 113px 66px 0;
  position: relative;
  overflow: hidden;
}
.footer-top {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  gap: 41px;
  padding-bottom: 60px;
}
.footer-cta { width: 545px; flex-shrink: 0; display: flex; flex-direction: column; gap: 30px; }
.footer-cta > .btn { align-self: flex-start; }
.footer-cta h2 { color: var(--white); font-size: 58px; line-height: 1.14; }
.footer-links { flex: 1; display: flex; flex-direction: column; gap: 30px; }
.footer-nav { display: flex; gap: 30px; font-size: 20px; font-weight: 500; color: var(--white); flex-wrap: wrap; }
.footer-nav a { transition: color 0.15s ease; }
.footer-nav a:hover { color: var(--lime); text-decoration: underline; }
.link-lime { color: var(--lime); text-decoration: underline; }
.footer-contact { display: flex; flex-direction: column; gap: 20px; }
.footer-contact-row { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 20px; font-weight: 500; transition: color 0.15s ease; }
a.footer-contact-row:hover { color: var(--lime); }
.footer-social { display: flex; gap: 30px; font-size: 20px; font-weight: 500; color: var(--white); flex-wrap: wrap; }

.footer-wordmark {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 20px auto 0;
  opacity: 0.05;
  user-select: none;
  pointer-events: none;
}
.footer-copyright { text-align: right; max-width: var(--content-width); margin: -46px auto 0; padding: 20px 66px 30px; font-size: 20px; position: relative; z-index: 1; }

/* ===================== BACK TO TOP ===================== */
.to-top {
  position: fixed;
  right: 34px;
  bottom: 106px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 100;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--lime); color: var(--dark); }
.to-top svg { width: 18px; height: 18px; }

/* ===================== CHAT WIDGET ===================== */
.chat-widget { position: fixed; right: 30px; bottom: 30px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }

.chat-toggle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--lime);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(23,47,39,0.3);
  position: relative;
  flex-shrink: 0;
}
.chat-toggle:hover { transform: translateY(-2px); }
.chat-toggle-icon { width: 26px; height: 26px; }
.chat-toggle-close { display: none; width: 24px; height: 24px; color: var(--dark); }
.chat-toggle.open .chat-toggle-icon { display: none; }
.chat-toggle.open .chat-toggle-close { display: block; }

.chat-panel {
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: var(--page-bg);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(23,47,39,0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }

.chat-header { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: var(--dark); flex-shrink: 0; }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--lime);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-avatar img { width: 18px; height: 18px; }
.chat-avatar-sm { width: 28px; height: 28px; }
.chat-avatar-sm img { width: 13px; height: 13px; }
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-info p:first-child { color: var(--white); font-size: 16px; font-weight: 600; }
.chat-status { display: flex; align-items: center; gap: 6px; color: #b7c4bd; font-size: 12px; margin-top: 2px; }
.chat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); flex-shrink: 0; }
.chat-close { width: 32px; height: 32px; border-radius: 8px; color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-close:hover { background: rgba(255,255,255,0.1); }
.chat-close svg { width: 18px; height: 18px; }

.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; background: var(--surface-bg); }
.chat-msg { display: flex; gap: 10px; max-width: 90%; }
.chat-msg-bot { align-self: flex-start; }
.chat-msg-user { align-self: flex-end; flex-direction: row-reverse; }
.chat-bubble { padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.chat-msg-bot .chat-bubble { background: var(--page-bg); border: 1px solid var(--surface-border); border-top-left-radius: 4px; color: var(--text-heading); }
.chat-msg-user .chat-bubble { background: var(--dark); color: var(--white); border-top-right-radius: 4px; }

.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 14px; background: var(--surface-bg); flex-shrink: 0; }
.chat-chip {
  font-size: 12px; font-weight: 500;
  background: var(--page-bg); border: 1px solid var(--surface-border);
  border-radius: 20px; padding: 8px 14px;
  transition: border-color 0.15s ease;
  color: var(--text-heading);
}
.chat-chip:hover { border-color: var(--lime); }

.chat-input-row { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--surface-border); flex-shrink: 0; background: var(--page-bg); }
.chat-input-row input {
  flex: 1; border: 1px solid var(--surface-border); border-radius: 20px;
  padding: 12px 18px; font-size: 16px; font-family: inherit; color: var(--text-heading);
  background: var(--surface-bg);
}
.chat-input-row input:focus { outline: none; border-color: var(--lime); }
.chat-send {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--dark); color: var(--lime);
  display: flex; align-items: center; justify-content: center;
}
.chat-send:hover { background: var(--lime); color: var(--dark); }
.chat-send svg { width: 18px; height: 18px; }

/* ===================== PROJECT MODAL ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23,47,39,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 200;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--page-bg);
  border-radius: var(--radius-card);
  max-width: 1040px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--surface-border);
  position: sticky;
  top: 0;
  background: var(--page-bg);
}
.modal-header-info { display: flex; align-items: center; gap: 16px; }
.modal-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--lime);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  padding: 12px;
}
.modal-header-info h3 { font-size: 20px; }
.modal-header-info p { font-size: 15px; color: var(--text-body); margin-top: 2px; }
.modal-close {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface-bg); border: 1px solid var(--surface-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-heading); flex-shrink: 0;
}
.modal-close:hover { background: var(--lime); border-color: var(--lime); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-rows: auto auto;
  column-gap: 40px;
  row-gap: 24px;
  padding: 32px;
}
.modal-gallery { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 16px; min-width: 0; order: 1; }
.modal-cell { width: 100%; border-radius: 20px; object-fit: cover; display: block; }
.modal-cell-lg { height: 280px; }
.modal-cell-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal-cell-sm { height: 140px; border-radius: 16px; }
.modal-cell-md { height: 220px; border-radius: 16px; }
.modal-details-text { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 20px; order: 2; }
.modal-details-text h4 { font-size: 20px; }
.modal-details-text > p { font-size: 15px; color: var(--text-body); line-height: 1.6; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.modal-tag { font-size: 13px; font-weight: 500; background: var(--surface-bg); border: 1px solid var(--surface-border); border-radius: 20px; padding: 8px 16px; color: var(--text-heading); }
.modal-cta {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  order: 3;
  background: var(--dark);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.modal-cta-mark {
  position: absolute;
  top: -30%;
  right: -25%;
  width: 75%;
  height: auto;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.modal-cta p, .modal-cta .btn {
  position: relative;
  z-index: 1;
}
.modal-cta p { color: var(--white); font-size: 18px; font-weight: 600; line-height: 1.3; }
.modal-cta .btn { padding: 10px 20px; font-size: 15px; white-space: nowrap; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .hero-inner { flex-direction: column; }
  .hero-content { width: 100%; }
  .hero-media { width: 100%; }
  .hero-media img { height: 340px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-right { gap: 8px; }
  .nav-cta { display: none; }
  .mobile-menu-cta { margin-top: 6px; justify-content: center; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .section-head-row h2 { max-width: 100%; flex-basis: auto; }
  .showcase-heading h2 { flex-basis: auto; }
  .phone-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .testimonial-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .testimonial-track::-webkit-scrollbar { display: none; }
  .testimonial-track .testimonial-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }
  .about-inner { flex-direction: column; }
  .about-media { order: -1; }
  .about-card { width: 100%; }
  .footer-top { flex-direction: column; }
  .footer-cta { width: 100%; }
  .modal-body { display: flex; flex-direction: column; }
  .modal-details-text { width: 100%; order: 1; }
  .modal-gallery { width: 100%; order: 2; }
  .modal-cta { width: 100%; order: 3; }
}

@media (max-width: 640px) {
  .site-header { padding: 20px 16px 0; }
  .navbar { padding: 6px 6px 6px 20px; height: 56px; }
  .logo img { height: 24px; }
  .nav-right .btn { font-size: 14px; padding: 8px 18px; height: 40px; }

  .hero { padding-bottom: 110px; }
  .hero-inner { padding: 40px 20px 0; gap: 20px; }
  .hero-text { gap: 16px; }
  .hero-text h1 { font-size: 30px; }
  .hero-sub { font-size: 14px; }
  .hero-content { gap: 16px; }
  .btn-lg { height: 44px; font-size: 14px; padding: 10px 20px; }
  .hero-media img { height: auto; aspect-ratio: 1 / 1; }
  .trusted-by { margin-top: 60px; padding: 0 20px; gap: 16px; }
  .trusted-logos-desktop { display: none; }
  .trusted-logos-mobile { display: flex; }
  .trusted-title { font-size: 18px; }
  .trusted-row { gap: 10px; }
  .trusted-row img { height: 16px; }

  .showcase-wrap { margin: -90px 16px 0; }
  .showcase {
    padding: 70px 0 110px;
    -webkit-mask-image: url('assets/icons/showcase-bg-panel-mobile.svg');
    mask-image: url('assets/icons/showcase-bg-panel-mobile.svg');
  }
  .showcase-inner { padding: 0 20px; }
  .badge { font-size: 13px; padding: 8px 16px; }
  .showcase-heading { flex-direction: column; gap: 16px; }
  h2 { font-size: 28px; }
  .showcase-heading p { font-size: 14px; padding-top: 0; }
  .phone-grid { grid-template-columns: 1fr; gap: 16px; }
  .phone-card-label { font-size: 18px; }

  .strip {
    padding: 60px 20px 90px;
    gap: 16px;
  }
  .strip-track { gap: 16px; }
  .strip-card-wide { width: 300px; }
  .strip-card-narrow { width: 140px; }
  .strip-card-wide img { width: 300px; height: 280px; }
  .strip-card-narrow img { width: 140px; height: 280px; }

  .section-head { padding: 60px 20px 24px; }
  .section-head-row { gap: 16px; margin-top: 16px; }
  .section-head-row p { font-size: 14px; }
  .service-grid { grid-template-columns: 1fr; padding: 0 20px 50px; gap: 16px; }
  .service-card { padding: 20px; min-height: unset; }

  .about { padding: 50px 16px; }
  .about-card { padding: 24px 16px; }
  .about-card-inner h3 { font-size: 22px; }
  .about-media { aspect-ratio: 1.22 / 1; }
  .about-slide { height: 100%; aspect-ratio: 1.22 / 1; }
  .about-card { aspect-ratio: 1.22 / 1.02; height: auto; }
  .about-stats { width: 220px; right: 12px; bottom: 12px; padding: 12px 14px; }
  .about-stats-number { font-size: 32px; }
  .about-badge { top: 16px; left: 16px; }
  .about-pagination { bottom: 16px; left: 16px; font-size: 20px; }

  .why-grid { padding: 0 20px 50px; gap: 16px; }
  .why-card { min-height: 340px; padding: 24px 20px; }
  .why-card-dark { gap: 60px; }

  .process-grid { padding: 0 20px 50px; gap: 16px; }
  .process-card { padding: 20px; }
  .process-icon-box { height: 220px; }
  .process-icon-box img { width: auto; height: 160px; max-width: 85%; }

  .testimonials { padding: 50px 16px; }
  .testimonials-head { margin-bottom: 24px; }
  .testimonials-head h2 { font-size: 30px; }
  .testimonials-inner { padding-bottom: 66px; }
  .carousel-controls { position: absolute; left: 0; bottom: 0; }
  .testimonial-track { gap: 16px; }
  .testimonial-card { padding: 24px 20px; gap: 20px; }
  .quote-mark { font-size: 50px; }
  .testimonial-text { font-size: 15px; }

  .faq-list { padding: 0 20px; gap: 16px; }
  .faq-question { padding: 20px; font-size: 16px; gap: 12px; }
  .faq-icon { width: 24px; height: 24px; }
  .faq-answer p { padding: 0 20px 20px; font-size: 14px; }
  .faq-footer-note { font-size: 14px; margin: 24px auto 50px; padding: 0 20px; }

  .footer { margin: 0 16px; }
  .footer-panel {
    border-radius: 30px 30px 0 0;
    padding: 50px 20px 0;
    -webkit-mask-image: url('assets/icons/footer-bg-panel-mobile.svg');
    mask-image: url('assets/icons/footer-bg-panel-mobile.svg');
  }
  .footer-top { padding-bottom: 30px; gap: 24px; }
  .footer-cta h2 { font-size: 28px; }
  .footer-nav, .footer-social { font-size: 14px; gap: 16px; }
  .footer-contact-row { font-size: 14px; }
  .footer-wordmark { font-size: 90px; }
  .footer-copyright { font-size: 12px; margin-top: 0; padding: 32px 20px 20px; text-align: center; }

  .to-top { right: 22px; bottom: 88px; width: 38px; height: 38px; }
  .chat-widget { right: 16px; bottom: 16px; }
  .to-top svg { width: 18px; height: 18px; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { max-height: 92vh; border-radius: 24px 24px 0 0; }
  .modal-header { padding: 16px 20px; }
  .modal-icon { width: 44px; height: 44px; padding: 9px; border-radius: 10px; }
  .modal-header-info { gap: 12px; }
  .modal-header-info h3 { font-size: 16px; }
  .modal-header-info p { font-size: 13px; }
  .modal-body { padding: 20px; gap: 16px; }
  .modal-cell-row { grid-template-columns: 1fr; }
  .modal-cell-lg { height: 220px; }
  .modal-cell-sm { height: 200px; }
  .modal-cell-md { height: 200px; }
  .modal-cta { flex-direction: column; align-items: flex-start; }
}
