/* Shared site theme for unit.design and i-o.systems.
   Monochrome base, soft gradient orbs, pill buttons, large tight headlines. */
:root {
  --ink: #000;
  --ink-2: #1a1a1a;
  --muted: #5c5c5c;
  --faint: #8a8a8a;
  --line: #e6e6e6;
  --line-2: #d4d4d4;
  --paper: #fff;
  --paper-2: #f7f7f5;
  --paper-3: #efefec;
  --night: #0a0a0a;
  --night-2: #141414;
  --night-line: #262626;
  --orb-a: #b9c7ff;
  --orb-b: #ffc9b3;
  --orb-c: #c8f0dc;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 28px;
  --max: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: #000; color: #fff; }
:focus-visible { outline: 2px solid #000; outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: -9999px; top: 8px; background: #000; color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.pad { padding: 120px 0; }
.pad-s { padding: 72px 0; }
@media (max-width: 760px) { .pad { padding: 80px 0; } .pad-s { padding: 56px 0; } }

/* Type */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.dark .eyebrow { color: #a3a3a3; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
h1 { font-size: clamp(44px, 7.2vw, 92px); }
h2 { font-size: clamp(34px, 4.8vw, 60px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; line-height: 1.15; }
h4 { font-size: 18px; letter-spacing: -.01em; line-height: 1.3; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 640px; margin: 24px 0 0; }
.dark .lead, .dark p { color: #b5b5b5; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
p { margin: 12px 0 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: #000; color: #fff; }
.btn-primary:hover { background: #262626; }
.btn-secondary { background: #fff; color: #000; border-color: var(--line-2); }
.btn-secondary:hover { border-color: #000; }
.dark .btn-primary { background: #fff; color: #000; }
.dark .btn-primary:hover { background: #e5e5e5; }
.dark .btn-secondary { background: transparent; color: #fff; border-color: #3a3a3a; }
.dark .btn-secondary:hover { border-color: #fff; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.center .btn-row { justify-content: center; }
.link-arrow { font-weight: 500; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 20px; }
.brand-mark { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: #000; text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { display: flex; gap: 10px; }
.nav-cta .btn { height: 38px; padding: 0 16px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: #000; margin: 5px auto; transition: transform .2s; }
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .menu-btn { display: block; }
  .nav.open .nav-links { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .nav.open .nav-links a { display: block; padding: 12px 0; font-size: 18px; }
}

/* Banner */
.banner { background: #000; color: #fff; font-size: 14px; text-align: center; padding: 10px 16px; }
.banner a { color: #fff; font-weight: 500; }

/* Orbs */
.orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s var(--ease) infinite alternate; }
.orb.a { width: 520px; height: 520px; background: var(--orb-a); top: -160px; left: -120px; }
.orb.b { width: 460px; height: 460px; background: var(--orb-b); top: 40px; right: -140px; animation-delay: -6s; }
.orb.c { width: 380px; height: 380px; background: var(--orb-c); bottom: -180px; left: 38%; animation-delay: -12s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .orb, .wave span { animation: none !important; } html { scroll-behavior: auto; } }
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }

/* Sections */
.dark { background: var(--night); color: #fff; }
.tint { background: var(--paper-2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid-2 { grid-template-columns: 1fr; gap: 40px; } .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.section-head { max-width: 760px; margin-bottom: 56px; }
.center.section-head { margin-left: auto; margin-right: auto; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, transform .3s var(--ease), box-shadow .3s; }
.card:hover { border-color: var(--line-2); box-shadow: 0 12px 40px -20px rgba(0,0,0,.18); }
.card p { color: var(--muted); font-size: 15px; }
.card h4 { margin-top: 18px; }
.dark .card { background: var(--night-2); border-color: var(--night-line); }
.dark .card p { color: #a3a3a3; }
.icon { width: 40px; height: 40px; border-radius: 12px; background: var(--paper-3); display: grid; place-items: center; }
.icon svg { width: 20px; height: 20px; }
.dark .icon { background: #1f1f1f; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--paper-3); color: var(--ink-2); }
.dark .pill { background: #1f1f1f; color: #d4d4d4; }
.panel { border-radius: var(--radius-l); border: 1px solid var(--line); background: #fff; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0,0,0,.25); }
.dark .panel { background: var(--night-2); border-color: var(--night-line); }

/* Stat band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { padding: 32px 24px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats strong { display: block; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.03em; font-weight: 600; }
.stats span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:nth-child(3) { border-left: 0; } .stats > div { border-top: 1px solid var(--line); } }

/* Marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 40s linear infinite; }
.marquee-track span { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: #9a9a9a; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Voice wave */
.wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.wave span { width: 3px; border-radius: 3px; background: currentColor; height: 30%; animation: wave 1.1s ease-in-out infinite; }
.wave span:nth-child(2) { animation-delay: -.9s } .wave span:nth-child(3) { animation-delay: -.7s } .wave span:nth-child(4) { animation-delay: -.5s } .wave span:nth-child(5) { animation-delay: -.3s }
@keyframes wave { 50% { height: 100%; } }

/* Code */
.code { font-family: var(--mono); font-size: 13.5px; line-height: 1.7; background: #0d0d0d; color: #e5e5e5; border-radius: var(--radius); padding: 24px; overflow-x: auto; border: 1px solid var(--night-line); }
.code .k { color: #9ab3ff; } .code .s { color: #c8f0dc; } .code .c { color: #6b6b6b; }

/* Forms */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.form input, .form select, .form textarea { font: 15px var(--font); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: #000; width: 100%; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.form .hp { position: absolute; left: -9999px; }
.form .note { font-size: 13px; color: var(--faint); }
.form-status { font-size: 15px; margin-top: 4px; }

/* Footer */
.footer { background: var(--night); color: #a3a3a3; padding: 80px 0 40px; font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
.footer h5 { color: #fff; font-size: 14px; margin: 0 0 14px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: #a3a3a3; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; }
.footer .legal { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--night-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.prose h3 { margin-top: 40px; } .prose p { color: var(--muted); max-width: 720px; }
.btn-row.center { justify-content: center; }
