/* Layout: light canvas, skewed mesh-gradient hero band, bento services on a faint grid, precise mono labels */
:root {
  --bg: #FBFAFE;
  --surface: #FFFFFF;
  --ink: #0E0B1F;
  --ink-2: #3A3654;
  --muted: #6A6684;
  --line: #E6E2F1;
  --line-2: #D8D3EA;
  --logo: #8A6BFF; /* 기존 코딕스 로고색 — 변경 금지 */
  --violet: #6B4EFF;
  --violet-soft: #EEEAFF;
  --orange: #FF7A45;
  --cyan: #12B8D4;
  --green: #12A66A;
  --term: #110D24;
  --term-line: #2A2547;
  --term-fg: #CFCBE6;
  --font-sans: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --maxw: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; word-break: keep-all; overflow-wrap: break-word; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--violet); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--violet); border-radius: 1px; }
.sec { padding-block: 112px; }
.sec-head { display: grid; gap: 14px; max-width: 680px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.22; font-weight: 700; }
.sec-head p { color: var(--muted); font-size: 17px; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(251,250,254,0.85); }
.hdr {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(251,250,254,0.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
.hdr.scrolled { border-bottom-color: var(--line); background: rgba(251,250,254,0.9); }
.hdr-in { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.brand { color: var(--logo); }
.brand-mark {
  width: 28px; height: 28px; background: var(--logo);
  -webkit-mask: url("../img/logo.png") center / contain no-repeat; mask: url("../img/logo.png") center / contain no-repeat;
}
.nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav > a {
  font: 500 14.5px/1 var(--font-sans); color: var(--ink-2); padding: 10px 12px; border-radius: 8px;
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav > a[aria-current="page"] { color: var(--ink); background: rgba(107,78,255,0.07); }
.hdr-cta { display: flex; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px;
  font: 600 14.5px/1 var(--font-sans); border: 1px solid transparent; transition: transform .15s, background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-primary:hover { background: var(--violet); box-shadow: 0 8px 24px -8px rgba(107,78,255,0.6); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: -64px; padding-top: 64px; overflow: hidden; }
.hero-band {
  position: absolute; inset: 0 0 auto 0; height: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%);
}
.hero-band canvas { width: 100%; height: 100%; display: block; }
.hero-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(251,250,254,0.96) 0%, rgba(251,250,254,0.88) 34%, rgba(251,250,254,0.15) 62%, rgba(251,250,254,0) 80%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-block: 92px 150px; }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.pill {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2);
}
.pill span { font-family: var(--font-mono); font-size: 11px; background: var(--ink); color: #FFFFFF; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.04em; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--violet), var(--orange) 60%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 18px; color: var(--ink-2); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.hero-meta b { color: var(--ink); font-weight: 600; }

.stack { position: relative; height: 470px; min-width: 0; }
.card {
  position: absolute; background: var(--surface); border: 1px solid rgba(14,11,31,0.08); border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(40,20,110,0.35), 0 10px 20px -10px rgba(40,20,110,0.15);
}
.editor { top: 0; left: 0; right: 40px; background: var(--term); border-color: var(--term-line); overflow: hidden; animation: float 9s ease-in-out infinite; }
.ed-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--term-line); }
.ed-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A3460; }
.ed-bar i:nth-child(1) { background: #FF6B6B; } .ed-bar i:nth-child(2) { background: #FFC24B; } .ed-bar i:nth-child(3) { background: #3DD68C; }
.ed-tab { margin-left: 12px; font: 500 12px var(--font-mono); color: var(--term-fg); background: #1C1838; padding: 5px 10px; border-radius: 6px; }
.ed-body { display: grid; grid-template-columns: 34px 1fr; padding: 16px 0 20px; min-height: 248px; }
.ed-ln { font: 12.5px/1.75 var(--font-mono); color: #5A5480; text-align: right; padding-right: 12px; user-select: none; white-space: pre; }
.ed-code { font: 12.5px/1.75 var(--font-mono); color: var(--term-fg); white-space: pre; overflow: hidden; padding-right: 12px; }
.t-k { color: #C792EA; } .t-s { color: #FFB27A; } .t-f { color: #7FDBFF; } .t-t { color: #FF8FA3; } .t-a { color: #A6E3A1; } .t-c { color: #6E6A8E; }
.caret { display: inline-block; width: 7px; height: 15px; background: var(--orange); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
.deploy { left: -24px; bottom: 34px; width: 270px; padding: 16px 18px; display: grid; gap: 10px; animation: float 8s ease-in-out -2s infinite; }
.deploy-top { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.dot-ok { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18,166,106,0.16); }
.deploy-row { display: flex; justify-content: space-between; font: 12px var(--font-mono); color: var(--muted); }
.deploy-row b { color: var(--ink); font-weight: 500; }
.bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.score { right: 0; bottom: 0; width: 190px; padding: 18px; display: grid; justify-items: center; gap: 8px; animation: float 10s ease-in-out -4s infinite; }
.ring { position: relative; width: 104px; height: 104px; }
.ring svg { transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 30px var(--font-mono); color: var(--green); }
.score small { font: 500 11.5px var(--font-mono); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.score-row { display: flex; gap: 6px; }
.score-row span { font: 500 10.5px var(--font-mono); padding: 3px 6px; border-radius: 5px; background: #E9F8F1; color: var(--green); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Logos / industries ---------- */
.industries { border-block: 1px solid var(--line); background: var(--surface); }
.ind-in { display: flex; align-items: center; gap: 28px; padding-block: 26px; flex-wrap: wrap; }
.ind-label { font: 500 12px var(--font-mono); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.ind-list { display: flex; flex-wrap: wrap; gap: 10px 36px; flex: 1; justify-content: space-between; }
.ind-list span { font: 600 15px var(--font-mono); color: var(--ink-2); letter-spacing: -0.01em; opacity: .75; transition: opacity .2s; }
.ind-list span:hover { opacity: 1; }
.ind-list small { font: 400 12px var(--font-sans); color: var(--muted); margin-left: 6px; }

/* ---------- Bento ---------- */
.grid-bg {
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
}
.bento-sec { position: relative; }
.bento-sec .grid-bg { position: absolute; inset: 0; opacity: .55; pointer-events: none; }
.bento { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; gap: 18px; min-width: 0; transition: border-color .2s, box-shadow .2s;
}
.tile:hover { border-color: var(--line-2); box-shadow: 0 20px 40px -24px rgba(40,20,110,0.25); }
.t-web { grid-column: span 4; grid-row: span 2; }
.t-si { grid-column: span 2; }
.t-stats { grid-column: span 2; }
.t-sm, .t-host { grid-column: span 3; }
.tile-tag { font: 500 11.5px var(--font-mono); color: var(--muted); letter-spacing: 0.06em; }
.tile h3 { font-size: 22px; font-weight: 700; }
.tile p { color: var(--muted); font-size: 15px; }
.checks { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks li::before { content: "→"; font-family: var(--font-mono); color: var(--violet); font-size: 12px; }
.t-web .checks { grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.devices { position: relative; height: 210px; margin-top: auto; }
.dev { position: absolute; bottom: 0; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); overflow: hidden; }
.t-web .devices { flex: 1; min-height: 210px; }
.dev-d { left: 0; width: 72%; height: 92%; }
.dev-t { left: 60%; width: 24%; height: 72%; }
.dev-m { left: 86%; width: 14%; max-width: 72px; height: 58%; border-radius: 12px; }
.dev .bar-top { height: 16px; border-bottom: 1px solid var(--line); display: flex; gap: 4px; align-items: center; padding-left: 8px; background: var(--surface); }
.dev .bar-top i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.wf { padding: 10px; display: grid; gap: 7px; }
.wf .h { height: 34%; min-height: 40px; border-radius: 6px; background: linear-gradient(120deg, var(--violet), var(--orange)); opacity: .85; }
.wf .l { height: 6px; border-radius: 3px; background: var(--line); }
.wf .l.s { width: 60%; }
.wf .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wf .cols i { height: 26px; border-radius: 5px; background: var(--violet-soft); }
.json { font: 12px/1.7 var(--font-mono); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink-2); white-space: pre; overflow-x: auto; margin-top: auto; }
.json .k { color: var(--violet); } .json .s { color: var(--orange); } .json .n { color: var(--cyan); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: auto; }
.stat { background: var(--surface); padding: 16px; display: grid; gap: 2px; }
.stat b { font: 600 28px/1.1 var(--font-mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat b sup { font-size: 15px; color: var(--violet); vertical-align: 8px; margin-left: 1px; }
.stat span { font-size: 12.5px; color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 64px; margin-top: auto; }
.spark i { flex: 1; border-radius: 3px 3px 0 0; background: var(--violet-soft); }
.spark i.hot { background: var(--violet); }
.spark-cap { display: flex; justify-content: space-between; font: 11.5px var(--font-mono); color: var(--muted); }
.regions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.regions span { font: 500 12px var(--font-mono); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.regions span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.card-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- Architecture ---------- */
.arch { background: var(--surface); border-block: 1px solid var(--line); }
.arch-box { border: 1px solid var(--line); border-radius: 18px; background: var(--bg); padding: 28px; overflow-x: auto; }
.arch-box svg { display: block; min-width: 760px; width: 100%; height: auto; }
.arch-box .node rect { fill: #FFFFFF; stroke: #D8D3EA; }
.arch-box .node.main rect { stroke: #6B4EFF; stroke-width: 1.5; }
.arch-box text { font-family: var(--font-mono); }
.flow { stroke-dasharray: 6 6; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.arch-notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.arch-notes div { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.arch-notes b { font: 600 13px var(--font-mono); color: var(--ink); }
.arch-notes span { font-size: 14px; color: var(--muted); }

/* ---------- Monitoring ---------- */
.mon { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.mon-copy { display: grid; gap: 18px; min-width: 0; }
.mon-copy h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.22; font-weight: 700; }
.mon-copy p { color: var(--muted); font-size: 17px; }
.term { background: var(--term); border-radius: 16px; border: 1px solid var(--term-line); color: var(--term-fg); overflow: hidden; min-width: 0; box-shadow: 0 30px 60px -30px rgba(17,13,36,0.6); }
.term-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--term-line); font: 12px var(--font-mono); color: #8C87AE; }
.term-bar .live { display: inline-flex; align-items: center; gap: 8px; color: #3DD68C; }
.term-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3DD68C; animation: blink 1.6s steps(1) infinite; }
.term-body { padding: 18px; font: 12.5px/1.85 var(--font-mono); overflow-x: auto; }
.term-body .p { color: #C792EA; } .term-body .ok { color: #3DD68C; } .term-body .dim { color: #6E6A8E; } .term-body .w { color: #FFFFFF; }
.uptime { margin-top: 14px; display: grid; gap: 8px; }
.uptime-row { display: grid; grid-template-columns: 110px 1fr 64px; align-items: center; gap: 12px; }
.uptime-bars { display: flex; gap: 2px; height: 22px; min-width: 0; }
.uptime-bars i { flex: 1; border-radius: 2px; background: #3DD68C; opacity: .85; }
.uptime-bars i.warn { background: #FFC24B; }
.uptime-row em { font-style: normal; text-align: right; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.uptime-cap { display: flex; justify-content: space-between; color: #6E6A8E; font-size: 11px; padding-left: 122px; padding-right: 76px; }

/* ---------- Process ---------- */
.proc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.step { padding: 26px 22px 28px; display: grid; gap: 10px; align-content: start; border-right: 1px solid var(--line); position: relative; min-width: 0; }
.step:last-child { border-right: 0; }
.step-no { font: 500 12px var(--font-mono); color: var(--violet); display: flex; align-items: center; gap: 8px; }
.step-no::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.step h3 { font-size: 19px; font-weight: 700; }
.step p { font-size: 14px; color: var(--muted); }
.step .dur { font: 500 11.5px var(--font-mono); color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; justify-self: start; }
.step:hover { background: linear-gradient(180deg, var(--violet-soft), var(--surface) 70%); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: 24px; margin-top: 8px; }
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-in { position: relative; display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; padding: 56px; background: linear-gradient(90deg, rgba(14,11,31,0.86), rgba(14,11,31,0.55)); color: #FFFFFF; }
.cta h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; font-weight: 700; }
.cta p { color: #D6D2EC; margin-top: 12px; font-size: 17px; }
.cta .btn-primary { background: #FFFFFF; color: var(--ink); height: 50px; padding: 0 24px; font-size: 15.5px; }
.cta .btn-primary:hover { background: var(--orange); color: #FFFFFF; }
.cta-contact { margin-top: 18px; font: 13px var(--font-mono); color: #B9B4D6; display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid var(--line); margin-top: 112px; background: var(--surface); }
.ftr-in { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px; padding-block: 56px 40px; }
.ftr h4 { margin: 0 0 12px; font: 500 12px var(--font-mono); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.ftr ul { display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.ftr ul a:hover { color: var(--violet); }
.ftr-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 26em; }
.ftr-legal { border-top: 1px solid var(--line); padding-block: 22px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font: 12px/1.7 var(--font-mono); color: var(--muted); }
.status-chip { display: inline-flex; align-items: center; gap: 8px; }
.status-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; padding-block: 72px 130px; }
  .stack { max-width: 560px; width: 100%; margin: 0 auto; }
  .t-web { grid-column: span 6; grid-row: auto; }
  .t-si, .t-stats { grid-column: span 3; }
  .mon { grid-template-columns: 1fr; }
  .proc { grid-template-columns: repeat(2, 1fr); }
  .step { border-bottom: 1px solid var(--line); }
  .step:nth-child(2n) { border-right: 0; }
  .step:last-child { grid-column: span 2; border-bottom: 0; }
  .arch-notes { grid-template-columns: repeat(2, 1fr); }
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: span 2; }
}
@media (max-width: 820px) {
  .nav, .hdr-cta .btn-ghost { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .hdr-cta { order: 3; }
  .hdr.menu-open .nav {
    display: grid; position: absolute; top: 64px; left: 0; right: 0; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter-r) 16px var(--gutter-l); box-shadow: 0 20px 30px -20px rgba(30,20,80,0.25);
  }
  .sec { padding-block: 80px; }
  .bento { grid-template-columns: 1fr; }
  .t-web, .t-si, .t-stats, .t-sm, .t-host { grid-column: auto; }
  .t-web .checks { grid-template-columns: 1fr; }
  .cta-in { grid-template-columns: 1fr; padding: 40px 28px; }
}
@media (max-width: 560px) {
  .hdr-cta .btn-primary { display: none; }
  .stack { height: 520px; }
  .editor { right: 0; }
  .deploy { left: 0; bottom: 150px; width: 250px; }
  .score { bottom: 0; }
  .proc { grid-template-columns: 1fr; }
  .step { border-right: 0; }
  .step:last-child { grid-column: auto; }
  .arch-notes { grid-template-columns: 1fr; }
  .ftr-in { grid-template-columns: 1fr; }
  .ftr-brand { grid-column: auto; }
  .uptime-row { grid-template-columns: 78px 1fr 56px; gap: 8px; }
  .uptime-cap { padding-left: 86px; padding-right: 64px; }
  .tile { padding: 22px; }
  .devices { height: 170px; }
  .dev-d { height: 150px; } .dev-t { height: 120px; } .dev-m { height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Shared additions for multi-page site ---------- */
.nav > a[aria-current="page"] { color: var(--ink); }
.tile-link { margin-top: 4px; font: 600 14px var(--font-sans); color: var(--violet); display: inline-flex; gap: 6px; align-self: flex-start; }
.tile-link:hover .arr { transform: translateX(3px); }
.tile-link .arr { transition: transform .2s; }

/* Sub-page hero: same skewed mesh band, shorter */
.page-hero { position: relative; margin-top: -64px; padding-top: 64px; overflow: hidden; }
.page-hero .hero-band { clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%); }
.page-hero-in { position: relative; display: grid; gap: 20px; padding-block: 88px 120px; max-width: 760px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.14; font-weight: 700; letter-spacing: -0.035em; }
.page-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--violet), var(--orange) 60%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { font-size: 18px; color: var(--ink-2); max-width: 34em; }
.crumbs { font: 500 12.5px var(--font-mono); color: var(--muted); display: flex; gap: 8px; }
.crumbs a:hover { color: var(--violet); }

/* In-page section index */
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { font: 500 13px var(--font-mono); padding: 8px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.jump a:hover { border-color: var(--violet); color: var(--violet); }

/* Service detail rows */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 72px; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc-copy { display: grid; gap: 18px; min-width: 0; }
.svc-copy h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.25; font-weight: 700; }
.svc-copy > p { color: var(--muted); font-size: 16.5px; }
.svc-copy .checks { grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 14.5px; }
.svc-vis { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 16px; min-height: 300px; }
.svc.flip .svc-vis { order: -1; }
.svc-vis .devices { flex: 1; min-height: 240px; }
.svc-vis .json { font-size: 13px; }
.svc-vis .spark { height: 140px; }
.vis-cap { font: 500 11.5px var(--font-mono); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.flowlist { display: grid; gap: 10px; }
.flowlist div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font: 500 13px var(--font-mono); color: var(--ink-2); }
.flowlist em { font-style: normal; color: var(--green); }

/* Process page: vertical timeline */
.timeline { display: grid; gap: 0; counter-reset: s; }
.tl { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 32px; padding-block: 40px; border-top: 1px solid var(--line); align-items: start; }
.tl:last-child { border-bottom: 1px solid var(--line); }
.tl-no { font: 600 13px var(--font-mono); color: var(--violet); display: grid; gap: 6px; }
.tl-no b { font: 600 44px/1 var(--font-mono); color: var(--ink); letter-spacing: -0.04em; }
.tl-copy { display: grid; gap: 10px; min-width: 0; }
.tl-copy h2 { font-size: 26px; font-weight: 700; }
.tl-copy p { color: var(--muted); font-size: 16px; }
.tl-out { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; display: grid; gap: 10px; }
.tl-out h3 { font: 500 11.5px var(--font-mono); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 22px; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1 var(--font-mono); color: var(--violet); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* Home: process teaser link */
.sec-more { margin-top: 24px; display: flex; justify-content: flex-end; }

@media (max-width: 1020px) {
  .svc { grid-template-columns: 1fr; gap: 32px; }
  .svc.flip .svc-vis { order: 0; }
  .tl { grid-template-columns: 90px 1fr; }
  .tl-out { grid-column: 2; }
}
@media (max-width: 560px) {
  .svc-copy .checks { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: 16px; padding-block: 32px; }
  .tl-out { grid-column: auto; }
  .tl-no b { font-size: 34px; }
  .page-hero-in { padding-block: 64px 96px; }
}
