@import url('fonts.css');

/* ---------------------------------------------------------------
   NorthPoint Technologies Ltd
   Design tokens ported from the City Story direction.
--------------------------------------------------------------- */
:root {
  --bg:        #EAF1F8;
  --ink:       #12263D;
  --body:      #45607F;
  --muted:     #596E85;
  --faint:     #616D7F;
  --mid:       #2E4A68;
  --accent:    #D9772B;
  --accent-deep:#A75618;
  --cream:     #F4F1EC;
  --line:      rgba(18, 38, 61, 0.13);
  --line-soft: rgba(18, 38, 61, 0.08);
  --glass:     linear-gradient(150deg, rgba(255,255,255,0.55), rgba(255,255,255,0.2));
  --glass-edge:rgba(255, 255, 255, 0.65);
  --shadow:    0 28px 70px rgba(18, 38, 61, 0.16),
               inset 0 1px 0 rgba(255, 255, 255, 0.75),
               inset 0 -1px 0 rgba(255, 255, 255, 0.25);

  --sans:  'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display:'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --pad: clamp(20px, 4.4vw, 56px);
  --maxw: 1240px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream);
  padding: 12px 18px; font-family: var(--display); font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; color: var(--cream); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- typography ------------------------------------------------ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 16px;
}
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-weight: 900; font-size: clamp(38px, 6.8vw, 104px); line-height: 0.95; letter-spacing: -0.035em; }
h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.03; }
h3 { font-weight: 700; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.2; letter-spacing: -0.02em; }
p  { margin: 0; color: var(--body); text-wrap: pretty; }
.lede { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; max-width: 52ch; }

/* --- buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--cream);
  font-family: var(--display); font-weight: 600; font-size: 15px;
  padding: 14px 24px; border-radius: 2px;
  border: 1px solid var(--ink);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--lg { font-size: 16px; font-weight: 700; padding: 17px 30px; }

/* --- header ---------------------------------------------------- */
.masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px var(--pad);
  background: linear-gradient(rgba(234,241,248,0.94), rgba(234,241,248,0.72) 62%, rgba(234,241,248,0));
}
.masthead--solid {
  background: rgba(234, 241, 248, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__type {
  font-family: var(--display); font-size: 16px;
  letter-spacing: -0.015em; color: var(--ink); white-space: nowrap;
}
.brand__type b { font-weight: 800; }
.brand__type span { font-weight: 400; }

.nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.nav a {
  font-family: var(--sans); font-size: 13px; color: var(--muted);
  white-space: nowrap; transition: color 0.15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { font-weight: 500; }
.tag-soon {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  color: var(--accent-deep); background: rgba(217,119,43,0.13);
  border: 1px solid rgba(217,119,43,0.35);
  padding: 2px 6px; border-radius: 99px; margin-left: 7px;
}
.nav .btn { font-size: 13px; padding: 10px 18px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 2px; padding: 9px 11px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 18px; height: 14px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    position: fixed; inset: 58px 0 auto; z-index: 19;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 8px var(--pad) 22px;
    background: rgba(234, 241, 248, 0.98);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(18,38,61,0.12);
  }
  .nav[hidden] { display: none; }
  .nav a {
    font-size: 16px; padding: 13px 0;
    border-bottom: 1px solid var(--line-soft); color: var(--ink);
  }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: none; color: var(--cream); }
  .nav .btn:hover { color: var(--ink); }
}

/* --- inner page shell ------------------------------------------ */
.page { padding-top: clamp(96px, 13vh, 140px); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.page-head { padding-bottom: clamp(38px, 6vw, 68px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 18ch; font-size: clamp(34px, 5vw, 76px); }
.page-head .lede { margin-top: 22px; }

.section { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.section__head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head p { margin-top: 16px; }

.grid { display: grid; gap: clamp(18px, 2.2vw, 26px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }

.card {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.7);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
}
.card h3 { margin-bottom: 12px; }
.card p + p { margin-top: 12px; }
.card__num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--accent-deep); margin-bottom: 14px; display: block;
}

.pill-row { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill-row__label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; color: var(--faint); }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--mid); background: rgba(255,255,255,0.45);
  border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px;
}
.pill::before {
  content: ''; width: 5px; height: 5px; border-radius: 99px;
  background: var(--accent); flex-shrink: 0;
}
.pill--muted { color: var(--faint); }
.pill--muted::before { background: var(--faint); }

.dl { display: grid; gap: 0; margin: 0; }
.dl > div {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  padding: 15px 0; border-bottom: 1px solid var(--line-soft);
}
.dl dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint);
  flex: 0 0 190px; padding-top: 3px;
}
.dl dd { margin: 0; color: var(--ink); flex: 1 1 260px; }

.note {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 18px; margin-top: 26px;
  font-size: 15px; color: var(--muted);
}

/* --- CTA band --------------------------------------------------- */
.cta {
  text-align: center;
  padding: clamp(64px, 10vw, 128px) 0;
  border-top: 1px solid var(--line);
}
.cta h2 { font-weight: 900; font-size: clamp(34px, 6vw, 82px); line-height: 0.98; letter-spacing: -0.035em; max-width: 15ch; margin: 0 auto; }
.cta .btn { margin-top: 32px; }

/* --- footer ----------------------------------------------------- */
.foot {
  background: var(--ink); color: rgba(244, 241, 236, 0.72);
  padding: clamp(44px, 6vw, 72px) 0 34px;
}
.foot a { color: rgba(244, 241, 236, 0.72); }
.foot a:hover { color: var(--accent); }
.foot__grid {
  display: grid; gap: 34px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding-bottom: 34px; border-bottom: 1px solid rgba(244,241,236,0.14);
}
.foot h2 {
  font-family: var(--mono); font-weight: 500; font-size: 10px;
  line-height: 1.4; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(244,241,236,0.66); margin-bottom: 14px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.foot__brand .brand__type { color: var(--cream); }
.foot__brand p { color: rgba(244,241,236,0.6); font-size: 14px; margin-top: 14px; max-width: 34ch; }
.foot__legal {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 30px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(244,241,236,0.62);
}
