/* ── Tokens ──────────────────────────────────────────── */
:root { --brand-50: rgba(117,89,249,0.05); }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 210;
  background: #fff;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  padding: 0 60px;
}
.site-header.scrolled {
  border-color: var(--neutral-200);
}
.header-inner {
  max-width: 1024px; margin: 0 auto;
  padding: 0; height: 68px;
  display: flex; align-items: center; gap: 40px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo img { height: 28px; width: auto; display: block; }
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; color: var(--brand-700); }
.logo-text span { color: var(--brand-300); }

/* Nav */
.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px;
  font-size: 14px; font-weight: 500;
  color: var(--neutral-700);
  background: none; border: none; border-radius: 6px;
  cursor: pointer; text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.nav-btn:hover { background: var(--neutral-100); color: var(--brand-700); }
.nav-btn svg { transition: transform 200ms ease; }
.nav-item.open .nav-btn svg { transform: rotate(180deg); }

/* Nav overlay */
.nav-overlay {
  position: fixed; inset: 0; top: 68px;
  z-index: 40;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity 180ms ease;
}
.nav-overlay.visible { opacity: 1; pointer-events: none; }

/* Mega menu */
.mega {
  position: fixed; top: 68px; left: 0; right: 0;
  z-index: 999;
  background: #fff;
  border-top: 1px solid var(--neutral-200);
  padding: 28px 60px;
  display: none; opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.mega.open { display: block; }
.mega.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mega-inner { max-width: 1024px; margin: 0 auto; }
.mega-grid { display: grid; gap: 10px; }
.mega-3 { grid-template-columns: repeat(3, 1fr); }
.mega-4 { grid-template-columns: repeat(4, 1fr); }
.mega-2 { grid-template-columns: repeat(2, 1fr); max-width: 680px; }

/* Flat icon cards (fallback) */
.mega-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; border-radius: 10px; text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.mega-card:hover { background: var(--brand-100); border-color: var(--brand-300); }
.mega-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--brand-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--brand-700);
  transition: background-color 150ms ease, color 150ms ease;
}
.mega-card:hover .mega-icon { background: var(--brand-700); color: #fff; }

/* Vertical photo cards */
.mega-card-v {
  flex-direction: column; gap: 0; padding: 0;
  border: 1px solid var(--neutral-200); overflow: hidden;
  background: #fff;
}
.mega-card-v:hover { background: #fff; border-color: var(--brand-500); box-shadow: 0 4px 20px rgba(117,89,249,0.12); }
.mega-card-media { position: relative; height: 148px; overflow: hidden; flex-shrink: 0; }
.mega-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 350ms ease; }
.mega-card-v:hover .mega-card-media img { transform: scale(1.05); }
.mega-media-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,6,40,0.08) 0%, rgba(10,6,40,0.52) 100%); }
.mega-media-metric {
  position: absolute; bottom: 11px; left: 12px;
  background: rgba(255,255,255,0.97); border-radius: 8px; padding: 4px 12px;
  display: flex; align-items: baseline; gap: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.14);
}
.mega-metric-num { font-size: 14px; font-weight: 700; color: var(--brand-700); letter-spacing: -0.02em; }
.mega-metric-lbl { font-size: 11px; font-weight: 500; color: var(--neutral-600); }
.mega-card-v .mega-card-body { padding: 13px 15px 15px; }
.mc-title { font-size: 18px; font-weight: 700; color: var(--neutral-900); margin-bottom: 3px; }
.mc-desc { font-size: 16px; color: var(--neutral-700); line-height: 1.5; font-weight: 400; }

/* Header CTA */
.hdr-cta {
  margin-left: auto; flex-shrink: 0;
  padding: 9px 22px;
  background: linear-gradient(135deg, #7559f9 0%, #4f2ed4 100%); color: #fff;
  font-size: 14px; font-weight: 500;
  border-radius: 9999px; text-decoration: none;
  transition: filter 150ms ease, transform 150ms ease;
  box-shadow: 0 2px 8px rgba(79,46,212,0.35);
}
.hdr-cta:hover { filter: brightness(1.1); }
.hdr-cta:active { transform: scale(0.97); }

/* Hamburger */
.hamburger {
  display: none; margin-left: auto;
  padding: 8px; background: none; border: none;
  cursor: pointer; color: var(--neutral-700); border-radius: 6px;
}
.hamburger:hover { background: var(--neutral-100); }

/* ── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--brand-900);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 60px 20px;
}
.footer-inner { max-width: 1024px; margin: 0 auto; }
.footer-grid {
  display: flex; align-items: flex-start; gap: 48px; margin-bottom: 56px;
}
.footer-brand { flex: 0 0 240px; }
.footer-links-group {
  flex: 1; display: flex; gap: 40px; justify-content: flex-end;
}
.footer-tagline { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.4); margin: 14px 0 22px; max-width: 260px; }
.footer-social { display: flex; gap: 8px; }
.social-link {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.48); text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.social-link:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.2); }
.footer-addr { font-size: 12px; color: rgba(255,255,255,0.25); line-height: 1.6; margin-top: 18px; }
.f-col-title {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}
.f-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.f-links a { font-size: 14px; color: rgba(255,255,255,0.52); text-decoration: none; transition: color 150ms ease; }
.f-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.28); }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.f-badge {
  padding: 4px 12px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 11px; font-weight: 500; letter-spacing: 0.03em;
  color: rgba(255,255,255,0.32);
}

/* ── Mobile menu ─────────────────────────────────────── */
.mm {
  position: fixed; inset: 0;
  z-index: 200;
  background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 68px 0 100px;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
}
.mm.open { opacity: 1; visibility: visible; }

.mm-backdrop { display: none; }

.mm-nav {
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 24px;
}

.mm-item { width: 100%; text-align: center; }

.mm-btn {
  display: flex; align-items: center; justify-content: center; gap: 34px;
  width: 100%; padding: 18px 24px;
  font-size: 26px; font-weight: 700; color: var(--neutral-900);
  background: none; border: none; cursor: pointer; text-decoration: none;
  transition: color 150ms ease;
  font-family: "Manrope", sans-serif; letter-spacing: -0.02em;
}
.mm-btn:active { color: var(--brand-700); }
.mm-item.open > .mm-btn { color: var(--brand-700); }
/* Shift label right by (svg 16px + gap 34px) / 2 = 25px so label center = button center */
.mm-label { transform: translateX(25px); }
.mm-chevron {
  flex-shrink: 0; color: #000;
  transform: translateY(2px);
  transition: transform 220ms ease, color 220ms ease;
}
.mm-item.open > .mm-btn .mm-chevron { transform: translateY(2px) rotate(180deg); color: var(--brand-500); }
.mm-btn-plain { font-size: 26px; font-weight: 700; color: var(--neutral-900); font-family: "Manrope", sans-serif; letter-spacing: -0.02em; padding: 18px 24px; }

.mm-sub {
  max-height: 0; overflow: hidden;
  transition: max-height 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mm-item.open .mm-sub { max-height: 400px; }

.mm-link {
  display: block; padding: 11px 24px;
  font-size: 16px; font-weight: 500; color: var(--neutral-900);
  text-decoration: none;
  transition: color 150ms ease;
}
.mm-link:active { color: var(--brand-700); }

.mm-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 211; padding: 16px 32px 32px; background: #fff; }
.mm-cta {
  display: block; text-align: center;
  padding: 16px 24px;
  background: linear-gradient(135deg, #7559f9 0%, #4f2ed4 100%); color: #fff;
  font-size: 16px; font-weight: 600;
  border-radius: 9999px; text-decoration: none;
  box-shadow: 0 2px 8px rgba(79,46,212,0.35);
  transition: filter 150ms ease;
}
.mm-cta:active { filter: brightness(1.1); }

/* Hamburger icon swap */
.hbr-close { display: none; }
.hamburger.open .hbr-open { display: none; }
.hamburger.open .hbr-close { display: block; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .site-header { padding: 0 16px; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header-inner { height: 52px; }
  .nav { display: none; }
  .hdr-cta { display: none; }
  .hamburger { display: flex; }
  .mm { padding-top: 52px; }
  .footer { padding: 48px 16px 16px; }
  .footer-grid { flex-direction: column; gap: 36px; }
  .footer-brand { flex: none; width: 100%; }
  .footer-links-group { flex-direction: column; justify-content: flex-start; }
}
