/* MotiveSeed site
   Light, quiet page; the only dark surfaces are the simulation window and the
   contact band. Seed green marks what the machine sees, plans and moves. */

/* Self-hosted variable fonts (latin subset, SIL Open Font License) */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-mono-latin-var.woff2") format("woff2");
}

:root {
  --paper: #F4F5F6;
  --panel: #FFFFFF;
  --ink: #0E1116;
  --ink-2: #48505C;
  --ink-3: #79818D;
  --line: #DDE1E6;
  --steel: #0F1318;
  --steel-2: #161B22;
  --steel-line: #27303A;
  --on-steel: #A9B2BD;
  --seed: #A6E83A;
  --seed-ink: #3E6A0E;

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.375rem;
  --t-xl: clamp(1.9rem, 1.3rem + 2vw, 3rem);
  --t-hero: clamp(2.3rem, 1.1rem + 2.9vw, 3.6rem);

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::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(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #262C35; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: var(--t-sm); background: var(--ink); color: #fff; }
.btn-small:hover { background: #262C35; }
.btn-seed { background: var(--seed); color: var(--steel); }
.btn-seed:hover { background: #BDF263; }

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.header-inner { display: flex; align-items: center; height: 68px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav > a:not(.btn) { color: var(--ink-2); font-size: var(--t-sm); text-decoration: none; }
.site-nav > a:not(.btn):hover { color: var(--ink); }
@media (max-width: 480px) { .site-nav > a:not(.btn) { display: none; } }

/* ---- Hero ---- */

.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(72px, 10vw, 136px); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: var(--t-hero);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 span { display: block; }
.tagline {
  margin-top: 22px;
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}
.tagline .dot { color: var(--seed-ink); }
.lede { margin-top: 14px; max-width: 26em; text-wrap: pretty; color: var(--ink-2); font-size: var(--t-md); }
.hero-copy .btn { margin-top: 36px; }

/* Gentle entrance for the hero copy */
.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.sim { animation: rise 0.9s 0.2s var(--ease) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* ---- Simulation window ---- */

.sim {
  overflow: hidden;
  border-radius: 14px;
  background: var(--steel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -28px rgba(14, 17, 22, 0.5);
}
.sim-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--steel-line);
}
.phases { display: flex; gap: 6px; }
.phases li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  color: #6B7581;
  font-size: var(--t-sm);
  line-height: 1.5;
  transition: color 0.3s ease, background-color 0.3s ease;
}
.phases .num { font-family: var(--mono); font-size: var(--t-xs); }
.phases li.is-on { background: rgba(166, 232, 58, 0.12); color: var(--seed); }
.sim-tag { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.08em; color: #56606C; }

.sim-view { width: 100%; height: auto; }
.sim-label { font-family: var(--mono); font-size: 13px; fill: #7D8793; }

.sim-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding: 12px 18px;
  border-top: 1px solid var(--steel-line);
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: #56606C;
}
.sim-readout b { font-weight: 500; color: var(--on-steel); font-variant-numeric: tabular-nums; }
.sim-readout .grip { margin-left: auto; }

@media (max-width: 520px) {
  .sim-tag { display: none; }
  .phases li { padding: 4px 9px; }
  .sim-readout .grip { margin-left: 0; }
}

/* ---- What we do ---- */

.section { padding: clamp(72px, 10vw, 128px) 0; background: var(--panel); }
.section-head { display: grid; gap: 14px; max-width: 40em; }
.section-head h2, .contact h2 {
  font-size: var(--t-xl);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-head > p:last-child { color: var(--ink-2); font-size: var(--t-md); text-wrap: pretty; }

.offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(48px, 6vw, 72px);
}
.offer {
  position: relative;
  padding: 28px 28px 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  transition: border-color 0.25s ease, transform 0.35s var(--ease);
}
.offer:hover { border-color: #B9C0C8; transform: translateY(-3px); }
.offer-num {
  position: absolute;
  top: 26px;
  right: 28px;
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
}
.offer-icon { width: 56px; height: 56px; }
.offer-icon .i-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.offer-icon .i-bg { fill: var(--paper); }
.offer-icon .i-fill { fill: var(--seed); stroke: var(--ink); stroke-width: 2; }
.offer-icon .i-move {
  fill: none;
  stroke: var(--seed-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 4;
}
.offer:hover .i-move { animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -12; } }
.offer h3 { margin-top: 40px; font-size: var(--t-lg); font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
.offer p { margin-top: 10px; color: var(--ink-2); text-wrap: pretty; }

@media (max-width: 860px) {
  .offers { grid-template-columns: 1fr; }
  .offer h3 { margin-top: 28px; }
}

/* ---- Contact ---- */

.contact { padding: clamp(80px, 11vw, 144px) 0; background: var(--steel); color: #F1F3F5; }
.contact .eyebrow { color: #6B7581; }
.contact h2 { margin-top: 14px; }
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: end;
}
.contact-mail { display: grid; justify-items: start; gap: 6px; }
.contact-label { font-size: var(--t-sm); color: var(--on-steel); }
.mail {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 1px solid #3A4450;
  overflow-wrap: anywhere;
  transition: border-color 0.2s ease;
}
.mail:hover { border-color: var(--seed); }
.contact-mail .btn { margin-top: 26px; }
.contact :focus-visible { outline-color: var(--seed); }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; align-items: start; } }

/* ---- Footer ---- */

.site-footer { background: var(--steel); border-top: 1px solid var(--steel-line); color: #6B7581; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 28px;
  font-size: var(--t-sm);
}

/* ---- 404 ---- */

.notfound { padding: clamp(96px, 14vw, 160px) 0; }
.notfound h1 { font-size: var(--t-xl); font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; }
.notfound p { margin-top: 12px; color: var(--ink-2); }
.notfound .btn { margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .sim { animation: none; }
  .offer, .offer:hover { transform: none; }
  .offer:hover .i-move { animation: none; }
}
