/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  color: #1b1e22;
  background: #fff;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── Navbar ─── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s;
}
.nav-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 92px;
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.nav-left { display: flex; align-items: center; gap: 48px; }
.nav-logo { position: relative; display: block; width: 112px; height: 32px; }
.nav-logo img { position: absolute; top: 0; left: 0; height: 32px; width: 112px; object-fit: contain; transition: opacity 0.25s; }
.nav-logo .logo-color { opacity: 0; }
#navbar.scrolled .nav-logo .logo-white { opacity: 0; }
#navbar.scrolled .nav-logo .logo-color { opacity: 1; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 16px; font-weight: 500; color: #fff;
  cursor: pointer; white-space: nowrap;
}
.nav-item svg { flex-shrink: 0; }

/* ─── Mobile nav ─── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block; height: 2px; border-radius: 2px;
  background: #fff; transition: transform 0.2s, opacity 0.2s;
}
#navbar.scrolled .nav-hamburger span { background: #1b1e22; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 99;
  flex-direction: column;
  padding: 16px 24px 32px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-nav-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  font-size: 17px; font-weight: 500; color: #1b1e22;
  border-bottom: 1px solid #f0f2f4;
  cursor: pointer;
}
.mobile-nav-item svg { opacity: 0.4; transition: transform 0.2s; }
.mobile-nav-item.open svg { transform: rotate(180deg); }
.mobile-submenu {
  display: none;
  flex-direction: column; gap: 4px;
  padding: 8px 0 12px 0;
}
.mobile-submenu.open { display: flex; }
.mobile-sub-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.mobile-sub-item:hover { background: #f4f6f8; }
.mobile-sub-icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 7px;
  background: #eff4ff;
  display: flex; align-items: center; justify-content: center;
}
.mobile-sub-title { font-size: 15px; font-weight: 500; color: #1b1e22; }
.mobile-sub-desc { font-size: 13px; color: #7a8694; margin-top: 1px; }
.mobile-sub-text { display: flex; flex-direction: column; }
.mobile-menu-bottom {
  margin-top: auto; padding-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.btn-demo-mobile {
  display: flex; align-items: center; justify-content: center;
  padding: 13px 20px; border-radius: 10px;
  background: #1058f5; color: #fff;
  font-size: 16px; font-weight: 500; border: none; cursor: pointer;
}
.btn-signin-mobile {
  display: flex; align-items: center; justify-content: center;
  padding: 13px 20px; border-radius: 10px;
  background: #f4f6f8; color: #1b1e22;
  font-size: 16px; font-weight: 500; border: none; cursor: pointer;
}

/* ─── Dropdown ─── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown .nav-item svg {
  transition: transform 0.2s ease;
}
.nav-dropdown.open .nav-item svg {
  transform: rotate(180deg);
}
.dropdown-panel {
  position: absolute;
  top: calc(100% + 28px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 280px;
  z-index: 200;
}
.nav-dropdown.open .dropdown-panel {
  display: flex;
}
.dropdown-item {
  display: flex; flex-direction: row; align-items: flex-start; gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.dropdown-item:hover { background: #f4f6f8; }
.dropdown-item-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #eff4ff;
  display: flex; align-items: center; justify-content: center;
}
.dropdown-item-text { display: flex; flex-direction: column; }
.dropdown-item-title {
  font-size: 15px; font-weight: 500;
  color: #1b1e22; line-height: 1.4;
}
.dropdown-item-desc {
  font-size: 13px; font-weight: 400;
  color: #7a8694; line-height: 1.4;
  margin-top: 2px;
}
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-signin { font-size: 16px; font-weight: 500; color: #fff; cursor: pointer; }
.btn-demo {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px;
  border: none; border-radius: 10px;
  background: linear-gradient(180deg, #353535 0%, #171717 100%);
  box-shadow: inset 0 0 0 1px #000;
  font-size: 16px; font-weight: 500; color: #fff;
  line-height: 20px; cursor: pointer; white-space: nowrap;
  transition: filter 0.15s ease, background 0.25s;
}
.btn-demo:hover {
  filter: brightness(1.25);
  box-shadow: inset 0 0 0 1px #000;
}

/* ─── Navbar scrolled state ─── */
#navbar {
  transition: background 0.25s;
}
#navbar .nav-item,
#navbar .nav-signin {
  transition: color 0.25s;
}
#navbar .nav-item svg path {
  transition: stroke 0.25s;
}
#navbar .nav-row {
  transition: border-color 0.25s;
}
#navbar.scrolled {
  background: #fff;
}
#navbar.scrolled .nav-item,
#navbar.scrolled .nav-signin {
  color: #1b1e22;
}
#navbar.scrolled .nav-item svg path {
  stroke: rgba(27, 30, 34, 0.5);
}
#navbar.scrolled .nav-row {
  border-bottom-color: rgba(27, 30, 34, 0.1);
}
#navbar.scrolled .btn-demo {
  background: #1058f5;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}
#navbar.scrolled .btn-demo:hover {
  filter: brightness(1.1);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

/* ─── Demo modal ─── */
.demo-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.48); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 24px;
}
.demo-overlay.open { display: flex; }
.demo-modal {
  background: #fff; border-radius: 16px;
  width: 100%; max-width: 560px; max-height: 90vh;
  overflow-y: auto; padding: 40px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}
.demo-close {
  position: absolute; top: 20px; right: 20px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #f4f6f8; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #5a6572; transition: background 0.15s;
}
.demo-close:hover { background: #e5e9ed; }
.demo-modal h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px; font-weight: 800; color: #1b1e22;
  letter-spacing: -0.3px; margin-bottom: 6px;
}
.demo-modal > p {
  font-size: 15px; color: #5a6572; margin-bottom: 28px;
}
.demo-form { display: flex; flex-direction: column; gap: 16px; }
.demo-row { display: flex; gap: 12px; }
.demo-field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.demo-field label { font-size: 13px; font-weight: 500; color: #374151; }
.demo-field input,
.demo-field textarea {
  padding: 10px 14px; border-radius: 8px;
  border: 1px solid #d8dee4; font-size: 15px; font-family: 'Inter', sans-serif;
  color: #1b1e22; outline: none; transition: border-color 0.15s;
  background: #fff;
}
.demo-field input:focus,
.demo-field textarea:focus { border-color: #1058f5; box-shadow: 0 0 0 3px rgba(16,88,245,0.1); }
.demo-field textarea { resize: vertical; min-height: 96px; }
.demo-optional { font-size: 12px; color: #9ca3af; font-weight: 400; }
.demo-consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: #5a6572; line-height: 1.5;
}
.demo-consent input[type="checkbox"] {
  flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px;
  accent-color: #1058f5; cursor: pointer;
}
.demo-consent a { color: #1058f5; text-decoration: none; }
.demo-consent a:hover { text-decoration: underline; }
.demo-submit {
  margin-top: 4px; padding: 13px 20px;
  background: #1058f5; color: #fff; border: none;
  border-radius: 10px; font-size: 16px; font-weight: 500;
  cursor: pointer; transition: background 0.15s;
  font-family: 'Inter', sans-serif;
}
.demo-submit:hover { background: #0a46d0; }
.demo-divider {
  height: 1px; background: #e5e9ed; margin: 28px 0 24px;
}
.demo-contact { display: flex; flex-direction: column; gap: 10px; }
.demo-contact-title { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 4px; }
.demo-contact-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #5a6572;
}
.demo-contact-item a { color: #1058f5; text-decoration: none; }
.demo-contact-item a:hover { text-decoration: underline; }
.demo-contact-icon {
  width: 28px; height: 28px; border-radius: 6px; background: #eff4ff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.demo-success {
  display: none; flex-direction: column; align-items: center;
  text-align: center; padding: 24px 0 8px; gap: 16px;
}
.demo-success.show { display: flex; }
.demo-success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: #ecfdf5;
  display: flex; align-items: center; justify-content: center;
}
.demo-success h3 { font-size: 20px; font-weight: 700; color: #1b1e22; }
.demo-success p { font-size: 15px; color: #5a6572; line-height: 1.6; max-width: 320px; }
.demo-error {
  display: none; font-size: 13px; color: #dc2626;
  padding: 10px 14px; background: #fef2f2; border-radius: 8px; margin-top: 4px;
}
.demo-error.show { display: block; }
.demo-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── Footer ─── */
#footer { background: #fff; }
.footer-section {
  max-width: 1440px; margin: 0 auto;
  padding: 56px 92px 0;
}
.footer-top {
  display: flex; gap: 40px; align-items: flex-start;
  padding-bottom: 24px;
}
.footer-brand { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.footer-logo img { height: 28px; object-fit: contain; }
.footer-tagline { font-size: 14px; line-height: 24px; color: #5a6572; }
.footer-cols { display: flex; gap: 4px; }
.footer-col { width: 202px; display: flex; flex-direction: column; gap: 16px; }
.footer-col-title {
  font-size: 12px; font-weight: 500; letter-spacing: 0.2px;
  text-transform: uppercase; color: #1b1e22;
  line-height: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link {
  font-size: 14px; line-height: 24px; color: #5a6572;
  display: flex; align-items: center; gap: 4px;
}
.footer-link:hover { color: #1b1e22; }
.footer-link img { width: 20px; height: 19px; object-fit: contain; }
.footer-nl { width: 242px; display: flex; flex-direction: column; gap: 8px; }
.footer-nl-title {
  font-size: 12px; font-weight: 500; letter-spacing: 0.2px;
  text-transform: uppercase; color: #1b1e22;
  margin-bottom: 8px;
}
.footer-input {
  background: #fff; border: 1px solid #d1d4dd;
  border-radius: 10px; padding: 12px 16px;
  font-family: 'Inter', sans-serif; font-size: 14px;
  color: #5a6572; outline: none; width: 100%;
  line-height: 24px;
}
.footer-input::placeholder { color: rgba(90,101,114,0.64); }
.btn-sub {
  padding: 10px 16px; border-radius: 10px;
  background: linear-gradient(180deg, #407cff 0%, #1158f2 100%);
  border: 2px solid #fff;
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 500;
  color: #fff; cursor: pointer; line-height: 20px;
}
.footer-note { font-size: 12px; line-height: 1.6; color: #5a6572; margin-top: 4px; }
.footer-note a { color: #5a6572; text-decoration: underline; }
.footer-nl-form { display: flex; flex-direction: column; gap: 4px; }
.footer-nl-form .btn-sub { width: 100%; }
.footer-nl-success { font-size: 14px; line-height: 1.6; color: #23803d; font-weight: 500; padding: 4px 0; }

.footer-bottom {
  border-top: 1px solid #cbd5e1;
  margin-top: 24px;
  padding-top: 24px; padding-bottom: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copyright { font-size: 14px; line-height: 24px; color: #5a6572; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 14px; line-height: 24px; color: #5a6572; }
.footer-legal a:hover { color: #1b1e22; }

/* ─── Cookie consent overrides ─── */
#cc-main {
  --cc-font-family: 'Inter', sans-serif;
  --cc-modal-border-radius: 16px;
  --cc-btn-border-radius: 10px;
  --cc-btn-primary-bg: #1058f5;
  --cc-btn-primary-hover-bg: #0a46d0;
  --cc-btn-secondary-bg: #f4f6f8;
  --cc-btn-secondary-color: #1b1e22;
  --cc-btn-secondary-hover-bg: #e5e9f0;
  --cc-toggle-on-bg: #1058f5;
}

/* ══════════════════════════════════════════
   RESPONSIVE (shared elements only)
══════════════════════════════════════════ */

@media (max-width: 1100px) {
  .nav-inner { padding: 0 48px; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 0 24px; }
  .nav-links, .btn-demo, .nav-signin { display: none; }
  .nav-row { height: 64px; }
  .nav-hamburger { display: flex; }
  .footer-section { padding: 40px 24px 16px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-cols { flex-direction: column; gap: 40px; }
  .footer-col { width: 100%; }
  .footer-nl { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .demo-modal { padding: 28px 20px; }
  .demo-row { flex-direction: column; gap: 16px; }
}
