/* SZ Digital — company profile
   One stylesheet, no framework. Dark editorial cover, light reading sections,
   violet used only for emphasis. */

:root {
  --ink: #0b0b0f;
  --ink-2: #16161c;
  --paper: #ffffff;
  --paper-2: #f7f7f8;
  --line: #e5e5e8;
  --muted: #6b6b76;
  --muted-2: #9a9aa4;
  --accent: #7c3aed;
  --accent-soft: #f3efff;
  --good: #0f7b4f;
  --max: 1120px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.dim { color: var(--muted); }
.accent { color: var(--accent); }

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(34px, 5.4vw, 62px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

/* ---------------------------------------------------------------- cover */
.cover {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 34px 0 64px;
  overflow: hidden;
}
.cover-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 40%, transparent 100%);
}
.cover::after {
  content: "";
  position: absolute; inset: auto -10% -40% 40%;
  height: 60%; background: radial-gradient(closest-side, rgba(124,58,237,0.5), transparent);
  filter: blur(20px);
}
.cover .wrap { position: relative; }

.cover-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand em { font-style: normal; color: var(--muted-2); font-weight: 500; }
.cover-top .mono { color: var(--muted-2); }

.cover-body { margin: clamp(48px, 9vw, 104px) 0 0; max-width: 900px; }
.kicker { color: #a78bfa; margin-bottom: 22px; }
.lede { margin-top: 26px; font-size: clamp(16px, 1.6vw, 19px); color: #c9c9d2; max-width: 620px; }

.cover-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; margin: clamp(44px, 7vw, 76px) 0 0;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12);
}
.cover-facts dt { color: var(--muted-2); margin-bottom: 8px; }
.cover-facts dd { margin: 0; font-weight: 700; font-size: 15px; }

/* ------------------------------------------------------------- sections */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.secnum { color: var(--muted-2); margin-bottom: 18px; }
.sec h2 { max-width: 820px; }
.sub { margin-top: 16px; color: var(--muted); max-width: 620px; font-size: 16.5px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 44px; }
.cols h3 { margin-bottom: 14px; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: #3c3c44; font-size: 15px; }
.ticks li strong { color: var(--ink); }
.ticks li::before {
  position: absolute; left: 0; top: 0; font-weight: 800;
  font-family: var(--mono); font-size: 13px;
}
.ticks.bad li::before { content: "×"; color: #b42318; }
.ticks.good li::before { content: "✓"; color: var(--good); }

/* ---------------------------------------------------------------- cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 12px;
}
.card .mono { color: var(--accent); }
.card p { color: #3c3c44; font-size: 14.5px; }
.clean { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.clean li { position: relative; padding-left: 18px; font-size: 14px; color: var(--muted); }
.clean li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.55; }

/* ----------------------------------------------------------------- work */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.work article { border-top: 2px solid var(--ink); padding-top: 18px; }
.work-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.work .url { color: var(--accent); margin: 6px 0 12px; letter-spacing: 0.06em; text-transform: none; }
.work p { color: #3c3c44; font-size: 14.5px; }
.work .tech { margin-top: 14px; color: var(--muted-2); letter-spacing: 0.06em; text-transform: none; }
.tag {
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
  color: var(--muted); white-space: nowrap; font-size: 10px;
}

/* ---------------------------------------------------------------- steps */
.steps { list-style: none; counter-reset: s; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.steps li { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps .mono { color: var(--accent); padding-top: 3px; min-width: 22px; }
.steps h3 { margin-bottom: 4px; font-size: 15.5px; }
.steps p { color: var(--muted); font-size: 14px; }

/* ----------------------------------------------------------------- tech */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 48px; margin-top: 44px; }
.tech-grid article > .mono { color: var(--accent); }
.tech-grid h3 { margin: 8px 0 14px; }

/* ---------------------------------------------------------------- trust */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 48px; margin-top: 40px; }
.trust h3 { margin-bottom: 10px; }
.trust p { color: #3c3c44; font-size: 15px; }

/* ------------------------------------------------------------------ cta */
.cta { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 96px) 0 40px; }
.cta .secnum { color: #a78bfa; }
.cta .sub { color: #b9b9c4; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; padding: 13px 20px; font-weight: 700; font-size: 14.5px;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.22); color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: rgba(255,255,255,0.08); }
.btn.primary { background: #25d366; border-color: #25d366; color: #06301c; }
.btn.primary:hover { background: #1fbe5b; }
.btn.ghost { color: #b9b9c4; }

.foot {
  display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  margin-top: clamp(48px, 7vw, 80px); padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.foot .mono { color: #8b8b96; letter-spacing: 0.06em; text-transform: none; line-height: 1.7; }
.foot-right { text-align: right; }

/* --------------------------------------------------------------- mobile */
@media (max-width: 860px) {
  .cols, .cards, .work, .steps, .tech-grid, .trust { grid-template-columns: 1fr; }
  .cover-facts { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
  .foot, .foot-right { text-align: left; }
  .steps { gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ----------------------------------------------------------------- labs */
.labs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.labs article { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.labs .concept { margin: 10px 0 12px; font-weight: 700; font-size: 14.5px; color: var(--accent); }
.labs .body { color: #3c3c44; font-size: 14px; }
.labs .tech { margin-top: 14px; color: var(--muted-2); letter-spacing: 0.06em; text-transform: none; }
.tag.live { border-color: #b7e6cd; background: #ecfdf3; color: var(--good); }
.footnote { margin-top: 26px; color: var(--muted); font-size: 13.5px; max-width: 720px; }

@media (max-width: 860px) {
  .labs { grid-template-columns: 1fr; }
}
