:root {
  --primary: #4361ee;
  --primary-light: #eef2ff;
  --bg-white: #ffffff;
  --bg-gray: #f8fafc;
  --text-dark: #0f172a;
  --text-light: #64748b;
  --shadow-sm: 0 12px 30px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 20px 40px rgba(15, 23, 42, 0.1);
  --shadow-btn: 0 8px 20px rgba(67, 97, 238, 0.25);
  --font-sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text-dark); background: var(--bg-white); }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.container { width: min(1440px, 100%); margin: 0 auto; padding: 0 80px; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 80px;
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--primary);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 24px;
}
.logo-text { font-size: 24px; font-weight: 800; }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { font-size: 16px; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-btn {
  padding: 14px 32px; background: var(--primary); color: #fff; border-radius: 999px;
  font-size: 15px; font-weight: 600; box-shadow: var(--shadow-btn); transition: transform 0.3s, box-shadow 0.3s;
}
.nav-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(67, 97, 238, 0.35); }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: var(--primary-light); border-radius: 999px; color: var(--primary);
  font-size: 14px; font-weight: 600;
}
.badge-num { font-weight: 700; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 80px 80px 120px;
}
.hero-title { font-size: clamp(40px, 5vw, 64px); font-weight: 800; line-height: 1.2; margin: 32px 0; }
.hero-desc { font-size: 18px; line-height: 1.8; color: var(--text-light); max-width: 540px; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  padding: 18px 40px; background: var(--primary); color: #fff; border: none; border-radius: 999px;
  font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-btn); transition: transform 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 12px; padding: 18px 40px;
  background: var(--bg-gray); border-radius: 999px; font-size: 16px; font-weight: 600;
}
.hero-visual { position: relative; height: 600px; }
.hero-img { width: calc(100% - 40px); height: 100%; margin-left: 40px; border-radius: 32px; overflow: hidden; }
.float-card {
  position: absolute; left: -40px; bottom: 40px; width: 280px; background: #fff;
  border-radius: 20px; padding: 24px; box-shadow: var(--shadow-md);
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float-card-top { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.float-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light);
  display: grid; place-items: center; color: var(--primary);
}
.float-num { font-size: 36px; font-weight: 800; color: var(--primary); }

/* Sections */
.section { padding: 120px 0; }
.section-gray { background: var(--bg-gray); }
.section-head { text-align: center; margin-bottom: 80px; }
.section-head-row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 80px;
}
.section-title { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-top: 24px; }
.section-desc { color: var(--text-light); font-size: 18px; line-height: 1.8; max-width: 700px; margin: 16px auto 0; }

/* Cards */
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card {
  background: #fff; border-radius: 24px; padding: 48px 40px; box-shadow: var(--shadow-sm);
  transition: transform 0.4s, box-shadow 0.4s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 64px; height: 64px; border-radius: 16px; background: var(--primary-light);
  display: grid; place-items: center; color: var(--primary); margin-bottom: 24px;
}
.card h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.card p { color: var(--text-light); font-size: 15px; line-height: 1.7; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--primary); font-weight: 600; font-size: 15px; }

/* About block */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; height: 600px; }
.about-img { width: 520px; height: 600px; border-radius: 32px; overflow: hidden; }
.about-float {
  position: absolute; right: 0; bottom: 40px; background: var(--primary); color: #fff;
  border-radius: 24px; padding: 32px; box-shadow: 0 20px 40px rgba(67, 97, 238, 0.35);
}
.about-float-num { font-size: 48px; font-weight: 800; }
.about-float-text { font-size: 16px; opacity: 0.9; margin-top: 8px; }
.check-list { list-style: none; margin: 24px 0 32px; }
.check-list li {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px; font-weight: 600;
}
.check-icon {
  width: 28px; height: 28px; border-radius: 50%; background: var(--primary-light);
  display: grid; place-items: center; color: var(--primary); flex-shrink: 0;
}

/* About Swiper */
.about-swiper-section { overflow: hidden; }
.about-swiper-header { text-align: center; margin-bottom: 48px; }
.about-swiper-header .section-title { margin-top: 24px; }
.about-tabs {
  display: inline-flex; gap: 8px; margin-top: 32px; padding: 6px;
  background: var(--bg-gray); border-radius: 999px;
}
.about-tab {
  padding: 12px 28px; border: none; border-radius: 999px; background: transparent;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--text-light);
  cursor: pointer; transition: all 0.35s ease;
}
.about-tab.active {
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-btn);
}
.about-swiper { position: relative; padding: 0 56px; }
.about-swiper-viewport { overflow: hidden; border-radius: 24px; }
.about-swiper-track {
  display: flex; transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1);
}
.about-slide {
  flex: 0 0 100%; min-width: 100%; padding: 8px 4px 24px;
  box-sizing: border-box;
}
.about-slide-title {
  font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.25; margin-top: 16px;
}
.about-slide-desc {
  color: var(--text-light); font-size: 17px; line-height: 1.8; max-width: 560px; margin-top: 20px;
}
.about-img-offset { margin-left: 40px; width: 560px; }
.about-award-card {
  left: -40px; top: 100px; bottom: auto; width: 240px;
  animation: floatY 4s ease-in-out infinite;
}
.about-award-card h4 { margin-top: 16px; font-size: 20px; font-weight: 700; }
.about-award-card p { color: var(--text-light); font-size: 14px; line-height: 1.6; margin-top: 8px; }
.about-team-grid {
  margin-top: 0;
  width: 100%;
}
.about-slide-team .about-team-head {
  margin-bottom: 48px;
}
.about-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: #fff; color: var(--text-dark); box-shadow: var(--shadow-md);
  display: grid; place-items: center; cursor: pointer;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.about-arrow:hover {
  background: var(--primary); color: #fff; transform: translateY(-50%) scale(1.05);
}
.about-prev { left: 0; }
.about-next { right: 0; }
.about-dots {
  display: flex; justify-content: center; gap: 12px; margin-top: 40px;
}
.about-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0;
  background: #cbd5e1; cursor: pointer; transition: all 0.35s ease;
}
.about-dot.active {
  width: 32px; border-radius: 999px; background: var(--primary);
}
.about-slide .reveal { transition-delay: 0s; }
.about-slide.is-active .reveal { transition-delay: inherit; }
.about-slide.is-active .reveal-d1 { transition-delay: 0.1s; }
.about-slide.is-active .reveal-d2 { transition-delay: 0.2s; }
.about-slide.is-active .reveal-d3 { transition-delay: 0.3s; }
.about-slide.is-active .reveal-d4 { transition-delay: 0.4s; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-card { background: #fff; border-radius: 24px; padding: 40px 32px; box-shadow: var(--shadow-sm); }
.process-num {
  width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 24px; font-weight: 800; margin-bottom: 24px;
  box-shadow: var(--shadow-btn);
}

/* CTA */
.cta {
  background: var(--primary); color: #fff; text-align: center; padding: 100px 80px;
}
.cta h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-bottom: 24px; }
.cta p { font-size: 18px; color: var(--primary-light); margin-bottom: 40px; }
.cta-btns { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.cta .btn-white { background: #fff; color: var(--primary); padding: 18px 48px; border-radius: 999px; font-weight: 700; border: none; cursor: pointer; }
.cta .btn-outline { background: transparent; border: 2px solid #fff; color: #fff; padding: 18px 48px; border-radius: 999px; font-weight: 600; cursor: pointer; }

/* Footer */
.footer {
  background: var(--text-dark); color: #fff; padding: 80px; display: flex; justify-content: space-between; gap: 40px;
}
.footer-desc { color: var(--text-light); font-size: 14px; line-height: 1.8; margin-top: 24px; white-space: pre-line; }
.footer-links { display: flex; gap: 80px; }
.footer-col h4 { font-size: 14px; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { color: var(--text-light); font-size: 14px; margin-bottom: 8px; }

/* Page header */
.page-header {
  background: var(--bg-gray); height: 400px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
}
.page-header h1 { font-size: 56px; font-weight: 800; }
.breadcrumb { display: flex; gap: 12px; color: var(--text-light); font-size: 16px; }
.breadcrumb .current { color: var(--primary); font-weight: 600; }

/* Team */
.team-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform 0.4s;
}
.team-card:hover { transform: translateY(-8px); }
.team-img { height: 320px; flex-shrink: 0; overflow: hidden; }
.team-info { padding: 32px 24px; flex: 1; }
.team-info h3 { font-size: 22px; font-weight: 700; }
.team-info .role { color: var(--primary); font-weight: 600; margin: 8px 0; }
.team-info p { color: var(--text-light); font-size: 14px; line-height: 1.6; }

/* Case card */
.case-card { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.4s; }
.case-card:hover { transform: translateY(-8px); }
.case-img { height: 280px; overflow: hidden; }
.case-card:hover .case-img img { transform: scale(1.05); }
.case-img img { transition: transform 0.6s; }
.case-body { padding: 32px; }
.case-tag { display: inline-block; padding: 6px 12px; background: var(--primary-light); color: var(--primary); border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.case-body h3 { font-size: 22px; font-weight: 700; line-height: 1.4; }

/* Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* Contact Modal - Light Theme */
.contact-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; pointer-events: none; opacity: 0;
  transition: opacity 0.35s ease;
}
.contact-modal.is-open { pointer-events: auto; opacity: 1; }
.contact-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
}
.contact-modal-dialog {
  position: relative; width: min(440px, 100%);
  background: #fff; border-radius: 28px; padding: 40px 36px 32px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.18);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: center;
}
.contact-modal.is-open .contact-modal-dialog {
  transform: translateY(0) scale(1);
}
.contact-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--bg-gray); color: var(--text-light); cursor: pointer;
  display: grid; place-items: center; transition: all 0.3s;
}
.contact-modal-close:hover { background: var(--primary-light); color: var(--primary); }
.contact-modal-icon {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 20px;
  background: var(--primary-light); display: grid; place-items: center; color: var(--primary);
}
.contact-modal-title { font-size: 26px; font-weight: 800; margin-bottom: 8px; color: var(--text-dark); }
.contact-modal-subtitle { color: var(--text-light); font-size: 15px; margin-bottom: 32px; }
.contact-modal-items { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.contact-modal-item {
  background: var(--bg-gray); border-radius: 16px; padding: 20px;
  border: 1px solid transparent; transition: border-color 0.3s;
}
.contact-modal-item:hover { border-color: var(--primary-light); }
.contact-modal-label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 1px;
  color: var(--primary); margin-bottom: 12px;
}
.contact-modal-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.contact-modal-value { font-size: 20px; font-weight: 800; color: var(--text-dark); letter-spacing: 0.5px; }
.contact-copy-btn {
  padding: 10px 18px; border-radius: 999px; border: none;
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.3s; white-space: nowrap;
  box-shadow: var(--shadow-btn);
}
.contact-copy-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(67, 97, 238, 0.35); }
.contact-copy-btn.copied { background: #10b981; box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3); }
.contact-modal-tip { margin-top: 24px; font-size: 13px; color: var(--text-light); }
.contact-toast {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text-dark); color: #fff; padding: 12px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: all 0.35s ease; z-index: 1001;
}
.contact-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1200px) {
  .hero, .about-block { grid-template-columns: 1fr; }
  .card-grid-4, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: 1fr; }
  .about-img, .about-img-offset { width: 100%; margin-left: 0; }
  .about-arrow { display: none; }
  .about-swiper { padding: 0; }
  .about-tabs { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 768px) {
  .container, .nav, .hero, .footer { padding-left: 24px; padding-right: 24px; }
  .nav-links { display: none; }
  .card-grid-4, .process-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}
