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

:root {
  --navy:       #0d2240;
  --navy-dark:  #091a33;
  --gold:       #c9a84c;
  --gold-light: #e2c06e;
  --gold-pale:  rgba(201,168,76,0.10);
  --gold-bd:    rgba(201,168,76,0.22);
  --white:      #f5f2ec;
  --muted:      rgba(245,242,236,0.55);
  --muted2:     rgba(245,242,236,0.30);
  --drop-bg:    rgba(10,22,44,0.97);
  --nav-h:      68px;
}

html, body {
  width: 100%; height: 100%;
  font-family: 'Sora', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--navy-dark);
  color: var(--white);
  overflow: hidden; /* fullscreen hero */
}

/* ── HERO BACKGROUND ───────────────────────────────────── */
.hero-bg {
  position: fixed; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  /* When /assets/hero.jpg is missing, canvas shows instead */
}
#bg-canvas {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
}
.bg-overlay {
  position: fixed; inset: 0; z-index: 2;
  /* Gradient: dark bottom-left (for text legibility), transparent top-right */
  background: linear-gradient(
    135deg,
    rgba(9,26,51,0.88) 0%,
    rgba(9,26,51,0.70) 35%,
    rgba(9,26,51,0.30) 65%,
    rgba(9,26,51,0.15) 100%
  );
}

/* ── NAVBAR ────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(9,26,51,0.75);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  transition: background 0.3s;
}
.navbar.scrolled { background: rgba(9,26,51,0.96); }

.nav-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center;
  height: var(--nav-h); padding: 0 40px; gap: 0;
}

/* LOGO */
.logo {
  text-decoration: none; flex-shrink: 0;
  display: flex; align-items: center;
  gap: 10px; /* space between icon and wordmark */
}
.logo-img { height: 34px; width: auto; }

.logo-wordmark {
  font-size: 1.22rem; font-weight: 700;
  letter-spacing: -0.01em; color: var(--white);
}
.logo-wordmark em { font-style: normal; color: var(--gold); }

/* NAV LINKS — absolutely centred in the bar */
.nav-links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0;
  list-style: none;
}
.nav-item { position: relative; }

.nav-link, .nav-btn {
  display: flex; align-items: center; gap: 5px;
  height: var(--nav-h); padding: 0 18px;
  font-size: 0.82rem; font-weight: 400; letter-spacing: 0.01em;
  color: var(--muted); text-decoration: none;
  background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-btn:hover { color: var(--white); }
.nav-item.active > .nav-link,
.nav-item.active > .nav-btn { color: var(--white); border-bottom-color: var(--gold); }

.chevron {
  transition: transform 0.25s;
  flex-shrink: 0; color: var(--muted);
}
.has-dropdown.open .chevron { transform: rotate(180deg); }
.has-dropdown.open .nav-btn { color: var(--white); border-bottom-color: var(--gold); }

/* NAV END — pinned to the right */
.nav-end { margin-left: auto; flex-shrink: 0; }
.btn-contact {
  display: inline-block;
  padding: 9px 22px;
  border: 1.5px solid var(--white);
  border-radius: 50px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--white); text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-contact:hover {
  background: var(--white); color: var(--navy-dark); border-color: var(--white);
}

/* ── PRODUCTS MODAL ────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5,15,32,0.75);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s;
}
.modal-backdrop.open {
  opacity: 1; visibility: visible; pointer-events: all;
}

.modal {
  background: rgba(10,22,46,0.98);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 16px;
  width: 100%; max-width: 780px;
  max-height: 88vh; overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.65);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s ease;
}
.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px 18px;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  position: sticky; top: 0;
  background: rgba(10,22,46,0.98);
  border-radius: 16px 16px 0 0;
  z-index: 1;
}
.modal-title {
  font-size: 1.05rem; font-weight: 600; color: var(--white);
  letter-spacing: -0.01em;
}
.modal-close {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(245,242,236,0.06); border: 1px solid rgba(245,242,236,0.1);
  color: var(--muted); cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: rgba(201,168,76,0.12); color: var(--gold); }

.modal-body { padding: 24px 28px 28px; }

.modal-section-title {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(201,168,76,0.12);
}

.modal-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}

.modal-card {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.08);
  text-decoration: none; color: inherit; cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  position: relative;
}
.modal-card:not(.inert):hover {
  background: rgba(201,168,76,0.06);
  border-color: rgba(201,168,76,0.22);
}
.modal-card.inert { cursor: default; }
.modal-card.soon  { opacity: 0.45; }

.mc-icon {
  width: 40px; height: 40px; border-radius: 9px;
  display: grid; place-items: center; flex-shrink: 0;
}
.mc-body {
  display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0;
}
.mc-name {
  font-size: 0.85rem; font-weight: 600; color: var(--white);
}
.mc-sub {
  font-size: 0.7rem; color: var(--muted); font-weight: 300;
  line-height: 1.4;
}
.mc-tag {
  font-size: 0.52rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 2px 6px; border-radius: 3px;
  flex-shrink: 0; align-self: flex-start;
}
.mc-tag.live   { background: rgba(34,197,94,0.12); color: #6ee09e; border: 1px solid rgba(34,197,94,0.22); }
.mc-tag.alpha  { background: rgba(201,168,76,0.12); color: var(--gold); border: 1px solid var(--gold-bd); }
.mc-tag.soon-b { background: rgba(100,120,180,0.1); color: rgba(180,200,240,0.55); border: 1px solid rgba(100,120,180,0.2); }
.mc-arrow {
  position: absolute; top: 11px; right: 12px;
  font-size: 0.8rem; color: rgba(201,168,76,0.35);
  transition: color 0.2s, transform 0.2s;
}
.modal-card:not(.inert):hover .mc-arrow {
  color: var(--gold); transform: translate(2px,-2px);
}

/* ── DROPDOWN ──────────────────────────────────────────── */
.dropdown {
  position: absolute; top: calc(var(--nav-h) + 1px); left: 0;
  min-width: 560px;
  background: var(--drop-bg);
  border: 1px solid rgba(201,168,76,0.15);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.has-dropdown.open .dropdown {
  opacity: 1; visibility: visible; pointer-events: all; transform: translateY(0);
}

.dropdown-inner {
  display: flex; padding: 20px 0;
}

.drop-col {
  display: flex; flex-direction: column; gap: 2px;
  padding: 0 20px; flex: 1;
}
.drop-col.narrow { flex: 0 0 210px; }

.drop-heading {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); padding: 4px 8px 10px;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  margin-bottom: 6px;
}

.drop-divider {
  width: 1px; background: rgba(201,168,76,0.12);
  margin: 8px 0; flex-shrink: 0;
}

/* DROP ITEM */
.drop-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 8px;
  text-decoration: none; color: inherit; cursor: pointer;
  transition: background 0.18s;
}
.drop-item:not(.inert):hover { background: rgba(201,168,76,0.07); }
.drop-item.inert { cursor: default; }
.drop-item.soon { opacity: 0.45; }

.di-icon {
  width: 34px; height: 34px; border-radius: 7px;
  display: grid; place-items: center; flex-shrink: 0;
}
.i-sms    { background: linear-gradient(135deg,#0f3262,#1a5092); }
.i-edu    { background: linear-gradient(135deg,#163060,#255680); }
.i-gidbye { background: linear-gradient(135deg,#14264C,#1e4068); }
.i-ai     { background: linear-gradient(135deg,#0c2848,#1a4870); }
.i-sokem  { background: linear-gradient(135deg,#102e54,#1a5274); }
.i-rent   { background: linear-gradient(135deg,#10223e,#1e3c5e); }
.i-hms    { background: linear-gradient(135deg,#0c2242,#183450); }
.i-pix    { background: linear-gradient(135deg,#102848,#1a3c62); }
.i-office { background: linear-gradient(135deg,#0d253e,#193858); }

.di-text {
  display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0;
}
.di-name {
  font-size: 0.83rem; font-weight: 600; color: var(--white);
  white-space: nowrap;
}
.di-sub {
  font-size: 0.68rem; color: var(--muted); font-weight: 300;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.di-tag {
  font-size: 0.52rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 2px 6px; border-radius: 3px;
  flex-shrink: 0;
}
.di-tag.live   { background: rgba(34,197,94,0.12); color: #6ee09e; border: 1px solid rgba(34,197,94,0.22); }
.di-tag.alpha  { background: rgba(201,168,76,0.12); color: var(--gold); border: 1px solid var(--gold-bd); }
.di-tag.soon-b { background: rgba(100,120,180,0.1); color: rgba(180,200,240,0.55); border: 1px solid rgba(100,120,180,0.2); }

/* ── HAMBURGER ─────────────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  margin-left: auto; /* push to far right */
  flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--muted); border-radius: 2px; transition: background 0.2s;
}
.hamburger:hover span { background: var(--white); }

/* ── MOBILE MENU ───────────────────────────────────────── */
.mobile-menu {
  display: none; flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(201,168,76,0.1);
  background: rgba(9,26,51,0.98);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }

.mm-section-title {
  font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--gold); padding: 0 0 8px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.mm-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; color: var(--muted); text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.2s;
}
.mm-link:hover { color: var(--white); }
.mm-link.dim { cursor: default; }
.mm-divider { height: 1px; background: rgba(201,168,76,0.1); margin: 10px 0; }
.mm-tag { font-size: 0.52rem; padding: 2px 5px; border-radius: 3px; font-weight: 600; letter-spacing: 0.1em; }
.mm-tag.live  { background: rgba(34,197,94,0.1); color: #6ee09e; }
.mm-tag.alpha { background: var(--gold-pale); color: var(--gold); }
.mm-cta {
  margin-top: 14px; padding: 11px 20px; text-align: center;
  background: var(--gold); color: var(--navy-dark); border-radius: 6px;
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s;
}
.mm-cta:hover { background: var(--gold-light); }

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 10;
  width: 100vw; height: 100vh;
  display: flex; align-items: center;
  padding: 0 80px;
  pointer-events: none; /* children re-enable */
}

.hero-text {
  max-width: 660px;
  animation: fadeUp 0.9s ease both 0.15s;
  pointer-events: all;
}

.eyebrow {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px;
}

.headline {
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 700; line-height: 1.06;
  letter-spacing: -0.03em; color: var(--white);
  margin-bottom: 36px;
}
.headline em { font-style: italic; color: var(--white); }
.gold-dot { color: var(--gold); }

.hero-btns {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

.btn-primary {
  display: inline-block; padding: 14px 32px;
  background: var(--gold); border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--navy-dark); text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(201,168,76,0.28);
}
.btn-primary:hover {
  background: var(--gold-light); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.38);
}

.btn-ghost {
  display: inline-block; padding: 13px 30px;
  border: 1.5px solid rgba(245,242,236,0.35); border-radius: 50px;
  font-size: 0.85rem; font-weight: 400;
  color: var(--white); text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--white); background: rgba(245,242,236,0.06); }

/* NEWS STRIP — bottom left */
.news-strip {
  position: absolute; bottom: 36px; left: 80px;
  display: flex; align-items: center; gap: 10px;
  animation: fadeUp 0.9s ease both 0.5s;
  pointer-events: all;
  max-width: 460px;
}
.news-label {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); white-space: nowrap;
}
.news-body {
  font-size: 0.72rem; color: var(--muted); line-height: 1.4; font-weight: 300;
}
.news-link {
  font-size: 0.72rem; font-weight: 600; color: var(--gold);
  text-decoration: none; white-space: nowrap; transition: color 0.2s;
}
.news-link:hover { color: var(--gold-light); }

/* HERO FOOTNOTE — bottom right */
.hero-footnote {
  position: absolute; bottom: 36px; right: 80px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.68rem; color: var(--muted2);
  animation: fadeUp 0.9s ease both 0.55s;
  pointer-events: all;
}
.hero-footnote a {
  color: var(--muted2); text-decoration: none; transition: color 0.2s;
}
.hero-footnote a:hover { color: var(--gold); }

/* ── ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-end   { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 0 32px; }
  .headline { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .news-strip { left: 32px; max-width: 280px; }
  .news-body  { display: none; }
  .hero-footnote { right: 32px; }

  /* On mobile, nav-inner: logo left, hamburger right */
  .nav-inner { justify-content: space-between; }
}

@media (max-width: 520px) {
  .hero { padding: 0 20px; }
  .news-strip { left: 20px; bottom: 24px; }
  .hero-footnote { right: 20px; bottom: 24px; font-size: 0.6rem; gap: 6px; }
  .headline { font-size: 2.2rem; }
  .nav-inner { padding: 0 20px; }
}
