:root {
  --white: #FFFFFF;
  --paper: #FAF8F7;
  --black: #262626;
  --black-2: #1A1A1A;
  --grey: #5E5E5E;
  --red: #B3001B;
  --red-hover: #C9142F;
  --red-soft: #FBE8EB;
  --blue: #0D4FF5;
  --blue-hover: #2F63F7;
  --blue-soft: #E8EEFE;
  --on-dark: #F2F2F2;
  --on-dark-2: #B5B5B5;
  --line: rgba(38, 38, 38, 0.14);
  --line-dark: rgba(242, 242, 242, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3 {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; }
svg { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3.4rem);
}
section { padding: clamp(4rem, 9vw, 7rem) 0; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.label::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.on-dark .label { color: #8FB0FF; }

/* Buttons: Nimble-style boxed button with hard offset shadow */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 2px solid var(--black);
  border-radius: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--black);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--black); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--black); }
.btn-light { background: var(--white); color: var(--black); }
.btn-red { background: var(--red); color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); }
.on-dark .btn { border-color: var(--white); box-shadow: 4px 4px 0 var(--white); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Wordmark: same logo image as the email signature */
.wordmark { display: inline-flex; line-height: 0; }
.wordmark img { width: clamp(108px, 12vw, 136px); height: auto; }

/* Header + hero frame */
.top { padding: clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 2vw, 1.5rem) 0; }
.hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  min-height: min(88vh, 760px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(70% 80% at 90% 10%, rgba(13, 79, 245, 0.6), transparent 70%),
    radial-gradient(50% 55% at 100% 100%, rgba(179, 0, 27, 0.45), transparent 70%),
    radial-gradient(45% 55% at 100% 70%, rgba(80, 130, 255, 0.4), transparent 70%),
    radial-gradient(40% 50% at 40% 20%, rgba(214, 226, 255, 0.9), transparent 70%),
    linear-gradient(120deg, #F6F8FF 0%, #E9EFFE 45%, #F1EAF6 100%);
}
nav {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.1rem, 2.5vw, 1.8rem) clamp(1.1rem, 4vw, 3rem);
}
.nav-links { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.6rem); }
.nav-links a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--black);
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links .btn { padding: 0.6rem 1.1rem; font-size: 0.8rem; }
@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
}

.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.1rem, 4vw, 3rem) clamp(6rem, 12vw, 9rem);
  max-width: 900px;
}
.hero .label { color: var(--blue); }
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 1.1rem;
  color: var(--black);
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lede {
  max-width: 34rem;
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: #3A3A3A;
  font-weight: 500;
}
.hero .actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }

/* Vertical-line wave (drawn by script.js) */
.wave {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 70%;
  z-index: 1;
  pointer-events: none;
}
.wave line { stroke-linecap: round; }

.scroll-down {
  position: absolute;
  z-index: 3;
  left: clamp(1.1rem, 4vw, 3rem);
  bottom: clamp(1.1rem, 3vw, 2.2rem);
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: background 0.2s ease;
}
.scroll-down:hover { background: var(--blue); }
.scroll-down svg { animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* Ticker strip */
.strip { background: var(--black); color: var(--white); padding: 1.1rem 0; margin-top: clamp(0.75rem, 2vw, 1.5rem); }
.strip .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
}
.strip .row span { display: inline-flex; align-items: center; gap: 2rem; }
.strip .row span::after { content: ""; width: 7px; height: 7px; background: var(--red); border-radius: 50%; }
.strip .row span:last-child::after { display: none; }

/* Section heads */
.sec-head { max-width: 46rem; }
.sec-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-top: 0.9rem; letter-spacing: -0.01em; }
.sec-head p { margin-top: 1rem; font-size: 1.06rem; color: var(--grey); font-weight: 500; }
.on-dark .sec-head h2 { color: var(--white); }
.on-dark .sec-head p { color: var(--on-dark-2); }

/* Services */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
  border-top: 2px solid var(--black);
  border-left: 2px solid var(--black);
}
.card {
  border-right: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  padding: 2rem 1.7rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--white);
  transition: background 0.2s ease;
}
.card:hover { background: var(--blue-soft); }
.card .num { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--blue); letter-spacing: 0.08em; }
.card h3 { font-size: 1.35rem; }
.card p { color: var(--grey); font-size: 0.97rem; font-weight: 500; }
.card ul { margin: 0.4rem 0 0; padding: 0; list-style: none; font-size: 0.9rem; font-weight: 600; }
.card li { padding: 0.22rem 0; }
.card li::before { content: "→ "; color: var(--red); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* What we do (dark) */
.what { background: var(--black); color: var(--on-dark); }
.what .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.what .body p { font-size: 1.08rem; color: var(--on-dark-2); font-weight: 500; }
.what .body p + p { margin-top: 1.2rem; }
.what .body strong { color: var(--white); }
.what .body .btn { margin-top: 2rem; }
@media (max-width: 820px) { .what .grid { grid-template-columns: 1fr; } }

/* Automation flow card */
.flow {
  margin-top: 2.6rem;
  background: var(--black-2);
  border: 1px solid var(--line-dark);
  padding: 1.5rem;
}
.flow-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-dark);
}
.flow-head .live { display: inline-flex; align-items: center; gap: 0.45rem; color: #FF6B80; }
.flow-head .live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(179, 0, 27, 0.35);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.flow ol { list-style: none; margin: 0; padding: 0; }
.flow li {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--white);
}
.flow li:last-child { border-bottom: none; padding-bottom: 0.2rem; }
.flow .step {
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  background: var(--blue);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
}
.flow .t { font-size: 0.76rem; color: var(--on-dark-2); white-space: nowrap; }
.flow small { display: block; font-weight: 500; color: var(--on-dark-2); font-size: 0.8rem; }

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.steps > div { border-top: 2px solid var(--black); padding-top: 1.3rem; }
.steps .n { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 2.6rem; color: var(--blue); line-height: 1; }
.steps h3 { font-size: 1.15rem; margin-top: 1rem; }
.steps p { color: var(--grey); font-size: 0.95rem; margin-top: 0.5rem; font-weight: 500; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* Stats */
.stats { background: var(--paper); }
.stats .row { display: grid; grid-template-columns: repeat(2, minmax(0, 22rem)); gap: 2rem; margin-top: 2.8rem; }
.stat .big { font-family: "Archivo", sans-serif; font-weight: 800; font-size: clamp(2.6rem, 5.5vw, 3.8rem); color: var(--blue); line-height: 1; }
.stat p { margin-top: 0.7rem; color: var(--grey); font-weight: 500; }
.stats .note { margin-top: 1.8rem; font-size: 0.8rem; color: var(--grey); }
@media (max-width: 720px) { .stats .row { grid-template-columns: 1fr; } }

/* Manifesto */
.manifesto { background: var(--red); text-align: center; }
.manifesto h2 { font-size: clamp(2rem, 5.2vw, 3.6rem); color: var(--white); max-width: 18ch; margin: 0 auto; }

/* Contact */
.contact .grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact .details { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact .details a {
  display: flex; gap: 0.8rem; align-items: center;
  text-decoration: none; font-weight: 600;
}
.contact .details a:hover { color: var(--red); }
.contact .details svg { flex: none; color: var(--red); }

form {
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: 8px 8px 0 var(--red);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
form .full { grid-column: 1 / -1; }
form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; font-weight: 700; }
form label .opt { font-weight: 500; color: var(--grey); }
input, select, textarea {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--black);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.75rem 0.85rem;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); background: var(--white); }
textarea { resize: vertical; min-height: 7.5rem; }
form .btn { justify-self: start; }
form .fineprint { font-size: 0.8rem; color: var(--grey); }
.form-status { font-size: 0.9rem; font-weight: 600; color: var(--blue); }
.form-status:empty { display: none; }
@media (max-width: 860px) { .contact .grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { form { grid-template-columns: 1fr; } }

/* Footer */
footer { background: var(--black); color: var(--on-dark-2); padding: 2.4rem 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; }
footer .wordmark img { width: 104px; }
@media (max-width: 620px) {
  .strip .row { gap: 0.4rem 1.2rem; }
  .strip .row span { gap: 0; }
  .strip .row span::after { display: none; }
}
