*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1a3c6e;
  --navy-dark:   #122d54;
  --navy-mid:    #1e4882;
  --accent:      #3b6fd4;
  --accent-soft: #eef3fb;
  --gold:        #ef4847;
  --gold-dark:   #d63b3a;
  --gold-light:  #fef0f0;
  --green:       #1e7e34;
  --green-bg:    #e6f4ea;
  --red:         #e11d48;
  --surface:     #ffffff;
  --page-bg:     #f4f6f9;
  --border:      #dde2ea;
  --text:        #1a2332;
  --text-2:      #4a5568;
  --text-3:      #8a94a0;
  --font:        'DM Sans', sans-serif;
  --mono:        'DM Mono', monospace;
  --r:           10px;
  --r-lg:        16px;
  --sh:          0 4px 20px rgba(26,60,110,0.10);
  --sh-lg:       0 16px 48px rgba(26,60,110,0.16);
  --tr:          220ms cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-fast { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal-fast.visible { opacity: 1; transform: none; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(26,60,110,0.06);
}
.nav-inner { display: flex; align-items: center; height: 70px; gap: 0; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
  padding-right: 28px; border-right: 1px solid var(--border); margin-right: 4px;
}
.nav-logo-svg { height: 38px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 0; list-style: none; flex: 1; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  text-decoration: none; padding: 0 14px; height: 70px;
  transition: color var(--tr), background var(--tr);
  cursor: pointer; white-space: nowrap; border: none;
  background: transparent; font-family: var(--font);
}
.nav-link:hover { color: var(--navy); background: var(--page-bg); }
.nav-link svg { opacity: 0.4; transition: transform var(--tr), opacity var(--tr); flex-shrink: 0; }
.nav-item:hover .nav-link svg { opacity: 0.8; transform: rotate(180deg); }
.nav-item:hover .nav-link { color: var(--navy); background: var(--page-bg); }

.nav-dropdown {
  position: fixed; top: 60px; left: 0; right: 0;
  background: #fff; border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(26,60,110,0.14);
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 200ms ease; z-index: 300;
}
.nav-item:hover .nav-dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }

.mega-inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; display: grid; gap: 0; }
.mega-inner.cols-4 { grid-template-columns: 1fr 1fr 1fr 280px; }
.mega-inner.cols-3 { grid-template-columns: 1fr 1fr 360px; }
.mega-inner.cols-suite { grid-template-columns: 260px 1fr; padding: 0; }

/* Left rail */
.suite-rail {
  background: var(--page-bg);
  padding: 16px 0;
  border-right: 1px solid var(--border);
}
.suite-rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background var(--tr), border-color var(--tr);
}
.suite-rail-item:hover,
.suite-rail-item.is-active {
  background: var(--surface);
  border-left-color: var(--accent);
}
.suite-rail-item-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--accent-soft);
  border: 1px solid rgba(59,111,212,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.suite-rail-item.is-foundation .suite-rail-item-icon {
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
  border-color: var(--navy);
}
.suite-rail-item-text { flex: 1; min-width: 0; }
.suite-rail-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.suite-rail-item-badge {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 1.5px 5px;
  border-radius: 3px;
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid rgba(239,72,71,0.20);
  text-transform: uppercase;
}
.suite-rail-item-tagline {
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 2px;
  line-height: 1.3;
}
.suite-rail-item-chevron {
  color: var(--text-3);
  opacity: 0.4;
  transition: opacity var(--tr), transform var(--tr);
  flex-shrink: 0;
}
.suite-rail-item.is-active .suite-rail-item-chevron {
  color: var(--accent);
  opacity: 1;
  transform: translateX(2px);
}

/* Right panes */
.suite-panes {
  position: relative;
  padding: 32px 40px 28px;
  min-height: 420px;
}
.suite-pane { display: none; }
.suite-pane.is-visible { display: block; }
.suite-pane-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.suite-pane-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.6px;
}
.suite-pane-name-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 2.5px 7px;
  border-radius: 4px;
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid rgba(239,72,71,0.22);
  text-transform: uppercase;
  align-self: center;
}
.suite-pane-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 640px;
}
.suite-pane-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.suite-mod {
  padding: 10px 0;
  border-bottom: 1px solid #f4f6f9;
  text-decoration: none;
  display: block;
  transition: padding-left var(--tr);
}
.suite-mod:hover { padding-left: 4px; }
.suite-mod-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--tr);
}
.suite-mod:hover .suite-mod-name { color: var(--accent); }
.suite-mod-name-live::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #16a34a;
  display: inline-block;
}
.suite-mod-desc {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.5;
}
.suite-pane-footer {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.suite-pane-footer-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--tr);
}
.suite-pane-footer-link:hover { gap: 8px; }

.mega-col { padding: 36px 36px 36px 36px; border-right: 1px solid var(--border); }
.mega-col:first-child { padding-left: 0; }
.mega-col:last-child { border-right: none; padding-right: 0; }
.mega-col + .mega-col { padding-left: 36px; }

.mega-col-label {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.6px; color: var(--text-3);
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.mega-link { display: block; padding: 10px 0; border-bottom: 1px solid #f4f6f9; text-decoration: none; transition: padding-left var(--tr); }
.mega-link:last-of-type { border-bottom: none; }
.mega-link:hover { padding-left: 4px; }
.mega-link-title { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 3px; transition: color var(--tr); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mega-link:hover .mega-link-title { color: var(--accent); }
.mega-link-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.mega-col-footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.mega-footer-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--accent); text-decoration: none; transition: gap var(--tr); }
.mega-footer-link:hover { gap: 9px; }

.mega-featured { padding: 32px 0 32px 36px; display: flex; flex-direction: column; }
.mega-featured-label { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.6px; color: var(--text-3); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.mega-featured-card { background: var(--page-bg); border: 1.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; flex: 1; }
.mega-featured-img { background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%); height: 130px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.mega-featured-img-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0.9; position: relative; z-index: 1; }
.mega-featured-body { padding: 18px; }
.mega-featured-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 7px; letter-spacing: -0.3px; line-height: 1.3; }
.mega-featured-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.6; margin-bottom: 14px; }
.mega-featured-cta { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--accent); text-decoration: none; transition: gap var(--tr); }
.mega-featured-cta:hover { gap: 8px; }

.nav-badge-pill { font-size: 9px; font-weight: 700; padding: 1px 6px; background: var(--accent-soft); color: var(--accent); border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; vertical-align: middle; }

.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; padding-left: 16px; }

/* Mobile hamburger toggle */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 0; cursor: pointer;
  margin-left: 8px;
}
.nav-toggle-bar {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font); font-weight: 600; letter-spacing: 0.1px; cursor: pointer; border: none; border-radius: var(--r); transition: all var(--tr); text-decoration: none; white-space: nowrap; line-height: 1; }
.btn-gold { background: var(--gold); color: #fff; padding: 10px 22px; font-size: 13.5px; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(239,72,71,0.35); }
.btn-gold-lg { background: var(--gold); color: #fff; padding: 14px 32px; font-size: 15px; border-radius: 11px; font-weight: 700; }
.btn-gold-lg:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(239,72,71,0.4); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 1.5px solid var(--border); padding: 12px 22px; font-size: 14px; }
.btn-outline-navy:hover { border-color: var(--navy); background: var(--accent-soft); }
.btn-ghost-white { background: transparent; color: rgba(255,255,255,0.8); padding: 9px 18px; font-size: 13px; border: 1.5px solid rgba(255,255,255,0.22); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35); padding: 13px 26px; font-size: 14px; }
.btn-outline-white:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.7); }
.sign-in-btn { background: transparent; color: var(--text-2); border: 1.5px solid var(--border); padding: 8px 18px; font-size: 13px; }
.sign-in-btn:hover { color: var(--navy); border-color: var(--navy); }

/* ── FOOTER ── */
footer { background: #0d1f38; padding: 56px 0 32px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { display: grid; grid-template-columns: 2.4fr 1fr 1fr; gap: 56px; margin-bottom: 48px; }
.footer-logo { display: inline-flex; align-items: center; margin-bottom: 18px; text-decoration: none; }
.footer-logo-svg { height: 32px; width: auto; display: block; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.65; max-width: 360px; }
.footer-aai { margin-top: 16px; font-size: 11.5px; color: rgba(255,255,255,0.4); font-family: var(--mono); letter-spacing: 0.2px; }
.footer-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color var(--tr); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-socials { display: flex; gap: 8px; align-items: center; }
.footer-social {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: all var(--tr);
}
.footer-social:hover {
  border-color: rgba(255,255,255,0.30);
  color: #fff;
  background: rgba(255,255,255,0.04);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── SHARED RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* backdrop-filter creates a containing block for fixed descendants — disable so the drawer can position relative to the viewport */
  nav { backdrop-filter: none; }

  /* Header bar: stable height, logo left, hamburger right */
  .nav-inner { height: 64px; }
  .nav-logo { padding-right: 0; border-right: 0; margin-right: 0; }
  .nav-logo-svg { height: 30px; }
  .nav-toggle { display: flex; margin-left: auto; }

  /* Drawer parts hidden by default in header */
  .nav-links { display: none; }
  .nav-cta { display: none; }

  /* Drawer open: fixed overlay panel below the header bar */
  body.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: 64px; left: 0; right: 0;
    bottom: 76px;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 4px 20px 12px;
    overflow-y: auto;
    z-index: 199;
  }
  body.menu-open .nav-cta {
    display: flex; flex-direction: row; align-items: stretch;
    gap: 10px;
    position: fixed; bottom: 0; left: 0; right: 0;
    padding: 14px 20px;
    background: #fff;
    border-top: 1px solid var(--border);
    margin-left: 0;
    z-index: 199;
  }
  body.menu-open .nav-cta .btn {
    flex: 1; justify-content: center;
    padding: 13px 14px; font-size: 14px;
  }

  /* Top-level nav items in drawer */
  .nav-item { width: 100%; }
  .nav-link {
    width: 100%; height: auto; padding: 14px 4px;
    font-size: 15px; color: var(--navy); font-weight: 600;
    border-bottom: 1px solid var(--border);
    justify-content: space-between;
  }
  .nav-link:hover, .nav-item:hover .nav-link { background: transparent; }
  .nav-item:hover .nav-link svg { transform: none; opacity: 0.6; }
  .nav-item.is-open .nav-link svg { transform: rotate(180deg); opacity: 0.9; }

  /* Mega-menu becomes inline accordion content */
  .nav-dropdown {
    position: static; display: none;
    opacity: 1; pointer-events: auto; transform: none;
    box-shadow: none; border-top: 0; border-bottom: 0;
    background: var(--page-bg);
    padding: 4px 8px 6px;
    border-radius: 0;
  }
  .nav-item:hover .nav-dropdown { display: none; opacity: 1; pointer-events: auto; transform: none; }
  .nav-item.is-open .nav-dropdown { display: block; }

  .mega-inner { display: block; padding: 0; max-width: 100%; }
  .mega-inner.cols-suite { grid-template-columns: 1fr; }

  /* Suite mega-menu: hide rail, stack all panes */
  .suite-rail { display: none; }
  .suite-panes { display: block; padding: 0; min-height: 0; }
  .suite-pane, .suite-pane.is-visible { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); }
  .suite-pane:last-child { border-bottom: 0; }
  .suite-pane-head { padding: 0; margin-bottom: 2px; gap: 6px; }
  .suite-pane-name { font-size: 13.5px; }
  .suite-pane-desc { display: none; }
  .suite-pane-grid { grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 2px 0 0; }
  .suite-mod { padding: 4px 0; }
  .suite-mod-name { font-size: 12.5px; }
  .suite-mod-desc { display: none; }
  .suite-pane-footer { display: none; }

  /* Platform mega-menu cols stack */
  .mega-col { padding: 8px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .mega-col:last-child { border-bottom: 0; }
  .mega-col + .mega-col { padding-left: 0; }
  .mega-link { padding: 6px 0; }
  .mega-link-desc { display: none; }
  .mega-featured { display: none; }
}
