:root,
[data-theme="light"] {
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.2vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.02rem + 0.55vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.45rem + 2.4vw, 3.75rem);
  --text-3xl: clamp(2.6rem, 1.65rem + 4vw, 5.6rem);
  --text-hero: clamp(1.75rem, 1rem + 2vw, 2.8rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --color-bg: #f5f4ef;
  --color-surface: #fbfaf7;
  --color-surface-2: #f0ede6;
  --color-primary: #0d4677;
  --color-primary-hover: #0a3a63;
  --color-primary-soft: #dbe7f3;
  --color-text: #181614;
  --color-text-muted: #66635d;
  --color-text-faint: #9d9992;
  --color-border: rgba(24, 22, 20, 0.12);
  --color-divider: #ddd8cf;
  --color-success: #0d4677;
  --color-card: #ffffff;
  --color-nav: rgba(255,255,255,0.82);
  --color-trust-bg: #0d4677;
  --color-inverse: #f9f8f4;

  --shadow-sm: 0 8px 22px rgba(9, 25, 40, 0.06);
  --shadow-md: 0 18px 40px rgba(9, 25, 40, 0.1);
  --shadow-lg: 0 28px 60px rgba(9, 25, 40, 0.15);

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 999px;

  --container: 1200px;
  --nav-height: 88px;
  --transition: 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --color-bg: #0d1116;
  --color-surface: #111a24;
  --color-surface-2: #162232;
  --color-primary: #5f95c7;
  --color-primary-hover: #7eadd8;
  --color-primary-soft: rgba(95,149,199,0.15);
  --color-text: #f1efe9;
  --color-text-muted: #c3c0ba;
  --color-text-faint: #8d9198;
  --color-border: rgba(255,255,255,0.12);
  --color-divider: rgba(255,255,255,0.08);
  --color-card: #101821;
  --color-nav: rgba(13,17,22,0.78);
  --color-trust-bg: #0d4677;
  --color-inverse: #f9f8f4;
  --shadow-sm: 0 8px 22px rgba(0,0,0,0.25);
  --shadow-md: 0 18px 40px rgba(0,0,0,0.35);
  --shadow-lg: 0 28px 60px rgba(0,0,0,0.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

.demo-banner {
  background: linear-gradient(to right, var(--color-primary), #16568d);
  color: #fff;
  text-align: center;
  padding-block: var(--space-2);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
  position: relative;
  z-index: 1002;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.96;
  color: var(--color-primary);
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
h3 { font-size: var(--text-xl); }

p { max-width: 68ch; color: var(--color-text-muted); }
.lead {
  font-size: var(--text-base);
  max-width: 38ch;
  opacity: 0.75;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  border: 1px solid transparent;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-secondary {
  border-color: var(--color-border);
  color: var(--color-text);
  background: transparent;
}
.btn-secondary:hover {
  background: var(--color-surface-2);
  border-color: rgba(13,70,119,0.24);
}

.section-head {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  max-width: 48rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .desktop-nav { display: flex; }
}

@media (max-width: 767px) {
  :root { --nav-height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Chatbot Toggle */
.chatbot-toggle {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(13, 70, 119, 0.3);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.chatbot-toggle:hover {
  transform: translateY(-5px) scale(1.02);
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(13, 70, 119, 0.4);
}

.chatbot-text {
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}

.chatbot-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse 2s infinite;
  pointer-events: none;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.8); opacity: 0; }
}

@media (max-width: 767px) {
  .chatbot-toggle {
    bottom: var(--space-4);
    right: var(--space-4);
    padding: var(--space-2) var(--space-4);
  }
}

/* Chatbot Window */
.chatbot-window {
  position: fixed;
  bottom: calc(var(--space-6) + 70px);
  right: var(--space-6);
  width: min(340px, calc(100vw - 2rem));
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-window.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chatbot-header {
  padding: var(--space-4);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px #4ade80;
}

.chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.chatbot-close:hover { opacity: 1; }

.chatbot-body {
  padding: var(--space-4);
  height: 280px;
  overflow-y: auto;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.chat-msg {
  background: #fff;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border-bottom-left-radius: 2px;
  max-width: 85%;
  box-shadow: var(--shadow-sm);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.chatbot-footer {
  padding: var(--space-3);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-2);
  background: var(--color-card);
}

.chatbot-footer input {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: var(--text-sm);
  outline: none;
}

.chatbot-footer input:focus { border-color: var(--color-primary); }

.chatbot-footer button {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-xs);
}

@media (max-width: 767px) {
  .chatbot-window {
    bottom: calc(var(--space-4) + 60px);
    right: var(--space-4);
  }
}


