/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  background: #fbf9f8;
  color: #1b1c1c;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== TOKENS ===== */
:root {
  --primary: #000000;
  --on-primary: #ffffff;
  --secondary: #6537dc;
  --yellow: #FFD700;
  --yellow-hover: #e6c200;
  --surface: #fbf9f8;
  --surface-low: #f5f3f3;
  --surface-container: #efeded;
  --surface-variant: #e4e2e2;
  --on-surface: #1b1c1c;
  --on-surface-variant: #4c4546;
  --outline: #7e7576;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --container: 1200px;
  --section-pad: 80px;
  --banner-h: 40px;
  /* updated dynamically by JS */
}

body.banner-hidden {
  --banner-h: 0px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn--yellow {
  background: var(--yellow);
  color: #000;
}

.btn--yellow:hover {
  background: var(--yellow-hover);
  transform: translateY(-1px);
}

.btn--dark {
  background: #000;
  color: #fff;
}

.btn--dark:hover {
  background: #222;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== RECRUITMENT BANNER ===== */
.recruit-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background: linear-gradient(90deg, #6537dc 0%, #4f46e5 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  max-height: 120px;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
}

.recruit-banner.hidden {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.recruit-banner__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

.recruit-banner__icon {
  font-size: 18px;
  flex-shrink: 0;
}

.recruit-banner__inner p {
  line-height: 1.5;
  white-space: normal;
  flex: 1;
  min-width: 0;
}

.recruit-banner__inner a {
  color: var(--yellow);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.recruit-banner__inner a:hover {
  color: #fff;
}

.recruit-banner__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  margin-left: 8px;
  transition: color 0.2s;
}

.recruit-banner__close:hover {
  color: #fff;
}

.recruit-banner__close span {
  font-size: 18px;
}

@media (max-width: 480px) {
  .recruit-banner__icon {
    display: none;
  }

  .recruit-banner {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: var(--banner-h);
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-variant);
  transition: box-shadow 0.3s, top 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__brand-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.navbar__logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.navbar__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.navbar__links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface);
  transition: color 0.2s;
}

.navbar__links a:hover {
  color: var(--secondary);
}

.navbar__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--surface-variant);
}

.mobile-menu a {
  padding: 10px 0;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--surface-variant);
}

.mobile-menu.open {
  display: flex;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&q=80') center/cover no-repeat;
  padding-top: calc(68px + var(--banner-h));
  transition: padding-top 0.3s ease;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(30, 10, 60, 0.6) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 80px;
  max-width: 760px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #FFD700;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}

.hero__title--accent {
  color: var(--yellow);
}

.hero__sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat strong {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.hero__stat span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.3);
}

/* ===== VIDEO SECTION ===== */
.video-section {
  padding: 60px 0;
  background: var(--surface);
}

.video-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

.video-frame__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-frame__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.video-frame__play:hover {
  background: rgba(0, 0, 0, 0.4);
}

.video-frame__play span {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}

.video-frame__play:hover span {
  transform: scale(1.08);
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--section-pad) 0;
}

.section--light {
  background: var(--surface-low);
}

.section--grey {
  background: var(--surface-container);
}

.section-header {
  margin-bottom: 48px;
  max-width: 680px;
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 17px;
  color: var(--on-surface-variant);
  line-height: 1.7;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.feature-card__icon {
  font-size: 28px;
  color: var(--on-surface);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
}

.feature-card p {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.feature-card--gold {
  background: linear-gradient(135deg, #FFD700 0%, #FFF8E1 50%, #FFD700 100%);
  background-size: 200% 200%;
  animation: shimmer 8s ease infinite;
  border-color: #D4AF37;
  box-shadow: 0 10px 25px -5px rgba(212, 175, 55, 0.4);
}

.feature-card--gold .feature-card__icon {
  color: #544600;
}

.feature-card--gold h3 {
  color: #221b00;
}

.feature-card--gold p {
  color: #544600;
  font-weight: 600;
}

.feature-card__glint {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: skewX(-30deg);
  animation: glint 4s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shimmer {

  0%,
  100% {
    background-position: 0% 50%
  }

  50% {
    background-position: 100% 50%
  }
}

@keyframes glint {
  0% {
    left: -100%
  }

  30%,
  100% {
    left: 150%
  }
}

/* ===== HOW IT WORKS ===== */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
}

.step__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--on-surface-variant);
}

.step__connector {
  width: 60px;
  height: 2px;
  border-top: 2px dashed var(--surface-variant);
  margin-top: 26px;
  flex-shrink: 0;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--surface-variant);
  transition: box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card__img-wrap {
  height: 180px;
  overflow: hidden;
  background: var(--surface-low);
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__img {
  transform: scale(1.1);
}

.service-card__body {
  padding: 20px;
}

.service-card__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.service-card__label span {
  font-size: 22px;
}

.service-card__label h3 {
  font-size: 15px;
  font-weight: 700;
}

.service-card p {
  font-size: 13px;
  color: var(--on-surface-variant);
  line-height: 1.5;
}

/* ===== APP PROMO ===== */
.app-promo {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.app-promo__text {
  flex: 1;
  min-width: 280px;
}

.app-promo__btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.app-promo__btns .btn--dark div {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.app-promo__btns .btn--dark small {
  font-size: 9px;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.app-promo__btns .btn--dark strong {
  font-size: 15px;
}

.app-promo__mockup {
  flex: 1;
  min-width: 260px;
  display: flex;
  justify-content: center;
}

.app-promo__phone {
  width: 260px;
  height: 520px;
  background: #111;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.app-promo__phone-inner {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
}

.app-promo__phone-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== STATS ===== */
.stats-section {
  background: var(--primary);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.stat-item__icon {
  font-size: 36px;
  color: var(--yellow);
}

.stat-item__num {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-item__label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s;
}

.testimonial-card:hover {
  transform: translateY(-3px);
}

.testimonial-card__stars {
  font-size: 18px;
  color: #FFB800;
}

.testimonial-card p {
  font-size: 15px;
  color: var(--on-surface);
  font-style: italic;
  line-height: 1.7;
}

.testimonial-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 14px;
}

.testimonial-card__badge {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #6537dc;
  font-size: 12px;
  font-weight: 700;
}

/* ===== CONTACT ===== */
.contact-box {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  box-shadow: var(--shadow-card);
}

.contact-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--surface-container);
  border-top: 1px solid var(--surface-variant);
  padding-top: 56px;
}

.footer__inner {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

.footer__brand {
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__logo {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.footer__brand p {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 48px;
  flex: 1;
  flex-wrap: wrap;
}

.footer__links>div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 140px;
}

.footer__links h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links a {
  font-size: 14px;
  color: var(--on-surface-variant);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

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

.footer__links a span {
  font-size: 18px;
}

.footer__addr {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--on-surface-variant);
}

.footer__addr span:first-child {
  font-size: 18px;
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid var(--surface-variant);
  padding: 20px 0;
  font-size: 14px;
  color: var(--on-surface-variant);
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .navbar__links {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__inner .btn {
    display: none;
  }

  .step__connector {
    display: none;
  }

  .steps {
    gap: 24px;
  }

  .step {
    min-width: 140px;
  }

  .app-promo {
    flex-direction: column;
    text-align: center;
  }

  .app-promo__btns {
    justify-content: center;
  }

  .footer__inner {
    flex-direction: column;
  }

  .footer__links {
    gap: 32px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-pad: 48px;
  }

  .hero__title {
    font-size: 32px;
  }

  .contact-box {
    padding: 32px 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services 3-column grid on mobile */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .service-card__img-wrap {
    height: 100px;
  }

  .service-card__body {
    padding: 10px 8px;
  }

  .service-card__label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
  }

  .service-card__label span {
    font-size: 20px;
  }

  .service-card__label h3 {
    font-size: 11px;
    line-height: 1.2;
  }

  .service-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.3;
    margin-top: 4px;
    text-align: center;
  }
}