*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Inter",sans-serif;background:var(--page-bg);color:var(--text)}
a{text-decoration:none;color:inherit}
a.brand{color:inherit}
img{max-width:100%;display:block}
.container{width:min(1280px, calc(100% - 40px));margin:0 auto}

#site-header{
  position:sticky;top:0;z-index:300;
  background:var(--header-bg);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--header-border);
}

.nav{
  min-height:86px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}

.brand{display:flex;align-items:center;gap:14px;min-width:0}
.brand-text{min-width:0}
.brand-logo{height:56px;width:auto;object-fit:contain}
.brand-fallback{
  display:none;width:46px;height:46px;border-radius:12px;
  align-items:center;justify-content:center;font-weight:900;
  background:linear-gradient(135deg,var(--blue),var(--blue-dark));color:var(--on-dark);
}
.brand-title{font-size:1.05rem;font-weight:900;letter-spacing:0.16em;line-height:1;color:var(--ink)}
.brand-sub{margin-top:6px;font-size:0.72rem;text-transform:uppercase;letter-spacing:0.2em;color:var(--muted);font-weight:700}

.nav-links{display:flex;align-items:center;gap:24px;font-size:0.95rem;font-weight:600;color:var(--muted)}
.nav-links a:hover{color:var(--blue)}
.nav-actions{display:flex;align-items:center;gap:12px}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:13px 20px;border-radius:14px;font-weight:700;
  transition:.2s ease;border:1px solid transparent;cursor:pointer;font:inherit;
}
.btn-primary{
  background:linear-gradient(135deg,var(--blue),var(--blue-dark));
  color:var(--on-dark);box-shadow:0 14px 30px rgba(63,73,227,0.22);
}
.btn-primary:hover{transform:translateY(-1px)}
.btn-secondary{
  background:var(--btn-secondary-bg);border-color:var(--btn-secondary-border);color:var(--blue);
}
.btn-secondary:hover{background:var(--btn-secondary-hover)}
.btn-login{
  background:var(--btn-login-bg);border:1px solid var(--btn-login-border);color:var(--text);padding:13px 18px;
}
.theme-toggle{min-width:44px;padding-left:12px;padding-right:12px}
.btn-small{padding:10px 14px;border-radius:12px;font-size:.9rem}
.btn-block{width:100%}

.nav-solutions{
  position:relative;
  display:flex;
  align-items:center;
  gap:4px;
}
/* Hit-target bridge between the label and the panel (no visible layout shift). */
.nav-solutions::after{
  content:'';
  position:absolute;
  top:100%;
  left:0;
  right:0;
  height:22px;
  z-index:399;
}
.solutions-link-main{
  font-weight:600;
  color:var(--muted);
}
.solutions-link-main:hover{color:var(--blue)}
.solutions-caret{
  color:var(--muted);
  font-size:0.75rem;
  line-height:1;
  user-select:none;
  pointer-events:none;
}
.solutions-dropdown{
  position:absolute;
  top:calc(100% + 22px);
  left:50%;
  transform:translateX(-50%);
  min-width:min(320px, 88vw);
  padding:8px 0;
  background:var(--mega-bg);
  border:1px solid var(--mega-border);
  border-radius:16px;
  box-shadow:var(--mega-shadow);
  display:none;
  z-index:400;
}
/* Invisible wedge above the panel (still inside the dropdown box) so diagonal
   moves from the trigger don’t leave the hover target. */
.solutions-dropdown::before{
  content:'';
  position:absolute;
  bottom:100%;
  left:50%;
  transform:translateX(-50%);
  width:min(320px, 96vw);
  height:20px;
}
.solutions-dropdown a{
  display:block;
  padding:12px 18px;
  color:var(--muted);
  font-size:0.92rem;
  font-weight:600;
  white-space:normal;
}
.solutions-dropdown a:hover{
  color:var(--blue);
  background:rgba(63,73,227,0.06);
}
html.theme-dark .solutions-dropdown a:hover{background:rgba(129,140,248,0.12)}
/* Placeholder rows (pages not ready yet): same layout as links, not clickable */
.solutions-dropdown .solutions-dropdown-item--pending{
  display:block;
  padding:12px 18px;
  color:var(--muted);
  font-size:0.92rem;
  font-weight:600;
  white-space:normal;
  opacity:0.72;
  cursor:default;
}
.nav-solutions:hover .solutions-dropdown,
.nav-solutions.solutions-hover .solutions-dropdown,
.nav-solutions:focus-within .solutions-dropdown,
.nav-solutions.open .solutions-dropdown{
  display:block;
}

footer,#site-footer{
  margin-top:18px;
  padding:0;
  background:transparent;
  width:100%;
  box-sizing:border-box;
}
.footer-upper{
  background:#ffffff;
  color:#182033;
  border-top:1px solid var(--line);
  padding:22px 0 36px;
  width:100%;
  box-sizing:border-box;
}
.footer-upper-inner{
  width:100%;
  max-width:none;
  margin:0;
  padding:0 8px;
  box-sizing:border-box;
}
/* Desktop: equal-width grid fills the band; gaps space columns across full width */
@media (min-width:901px){
  .footer-upper-inner{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    column-gap:clamp(10px,2vw,20px);
    row-gap:0;
    align-items:start;
    width:100%;
    max-width:none;
    padding:0 clamp(8px,2vw,20px);
    box-sizing:border-box;
  }
  .footer-upper-inner > .footer-col--about,
  .footer-upper-inner > nav.footer-col,
  .footer-upper-inner > .footer-col--contact{
    min-width:0;
  }
  /* Column 1: tighter copy so the cell can stay narrow */
  .footer-upper-inner > .footer-col--about .footer-about-brand{
    font-size:0.82rem;
    letter-spacing:0.1em;
    margin-bottom:4px;
  }
  .footer-upper-inner > .footer-col--about .footer-about-tagline{
    font-size:0.55rem;
    letter-spacing:0.14em;
    margin-bottom:10px;
    line-height:1.35;
  }
  .footer-upper-inner > .footer-col--about .footer-about-lead{font-size:0.72rem;margin-bottom:6px}
  .footer-upper-inner > .footer-col--about .footer-about-text{
    font-size:0.68rem;
    line-height:1.45;
    max-width:100%;
  }
  /* Columns 2–4: smaller link text + wrap long lines */
  .footer-upper-inner > nav.footer-col .footer-col-heading{
    font-size:0.65rem;
    margin-bottom:10px;
    letter-spacing:0.08em;
  }
  .footer-upper-inner > nav.footer-col .footer-link-list{gap:6px}
  .footer-upper-inner > nav.footer-col .footer-link-list a{
    font-size:0.7rem;
    line-height:1.3;
    word-break:break-word;
    overflow-wrap:anywhere;
  }
  .footer-col--contact .footer-contact-list{gap:10px}
  .footer-col--contact .footer-contact-body--inline{
    font-size:0.72rem;
    line-height:1.3;
    gap:3px 6px;
  }
  .footer-col--contact .footer-contact-icon{width:16px;height:16px;margin-top:0}
  .footer-col--contact .footer-contact-icon svg{width:16px;height:16px}
}
.footer-col{min-width:0}
.footer-col--contact{min-width:0}
.footer-col--about{
  text-align:center;
  padding:0 4px;
}
.footer-about-brand{
  font-size:1.05rem;font-weight:900;letter-spacing:0.16em;line-height:1;color:#0d1220;margin:0 0 6px;
}
.footer-about-tagline{
  font-size:0.68rem;font-weight:700;text-transform:uppercase;letter-spacing:0.18em;line-height:1.45;color:#5f6b85;margin:0 0 18px;
}
.footer-about-lead{margin:0 0 8px;font-size:0.88rem;line-height:1.5;color:#182033}
.footer-about-text{
  margin:0 auto;font-size:0.82rem;line-height:1.6;color:#5f6b85;max-width:18em;
}
.footer-col-heading{
  margin:0 0 14px;font-size:0.78rem;font-weight:800;text-transform:uppercase;letter-spacing:0.12em;color:#0d1220;
}
.footer-link-list{
  list-style:none;margin:0;padding:0;
  display:flex;flex-direction:column;gap:8px;
}
.footer-link-list a{
  font-size:0.86rem;font-weight:500;color:#2432b8;text-decoration:underline;text-underline-offset:3px;
}
.footer-link-list a:hover{color:var(--blue)}
.footer-contact-list{
  list-style:none;margin:0;padding:0;
  display:flex;flex-direction:column;gap:18px;
}
.footer-contact-row{
  display:flex;align-items:flex-start;gap:10px;
}
.footer-contact-icon{
  flex-shrink:0;width:20px;height:20px;margin-top:1px;color:#3f49e3;
  display:flex;align-items:center;justify-content:center;
}
.footer-contact-icon svg{display:block;width:20px;height:20px}
.footer-contact-body{font-size:0.82rem;line-height:1.45;color:#182033;min-width:0}
.footer-contact-body--inline{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:4px 8px;
  flex:1;
  min-width:0;
  overflow-wrap:break-word;
}
.footer-contact-label{font-weight:800;color:#0d1220;margin:0}
.footer-contact-value{
  color:#2432b8;text-decoration:underline;text-underline-offset:3px;font-weight:500;
}
.footer-contact-value:hover{color:var(--blue)}
.footer-contact-sep{color:#5f6b85;font-weight:400;text-decoration:none}
.footer-contact-address{white-space:normal}
.footer-bottom{
  width:100%;
  background:var(--footer-bg);
  color:var(--footer-text);
  padding:14px 0;
}
.footer-bottom-inner{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  gap:12px 20px;
  align-items:center;
  width:100%;
  max-width:none;
  margin:0;
  padding:0 16px;
  font-size:0.88rem;
  line-height:1.5;
}
.footer-copy{
  text-align:left;
  justify-self:start;
  min-width:0;
}
.footer-policies{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 0;
  text-align:center;
  justify-self:center;
}
.footer-credit{
  text-align:right;
  justify-self:end;
  min-width:0;
}
.footer-credit a{color:var(--footer-text);text-decoration:underline;text-underline-offset:3px}
.footer-credit a:hover{color:#fff}
.footer-policy-link{
  background:none;border:0;padding:0;margin:0;
  font:inherit;font-size:inherit;color:var(--footer-text);
  cursor:pointer;text-decoration:underline;text-underline-offset:3px;
}
.footer-policy-link:hover{color:#fff}
.footer-policy-sep{
  color:var(--footer-text);opacity:0.45;
  padding:0 6px;user-select:none;
}

.back-to-top{
  position:fixed;
  bottom:max(14px, env(safe-area-inset-bottom, 0px));
  right:max(14px, env(safe-area-inset-right, 0px));
  z-index:450;
  width:48px;height:48px;
  border-radius:50%;
  border:1px solid var(--border-card);
  background:var(--surface-card);
  color:var(--blue);
  box-shadow:var(--shadow);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.35rem;
  line-height:1;
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity .25s ease, visibility .25s ease, transform .25s ease, background .2s ease;
}
.back-to-top:hover{
  background:var(--btn-secondary-hover);
  color:var(--blue-dark);
}
.back-to-top.is-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.policy-modal{
  position:fixed;inset:0;z-index:10000;
  display:flex;align-items:center;justify-content:center;
  padding:24px;
  opacity:0;visibility:hidden;
  transition:opacity .2s ease, visibility .2s ease;
}
.policy-modal.is-open{
  opacity:1;visibility:visible;
}
.policy-modal__backdrop{
  position:absolute;inset:0;
  background:rgba(10,14,22,0.55);
  backdrop-filter:blur(4px);
  cursor:pointer;
}
.policy-modal__panel{
  position:relative;
  z-index:1;
  width:min(640px, 100%);
  max-height:min(80vh, 720px);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background:var(--surface-card);
  color:var(--text);
  border:1px solid var(--border-card);
  border-radius:20px;
  box-shadow:var(--mega-shadow);
}
.policy-modal__head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  padding:20px 22px 12px;
  border-bottom:1px solid var(--border-field);
  flex-shrink:0;
}
.policy-modal__head h2{
  margin:0;font-size:1.2rem;line-height:1.25;color:var(--ink);
}
.policy-modal__close{
  flex-shrink:0;
  width:40px;height:40px;
  border:0;border-radius:12px;
  background:var(--btn-secondary-bg);
  color:var(--text);
  font-size:1.5rem;line-height:1;
  cursor:pointer;
  display:grid;place-items:center;
}
.policy-modal__close:hover{background:var(--btn-secondary-hover)}
.policy-modal__body{
  padding:16px 22px 24px;
  overflow-y:auto;
  font-size:0.94rem;line-height:1.65;color:var(--muted);
}
.policy-modal__body h3{
  margin:1.1em 0 0.4em;font-size:0.95rem;color:var(--ink);
}
.policy-modal__body h3:first-child{margin-top:0}
.policy-modal__body p{margin:0 0 0.85em}
html.theme-dark .footer-credit a:hover,
html.theme-dark .footer-policy-link:hover{color:var(--blue-2, #cfd4ff)}
html.theme-dark .footer-upper .footer-link-list a:hover,
html.theme-dark .footer-upper .footer-contact-value:hover{color:var(--blue)}

@media (max-width:1100px){
  .solutions-dropdown{
    left:auto;
    right:0;
    transform:none;
  }
  .solutions-dropdown::before{
    left:0;
    right:0;
    transform:none;
    width:auto;
  }
}
/* Footer stacks to 2 cols only below this — keeps 5 columns on typical laptop widths */
@media (max-width:900px){
  .footer-upper-inner{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:28px 24px;
    padding:0 16px;
    border-spacing:0;
  }
  .footer-upper-inner > .footer-col--about,
  .footer-upper-inner > nav.footer-col,
  .footer-upper-inner > .footer-col--contact{
    display:block;
    width:auto !important;
    max-width:none;
  }
  .footer-col--about{grid-column:1/-1}
}
@media (max-width:860px){
  .nav-links{display:none}
}
@media (max-width:700px){
  .container{width:min(1280px,calc(100% - 28px))}
  .brand-logo{height:42px}
  .nav-actions .btn-login,
  .nav-actions .btn-primary{display:none}
  .footer-bottom-inner{
    grid-template-columns:1fr;
    padding:0 14px;
    gap:14px;
  }
  .footer-copy,.footer-credit{
    text-align:center;
    justify-self:center;
  }
  .footer-policies{justify-content:center}
  .back-to-top{bottom:max(12px, env(safe-area-inset-bottom, 0px));right:max(12px, env(safe-area-inset-right, 0px));width:44px;height:44px}
  .footer-upper{padding:20px 0 28px}
  .footer-upper-inner{
    display:grid;
    grid-template-columns:1fr;
    padding:0 14px;
    gap:26px;
  }
  .footer-upper-inner > .footer-col--about,
  .footer-upper-inner > nav.footer-col,
  .footer-upper-inner > .footer-col--contact{
    display:block;
    width:auto !important;
    max-width:none;
  }
  .footer-col--about{grid-column:auto}
}
