/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --navy:       #0a1f44;
  --navy-mid:   #122454;
  --navy-light: #1a3568;
  --gold:       #c9a84c;
  --gold-light: #e0c06a;
  --gold-pale:  #f5e9c8;
  --white:      #ffffff;
  --gray-100:   #f7f8fa;
  --gray-200:   #e8eaf0;
  --gray-400:   #9aa0b0;
  --gray-700:   #3a4055;
  --text:       #1a1d2e;
  --shadow:     0 4px 24px rgba(10,31,68,0.12);
  --radius:     8px;
  --transition: 0.2s ease;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ─── Nav ────────────────────────────────────────────────────── */
.navbar {
  background: var(--navy);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}
.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
}
.logo-text span { color: var(--gold); }
.logo-sub {
  font-size: 0.65rem;
  color: var(--gold-pale);
  display: block;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-links .btn-login {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  padding: 8px 20px;
}
.nav-links .btn-login:hover { background: var(--gold-light); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 90px 5% 80px;
  display: flex;
  align-items: center;
  gap: 60px;
  min-height: 520px;
}
.hero-content { max-width: 580px; }
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.18);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid rgba(255,255,255,0.4);
  transition: var(--transition);
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.hero-visual {
  flex: 1;
  max-width: 360px;
  min-width: 280px;
}
.card-mock {
  background: linear-gradient(135deg, var(--navy-light), #2a4a8a);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(201,168,76,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.card-chip {
  width: 44px;
  height: 32px;
  background: linear-gradient(135deg, var(--gold), #b8912a);
  border-radius: 5px;
  margin-bottom: 28px;
}
.card-number {
  font-size: 1.1rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  font-family: monospace;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.card-name { font-size: 0.85rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }
.card-logo { font-size: 1.1rem; font-weight: 800; color: var(--gold); }

/* ─── Stats bar ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--navy);
  padding: 24px 5%;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(201,168,76,0.2);
}
.stat { text-align: center; }
.stat-number { font-size: 1.7rem; font-weight: 800; color: var(--gold); }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ─── Section commons ────────────────────────────────────────── */
section { padding: 80px 5%; }
.section-label {
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}
.section-sub {
  color: var(--gray-400);
  max-width: 520px;
  font-size: 1rem;
}
.section-header { margin-bottom: 50px; }

/* ─── Features ───────────────────────────────────────────────── */
.features { background: var(--gray-100); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 26px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold-pale);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.feature-card p { font-size: 0.9rem; color: var(--gray-400); }

/* ─── Services ───────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.service-item {
  padding: 28px 20px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
}
.service-item:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
}
.service-item .icon { font-size: 2.2rem; margin-bottom: 12px; }
.service-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.service-item p { font-size: 0.82rem; color: var(--gray-400); }

/* ─── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 70px 5%;
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.72); margin-bottom: 32px; font-size: 1rem; }

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 50px 5% 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-top: 12px; max-width: 280px; }
footer h4 { color: var(--white); font-size: 0.9rem; font-weight: 600; margin-bottom: 14px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul li a { font-size: 0.86rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
footer ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-bottom .badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  background: rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.55);
}

/* ─── Support page ────────────────────────────────────────────── */
.support-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 60px 5%;
  text-align: center;
}
.support-hero h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.support-hero p { color: rgba(255,255,255,0.75); font-size: 1rem; }
.support-grid {
  padding: 60px 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.support-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}
.support-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.support-card .icon { font-size: 2.4rem; margin-bottom: 14px; }
.support-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.support-card p { font-size: 0.86rem; color: var(--gray-400); margin-bottom: 16px; }
.support-card a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 1px;
}

/* ─── Chat Widget ────────────────────────────────────────────── */
#chat-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(10,31,68,0.35);
  z-index: 999;
  border: 2.5px solid var(--gold);
  transition: var(--transition);
}
#chat-toggle:hover { background: var(--navy-light); transform: scale(1.06); }
#chat-toggle svg { width: 26px; height: 26px; fill: var(--white); }
#chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: #e53e3e;
  border-radius: 50%;
  border: 2px solid white;
}

#chat-window {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 360px;
  height: 520px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 16px 60px rgba(10,31,68,0.25);
  display: flex;
  flex-direction: column;
  z-index: 998;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
#chat-window.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.chat-header {
  background: var(--navy);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--navy);
  flex-shrink: 0;
}
.chat-header-info { flex: 1; }
.chat-header-name { color: var(--white); font-weight: 700; font-size: 0.92rem; }
.chat-status { color: #68d391; font-size: 0.74rem; display: flex; align-items: center; gap: 4px; }
.status-dot { width: 7px; height: 7px; background: #68d391; border-radius: 50%; }
#chat-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 2px 6px;
  transition: var(--transition);
}
#chat-close:hover { color: var(--white); }

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f9fafb;
}
#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }

.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg.bot {
  background: var(--white);
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border: 1px solid var(--gray-200);
}
.msg.user {
  background: var(--navy);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.msg-time {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-top: 4px;
  text-align: right;
}
.msg.bot + .msg-time { text-align: left; }

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border: 1px solid var(--gray-200);
}
.typing-indicator span {
  width: 8px;
  height: 8px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

.chat-input-area {
  padding: 12px 14px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 8px;
  background: var(--white);
}
#chat-input {
  flex: 1;
  border: 1.5px solid var(--gray-200);
  border-radius: 24px;
  padding: 9px 16px;
  font-size: 0.875rem;
  outline: none;
  resize: none;
  font-family: inherit;
  line-height: 1.4;
  max-height: 80px;
  transition: border-color var(--transition);
}
#chat-input:focus { border-color: var(--navy); }
#chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-end;
  transition: var(--transition);
}
#chat-send:hover { background: var(--navy-light); }
#chat-send svg { width: 17px; height: 17px; fill: white; }
.chat-disclaimer { font-size: 0.7rem; color: var(--gray-400); text-align: center; padding: 0 14px 10px; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { flex-direction: column; padding: 50px 5%; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  #chat-window { width: calc(100vw - 24px); right: 12px; bottom: 90px; }
  .stats-bar { gap: 30px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
