:root {
  --bg: #0b0c0f;
  --bg-alt: #121316;
  --card: #16181d;
  --line: #262a31;
  --text: #eceef2;
  --muted: #9aa1ad;
  --green: #4fb954;
  --blue: #3b8cff;
  --grad: linear-gradient(108deg, #35124c 0%, #284d7b 18%, #1c8778 39%, #4db855 59%, #cbdb2a 80%, #efe315 100%);
  --grad-text: linear-gradient(100deg, #1c8778 0%, #4db855 45%, #cbdb2a 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 "Poppins", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
code { background: #1d2027; padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 10; }

.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(11,12,15,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 300; font-size: 20px; }
.brand img { border-radius: 8px; }
.brand b { font-weight: 600; }
.site-header nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover { color: var(--text); }
.site-header nav .btn { color: #0b0c0f; }
.site-header nav a.nav-pill { color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 3px 14px; }
.site-header nav a.nav-pill:hover { border-color: var(--green); }

.lang { display: flex; gap: 2px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang b, .site-header nav .lang a { padding: 3px 10px; border-radius: 999px; }
.lang b { background: var(--card); color: var(--text); }
.site-header nav .lang a { color: var(--muted); }
.site-header nav .lang a:hover { color: var(--text); }

/* buttons */
.btn { display: inline-block; padding: 12px 26px; border-radius: 999px; background: var(--green); color: #0b0c0f; font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(79,185,84,.35); }
.btn-sm { padding: 4px 14px; font-size: 13px; font-weight: 500; line-height: 1.5; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { box-shadow: none; border-color: var(--green); }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.cta.center { justify-content: center; }

/* hero */
.hero { padding: 72px 0 56px; background: radial-gradient(900px 500px at 80% 20%, rgba(40,77,123,.35), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--green); margin: 0 0 14px; }
h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.12; font-weight: 600; margin: 0 0 20px; }
h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.lead { color: var(--muted); font-size: 17px; max-width: 60ch; }
.sub { color: var(--muted); max-width: 62ch; margin: 0 0 36px; }
.hero-img { border-radius: 24px; justify-self: center; width: 100%; max-width: 460px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 55%, transparent 74%); mask-image: radial-gradient(circle at 50% 50%, #000 55%, transparent 74%); }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 32px 0 0; }
.badges li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 13px; color: var(--muted); }

/* gradient band */
.band { padding: 0; }
.band::before { content: ""; display: block; height: 3px; background: var(--grad); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 36px; padding-bottom: 36px; }
.trio p { margin: 0; color: var(--muted); font-size: 15px; }

/* sections */
.section { padding: 80px 0; }
.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); margin-top: 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; margin-bottom: 14px; }
.tag.ok { background: rgba(79,185,84,.15); color: var(--green); }
.tag.soon { background: rgba(239,227,21,.12); color: #efe315; }
.note { margin-top: 28px; padding: 18px 22px; border-left: 3px solid var(--green); background: var(--card); border-radius: 0 12px 12px 0; color: var(--muted); font-size: 15px; }
.note b { color: var(--text); }

/* card grids */
.cards-5 { grid-template-columns: repeat(6, 1fr); }
.cards-5 .card { grid-column: span 2; }
.cards-5 .card:nth-child(4), .cards-5 .card:nth-child(5) { grid-column: span 3; }
.sub-h { margin: 44px 0 16px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* showcase strip */
.showcase { padding: 0 0 44px; }
.showcase-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 24px; border-radius: 16px; text-decoration: none; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.showcase-card .tag { margin: 0; }
.sc-text { flex: 1 1 280px; color: var(--muted); }
.sc-text b { color: var(--text); font-weight: 600; }
.sc-link { color: var(--green); font-weight: 600; white-space: nowrap; }
.showcase-card:hover .sc-link { text-decoration: underline; }

/* architecture */
.arch { display: grid; grid-template-columns: 1fr auto 1.5fr auto 1fr; grid-template-areas: "oem api sdk net pacs" "files drop watcher net2 pacs2"; gap: 18px 12px; align-items: stretch; }
.a-oem { grid-area: oem; } .a-api { grid-area: api; } .a-sdk { grid-area: sdk; } .a-net { grid-area: net; } .a-pacs { grid-area: pacs; }
.a-files { grid-area: files; } .a-drop { grid-area: drop; } .a-watcher { grid-area: watcher; }
.arch-node, .arch-sdk { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.arch-node b, .arch-sdk b { font-weight: 600; }
.arch-node span { color: var(--muted); font-size: 14px; }
.arch-sdk { background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.arch-watcher { border-color: var(--green); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0 0; }
.chips li { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: #1d2027; color: var(--muted); }
.arch-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--green); font-size: 12px; text-align: center; min-width: 78px; }
.arch-arrow::after { content: "\2192"; font-size: 26px; line-height: 1; }
.arch-arrow span { color: var(--muted); }
.a-l1, .a-l2 { display: none; }
.a-net2 { grid-area: net2; } .a-pacs2 { grid-area: pacs2; }
.lane-label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* code */
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.codes figure { margin: 0; min-width: 0; }
.codes figcaption { font-weight: 600; margin-bottom: 8px; }
.code { margin: 0; padding: 18px 20px; background: #0e1014; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; font: 13px/1.6 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #cfd3da; }
.code code { font: inherit; background: none; padding: 0; white-space: pre; }
.code .k { color: #5cc8ff; } .code .s { color: #9ad47a; } .code .c { color: #6b7380; }
.fine { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

/* before / after */
.ba-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.ba { width: 100%; border-collapse: collapse; font-size: 14px; }
.ba th, .ba td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ba tbody tr:last-child th, .ba tbody tr:last-child td { border-bottom: 0; }
.ba thead th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ba tbody th { font-weight: 500; white-space: nowrap; }
.ba td { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; color: var(--muted); }
.ba td.rep { color: var(--green); }
.ba td.rem { color: #6b7380; font-style: italic; }
.ba td.kept { color: var(--text); }
.ba small { font-family: "Poppins", system-ui, sans-serif; font-size: 11px; color: var(--muted); }
.ba-notes { margin-top: 24px; }

/* watcher */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; color: var(--muted); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--grad); }
.flow { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.flow li { counter-increment: s; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px 16px 64px; }
.flow li::before { content: counter(s); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #0b0c0f; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.flow b { display: block; }
.flow span { color: var(--muted); font-size: 14px; }

/* cta + footer */
.cta-band { text-align: center; background: radial-gradient(700px 300px at 50% 0, rgba(28,135,120,.3), transparent 70%); }
.cta-band .lead { margin-inline: auto; }
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.foot { display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.foot a:has(img) { background: #f4f5f7; border-radius: 12px; padding: 8px 14px; display: block; }
.foot img { display: block; height: 44px; width: auto; }
.foot p { margin: 0; font-size: 13px; color: var(--muted); }
.foot a:hover { color: var(--text); }

@media (max-width: 900px) {
  .hero-grid, .split, .trio, .cards, .cards-2, .cards-4, .cards-5 { grid-template-columns: 1fr; }
  .cards-5 .card, .cards-5 .card:nth-child(4), .cards-5 .card:nth-child(5) { grid-column: auto; }
  .arch { grid-template-columns: 1fr; grid-template-areas: "l1" "oem" "api" "sdk" "net" "pacs" "l2" "files" "drop" "watcher" "net2" "pacs2"; }
  .a-l1, .a-l2 { display: block; }
  .a-l2 { margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
  .a-net2, .a-pacs2 { display: flex; }
  .a-l1 { grid-area: l1; } .a-l2 { grid-area: l2; } .a-net2 { grid-area: net2; } .a-pacs2 { grid-area: pacs2; }
  .arch-arrow { flex-direction: row; gap: 8px; min-width: 0; }
  .arch-arrow::after { content: "\2193"; }
  .codes { grid-template-columns: 1fr; }
  .ba th, .ba td { padding: 8px 10px; } .ba tbody th { white-space: normal; }
  .hero { padding-top: 40px; }
  .hero-img { max-width: 320px; order: -1; }
  .site-header nav > a:not(.btn) { display: none; }
  .site-header nav { gap: 10px; }
  .brand { flex-shrink: 0; font-size: 18px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
