:root {
  --teal: #48bdbb;
  --teal-dark: #2f9c9a;
  --ink: #0f1724;
  --muted: #5b6b7a;
  --line: #e7eaee;
  --bg: #ffffff;
  --soft: #f7f9fb;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------------- top bar ---------------- */
.topbar {
  background: #0f1724;
  color: #cbd5e1;
  font-size: 13px;
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 24px;
}
.topbar-contact span { margin-right: 18px; }
.topbar-social a {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; margin-left: 6px;
  border: 1px solid #334155; border-radius: 50%;
  font-weight: 700; font-size: 12px;
  transition: all .2s;
}
.topbar-social a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------------- header ---------------- */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.logo img { height: 48px; }

.nav > ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px; align-items: center;
}
.nav > ul > li { position: relative; }
.nav a {
  display: inline-block;
  padding: 10px 14px;
  font-weight: 500; font-size: 14px;
  color: #1f2937;
  border-radius: 6px;
  transition: color .15s;
}
.nav a:hover, .nav a.active { color: var(--teal); }

.dropdown {
  position: absolute; top: 100%; left: 0;
  background: #fff; min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15,23,36,.08);
  list-style: none; margin: 0; padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s;
  z-index: 60;
}
.has-dropdown:hover > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { display: block; padding: 8px 16px; border-radius: 0; font-size: 13.5px; }
.dropdown a:hover { background: var(--soft); color: var(--teal); }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #0a1428;
}
.slides {
  position: relative; height: 100%;
}
.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
  background: linear-gradient(135deg, #0a1428 0%, #14315a 100%);
}
.slide.active { opacity: 1; visibility: visible; }

.slide-inner {
  height: 100%;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 40px; align-items: center;
  padding: 40px 24px;
}
.slide-copy { color: #fff; }
.eyebrow {
  display: inline-block;
  letter-spacing: 3px; font-size: 12px; font-weight: 700;
  color: var(--teal);
  margin: 0 0 18px;
  padding: 6px 12px;
  background: rgba(72,189,187,.12);
  border: 1px solid rgba(72,189,187,.35);
  border-radius: 999px;
}
.slide-copy h1 {
  font-size: 48px; line-height: 1.1; margin: 0 0 18px;
  font-weight: 800; letter-spacing: -0.5px;
}
.lead {
  font-size: 17px; color: #c8d2dd; max-width: 520px; margin: 0 0 28px;
}
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 600; font-size: 14px; letter-spacing: .5px;
  transition: all .2s;
  box-shadow: 0 6px 20px rgba(72,189,187,.35);
}
.btn:hover { background: var(--teal-dark); transform: translateY(-2px); }
.slide-art {
  display: grid; place-items: center;
}
.slide-art img {
  max-height: 420px; max-width: 100%;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.4));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff; font-size: 28px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .2s;
  z-index: 5;
}
.carousel-arrow:hover { background: rgba(255,255,255,.22); }
.carousel-arrow.prev { left: 24px; }
.carousel-arrow.next { right: 24px; }

.carousel-dots {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none; cursor: pointer;
  transition: all .2s;
}
.dot.active { background: var(--teal); width: 28px; border-radius: 5px; }

/* ---------------- services ---------------- */
.services {
  padding: 90px 0 70px;
  background: var(--soft);
}
.section-eyebrow {
  color: var(--teal);
  letter-spacing: 4px; font-weight: 700; font-size: 12px;
  margin: 0 0 12px;
}
.section-eyebrow.center { text-align: center; }
.section-title {
  font-size: 36px; font-weight: 800; letter-spacing: -.5px;
  margin: 0 0 50px; max-width: 720px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 26px;
  transition: all .25s ease;
  display: block;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--teal);
  box-shadow: 0 20px 40px rgba(15,23,36,.08);
}
.service-icon {
  font-size: 36px; margin-bottom: 16px;
}
.service-card h3 {
  margin: 0 0 10px; font-size: 19px; font-weight: 700;
}
.service-card p {
  margin: 0; color: var(--muted); font-size: 14.5px;
}

/* ---------------- partners ---------------- */
.partners {
  padding: 50px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.partner-row {
  display: flex; justify-content: space-around; align-items: center;
  flex-wrap: wrap; gap: 20px;
  margin-top: 18px;
}
.partner-row span {
  font-weight: 700; font-size: 18px; color: #94a3b8;
  letter-spacing: 1px;
  opacity: .75;
}

/* ---------------- footer ---------------- */
.footer {
  background: #0f1724;
  color: #cbd5e1;
  padding: 60px 0 20px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1e293b;
}
.footer-logo {
  height: 44px; margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.footer-tag { color: #94a3b8; line-height: 1.6; }
.footer h4 {
  color: #fff; font-size: 15px; margin: 0 0 18px;
  letter-spacing: 1px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #cbd5e1; transition: color .15s; }
.footer-links a:hover { color: var(--teal); }
.footer-copy {
  padding-top: 20px;
  font-size: 12.5px; color: #64748b;
  text-align: center;
}

/* ---------------- chat widget ---------------- */
.chat-launcher {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(72,189,187,.45), 0 4px 12px rgba(0,0,0,.15);
  z-index: 9998;
  display: grid; place-items: center;
  transition: transform .2s;
}
.chat-launcher:hover { transform: scale(1.06); }
.chat-launcher svg { width: 28px; height: 28px; }
.chat-launcher .badge {
  position: absolute; top: -4px; right: -4px;
  width: 20px; height: 20px;
  background: #ef4444; color: #fff;
  border-radius: 50%; font-size: 11px;
  display: grid; place-items: center;
  border: 2px solid #fff; font-weight: 700;
}

.chat-panel {
  position: fixed; bottom: 100px; right: 24px;
  width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(15,23,36,.25), 0 10px 20px rgba(0,0,0,.1);
  display: none; flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  font-family: inherit;
}
.chat-panel.open { display: flex; animation: chatIn .25s ease; }
@keyframes chatIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-header {
  background: linear-gradient(135deg, var(--teal) 0%, #36a8a6 100%);
  color: #fff;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px;
  position: relative;
}
.chat-avatar::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 10px; height: 10px; background: #10b981;
  border: 2px solid #fff; border-radius: 50%;
}
.chat-title { flex: 1; }
.chat-title strong { display: block; font-size: 15px; }
.chat-title small { font-size: 12px; opacity: .85; }
.chat-close {
  background: transparent; border: none; color: #fff;
  font-size: 22px; cursor: pointer; line-height: 1;
  padding: 4px 8px; border-radius: 4px;
  transition: background .15s;
}
.chat-close:hover { background: rgba(255,255,255,.15); }

.chat-body {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  background: #f7f9fb;
  display: flex; flex-direction: column; gap: 10px;
}
.msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  word-wrap: break-word;
  animation: msgIn .2s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg.bot {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.msg.bot p { margin: 0 0 8px; }
.msg.bot p:last-child { margin-bottom: 0; }
.msg.bot strong { font-weight: 700; color: #0f1724; }
.msg.bot ul, .msg.bot ol { margin: 6px 0; padding-left: 20px; }
.msg.bot li { margin: 3px 0; line-height: 1.5; }
.msg.bot li > strong:first-child { color: var(--teal-dark); }
.msg.user {
  align-self: flex-end;
  background: var(--teal);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg.typing {
  background: #fff; border: 1px solid var(--line);
  align-self: flex-start;
  display: inline-flex; gap: 4px; padding: 14px;
}
.msg.typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #94a3b8;
  animation: blink 1.2s infinite;
}
.msg.typing span:nth-child(2) { animation-delay: .15s; }
.msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink {
  0%, 60%, 100% { opacity: .3; }
  30% { opacity: 1; }
}

.chat-quick {
  padding: 0 18px 6px;
  background: #f7f9fb;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.chat-quick button {
  background: #fff;
  border: 1px solid var(--teal);
  color: var(--teal);
  padding: 7px 12px;
  border-radius: 16px;
  font-size: 12.5px; cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.chat-quick button:hover { background: var(--teal); color: #fff; }

.chat-input {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px;
  display: flex; gap: 8px; align-items: center;
}
.chat-input input {
  flex: 1; border: none; outline: none;
  padding: 10px 12px; font-size: 14px;
  font-family: inherit;
  background: #f1f5f9; border-radius: 20px;
}
.chat-input input:focus { background: #e8eef4; }
.chat-input button {
  width: 38px; height: 38px;
  background: var(--teal); color: #fff;
  border: none; border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s;
}
.chat-input button:hover { background: var(--teal-dark); }
.chat-input button:disabled { background: #cbd5e1; cursor: not-allowed; }

.chat-footer {
  padding: 6px 12px 8px;
  background: #fff;
  text-align: center;
  font-size: 10.5px; color: #94a3b8;
  border-top: 1px solid var(--line);
}
.chat-footer strong { color: var(--teal); }

/* ---------------- responsive ---------------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .slide-inner { grid-template-columns: 1fr; text-align: center; }
  .slide-copy h1 { font-size: 32px; }
  .slide-art img { max-height: 260px; }
  .hero { height: auto; min-height: 600px; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 28px; }
}
@media (max-width: 600px) {
  .topbar-contact span { display: block; margin: 2px 0; }
  .topbar-inner { flex-direction: column; gap: 6px; padding: 10px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .chat-panel { right: 12px; bottom: 92px; }
}
