/* ===== reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; color: #1a1b21; background: #faf8ff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none !important; color: inherit; }

/* ===== design tokens ===== */
:root {
  --deep-navy: #000D29;
  --electric-blue: #0058F7;
  --cyan: #00BCFE;
  --aqua-green: #01C3AB;
  --signal-yellow: #FDC702;
  --alert-red: #E53935;
  --bg: #faf8ff;
  --surface-low: #eff5f6;
  --on-bg: #1a1b21;
  --on-surface: #171d1e;
  --on-surface-variant: #42474e;
  --outline: #73777f;
  --outline-variant: #c2c7cf;
  --inverse-surface: #ecf2f3;
  --surface-variant: #dfe3eb;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;
}

/* ===== layout container ===== */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(24px, 4vw, 64px); }

/* ===== primary button ===== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  padding: 12px 32px; background: var(--electric-blue); color: #fff !important;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; line-height: 20px;
  border-radius: 8px; border: none; cursor: pointer; white-space: nowrap;
  position: relative; overflow: hidden;
  transition: background .25s, transform .2s, box-shadow .25s;
}
.btn-primary svg { fill: #fff !important; stroke: #fff !important; }
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.25), transparent);
  transition: left .6s;
}
.btn-primary:hover { background: #0047d4; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,88,247,.3); }
.btn-primary:hover::before { left: 100%; }
.btn-primary:active { transform: translateY(0); }

/* ===== TOP BAR ===== */
.topbar { background: var(--electric-blue); height: 44px; display: flex; align-items: center; }
.topbar__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 clamp(24px, 4vw, 64px); width: 100%;
  display: flex; align-items: center; gap: 16px;
}
.topbar__icon {
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  color: #fff !important; opacity: .9; transition: opacity .2s, transform .2s; cursor: pointer;
}
.topbar__icon svg { fill: #fff !important; }
.topbar__icon:hover { opacity: 1; transform: translateY(-2px); }

/* ===== HEADER GROUP (sticky, hide on scroll) ===== */
.header-group { position: sticky; top: 0; z-index: 100; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.header-group--hidden { transform: translateY(-100%); }
.header {
  position: relative; z-index: 100;
  background: rgba(250,248,255,.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(194,199,207,.3);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.header__inner {
  max-width: 1280px; margin: 0 auto; padding: 16px clamp(24px, 4vw, 64px);
  display: flex; align-items: center; justify-content: space-between;
}
.header__left { display: flex; align-items: center; gap: 64px; }
.header__logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px; color: var(--on-bg); letter-spacing: -0.25px; }
.header__nav { display: flex; align-items: center; gap: 40px; }
.header__nav a {
  font-size: 16px; line-height: 20px; color: var(--on-bg);
  transition: color .2s; position: relative; white-space: nowrap;
}
.header__nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--electric-blue); transition: width .3s cubic-bezier(.16,1,.3,1);
}
.header__nav a:hover { color: var(--electric-blue); }
.header__nav a:hover::after { width: 100%; }

/* ===== NAV DROPDOWNS (Modules, Industries) ===== */
.header__dd { position: relative; display: flex; align-items: center; }
.header__dd-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-size: 16px; line-height: 20px; color: var(--on-bg);
  background: none; border: none; padding: 0; cursor: pointer; white-space: nowrap;
  transition: color .2s;
}
.header__dd-toggle:hover { color: var(--electric-blue); }
.header__dd-toggle svg { width: 14px; height: 14px; transition: transform .25s; }
.header__dd.open .header__dd-toggle { color: var(--electric-blue); }
.header__dd.open .header__dd-toggle svg { transform: rotate(180deg); }
.header__dd-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 248px; background: #fff; border: 1px solid var(--outline-variant);
  border-radius: var(--radius-m); padding: 8px;
  box-shadow: 0 20px 48px -20px rgba(10,19,48,.35);
  opacity: 0; visibility: hidden;
  transition: opacity .22s cubic-bezier(.16,1,.3,1), transform .22s cubic-bezier(.16,1,.3,1), visibility .22s;
  z-index: 200;
}
.header__dd.open .header__dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.header__dd-menu a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 15px; line-height: 20px; color: var(--on-surface);
  white-space: nowrap; transition: background .18s, color .18s;
}
.header__dd-menu a::after { display: none; }
.header__dd-menu a:hover { background: var(--surface-low); color: var(--electric-blue); }

/* ===== FOOTER ===== */
.footer { background: var(--surface-low); border-top: 1px solid var(--outline-variant); padding: 64px 0 32px; }
.footer__top { display: flex; justify-content: space-between; margin-bottom: 48px; }
.footer__brand { width: 340px; }
.footer__brand-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 32px; line-height: 24px; letter-spacing: -0.25px; color: var(--on-bg); margin-bottom: 20px; }
.footer__brand-desc { font-size: 14px; line-height: 20px; color: var(--on-surface-variant); margin-bottom: 20px; }
.footer__social { display: flex; gap: 12px; }
.footer__social-icon {
  width: 36px; height: 36px; border-radius: 50%; background: var(--outline-variant);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s; cursor: pointer; color: #fff !important;
}
.footer__social-icon svg { fill: #fff !important; }
.footer__social-icon:hover { background: var(--electric-blue); transform: translateY(-2px); }
.footer__columns { display: flex; gap: 56px; }
.footer__col-title { font-weight: 600; font-size: 14px; line-height: 20px; color: var(--on-surface); margin-bottom: 12px; }
.footer__col-link { display: block; font-size: 14px; line-height: 20px; color: var(--on-surface-variant); margin-bottom: 12px; transition: color .2s; }
.footer__col-link:hover { color: var(--electric-blue); }
.footer__divider { height: 1px; background: var(--outline-variant); margin-bottom: 32px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; font-size: 13px; line-height: 18px; color: var(--on-surface-variant); }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { transition: color .2s; }
.footer__legal a:hover { color: var(--electric-blue); }

/* ===== responsive ===== */
@media (max-width: 1024px) {
  .header__nav { gap: 20px; }
  .footer__top { flex-direction: column; gap: 48px; }
}
@media (max-width: 768px) {
  .header__left { gap: 24px; }
  .header__nav { display: none; }
  .footer__columns { flex-wrap: wrap; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}