:root {
  --bg: #06070b;
  --bg-2: #0d1018;
  --card: #121622;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef1f8;
  --muted: #8b93a7;
  --dim: #4b5267;
  --blue: #2f63d6;
  --blue-deep: #033ba2;
  --blue-soft: #9db7f2;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: var(--font); /* system font only — no monospace */
  --accent: #ff7214; /* secondary brand colour (7.3:1 on the dark background) */
  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

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

body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; text-transform: lowercase; color: var(--muted); }
.muted { color: var(--muted); }
.accent { color: var(--blue); }

::selection { background: var(--blue); color: #fff; }

/* ---------- Grain overlay ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Intro gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--pad);
  transition: transform 1.1s var(--ease), opacity 0.6s ease;
}
.gate.is-gone { transform: translateY(-100%); pointer-events: none; }
.gate__mark {
  display: flex;
  flex-wrap: wrap;
  font-weight: 800;
  font-size: clamp(64px, 17vw, 260px);
  line-height: 0.82;
  letter-spacing: -0.06em;
  margin-top: auto;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.gate__mark span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: rise 1s var(--ease) forwards;
}
.gate__mark span:nth-child(n + 6) { color: var(--blue); }
.gate__mark span:nth-child(1) { animation-delay: 0.05s; }
.gate__mark span:nth-child(2) { animation-delay: 0.1s; }
.gate__mark span:nth-child(3) { animation-delay: 0.15s; }
.gate__mark span:nth-child(4) { animation-delay: 0.2s; }
.gate__mark span:nth-child(5) { animation-delay: 0.25s; }
.gate__mark span:nth-child(6) { animation-delay: 0.3s; }
.gate__mark span:nth-child(7) { animation-delay: 0.35s; }
.gate__mark span:nth-child(8) { animation-delay: 0.4s; }
.gate__bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.gate__count { font-size: 14px; color: var(--text); min-width: 56px; }
.gate__label { flex: 1; }
.gate__enter {
  font-family: var(--mono);
  font-size: 14px;
  padding: 12px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  opacity: 0.3;
  transition: all 0.4s var(--ease);
}
.gate__enter:not(:disabled) { opacity: 1; border-color: var(--blue); background: var(--blue); color: #fff; }
.gate__enter:not(:disabled):hover { transform: scale(1.05); }

@keyframes rise { to { transform: translateY(0); opacity: 1; } }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--text);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 95;
  display: grid;
  place-items: center;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.3s;
}
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor.is-label { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--blue); mix-blend-mode: normal; }
.cursor__label { font-family: var(--mono); font-size: 12px; color: #fff; opacity: 0; transition: opacity 0.2s; }
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px var(--pad);
  transition: transform 0.5s var(--ease);
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 7, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.4s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 28px; margin: 0 auto; }
.nav__links a { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.nav__links .mono { font-size: 11px; }
.nav__cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text); transition: transform 0.35s var(--ease); }
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded='true'] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Text swap on hover */
.swap { position: relative; display: inline-block; overflow: hidden; vertical-align: bottom; }
.swap::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
  color: var(--blue-soft);
}
.swap, .swap::after { transition: transform 0.45s var(--ease); }
a:hover > .swap { transform: translateY(-100%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: #3b72ea; transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--text); }
.btn--lg { padding: 16px 28px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  padding: 140px var(--pad) 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 10% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(47, 99, 214, 0.28), transparent 62%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}
.hero__eyebrow { margin-bottom: 28px; }
.hero__title {
  font-size: clamp(56px, 11.5vw, 200px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.055em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line--indent { padding-left: 12vw; }
.hero__title .word { display: inline-block; transform: translateY(105%); }
body.is-ready .hero__title .word { animation: rise 1.2s var(--ease) forwards; }
body.is-ready .hero__title .line:nth-child(1) .word:nth-child(1) { animation-delay: 0.05s; }
body.is-ready .hero__title .line:nth-child(1) .word:nth-child(2) { animation-delay: 0.12s; }
body.is-ready .hero__title .line:nth-child(2) .word:nth-child(1) { animation-delay: 0.2s; }
body.is-ready .hero__title .line:nth-child(2) .word:nth-child(2) { animation-delay: 0.26s; }
body.is-ready .hero__title .line:nth-child(2) .word:nth-child(3) { animation-delay: 0.32s; }
.hero__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero__lead { max-width: 460px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__scroll { margin-top: 56px; display: flex; align-items: center; gap: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee__track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.marquee__track i { font-style: normal; color: var(--blue); font-size: 0.6em; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
section { position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 0 var(--pad);
  margin-bottom: 56px;
  align-items: start;
}
.section-head .mono { padding-top: 0.9em; }
.section-head h2 {
  font-size: clamp(40px, 7vw, 112px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

/* ---------- Explore board ---------- */
.explore { padding: 140px 0 120px; }
.board {
  position: relative;
  height: min(78vh, 760px);
  margin: 0 var(--pad);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(47, 99, 214, 0.1), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 60px 60px,
    var(--bg-2);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.board.is-dragging { cursor: grabbing; }
.board__canvas { position: absolute; width: 2400px; height: 1500px; will-change: transform; }
.board__hint { position: absolute; left: 24px; bottom: 20px; display: flex; gap: 10px; align-items: center; }
.board__word {
  position: absolute;
  font-size: 140px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(157, 183, 242, 0.18);
  pointer-events: none;
}

.card {
  position: absolute;
  width: 320px;
  padding: 22px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  transition: transform 0.6s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-6px) rotate(-0.6deg); border-color: rgba(47, 99, 214, 0.5); }
.card header, .card footer { display: flex; justify-content: space-between; align-items: center; }
.card header { margin-bottom: 18px; }
.card h3 { font-size: 20px; letter-spacing: -0.02em; margin: 2px 0 14px; }
.card footer { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.card footer strong { font-size: 18px; }
.card .big { display: block; font-size: 36px; font-weight: 700; letter-spacing: -0.04em; margin: 8px 0; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; color: var(--muted); }
.lines b { color: var(--text); font-weight: 500; }
.chip { font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; background: rgba(47, 99, 214, 0.16); color: var(--blue-soft); }
.chip--solid { background: var(--blue); color: #fff; }
.card--payment .chip { position: absolute; top: 20px; right: 20px; }
.card--invoice { width: 380px; }
.card--receipt {
  width: 280px;
  background: #f4f6fb;
  color: #141a2a;
  border-radius: 6px;
  transform: rotate(-4deg);
  overflow: hidden;
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x;
          mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x;
  padding-bottom: 30px;
}
.card--receipt:hover { transform: rotate(-2deg) translateY(-6px); }
.card--receipt .mono { color: #141a2a; }
.card--receipt .muted { color: #6a7287; }
.card--receipt .lines li { color: #4a5266; }
.card--receipt .lines b { color: #141a2a; }
.card--receipt footer { border-color: rgba(0, 0, 0, 0.12); }
.center { text-align: center; }
.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 0 18px 4px rgba(47, 99, 214, 0.6);
  animation: scan 3.2s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 8%; } 50% { top: 86%; } }
.detected { position: absolute; bottom: 10px; left: 22px; color: var(--blue-deep) !important; font-weight: 500; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin: 14px 0; }
.bars span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(var(--blue), var(--blue-deep)); }
.bars span:last-child { background: linear-gradient(var(--blue-soft), var(--blue)); }
.people { list-style: none; margin: 14px 0 0; padding: 0; }
.people li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; }
.people i {
  font-style: normal;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(47, 99, 214, 0.18);
  color: var(--blue-soft);
  font-weight: 600;
}
.people span { flex: 1; }
.people b { font-weight: 400; color: var(--muted); font-size: 13px; }

/* ---------- Features ---------- */
.features { padding: 120px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--pad); margin-bottom: 32px; }
.filter {
  font-family: var(--mono);
  font-size: 13px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.feature-list { list-style: none; margin: 0; padding: 0 var(--pad); border-top: 1px solid var(--line); }
.feature {
  display: grid;
  grid-template-columns: 120px minmax(0, 1.1fr) minmax(0, 1fr) 80px;
  gap: 16px;
  align-items: baseline;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.45s var(--ease), padding 0.45s var(--ease), color 0.3s;
}
.feature h3 { font-size: clamp(24px, 3vw, 44px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; transition: transform 0.5s var(--ease), color 0.3s; }
.feature p { color: var(--muted); max-width: 440px; }
.feature__tag { text-align: right; }
.feature:hover h3 { transform: translateX(14px); color: var(--blue-soft); }
.feature.is-hidden { display: none; }
.feature-list:hover .feature:not(:hover) { opacity: 0.35; }

.preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.preview.is-on { opacity: 1; transform: scale(1); }
.preview .card { position: relative; left: auto !important; top: auto !important; width: 300px; transform: rotate(-3deg); }
@media (hover: none), (pointer: coarse) { .preview { display: none; } }

/* ---------- Numbers ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.num { padding: 48px var(--pad); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.num:last-child { border-right: 0; }
.num strong { font-size: clamp(48px, 6vw, 96px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.num span { color: var(--muted); font-size: 15px; max-width: 200px; }

/* ---------- How ---------- */
.how { padding: 140px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 var(--pad); }
.step {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--bg-2), transparent);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.step:hover { border-color: rgba(47, 99, 214, 0.5); transform: translateY(-6px); }
.step h3 { font-size: 28px; letter-spacing: -0.03em; margin: auto 0 12px; }
.step p { color: var(--muted); }
.step:nth-child(2) { transition-delay: 0.08s; }
.step:nth-child(3) { transition-delay: 0.16s; }

/* ---------- CTA ---------- */
.cta { padding: 60px var(--pad) 140px; }
.cta__link { display: block; border-top: 1px solid var(--line); padding-top: 40px; }
.cta__small { display: block; margin-bottom: 16px; }
.cta__big {
  display: block;
  font-size: clamp(72px, 16vw, 280px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.85;
  transition: color 0.4s, transform 0.6s var(--ease);
}
.cta__big em { font-style: italic; font-weight: 300; color: var(--blue); }
.cta__link:hover .cta__big { transform: translateX(2vw); }

/* ---------- Contact ---------- */
.contact { padding: 40px 0 140px; }
.contact__grid { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 16px; padding: 0 var(--pad); }
.contact__lead { grid-column: 2; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; max-width: 520px; }
.contact__links { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.contact__links a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(18px, 1.8vw, 24px); }

/* ---------- Footer ---------- */
.footer { padding: 0 var(--pad) 28px; overflow: hidden; }
.footer__wordmark {
  font-size: clamp(80px, 24vw, 420px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.78;
  background: linear-gradient(180deg, var(--text), rgba(47, 99, 214, 0.35));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: -0.04em;
}
.footer__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: var(--pad);
    background: var(--bg);
    transform: translateY(-100%);
    transition: transform 0.6s var(--ease);
    z-index: -1;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; }
  .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: block; }
  .section-head { grid-template-columns: 1fr; gap: 8px; }
  .feature { grid-template-columns: 48px 1fr; }
  .feature p { grid-column: 2; }
  .feature__tag { display: none; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .num:nth-child(2) { border-right: 0; }
  .num:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 220px; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__lead { grid-column: auto; }
}

@media (max-width: 560px) {
  .nav__cta .btn--solid { display: none; }
  .hero { padding-top: 120px; }
  .line--indent { padding-left: 0; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .numbers { grid-template-columns: 1fr; }
  .num { border-right: 0; border-bottom: 1px solid var(--line); }
  .num:last-child { border-bottom: 0; }
  .board { height: 70vh; border-radius: 20px; }
  .contact__links a { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .word, .gate__mark span { transform: none; opacity: 1; }
}

/* Secondary colour #ff7214: highlights and live accents. */
.accent, .cta__big em { color: var(--accent); }
.dot { background: var(--accent); }
.marquee__track i { color: var(--accent); }
.bars span:last-child { background: var(--accent); }
.gate__mark span:nth-child(n + 6) { color: var(--accent); }
