

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-v20-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-v20-latin_latin-ext-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-v20-latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-v20-latin_latin-ext-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-v22-latin_latin-ext-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-v22-latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-v22-latin_latin-ext-700.woff2') format('woff2');
}

:root {
  --ink: #0B1220;
  --ink-soft: #152038;
  --ink-card: #111B31;
  --ink-line: #1F2A42;
  --ink-faint: #4A5875;
  --paper: #FAFAF7;
  --paper-alt: #F0EFE8;
  --paper-card: #FFFFFF;
  --accent: #F5C518;
  --accent-bright: #FFD633;
  --accent-deep: #C99A0F;
  --accent-wash: rgba(245,197,24,0.12);
  --highlight: #22B8F0;
  --highlight-bright: #3DC5FF;
  --highlight-wash: rgba(34,184,240,0.08);
  --max: 1280px;
  --h: 'Space Grotesk', system-ui, sans-serif;
  --b: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--b);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--h);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.nav {
  position: sticky; top: 0; z-index: 300;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 2px solid var(--accent);
}
.nav-inner {
  display: flex; align-items: center;
  max-width: var(--max); margin: 0 auto;
  padding: 20px 40px;
}
.nav-logo img { height: 38px; width: auto; filter: brightness(0) invert(1); }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; margin-left: 56px; }
.nav-links > li { position: relative; }
.nav-links a {
  font-family: var(--b); font-size: 16px; font-weight: 500;
  letter-spacing: 0;
  color: var(--paper); opacity: 0.9;
  padding: 8px 0;
  position: relative;
  display: inline-block;
  transition: opacity .2s, color .2s;
}
.nav-links a:hover { opacity: 1; color: var(--highlight); }
.nav-links a.active { opacity: 1; color: var(--highlight); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 14px;
}
.nav-dropdown > a { cursor: pointer; }
.nav-dropdown > a .caret {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  vertical-align: middle;
  opacity: 0.75;
  transition: transform .25s ease;
}
.nav-dropdown > a .caret svg { width: 14px; height: 14px; display: block; }
.nav-dropdown:hover > a .caret { transform: rotate(180deg); }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  border: 1px solid var(--ink-line);
  padding: 8px 0;
  min-width: 320px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 12px 24px;
  font-family: var(--b);
  font-size: 14px;
  font-weight: 500;
  color: var(--paper);
  opacity: 0.85;
  white-space: nowrap;
  letter-spacing: 0;
  transition: opacity .2s, background .2s, color .2s;
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover {
  opacity: 1;
  background: rgba(34,184,240,0.08);
  color: var(--highlight);
}

.mobile-submenu {
  display: flex;
  flex-direction: column;
  padding: 4px 0 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0;
}
.mobile-submenu a {
  font-family: var(--b);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--paper);
  opacity: 0.7;
  padding: 9px 0;
  border-bottom: none;
  text-decoration: none;
  transition: color .2s, opacity .2s;
}
.mobile-submenu a:hover { opacity: 1; color: var(--accent); }

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

.hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  cursor: pointer;
  background: none; border: none; padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; right: 0;
  width: min(86%, 380px);
  background: var(--ink);
  z-index: 400;
  padding: 88px 28px 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s ease, visibility 0s linear .35s;
  visibility: hidden;
  border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -10px 0 40px rgba(0,0,0,0.45);
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .35s ease;
}
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 380;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility 0s linear .3s;
}
.mobile-backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s;
}
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
  font-family: var(--h); font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--paper);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: color .2s;
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-menu-footer {
  margin-top: auto; padding-top: 48px;
  display: flex; flex-direction: column; gap: 28px;
}
.mobile-close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none; color: rgba(255,255,255,0.5);
  font-size: 22px; cursor: pointer; line-height: 1;
  padding: 8px; transition: color .2s;
}
.mobile-close:hover { color: var(--paper); }

.btn-cta {
  font-family: var(--h); font-weight: 700; font-size: 14px;
  background: var(--accent); color: var(--ink);
  padding: 14px 26px;
  letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 12px;
  transition: background .2s, transform .2s, box-shadow .2s;
  border: 2px solid var(--accent);
}
.btn-cta:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(245,197,24,0.25);
}
.btn-cta .arrow { transition: transform .2s; display: inline-block; font-weight: 500; }
.btn-cta:hover .arrow { transform: translateX(5px); }

.btn-ghost {
  font-family: var(--h); font-weight: 700; font-size: 14px;
  background: transparent; color: var(--paper);
  border: 2px solid var(--accent);
  padding: 14px 26px;
  letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 12px;
  transition: background .2s, color .2s, transform .2s;
}
.btn-ghost:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn-ghost .arrow { transition: transform .2s; display: inline-block; font-weight: 500; }
.btn-ghost:hover .arrow { transform: translateX(5px); }

footer {
  background: #070C17;
  color: rgba(255,255,255,0.6);
  padding: 64px 40px 28px;
  font-size: 14px;
  border-top: 2px solid var(--accent);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 56px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 45px; width: auto; filter: brightness(0) invert(1); margin-bottom: 28px; }
.footer-brand-divider {
  width: 40px; height: 1px;
  background: rgba(255,255,255,0.18);
  margin-bottom: 24px;
}
.footer-brand .addr {
  font-size: 14px; line-height: 1.8;
  color: rgba(255,255,255,0.55);
}
footer h5 {
  color: var(--paper);
  font-family: var(--h);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 20px;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
footer ul a:hover { color: var(--highlight); }
footer .addr { line-height: 1.6; }
.footer-partner-logos {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 28px;
}
.footer-partner-logos a { display: flex; align-items: center; transition: transform .2s; }
.footer-partner-logos a:hover { transform: translateY(-2px); }
.footer-partner-logos a img { opacity: 0.82; transition: opacity .2s; width: 100%; height: auto; }
.footer-partner-logos a:hover img { opacity: 1; }
.footer-partner-logos .fp-hkstp img { max-width: 160px; }
.footer-partner-logos .fp-hktech img { max-width: 160px; }
.footer-bottom {
  max-width: var(--max); margin: 22px auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 12px; font-family: var(--h); font-weight: 500; letter-spacing: 0.1em;
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 640px) {
  .nav-right .btn-cta { display: none; }
  .nav-right { gap: 16px; }
  .hamburger { display: flex; }
  body.menu-open { overflow: hidden; }
  .btn-cta, .btn-ghost { width: 100%; justify-content: center; padding: 16px 24px; font-size: 15px; }
  .nav-inner, footer { padding-left: 24px; padding-right: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
