/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #e85d04;
  --brand-dark: #c44b00;
  --brand-light: #fff3ee;
  --text: #1a1a2e;
  --text-2: #4a4a6a;
  --text-3: #8888aa;
  --border: #e8e8f0;
  --surface: #f8f8fc;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.14);
  --font: 'Inter', system-ui, sans-serif;
  --nav-h: 68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

.section { padding: 96px 0; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background .2s, transform .15s, box-shadow .2s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 4px 16px rgba(232,93,4,.35); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.btn-ghost:hover { background: var(--surface); color: var(--text); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color .2s, background .2s, transform .15s;
  background: transparent;
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); transform: translateY(-1px); }

.btn-lg { padding: 14px 30px; font-size: 1rem; border-radius: 10px; }

/* ── BADGES ── */
.badge {
  background: var(--brand);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.badge-live {
  background: #d1fae5; color: #065f46;
  padding: 3px 10px; border-radius: 99px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .04em;
}

.badge-soon {
  background: #fef3c7; color: #92400e;
  padding: 3px 10px; border-radius: 99px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .04em;
}

.save-badge {
  background: #d1fae5; color: #065f46;
  padding: 2px 8px; border-radius: 4px;
  font-size: 0.7rem; font-weight: 700; margin-left: 6px;
}

/* ── NAV ── */
.nav-wrap {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex; align-items: center;
  height: var(--nav-h);
  gap: 32px;
}

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.25rem;
  flex-shrink: 0;
}
.logo-mark {
  width: 34px; height: 34px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem;
}
.logo-text { color: var(--text); }
.nav-logo-img { height: 36px; width: auto; display: block; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin-left: 16px;
}

.nav-links > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav-links > li > a:hover { color: var(--text); background: var(--surface); }

.chevron {
  width: 14px; height: 14px;
  stroke: currentColor; stroke-width: 2;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s;
}

/* Mega Menu */
.has-mega { position: relative; }

.mega-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  display: grid; grid-template-columns: repeat(4, 200px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.has-mega:hover .chevron { transform: rotate(180deg); }

.mega-heading {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-3); margin-bottom: 8px;
}

.mega-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.mega-item:hover { background: var(--surface); }
.mega-item.coming { opacity: .5; pointer-events: none; }

.mega-icon {
  width: 36px; height: 36px;
  background: var(--brand-light); color: var(--brand);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 800;
  flex-shrink: 0;
}
.hrms-icon { background: #f3e8ff; color: #7209b7; }
.fin-icon  { background: #e0f2fe; color: #0077b6; }
.desk-icon { background: #dcfce7; color: #16a34a; }

.mega-item strong { display: block; font-size: 0.85rem; font-weight: 600; }
.mega-item small  { font-size: 0.75rem; color: var(--text-3); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .2s; }

/* ── SECTION HEADERS ── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand); margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.2; }
.section-sub { color: var(--text-2); margin-top: 16px; font-size: 1.05rem; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ── */
.footer { background: #0f0f1a; color: #aaa; padding: 64px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #ffffff10;
}

.footer-brand p { font-size: 0.9rem; margin-top: 12px; line-height: 1.7; }
.footer-brand .nav-logo .logo-text { color: #fff; }

.socials { display: flex; gap: 16px; margin-top: 20px; }
.socials a { font-size: 0.85rem; color: #aaa; transition: color .15s; }
.socials a:hover { color: var(--brand); }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h5 { color: #fff; font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.footer-col a { font-size: 0.85rem; color: #888; transition: color .15s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 24px;
  font-size: 0.8rem; color: #555;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mega-menu { grid-template-columns: 1fr 1fr; width: 380px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
