:root {
  color-scheme: light;
  --bg: oklch(99% 0.002 240);
  --surface: oklch(100% 0 0);
  --surface-elevated: oklch(98.7% 0.003 240);
  --foreground: oklch(18% 0.012 250);
  --muted: oklch(54% 0.012 250);
  --muted-2: oklch(68% 0.01 250);
  --border: oklch(92% 0.005 250);
  --border-strong: oklch(86% 0.01 250);
  --accent: oklch(58% 0.18 255);
  --accent-strong: oklch(52% 0.2 255);
  --accent-soft: oklch(95% 0.04 255);
  --success: oklch(64% 0.15 155);
  --warning: oklch(74% 0.16 80);
  --shadow: 0 18px 60px color-mix(in oklab, black 8%, transparent);
  --shadow-soft: 0 8px 24px color-mix(in oklab, black 5%, transparent);
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --container: 1180px;
  --gutter: clamp(16px, 3vw, 28px);
  --section-y: clamp(28px, 5vw, 76px);
  --section-y-tight: clamp(18px, 3.5vw, 40px);
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --transition: 180ms cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--foreground);
  background:
    radial-gradient(1200px 800px at 12% -8%, color-mix(in oklab, var(--accent-soft) 58%, transparent), transparent 55%),
    radial-gradient(900px 600px at 92% 8%, color-mix(in oklab, var(--surface-elevated) 84%, transparent), transparent 58%),
    linear-gradient(180deg, var(--bg), color-mix(in oklab, var(--bg) 92%, white 8%));
  min-height: 100vh;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transform: translateY(-180%);
  transition: transform var(--transition);
  z-index: 1000;
}
.skip-link:focus { transform: translateY(0); }

.site-shell {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 84%, transparent);
}
.header-inner {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, color-mix(in oklab, var(--accent) 92%, white 8%), color-mix(in oklab, var(--accent-strong) 72%, black 28%));
  color: white;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
  font-family: var(--mono);
  font-size: 0.95rem;
}
.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-meta small { color: var(--muted); font-weight: 500; letter-spacing: 0.01em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a,
.site-nav button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-nav button:hover,
.site-nav button[aria-pressed="true"] {
  color: var(--foreground);
  background: var(--surface);
  border-color: var(--border);
}
.site-nav a:active,
.site-nav button:active { transform: translateY(1px); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 90%, transparent);
}
.lang-toggle .lang-btn {
  min-width: 46px;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
}
.lang-toggle .lang-btn[aria-pressed="true"] {
  background: var(--foreground);
  color: var(--surface);
}

.hero,
.section,
footer {
  padding-block: var(--section-y);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: stretch;
}
.hero-copy {
  padding: clamp(12px, 1vw, 16px) 0;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 76%, transparent);
  color: var(--muted);
  font-size: .9rem;
}
.kicker::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent-soft) 90%, transparent);
}
h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin: 0;
}
h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
  max-width: 10.5ch;
}
.lead {
  margin: 20px 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 60ch;
}
.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn-primary {
  background: var(--foreground);
  color: var(--surface);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary {
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  border-color: var(--border);
  color: var(--foreground);
}
.btn-secondary:hover { background: var(--surface); border-color: var(--border-strong); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--foreground); }

.hero-rail {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--surface) 92%, transparent), color-mix(in oklab, var(--surface-elevated) 94%, transparent));
  box-shadow: var(--shadow);
  overflow: clip;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
}
.rail-top,
.rail-bottom {
  padding: 18px 18px 0;
}
.rail-bottom {
  padding-bottom: 18px;
  color: var(--muted);
  line-height: 1.6;
}
.rail-panel {
  position: relative;
  margin: 18px;
  border-radius: calc(var(--radius-xl) - 8px);
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 260px at 15% 0%, color-mix(in oklab, var(--accent-soft) 78%, transparent), transparent 55%),
    linear-gradient(180deg, var(--surface), color-mix(in oklab, var(--surface-elevated) 96%, transparent));
  padding: 18px;
  overflow: hidden;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.metric-card {
  grid-column: span 6;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  padding: 16px;
}
.metric-card strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.metric-card span { color: var(--muted); display: block; margin-top: 6px; line-height: 1.5; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.65;
}
.section-title {
  font-size: clamp(2rem, 3vw, 3.2rem);
  max-width: 12ch;
}

.feature-grid,
.blog-grid,
.compact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.feature-card {
  grid-column: span 4;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 22px;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  box-shadow: var(--shadow-soft);
}
.feature-card::after {
  content: attr(data-index);
  position: absolute;
  right: 18px;
  top: 16px;
  font-family: var(--mono);
  font-size: .82rem;
  color: color-mix(in oklab, var(--muted) 65%, transparent);
}
.feature-card h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  margin-top: 26px;
}
.feature-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.feature-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.feature-list li {
  display: flex;
  gap: 10px;
  color: var(--foreground);
  line-height: 1.5;
}
.feature-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: .55em;
  flex: 0 0 auto;
}

.blog-root {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: clip;
}
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}
.blog-toolbar .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .92rem;
}
.chip.is-active {
  background: var(--foreground);
  color: var(--surface);
  border-color: var(--foreground);
}
[data-shpitto-blog-root] {
  display: block;
}
[data-shpitto-blog-list] {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.blog-card,
.article-card {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--surface) 98%, transparent), color-mix(in oklab, var(--surface-elevated) 98%, transparent));
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  gap: 20px;
  box-shadow: var(--shadow-soft);
}
.blog-card h3,
.article-card h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  margin-bottom: 10px;
}
.blog-card p,
.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.meta-pill {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  border-radius: 999px;
  padding: 6px 10px;
}
.card-actions {
  align-self: end;
  display: flex;
  justify-content: flex-end;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--foreground);
  font-weight: 600;
}
.card-link span { color: var(--accent); }

.proof-band {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--surface) 96%, transparent), color-mix(in oklab, var(--accent-soft) 30%, var(--surface) 70%));
  padding: clamp(18px, 3vw, 30px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.proof-copy { grid-column: span 7; }
.proof-copy h2 { font-size: clamp(2rem, 3vw, 3.4rem); max-width: 10ch; }
.proof-copy p { margin: 14px 0 0; color: var(--muted); line-height: 1.7; max-width: 58ch; }
.proof-list {
  grid-column: span 5;
  display: grid;
  gap: 12px;
}
.proof-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.proof-item strong { display: block; font-family: var(--mono); }
.proof-item span { display: block; color: var(--muted); margin-top: 6px; line-height: 1.55; }

.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 86%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 18px;
  align-items: start;
}
.footer-grid p,
.footer-grid a,
.footer-grid li {
  color: var(--muted);
  line-height: 1.7;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}
.footer-title {
  font-size: 1rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.footer-note {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-2);
  font-size: .92rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 280px);
  gap: 20px;
}
.article-body {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow-soft);
}
.article-body h1,
.article-body h2,
.article-body h3 { max-width: 14ch; }
.article-body h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.4rem);
  margin-top: 32px;
}
.article-body p,
.article-body li {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.03rem;
}
.article-body ul,
.article-body ol {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}
.article-side {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 14px;
}
.side-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 18px;
}
.side-panel h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.side-panel a,
.side-panel button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface-elevated) 86%, transparent);
  padding: 10px 12px;
  margin-top: 8px;
}

.muted { color: var(--muted); }
.small { font-size: .92rem; }
.mono { font-family: var(--mono); }

.flow {
  display: grid;
  gap: 18px;
}

@media (max-width: 980px) {
  .hero-grid,
  .article-layout,
  .footer-grid,
  .proof-band {
    grid-template-columns: 1fr;
  }
  .feature-card { grid-column: 1 / -1; }
  .blog-card,
  .article-card { grid-template-columns: 1fr; }
  .proof-copy,
  .proof-list { grid-column: 1 / -1; }
  .article-side { position: static; }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 68px;
    flex-wrap: wrap;
    padding-block: 10px;
  }
  .site-nav {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .hero,
  .section,
  footer { padding-block: 24px; }
  h1 { font-size: clamp(2.45rem, 14vw, 4rem); }
  .lead { font-size: 1rem; }
  .metric-card { grid-column: 1 / -1; }
  .proof-copy h2,
  .section-title { max-width: 100%; }
  .blog-toolbar { align-items: stretch; }
  .blog-toolbar .chips { width: 100%; }
  [data-shpitto-blog-list] { padding: 14px; }
  .blog-card,
  .article-card,
  .feature-card,
  .proof-item,
  .side-panel { padding: 18px; }
  .footer-note { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}