/* ------------------------------------------------------------------ tokens */
:root {
  --bg: #0B0F0C;
  --bg-2: #111813;
  --card: #151E18;
  --card-2: #1B261F;
  --line: rgba(232, 240, 233, .10);
  --line-2: rgba(232, 240, 233, .18);
  --ink: #EEF3EE;
  --ink-2: #B7C2B9;
  --ink-3: #7E8B82;
  --green: #22D17B;
  --green-deep: #06C167;
  --amber: #FFB547;
  --radius: 22px;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Soft light in the corners so the dark page doesn't feel flat. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(34, 209, 123, .13), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(255, 181, 71, .07), transparent 60%);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
::selection { background: var(--green); color: #04130A; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(11, 15, 12, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__mark { font: 800 24px/1 var(--display); text-decoration: none; letter-spacing: -.03em; }
.nav__mark span { color: var(--green); }
.nav__links { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); font-size: 14.5px; }
.nav__links a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__links .nav__cta { color: #04130A; background: var(--green); padding: 9px 16px; border-radius: 999px; font-weight: 600; }
.nav__links .nav__cta:hover { color: #04130A; background: #3BE08E; }
@media (max-width: 640px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ------------------------------------------------------------------ shared */
section { padding: clamp(64px, 10vw, 120px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--green);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 209, 123, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 209, 123, .55); } 70% { box-shadow: 0 0 0 10px rgba(34, 209, 123, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 209, 123, 0); } }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.04; margin-top: 14px; }
.section-head p:not(.eyebrow) { color: var(--ink-2); font-size: 17.5px; margin-top: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 15.5px/1 var(--body); text-decoration: none; transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--green); }

/* Entrance animation, switched on by main.js. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ hero */
.hero { padding-top: clamp(56px, 11vw, 132px); }
.hero__title { font-size: clamp(44px, 8.6vw, 104px); line-height: .98; margin-top: 22px; }
.hero__title em { font-style: normal; color: var(--green); }
.hero__lede { max-width: 640px; margin-top: 26px; font-size: clamp(17px, 2vw, 19.5px); color: var(--ink-2); }
.hero__lede strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.facts {
  list-style: none; padding: 0; margin: clamp(48px, 8vw, 88px) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts li { padding: 22px 18px 22px 0; display: flex; flex-direction: column; gap: 6px; }
.facts li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.facts b { font: 700 24px/1.1 var(--display); }
.facts span { color: var(--ink-3); font-size: 14px; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------------ projects */
.projects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.project {
  grid-column: span 3; position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column;
  transition: border-color .3s, transform .3s;
}
.project:hover { border-color: var(--line-2); transform: translateY(-4px); }
.project--wide { grid-column: span 6; flex-direction: row; }
.project--third { grid-column: span 2; }
@media (max-width: 980px) {
  .project, .project--third { grid-column: span 3; }
  .project--wide { grid-column: span 6; flex-direction: column; }
}
@media (max-width: 640px) { .project, .project--third, .project--wide { grid-column: span 6; } }

.project__visual {
  position: relative; min-height: 280px; padding: 28px 28px 0;
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border-bottom: 1px solid var(--line);
}
.project--wide .project__visual { flex: 1.15; border-bottom: 0; border-right: 1px solid var(--line); min-height: 420px; }
@media (max-width: 980px) { .project--wide .project__visual { border-right: 0; border-bottom: 1px solid var(--line); min-height: 320px; } }
.project__visual::after { /* a glow in the project's own colour */
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; bottom: -45%;
  background: var(--glow, rgba(34, 209, 123, .28)); filter: blur(70px); z-index: 0;
}
.project__visual > * { position: relative; z-index: 1; }

.project__body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project--wide .project__body { flex: 1; justify-content: center; padding: clamp(28px, 4vw, 48px); }
.project__meta { font: 500 12px/1 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; }
.project__title { font-size: clamp(24px, 3vw, 30px); line-height: 1.1; }
.project--wide .project__title { font-size: clamp(30px, 4vw, 44px); }
.project__summary { color: var(--ink-2); }
.project__points { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.project__points li { padding-left: 22px; position: relative; }
.project__points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 2px; background: var(--green); border-radius: 2px; }
.project__stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.project__stack span { font: 500 11.5px/1 var(--mono); padding: 7px 10px; border-radius: 999px; background: rgba(232, 240, 233, .06); color: var(--ink-2); }
.project__links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: auto; padding-top: 10px; }
.project__links a { font-weight: 600; font-size: 14.5px; color: var(--green); text-decoration: none; }
.project__links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Device frames around screenshots */
.phone {
  width: min(230px, 62%); aspect-ratio: 9 / 19; border-radius: 34px 34px 0 0; overflow: hidden;
  border: 7px solid #050806; border-bottom: 0; background: #050806;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  transform: translateY(14px); transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.project:hover .phone, .project:hover .browser { transform: translateY(0); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px 26px 0 0; }
.browser {
  width: 100%; max-width: 640px; border-radius: 14px 14px 0 0; overflow: hidden; background: #050806;
  border: 1px solid var(--line-2); border-bottom: 0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  transform: translateY(14px); transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #0E1410; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2A332D; }
.browser__bar span { margin-left: 10px; font: 500 11px/1 var(--mono); color: var(--ink-3); }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
/* Three phones fanned out, the middle one in front. */
.fan { display: flex; align-items: flex-end; justify-content: center; width: 100%; }
.fan .phone { width: min(210px, 34%); flex: none; }
.fan .phone:nth-child(1) { transform: translate(28px, 46px) rotate(-8deg); }
.fan .phone:nth-child(2) { position: relative; z-index: 2; transform: translateY(14px); }
.fan .phone:nth-child(3) { transform: translate(-28px, 46px) rotate(8deg); }
.project:hover .fan .phone:nth-child(1) { transform: translate(18px, 34px) rotate(-10deg); }
.project:hover .fan .phone:nth-child(2) { transform: translateY(0); }
.project:hover .fan .phone:nth-child(3) { transform: translate(-18px, 34px) rotate(10deg); }
.pair { display: flex; align-items: flex-end; gap: 16px; width: 100%; justify-content: center; }
.pair .browser { flex: 1; }
.pair .phone { width: 150px; flex: none; }
@media (max-width: 640px) { .pair .phone { display: none; } }

/* Drawn UI for systems that live behind a login (no customer data shown). */
.mock {
  width: 100%; max-width: 420px; border-radius: 16px 16px 0 0; background: #0E1410;
  border: 1px solid var(--line-2); border-bottom: 0; padding: 16px 16px 0;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); font-size: 12.5px;
  transform: translateY(14px); transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.project:hover .mock { transform: translateY(0); }
.mock__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mock__head b { font: 700 15px/1 var(--display); }
.mock__pill { font: 500 10.5px/1 var(--mono); padding: 5px 8px; border-radius: 999px; background: rgba(34, 209, 123, .14); color: var(--green); }
.mock__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.mock__card { background: var(--card-2); border-radius: 10px; padding: 10px; }
.mock__card small { display: block; color: var(--ink-3); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.mock__card strong { font: 700 18px/1.3 var(--display); }
.mock__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 2px; border-top: 1px solid var(--line); color: var(--ink-2); }
.mock__row em { font-style: normal; font: 500 10.5px/1 var(--mono); padding: 4px 7px; border-radius: 6px; }
.mock__row .ok { background: rgba(34, 209, 123, .14); color: var(--green); }
.mock__row .wait { background: rgba(255, 181, 71, .14); color: var(--amber); }
.mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.mock__tile { background: var(--card-2); border-radius: 10px; padding: 10px 8px; }
.mock__tile i { display: block; height: 34px; border-radius: 7px; margin-bottom: 7px; background: linear-gradient(135deg, rgba(34, 209, 123, .35), rgba(255, 181, 71, .25)); }
.mock__tile span { display: block; color: var(--ink-2); font-size: 11px; }
.mock__tile b { font-size: 11.5px; }

.work__more { margin-top: 28px; color: var(--ink-3); }
.work__more a { color: var(--ink); }

/* ------------------------------------------------------------------ capabilities */
.caps__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .caps__grid { grid-template-columns: 1fr; } }
.cap { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(21, 30, 24, .55); }
.cap__num { font: 500 12px/1 var(--mono); color: var(--green); }
.cap h3 { font-size: 26px; margin-top: 18px; }
.cap p { color: var(--ink-2); margin-top: 10px; }
.cap .cap__tags { font: 500 12px/1.6 var(--mono); color: var(--ink-3); margin-top: 18px; }

/* ------------------------------------------------------------------ process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; padding-top: 22px; border-top: 2px solid var(--line-2); }
.steps li::before { content: "0" counter(step); font: 500 12px/1 var(--mono); color: var(--green); }
.steps h3 { font-size: 21px; margin-top: 14px; }
.steps p { color: var(--ink-2); margin-top: 8px; font-size: 15px; }

/* ------------------------------------------------------------------ contact */
.contact__card {
  border-radius: 30px; padding: clamp(32px, 6vw, 72px);
  background: linear-gradient(140deg, #0F7A45 0%, #0C5A35 45%, #0A2618 100%);
  border: 1px solid rgba(34, 209, 123, .35); position: relative; overflow: hidden;
}
.contact__card::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 181, 71, .22); filter: blur(90px); }
.contact__card > * { position: relative; z-index: 1; }
.contact__card .eyebrow { color: #B6F5D2; }
.contact__card h2 { font-size: clamp(30px, 5vw, 54px); line-height: 1.04; margin-top: 14px; max-width: 760px; }
.contact__card p:not(.eyebrow) { color: #D3EFDF; margin-top: 16px; max-width: 560px; font-size: 17.5px; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.contact__links .btn--solid { background: #fff; color: #062E1A; }
.contact__links .btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }

/* ------------------------------------------------------------------ footer */
.foot {
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--line);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
