/* ZSM Digital site. Plain CSS, no build step. */

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0A0C10;
  --bg-soft: #0E1117;
  --panel: #10131A;
  --panel-2: #161A22;
  --line: #1C212B;
  --line-2: #262C38;
  --line-3: #3A4250;
  --line-4: #5A6373;
  --text: #EEF1F6;
  --text-2: #D5DBE5;
  --muted: #B7C0CE;
  --dim: #9BA5B5;
  --lime: #C8F250;
  --lime-hi: #E2FF8A;
  --lime-line: #5C7020;
  --cyan: #7FE7F2;
  --cyan-line: #2B6A72;
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1160px;
  --pad: clamp(20px, 5vw, 48px);
  --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--lime); }
a:hover { color: var(--lime-hi); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--lime); color: var(--bg); padding: 10px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--bg); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.rule-top { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; }

.eyebrow {
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--lime);
}
.h2 {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.1; letter-spacing: -.02em; text-wrap: balance;
}
.lede { color: var(--muted); max-width: 40em; text-wrap: pretty; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 44em; }

.btn {
  display: inline-block; font-weight: 600; text-decoration: none; border-radius: 8px;
  padding: 14px 22px; line-height: 1.3; border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--lime); color: var(--bg); }
.btn-primary:hover { background: var(--lime-hi); color: var(--bg); }
.btn-ghost { color: var(--text); border-color: var(--line-4); }
.btn-ghost:hover { color: var(--text); border-color: var(--lime); }
.btn-dark { background: var(--bg); color: var(--text); }
.btn-dark:hover { background: #1C212B; color: var(--text); }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 22px; padding-bottom: 22px;
}
.brand {
  display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 1.125rem;
}
.brand:hover { color: var(--text); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: .9375rem; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; padding: 10px 0; }
.nav a:not(.btn):hover { color: var(--text); }
.nav .btn { padding: 11px 18px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.dots { background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 28px 28px; }
.hero-dots { position: absolute; inset: 0; }
.glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; }
.glow-1 { right: -10%; top: -30%; background: radial-gradient(closest-side, rgba(200,242,80,.20), rgba(200,242,80,0)); }
.glow-2 { left: -20%; bottom: -55%; background: radial-gradient(closest-side, rgba(127,231,242,.14), rgba(127,231,242,0)); }
.hero-inner {
  position: relative; display: flex; flex-direction: column; gap: 36px;
  padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(48px, 7vw, 88px);
}
.hero-title {
  font-family: var(--display); font-weight: 700; font-size: clamp(2.875rem, 10.4vw, 9rem);
  line-height: 1.08; letter-spacing: -.04em;
}
.ticker { display: block; height: 1.3em; line-height: 1.3; margin-top: -.08em; overflow: hidden; color: var(--lime); }
.ticker-list { display: flex; flex-direction: column; }
.ticker-list span { display: block; height: 1.3em; }
.hero-foot {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 32px 56px; align-items: end; border-top: 1px solid var(--line-3); padding-top: 28px;
}
.hero-desc { color: var(--text-2); font-size: 1.1875rem; max-width: 34em; text-wrap: pretty; }
.hero-actions { display: flex; flex-direction: column; gap: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero: AI and people tags */
.duo { display: flex; flex-wrap: wrap; gap: 10px; font-size: .9375rem; }
.duo-tag { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); border-radius: 8px; padding: 9px 14px; }
.duo-tag b { font-family: var(--mono); font-weight: 500; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.duo-ai b { color: var(--lime); }
.duo-people b { color: var(--cyan); }

/* Band */
.band {
  overflow: hidden; background: var(--lime); color: var(--bg); padding: 16px 0; white-space: nowrap;
  font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em;
}
.band-track { display: inline-flex; gap: 40px; padding-left: 40px; }

/* Products slider */
.products { display: flex; flex-direction: column; gap: 28px; }
.products-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; }
.slide-hint { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .8125rem; color: var(--dim); }
.slide-hint svg { color: var(--lime); }
.slider {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px;
  scrollbar-color: var(--line-3) transparent;
}
.card {
  scroll-snap-align: start; border-radius: 14px; padding: clamp(22px, 3vw, 36px);
  flex: 0 0 min(72%, 420px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.card h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.card-zasivo {
  flex-basis: min(88%, 900px); background: var(--panel); border: 1px solid var(--line-2);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 32px; align-items: center; justify-content: normal;
}
.card-zasivo h3 { font-size: 2.25rem; }
.card-body { display: flex; flex-direction: column; gap: 18px; }
.card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.badge { font-family: var(--mono); font-size: .8125rem; border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.badge-lime { color: var(--lime); border: 1px solid var(--lime-line); }
.badge-cyan { color: var(--cyan); border: 1px solid var(--cyan-line); }
.points { display: flex; flex-direction: column; gap: 12px; }
.points li { display: flex; gap: 12px; }
.points li::before { content: "+"; color: var(--lime); font-family: var(--mono); flex: none; }
.points strong { font-weight: 600; }
.points span { color: var(--muted); }
.card-intro { color: var(--text-2); }
.small { font-size: .9375rem; color: var(--dim); }
.arrow-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  text-decoration: none; border-bottom: 1px solid var(--lime); padding: 6px 0 2px;
}
.phone-wrap { display: flex; justify-content: center; }
.phone {
  position: relative; width: min(100%, 236px); aspect-ratio: 375 / 812; border: 3px solid var(--line-4);
  border-radius: 30px; background: #FFFFFF; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card-next { border: 1px dashed var(--line-4); }
.card-next h3 { font-size: 1.75rem; }
.card-next p { color: var(--muted); }
.skeleton { display: flex; flex-direction: column; gap: 12px; }
.skeleton span { display: block; height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; }
.skeleton span::after { content: ""; display: block; height: 100%; background: var(--line-3); transform-origin: left center; }
.skeleton span:nth-child(1) { width: 78%; }
.skeleton span:nth-child(1)::after { background: var(--cyan); }
.skeleton span:nth-child(3) { width: 56%; }
.skeleton span:nth-child(4) { height: 64px; border-radius: 8px; }
.skeleton span:nth-child(4)::after { background: #232833; }
.card-you { background: var(--lime); color: var(--bg); }
.card-you h3 { font-size: 2.125rem; letter-spacing: -.025em; }
.card-you p { font-weight: 500; }
.card-you .btn { align-self: flex-start; }

/* Bring us a problem */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 48px; align-items: start; }
.work-main { display: flex; flex-direction: column; gap: 18px; }
.work-main .btn { align-self: flex-start; }
.familiar-box, .familiar { display: flex; flex-direction: column; gap: 10px; }
.familiar-label { font-family: var(--mono); font-size: .8125rem; color: var(--dim); }
.familiar-stage { display: flex; flex-direction: column; gap: 10px; }
.familiar li { border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); border-radius: 8px; padding: 10px 14px; font-size: 1rem; }
.familiar-b li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.familiar-b svg { flex: none; color: var(--dim); }
.familiar-b strong { font-weight: 500; color: var(--lime); }
.rows > div { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line-2); }
.rows > div:last-child { border-bottom: 1px solid var(--line-2); }
.rows h3, .steps h3, .beliefs h3 { font-family: var(--display); font-weight: 600; }
.rows h3 { font-size: 1.25rem; }
.rows p { color: var(--muted); font-size: 1rem; }

/* How we build */
.how { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how .wrap, .believe { display: flex; flex-direction: column; gap: 40px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px 24px; }
.steps li { border-top: 2px solid var(--lime); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.steps h3 { font-size: 1.3125rem; }
.steps p { color: var(--text-2); font-size: 1rem; }
.who { display: flex; gap: 10px; font-size: .9375rem; color: var(--muted); }
.who b { flex: none; width: 62px; font-family: var(--mono); font-weight: 500; font-size: .75rem; padding-top: 3px; text-transform: uppercase; }
.who-ai b { color: var(--lime); }
.who-people b { color: var(--cyan); }

/* Beliefs */
.beliefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.beliefs li { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.beliefs h3 { font-size: 1.375rem; line-height: 1.2; }
.beliefs p { color: var(--muted); font-size: 1rem; }

/* Company */
.company-main { display: flex; flex-direction: column; gap: 14px; }
.company-name { font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 3.6vw, 2.375rem); line-height: 1.12; letter-spacing: -.02em; }
.facts { font-size: 1rem; }
.facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--dim); }
.facts dd { text-align: right; }
.mono { font-family: var(--mono); }

/* Contact */
.contact .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-top: clamp(64px, 9vw, 104px); padding-bottom: clamp(64px, 9vw, 104px); }
.contact h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2.125rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -.025em; }
.contact p { color: var(--muted); max-width: 32em; }
.contact .btn { padding: 15px 24px; overflow-wrap: anywhere; }

/* Footer */
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: .875rem; color: var(--dim); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: var(--muted); padding: 4px 0; }

/* Privacy page */
.back { color: var(--muted); text-decoration: none; font-size: .9375rem; display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; }
.back:hover { color: var(--text); }
.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--pad); display: flex; flex-direction: column; gap: 28px; }
.legal h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 7vw, 4.25rem); line-height: 1.02; letter-spacing: -.03em; }
.legal-head { display: flex; flex-direction: column; gap: 12px; }
.legal-intro { font-size: 1.1875rem; color: var(--text-2); }
.legal section { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 22px; }
.legal h2 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; }
.legal section p { color: var(--muted); }
.legal section strong { color: var(--text); font-weight: 600; }

@media (max-width: 520px) {
  .facts dd { text-align: left; }
}

/* Motion. Everything below is switched off for people who ask for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .rise-1 { animation-delay: .08s; }
  .rise-2 { animation-delay: .18s; }
  .glow-1 { animation: drift-1 16s ease-in-out infinite alternate; }
  .glow-2 { animation: drift-2 20s ease-in-out infinite alternate; }
  .ticker-list { animation: ticker 13s cubic-bezier(.75,0,.15,1) infinite; }
  .duo-ai { animation: duo-ai 6s ease-in-out infinite; }
  .duo-people { animation: duo-people 6s ease-in-out infinite; }
  .band-track { animation: slide 26s linear infinite; }
  .slide-hint svg { animation: nudge 1.6s ease-in-out infinite; }
  .phone img { opacity: 0; animation: shot 12s ease-in-out infinite both; }
  .phone img:nth-child(2) { animation-delay: 4s; }
  .phone img:nth-child(3) { animation-delay: 8s; }
  .skeleton span::after { animation: fill 11s ease-in-out infinite both; }
  .skeleton span:nth-child(2)::after { animation-delay: .8s; }
  .skeleton span:nth-child(3)::after { animation-delay: 1.6s; }
  .skeleton span:nth-child(4)::after { animation-delay: 2.4s; }
  /* The two lists share one space and swap every 10 seconds. */
  .familiar-stage { display: grid; overflow: hidden; }
  .familiar-stage .familiar { grid-area: 1 / 1; }
  .familiar-stage li { flex: 1 1 auto; display: flex; align-items: center; }
  .familiar-b li { align-content: center; }
  .familiar-a { animation: swap-a 20s ease-in-out infinite; }
  .familiar-b { animation: swap-b 20s ease-in-out infinite; }
  .familiar-a li { animation: chip 10s ease-in-out infinite both; }
  .familiar-b li { animation: row-in 20s cubic-bezier(.2,.7,.2,1) infinite both, solved 10s ease-in-out infinite both; }
  .familiar li:nth-child(2) { animation-delay: 2s; }
  .familiar li:nth-child(3) { animation-delay: 4s; }
  .familiar li:nth-child(4) { animation-delay: 6s; }
  .familiar li:nth-child(5) { animation-delay: 8s; }
  .familiar-b li:nth-child(1) { animation-delay: 0s, 0s; }
  .familiar-b li:nth-child(2) { animation-delay: .12s, 2s; }
  .familiar-b li:nth-child(3) { animation-delay: .24s, 4s; }
  .familiar-b li:nth-child(4) { animation-delay: .36s, 6s; }
  .familiar-b li:nth-child(5) { animation-delay: .48s, 8s; }
  .card:not(.card-you), .beliefs li { transition: border-color .2s ease, transform .2s ease; }
  .beliefs li:hover { border-color: var(--lime-line); transform: translateY(-3px); }

  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .phone img:not(:first-child) { display: none; }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drift-1 { from { transform: translate(0, 0); } to { transform: translate(-18%, 14%); } }
@keyframes drift-2 { from { transform: translate(0, 0); } to { transform: translate(22%, -12%); } }
@keyframes ticker {
  0%, 12% { transform: translateY(0); }
  16.67%, 28.67% { transform: translateY(-1.3em); }
  33.33%, 45.33% { transform: translateY(-2.6em); }
  50%, 62% { transform: translateY(-3.9em); }
  66.67%, 78.67% { transform: translateY(-5.2em); }
  83.33%, 95.33% { transform: translateY(-6.5em); }
  100% { transform: translateY(-7.8em); }
}
@keyframes duo-ai {
  0%, 40% { border-color: var(--lime); color: var(--text); }
  50%, 90% { border-color: var(--line-2); color: var(--muted); }
  100% { border-color: var(--lime); color: var(--text); }
}
@keyframes duo-people {
  0%, 40% { border-color: var(--line-2); color: var(--muted); }
  50%, 90% { border-color: var(--cyan); color: var(--text); }
  100% { border-color: var(--line-2); color: var(--muted); }
}
@keyframes chip {
  0%, 100% { background: var(--panel); color: var(--muted); border-color: var(--line-2); }
  12%, 30% { background: var(--lime); color: var(--bg); border-color: var(--lime); }
  42% { background: var(--panel); color: var(--muted); border-color: var(--line-2); }
}
@keyframes swap-a {
  0%, 47% { opacity: 1; visibility: visible; }
  50%, 97% { opacity: 0; visibility: hidden; }
  100% { opacity: 1; visibility: visible; }
}
@keyframes swap-b {
  0%, 47% { opacity: 0; visibility: hidden; }
  50%, 97% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes row-in {
  0%, 49% { transform: translateX(28px); }
  53%, 100% { transform: none; }
}
@keyframes solved {
  0%, 100% { border-color: var(--line-2); }
  12%, 30% { border-color: var(--lime); }
  42% { border-color: var(--line-2); }
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@keyframes shot {
  0% { opacity: 0; }
  4%, 33% { opacity: 1; }
  37%, 100% { opacity: 0; }
}
@keyframes fill {
  0% { transform: scaleX(0); }
  14%, 88% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
