:root {
  --bg: #0e1525;
  --bg-elevated: #141c30;
  --bg-card: #1a2540;
  --bg-card-hover: #243352;
  --surface: #243352;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #d4dce8;
  --text-secondary: #7b8faa;
  --text-muted: #4a5e7a;
  --cyan: #4f8bff;
  --cyan-dim: rgba(79,139,255,0.14);
  --cyan-glow: rgba(79,139,255,0.40);
  --green: #10b981;
  --green-dim: rgba(16,185,129,0.12);
  --amber: #e8553e;
  --amber-dim: rgba(232,85,62,0.12);
  --violet: #a78bfa;
  --violet-dim: rgba(167,139,250,0.12);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

#blazor-error-ui {
  background: #ffffe0;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
  color: #333;
}
#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
.mono, .proc-dot, .diff-num, .trust-val, .eyebrow, .section-label,
.info-item label, .svc-tag, .nav-cta {
  font-variant-numeric: tabular-nums;
}

a { color: inherit; text-decoration: none; }

* { outline: none; -webkit-tap-highlight-color: transparent; }
:target { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: all .4s;
}
header.site-header.scrolled {
  background: rgba(10,14,23,0.88);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-weight: 700; font-size: 1rem;
  color: #fff;
  background: #2563eb;
  box-shadow: 0 0 24px rgba(37,99,235,0.25);
}
.nav-links {
  display: flex; gap: 32px;
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-secondary);
}
.nav-links a { transition: color .25s; position: relative; }
.nav-links a:hover { color: var(--cyan); }
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.85rem; font-weight: 600;
  font-family: var(--mono);
  color: #fff;
  background: #2563eb;
  transition: all .25s;
  box-shadow: 0 0 20px rgba(37,99,235,0.3);
}
.nav-cta:hover {
  box-shadow: 0 0 32px rgba(37,99,235,0.5);
  transform: translateY(-1px);
}

.hero {
  padding: 180px 0 140px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -300px; right: -200px;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,139,255,0.09) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -200px; left: -150px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,139,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-line {
  position: absolute;
  top: 80px; right: 10%;
  width: 1px; height: 300px;
  background: linear-gradient(180deg, transparent, var(--cyan-dim), transparent);
  transform: rotate(15deg);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.code-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 0.01em;
  font-weight: 500;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp .7s ease forwards;
}
.code-label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
  animation: pulse 2.5s ease-in-out infinite;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp .7s ease forwards;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 32px;
  max-width: 16ch;
  clip-path: inset(0 100% 0 0);
  animation: maskReveal .9s cubic-bezier(0.77, 0, 0.175, 1) .15s forwards;
}
@keyframes maskReveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #4f8bff, #7cabff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.08rem; line-height: 1.6;
  color: var(--text-secondary);
  max-width: 58ch;
  margin-bottom: 48px;
  font-weight: 400;
  letter-spacing: -0.005em;
  opacity: 0;
  animation: fadeUp .7s ease .24s forwards;
}
.hero-actions {
  display: flex;
  gap: 14px; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .7s ease .36s forwards;
}

.hero-visual {
  position: relative;
  min-width: 0;
  opacity: 0;
  animation: fadeUp .9s ease .32s forwards;
}
.code-panel {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(160deg, #0d1322 0%, #0a1020 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 24px 60px -20px rgba(0,0,0,0.55),
    0 0 0 1px rgba(79,139,255,0.04);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
  transition: transform .6s cubic-bezier(.2,.9,.2,1);
}
.code-panel:hover {
  transform: perspective(1200px) rotateY(-1deg) rotateX(1deg) translateY(-4px);
}
.code-panel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(79,139,255,0.08), transparent 60%);
  pointer-events: none;
}
.code-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.015);
}
.chrome-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.chrome-dot:nth-child(1) { background: rgba(232,85,62,0.4); }
.chrome-dot:nth-child(2) { background: rgba(232,175,62,0.35); }
.chrome-dot:nth-child(3) { background: rgba(16,185,129,0.4); }
.chrome-file {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.code-body {
  margin: 0;
  padding: 22px 26px 26px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text);
  overflow-x: auto;
}
.code-body code { display: block; }
.cl {
  display: block;
  opacity: 0;
  transform: translateX(-8px);
  animation: codeLine .5s ease forwards;
}
.cl:nth-of-type(1)  { animation-delay: .50s; }
.cl:nth-of-type(2)  { animation-delay: .60s; }
.cl:nth-of-type(3)  { animation-delay: .68s; }
.cl:nth-of-type(4)  { animation-delay: .76s; }
.cl:nth-of-type(5)  { animation-delay: .84s; }
.cl:nth-of-type(6)  { animation-delay: .92s; }
.cl:nth-of-type(7)  { animation-delay: 1.00s; }
.cl:nth-of-type(8)  { animation-delay: 1.08s; }
.cl:nth-of-type(9)  { animation-delay: 1.16s; }
.cl:nth-of-type(10) { animation-delay: 1.24s; }
.cl:nth-of-type(11) { animation-delay: 1.32s; }
@keyframes codeLine {
  to { opacity: 1; transform: translateX(0); }
}
.cm { color: var(--text-muted); font-style: italic; }
.ck { color: #7cabff; }
.cs { color: #e8a178; }
.cv { color: #9fd5b0; }
.cn { color: #c5a8ff; }
.cursor {
  display: inline-block;
  width: 7px;
  color: var(--cyan);
  animation: blink 1s steps(2) infinite;
  margin-left: 2px;
  opacity: 0;
  animation-delay: 1.5s;
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1, .cl, .cursor { animation: none; clip-path: none; opacity: 1; transform: none; }
}
.btn {
  padding: 15px 32px;
  border-radius: 10px;
  font-weight: 600; font-size: 0.92rem;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  display: inline-flex; align-items: center;
  gap: 8px; cursor: pointer; border: none;
  font-family: var(--sans);
}
.btn-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 24px rgba(37,99,235,0.3), 0 4px 16px rgba(37,99,235,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #1d5ad8;
  box-shadow: 0 0 40px rgba(37,99,235,0.45), 0 8px 32px rgba(37,99,235,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  position: relative;
}
.trust-bar::before,
.trust-bar::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.trust-bar::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-elevated) 0%, transparent 100%);
}
.trust-bar::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-elevated) 0%, transparent 100%);
}
.marquee {
  display: flex;
  width: max-content;
  padding: 28px 0;
  gap: 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  flex-shrink: 0;
  animation: marquee-scroll 48s linear infinite;
  will-change: transform;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.m-item {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color .25s;
}
.m-item:hover { color: var(--cyan); }
.m-sep {
  color: var(--text-muted);
  opacity: 0.4;
  font-size: 0.9rem;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

section { padding: 120px 0 140px; position: relative; z-index: 1; }
.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  font-weight: 500;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 400; line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1rem; line-height: 1.6;
  letter-spacing: -0.005em;
  max-width: 62ch; margin-bottom: 72px;
}

.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-auto-rows: auto;
  gap: 20px;
  align-items: stretch;
}
.svc-lg { grid-row: span 2; }
.svc {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-card);
  padding: 32px 32px 28px;
  transition: border-color .35s, transform .35s, box-shadow .35s;
  display: flex; flex-direction: column;
  isolation: isolate;
}
.svc-lg { padding: 40px 40px 32px; grid-row: span 2; }
.svc:hover {
  transform: translateY(-3px);
  border-color: rgba(79,139,255,0.22);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(79,139,255,0.5),
    transparent 45%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
  z-index: 1;
}
.svc:hover::before { opacity: 1; }
.svc-head {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
}
.svc-tag-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
  font-weight: 500;
}
.svc h3 {
  font-family: var(--sans);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text);
  margin-bottom: 12px;
  max-width: 22ch;
}
.svc-lg h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  max-width: 18ch;
}
.svc > .svc-head p,
.svc-head > p {
  color: var(--text-secondary);
  font-size: 0.94rem; line-height: 1.6;
  margin-bottom: 22px;
  max-width: 42ch;
}
.svc-lg .svc-head p { font-size: 1rem; max-width: 48ch; margin-bottom: 28px; }
.svc-tags { margin-bottom: 20px; }
.svc-lg .svc-tags { margin-bottom: 0; }

.svc-visual {
  margin-top: auto;
  position: relative;
  z-index: 1;
  padding: 20px 0 0;
  display: flex;
  flex-direction: column;
}
.svc-lg .svc-visual {
  flex: 1;
  margin-top: 20px;
  justify-content: flex-start;
}
.visual-diff {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.9;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin: 12px -12px 0;
  padding-left: 12px; padding-right: 12px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  mask-image: linear-gradient(180deg, #000 0%, #000 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 85%, transparent 100%);
}
.diff-file {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 0 8px;
  text-transform: none;
}
.diff-line {
  display: flex; gap: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  animation: diffIn .5s ease forwards;
}
.diff-line:nth-of-type(1) { animation-delay: .20s; }
.diff-line:nth-of-type(2) { animation-delay: .32s; }
.diff-line:nth-of-type(3) { animation-delay: .44s; }
.diff-line:nth-of-type(4) { animation-delay: .56s; }
.diff-line:nth-of-type(5) { animation-delay: .68s; }
.diff-line:nth-of-type(6) { animation-delay: .80s; }
.diff-line:nth-of-type(7) { animation-delay: .92s; }
.diff-line:nth-of-type(8) { animation-delay: 1.04s; }
@keyframes diffIn { to { opacity: 1; } }
.diff-line .gutter {
  color: var(--text-muted);
  width: 12px; flex-shrink: 0;
  font-weight: 600;
}
.diff-line.add { background: rgba(16,185,129,0.08); color: #b9e8d3; }
.diff-line.add .gutter { color: #10b981; }
.diff-line.del { background: rgba(232,85,62,0.08); color: #f0c3b8; }
.diff-line.del .gutter { color: #e8553e; }
.diff-line.ctx { color: var(--text-muted); }

.visual-flow {
  flex: 1;
  min-height: 110px;
  margin-top: 14px;
  padding: 16px 0 6px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.visual-flow::before {
  content: "api.in → queue → api.out";
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.visual-flow svg {
  width: 100%; height: 60px;
  overflow: visible;
}
.visual-flow .node {
  fill: var(--bg-elevated);
  stroke: var(--cyan);
  stroke-width: 1.5;
}
.visual-flow .node-b {
  fill: var(--cyan-dim);
  stroke: var(--cyan);
  animation: nodePulse 2.4s ease-in-out infinite;
}
@keyframes nodePulse {
  0%, 100% { r: 5; opacity: 1; }
  50%      { r: 7; opacity: 0.7; }
}
.visual-flow .flow-line {
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  fill: none;
  animation: flowDash 1.6s linear infinite;
}
.visual-flow .flow-line-2 {
  animation-delay: .8s;
}
@keyframes flowDash {
  to { stroke-dashoffset: -20; }
}

.visual-stack {
  display: flex; flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.visual-stack::before {
  content: "stack / live";
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.res-row {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
}
.res-status {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16,185,129,0.5);
  animation: breathe 2.2s ease-in-out infinite;
}
.res-row:nth-child(2) .res-status { animation-delay: .4s; }
.res-row:nth-child(3) .res-status { animation-delay: .8s; }
@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .visual-flow .node-b,
  .visual-flow .flow-line,
  .res-status,
  .diff-line { animation: none; opacity: 1; }
}
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-tag {
  padding: 4px 10px; border-radius: 6px;
  font-size: 0.72rem; font-family: var(--mono);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
  transition: all .25s;
}
.svc:hover .svc-tag {
  border-color: rgba(79,139,255,0.2);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.diff-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.diff-zigzag {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 24px;
}
.diff-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 3fr;
  align-items: center;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  transition: border-color .35s;
}
.diff-row:last-child { border-bottom: 1px solid var(--border); }
.diff-row:hover { border-top-color: rgba(79,139,255,0.25); }
.diff-row:hover + .diff-row { border-top-color: rgba(79,139,255,0.25); }
.diff-row:nth-child(even) {
  grid-template-columns: 3fr minmax(160px, 1fr);
}
.diff-row:nth-child(even) .diff-num-big {
  order: 2;
  text-align: right;
}
.diff-row:nth-child(even) .diff-body {
  order: 1;
}
.diff-num-big {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 9vw, 8rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(79,139,255,0.38);
  text-stroke: 1px rgba(79,139,255,0.38);
  transition: -webkit-text-stroke-color .4s, transform .4s;
  font-variant-numeric: tabular-nums;
}
.diff-row:hover .diff-num-big {
  -webkit-text-stroke-color: rgba(79,139,255,0.85);
  transform: translateX(4px);
}
.diff-row:nth-child(even):hover .diff-num-big {
  transform: translateX(-4px);
}
.diff-body h3 {
  font-family: var(--sans);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
  max-width: 24ch;
}
.diff-body p {
  color: var(--text-secondary);
  font-size: 0.98rem; line-height: 1.6;
  max-width: 60ch;
}

.process-stack {
  list-style: none;
  margin: 0; padding: 0;
  position: relative;
}
.proc-step {
  position: sticky;
  top: calc(110px + var(--i) * 18px);
  min-height: 62vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 0;
}
.proc-card {
  width: 100%;
  max-width: 760px;
  padding: 52px 56px;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--bg-card) 0%, #11192c 100%);
  border: 1px solid var(--border);
  box-shadow:
    0 20px 50px -20px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transform: scale(calc(1 - var(--i) * 0.025));
  transform-origin: top center;
  transition: transform .4s, border-color .4s;
  position: relative;
  overflow: hidden;
}
.proc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,139,255,0.4), transparent);
}
.proc-step:hover .proc-card {
  border-color: rgba(79,139,255,0.22);
}
.proc-meta {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 24px;
}
.proc-num {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(79,139,255,0.5);
  font-variant-numeric: tabular-nums;
}
.proc-stage {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
}
.proc-card h4 {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 16px;
}
.proc-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 60ch;
}
@media (prefers-reduced-motion: reduce) {
  .proc-step { position: static; min-height: 0; }
  .proc-card { transform: none; }
}

.cta-section { padding: 100px 0 120px; }
.cta-box {
  padding: 72px 56px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(79,139,255,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(79,139,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.cta-box::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,139,255,0.5), rgba(232,85,62,0.3), transparent);
  opacity: 0.5;
}
.cta-box h3 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 400; color: var(--text);
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.cta-box > p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px; margin: 0 auto 36px;
  position: relative; z-index: 1;
  line-height: 1.7;
}
.cta-box .btn { position: relative; z-index: 1; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-main {
  padding: 44px 36px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
}
.contact-main h3 {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text); margin-bottom: 16px;
  max-width: 24ch;
}
.contact-main > p {
  color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 32px; font-size: 0.95rem;
  max-width: 52ch;
}
.capabilities { display: grid; gap: 10px; }
.cap-item {
  display: flex; align-items: flex-start;
  gap: 14px; padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  font-size: 0.88rem; color: var(--text-secondary);
  transition: all .25s;
}
.cap-item:hover {
  border-color: rgba(79,139,255,0.2);
  background: var(--cyan-dim);
  color: var(--text);
}
.cap-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px; flex-shrink: 0;
}
.cap-item:nth-child(1) .cap-dot { background: #4f8bff; box-shadow: 0 0 8px rgba(79,139,255,0.4); }
.cap-item:nth-child(2) .cap-dot { background: #10b981; box-shadow: 0 0 8px rgba(16,185,129,0.4); }
.cap-item:nth-child(3) .cap-dot { background: #e8553e; box-shadow: 0 0 8px rgba(232,85,62,0.4); }
.cap-item:nth-child(4) .cap-dot { background: #a78bfa; box-shadow: 0 0 8px rgba(167,139,250,0.4); }

.contact-info {
  padding: 44px 36px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(165deg, var(--bg-card) 0%, #0e1525 100%);
  display: flex; flex-direction: column;
  justify-content: space-between;
}
.contact-info h3 {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text); margin-bottom: 32px;
}
.info-row { display: flex; flex-direction: column; gap: 20px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(79,139,255,0.06);
  border: 1px solid var(--border);
  flex-shrink: 0;
  color: var(--cyan);
}
.info-icon svg {
  width: 20px; height: 20px;
  display: block;
}
.info-item label {
  display: block; font-size: 0.68rem;
  font-family: var(--mono);
  color: var(--text-muted); margin-bottom: 3px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.info-item span { font-size: 0.92rem; color: var(--text); }
.contact-tagline {
  margin-top: 32px; padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem; color: var(--text-muted);
  line-height: 1.65;
  font-style: italic; font-family: var(--serif);
}

footer.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  color: var(--text-muted); font-size: 0.82rem;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { transition: color .25s; }
.footer-links a:hover { color: var(--cyan); }

.scroll-progress {
  position: fixed;
  top: 120px; bottom: 120px;
  left: 28px;
  width: 1px;
  z-index: 50;
  pointer-events: none;
}
.scroll-progress-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.05);
}
.scroll-progress-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: calc(var(--scroll-progress, 0) * 100%);
  background: linear-gradient(180deg, var(--cyan), rgba(79,139,255,0.2));
  box-shadow: 0 0 12px rgba(79,139,255,0.4);
  transition: height .12s linear;
}
.scroll-progress-bar::after {
  content: "";
  position: absolute;
  bottom: -3px; left: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}
@media (max-width: 900px) {
  .scroll-progress { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress-bar { transition: none; }
}

.btn[data-magnetic] {
  transform: translate(var(--dx, 0), var(--dy, 0));
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .3s, box-shadow .3s;
}
.btn[data-magnetic]:hover {
  transform: translate(var(--dx, 0), calc(var(--dy, 0) - 2px));
  transition: transform .12s ease-out, background .3s, box-shadow .3s;
}

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.noise {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .code-panel { transform: none; }
  .hero h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); }
  .bento { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; gap: 16px; }
  .svc-lg { grid-row: auto; }
  .proc-card { padding: 40px 36px; }
  section { padding: 96px 0 104px; }
}
@media (max-width: 768px) {
  .container { width: calc(100% - 32px); }
  .nav-links { display: none; }
  .hero { padding: 128px 0 88px; }
  .hero-inner { gap: 44px; }
  .hero h1 { font-size: clamp(2.4rem, 8vw, 3.4rem); letter-spacing: -0.03em; }
  .code-body { font-size: 0.74rem; padding: 16px 18px 20px; }
  .code-panel { border-radius: 12px; }
  .chrome-file { display: none; }
  .bento, .contact-layout { grid-template-columns: 1fr; gap: 16px; }
  .process-stack { display: flex; flex-direction: column; gap: 16px; }
  .proc-step { position: static; min-height: 0; padding: 0; }
  .proc-card { transform: none; padding: 32px 24px; }
  .proc-num { font-size: 2.8rem; }
  .svc, .svc-lg { padding: 28px 24px 0; }
  .visual-diff { font-size: 0.68rem; }
  .cta-box { padding: 48px 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; justify-content: center; }
  .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
  section { padding: 80px 0 88px; }
  .diff-zigzag { gap: 24px; }
  .diff-row,
  .diff-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }
  .diff-row:nth-child(even) .diff-num-big { order: 0; text-align: left; }
  .diff-row:nth-child(even) .diff-body { order: 0; }
  .diff-num-big { font-size: clamp(3.5rem, 18vw, 5rem); }
  .marquee-track { gap: 20px; padding-right: 20px; animation-duration: 36s; }
  .m-item { font-size: 0.8rem; }
  .trust-bar::before, .trust-bar::after { width: 48px; }
}
