/* ZinZ — independent software studio. Paper neutrals, one signal accent; each product page tints with its own colour. */
:root {
  --paper: #f6f5f1;
  --sheet: #ffffff;
  --ink: #14161c;
  --ink-2: #3b3f48;
  --muted: #6b6f78;
  --line: #e2e0d8;
  --line-2: #d3d0c6;
  --signal: #ff5a36;
  --accent: var(--signal);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --shadow: 0 1px 2px rgba(20, 22, 28, .04), 0 8px 24px -12px rgba(20, 22, 28, .12);
  --shadow-lg: 0 2px 4px rgba(20, 22, 28, .04), 0 24px 48px -20px rgba(20, 22, 28, .22);
  --display: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e0f12; --sheet: #16181d; --ink: #eceae4; --ink-2: #c4c2bc; --muted: #8d9099;
    --line: #24272e; --line-2: #31353d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 48px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e0f12; --sheet: #16181d; --ink: #eceae4; --ink-2: #c4c2bc; --muted: #8d9099;
  --line: #24272e; --line-2: #31353d;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 48px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1; font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 650; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 60ch; line-height: 1.55; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--sheet); padding: 8px 12px; z-index: 100; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: -.03em; }
.logo img { width: 30px; height: 30px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; margin-block: 0; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: var(--paper); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 42px; color: var(--ink); cursor: pointer; }
.menu-toggle svg { margin: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: 600 15px/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { box-shadow: var(--shadow-lg); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { box-shadow: 0 12px 28px -12px var(--accent); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: var(--sheet); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* Sections */
section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section-head h2 { margin-top: 16px; max-width: 18ch; }
.section-head p { max-width: 46ch; color: var(--ink-2); }
.divider { border-top: 1px solid var(--line); }

/* Hero */
.hero { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero h1 { margin-top: 22px; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-icons { position: absolute; right: max(20px, calc((100vw - 1180px) / 2)); top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: repeat(3, 96px); gap: 44px 18px; }
.hero-icons a { display: block; border-radius: 24px; box-shadow: var(--shadow-lg); transition: transform .25s; }
.hero-icons a:nth-child(2n) { transform: translateY(26px); }
.hero-icons a:hover { transform: translateY(-4px) rotate(-3deg); }
.hero-icons a:nth-child(2n):hover { transform: translateY(22px) rotate(3deg); }
.hero-icons img { width: 96px; height: 96px; border-radius: 24px; }
.stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 64px; border-top: 1px solid var(--line); max-width: 760px; }
.stat { padding: 22px 32px 0 0; margin-right: 32px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 32px; }
.stat b { display: block; font: 700 30px/1 var(--display); letter-spacing: -.03em; }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c, var(--accent)) 40%, var(--line)); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 6px 16px -8px rgba(0,0,0,.35); }
.tag { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent); color: color-mix(in srgb, var(--c, var(--accent)) 75%, var(--ink)); white-space: nowrap; }
.card h3 { margin-top: 22px; font-size: 22px; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card .tagline { margin-top: 6px; font-weight: 500; color: var(--ink-2); }
.card .desc { margin-top: 12px; color: var(--muted); font-size: 15px; flex-grow: 1; }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.chip { font-size: 12.5px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); background: var(--paper); }
.card-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.card-links a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.card-links a:hover { color: var(--c, var(--accent)); }
.card-links a.ext { color: var(--muted); font-weight: 500; }
.card-links a.ext:hover { color: var(--ink); }
.card-links svg { width: 13px; height: 13px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principle { padding: 32px 32px 8px 0; }
.principle + .principle { padding-left: 32px; border-left: 1px solid var(--line); }
.principle .num { font: 500 13px/1 var(--mono); color: var(--accent); }
.principle h3 { margin-top: 18px; }
.principle p { margin-top: 10px; color: var(--muted); }

/* Client work */
.clients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.client { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); text-decoration: none; transition: border-color .2s, transform .2s; }
.client:hover { border-color: var(--ink); transform: translateY(-2px); }
.client h3 { font-size: 20px; }
.client p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.client .arrow { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .2s, color .2s; }
.client:hover .arrow { background: var(--ink); color: var(--paper); }
.client .url { font: 500 12px/1 var(--mono); color: var(--muted); margin-top: 14px; display: block; }

/* CTA */
.cta { background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, transparent 65%); opacity: .45; }
.cta h2 { max-width: 16ch; }
.cta p { margin-top: 16px; color: color-mix(in srgb, var(--paper) 70%, transparent); max-width: 48ch; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; position: relative; z-index: 1; }
.cta .btn-light { background: var(--paper); color: var(--ink); }
.cta .btn-outline { border-color: color-mix(in srgb, var(--paper) 30%, transparent); color: var(--paper); }
.cta .btn-outline:hover { border-color: var(--paper); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; margin-top: clamp(64px, 9vw, 120px); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); }
.footer-about p { margin-top: 14px; color: var(--muted); max-width: 34ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.theme-toggle { background: none; border: 1px solid var(--line-2); color: var(--ink-2); border-radius: 999px; padding: 6px 12px; font: 500 13px/1 var(--body); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }

/* Product page */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 28px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin-inline: 8px; }
.p-hero { padding-top: 40px; padding-bottom: 64px; }
.p-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.p-hero .app-icon { width: 104px; height: 104px; border-radius: 24px; }
.p-hero h1 { margin-top: 28px; font-size: clamp(40px, 5.6vw, 68px); }
.p-hero .tagline { margin-top: 14px; font: 600 clamp(20px, 2.2vw, 26px)/1.3 var(--display); letter-spacing: -.02em; color: var(--accent); }
.p-hero .lede { margin-top: 18px; }
.p-hero .hero-actions { margin-top: 32px; }
.p-hero .platforms { margin-top: 28px; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-left: 4px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 4px color-mix(in srgb, #1f9d55 18%, transparent); }
.status.beta::before { background: #e3a008; box-shadow: 0 0 0 4px color-mix(in srgb, #e3a008 18%, transparent); }
.p-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.p-visual::before { content: ""; position: absolute; inset: 6% 4%; border-radius: 40px; background: radial-gradient(120% 90% at 50% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.phone { position: relative; width: min(250px, 42vw); border-radius: 34px; overflow: hidden; box-shadow: 0 0 0 8px var(--ink), 0 0 0 9px var(--line-2), var(--shadow-lg); background: var(--ink); }
.phone img { width: 100%; height: auto; }
.phone.back { position: absolute; transform: translateX(-46%) rotate(-7deg) scale(.86); opacity: .95; }
.phone.back.r { transform: translateX(46%) rotate(7deg) scale(.86); }
.p-visual .big-icon { position: relative; width: 220px; height: 220px; border-radius: 50px; box-shadow: var(--shadow-lg); }

.shots-wrap { position: relative; }
.shots { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 28px; scrollbar-width: thin; }
.shots figure { margin: 0; flex: none; width: 232px; scroll-snap-align: start; }
.shots img { width: 100%; height: auto; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--sheet); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--line); }
.feature .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { margin-top: 18px; font-size: 18px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 15px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); overflow: hidden; }
.fact { padding: 22px 24px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact dt { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 10px 0 0; font-weight: 600; }

.ext-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 44px); border-radius: 24px; background: color-mix(in srgb, var(--accent) 9%, var(--sheet)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }
.ext-banner h2 { font-size: clamp(24px, 3vw, 34px); }
.ext-banner p { margin-top: 8px; color: var(--ink-2); }
.ext-banner .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.more { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.more a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 22px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--sheet); text-decoration: none; transition: transform .2s, border-color .2s; }
.more a:hover { transform: translateY(-2px); border-color: var(--ink); }
.more img { width: 56px; height: 56px; border-radius: 13px; }
.more b { font: 600 15px/1.2 var(--display); }
.more span { font-size: 13px; color: var(--muted); margin-top: -6px; }

/* Legal */
.legal { max-width: 760px; padding-top: 48px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 32px; }
.legal h2 { font-size: 26px; margin: 48px 0 14px; }
.legal h3 { font-size: 20px; margin: 32px 0 10px; }
.legal h4 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin-bottom: 14px; }
.legal ul { padding-left: 22px; margin: 0 0 18px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); text-underline-offset: 3px; }

/* Responsive */
@media (max-width: 1080px) {
  .hero-icons { display: none; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .more { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-toggle { display: grid; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border: 0; margin-top: 14px; }
  .p-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .p-visual { min-height: 360px; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 28px 0 4px; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); }
  .clients { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .cta .actions { justify-content: flex-start; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .products, .features { grid-template-columns: 1fr; }
  .more { grid-template-columns: repeat(2, 1fr); }
  .stats { flex-direction: column; }
  .stat, .stat + .stat { border-left: 0; padding: 18px 0 0; margin: 0; }
  .shots figure { width: 70vw; }
  .phone.back { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
[id] { scroll-margin-top: 72px; }
/* Accent text needs more lift on dark backgrounds */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .p-hero .tagline { color: color-mix(in srgb, var(--accent) 60%, #fff); }
  :root:not([data-theme="light"]) .tag { color: color-mix(in srgb, var(--c, var(--accent)) 55%, #fff); }
  :root:not([data-theme="light"]) .logo img { box-shadow: 0 0 0 1px var(--line-2); border-radius: 7px; }
}
:root[data-theme="dark"] .p-hero .tagline { color: color-mix(in srgb, var(--accent) 60%, #fff); }
:root[data-theme="dark"] .tag { color: color-mix(in srgb, var(--c, var(--accent)) 55%, #fff); }
:root[data-theme="dark"] .logo img { box-shadow: 0 0 0 1px var(--line-2); border-radius: 7px; }
.phone.bare { border-radius: 26px; box-shadow: var(--shadow-lg); background: none; }
/* 7 products: first card spans two columns so rows stay full */
.products > .card:first-child { grid-column: span 2; }
.hero-icons { grid-template-columns: repeat(4, 84px); gap: 40px 16px; }
.hero-icons img { width: 84px; height: 84px; border-radius: 21px; }
.hero-icons a { border-radius: 21px; }
.more { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1080px) { .more { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .products > .card:first-child { grid-column: auto; } .more { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1081px) { .products > .card:last-child { grid-column: span 2; } }
