:root {
  --c-ink: #0c0e11;
  --c-ink-2: #3b4049;
  --c-ink-3: #6f7682;
  --c-white: #ffffff;
  --c-paper: #f8f9fd;
  --c-line: #e5e7eb;
  --c-blue: #5071ff;
  --c-purple: #9932ff;
  --c-coral: #f26d5c;
  --c-green: #148f72;
  --c-radius: 20px;
  --c-shadow: 0 16px 44px rgba(12, 14, 17, .08);
  --c-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.c-site {
  margin: 0;
  color: var(--c-ink-2);
  background: var(--c-white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.c-site a { color: inherit; }
.c-site button, .c-site input { font: inherit; }
.c-shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.c-skip { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 10px 14px; background: var(--c-ink); color: white; border-radius: 8px; }
.c-skip:focus { top: 12px; }

/* Navigation and footer intentionally mirror the rebuilt Circuitly site. */
.c-nav { position: sticky; top: 0; z-index: 80; border-bottom: 1px solid rgba(228,231,237,.9); background: rgba(255,255,255,.9); backdrop-filter: blur(14px); }
.c-nav-row { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.c-logo { display: inline-flex; align-items: center; text-decoration: none; }
.c-logo img { height: 30px; width: auto; display: block; }
.c-footer .c-logo img { height: 28px; }
.c-links { display: flex; justify-content: center; align-items: center; gap: 25px; }
.c-links > a, .c-drop > summary { color: var(--c-ink); font-size: 14.5px; font-weight: 550; text-decoration: none; cursor: pointer; list-style: none; }
.c-drop { position: relative; }
.c-drop > summary::-webkit-details-marker { display: none; }
.c-drop > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.c-drop-panel { position: absolute; top: calc(100% + 16px); left: 50%; width: 286px; padding: 8px; transform: translateX(-50%); border: 1px solid var(--c-line); border-radius: 14px; background: white; box-shadow: var(--c-shadow); }
.c-drop-panel a { display: block; padding: 11px 12px; border-radius: 9px; text-decoration: none; }
.c-drop-panel a:hover, .c-drop-panel a:focus-visible { background: var(--c-paper); outline: none; }
.c-drop-panel strong { display: block; color: var(--c-ink); font-size: 14px; }
.c-drop-panel span { display: block; margin-top: 3px; color: var(--c-ink-3); font-size: 12.5px; line-height: 1.35; }
.c-actions { display: flex; align-items: center; gap: 12px; }
.c-signin { color: var(--c-ink); font-size: 14px; font-weight: 550; text-decoration: none; }
.c-menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--c-line); border-radius: 10px; background: white; color: var(--c-ink); }
.c-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 0 19px; border: 1px solid var(--c-ink); border-radius: 999px; background: var(--c-ink); color: white !important; font-size: 14.5px; font-weight: 650; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.c-button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(12,14,17,.16); }
.c-button.secondary { border-color: var(--c-line); background: white; color: var(--c-ink) !important; box-shadow: none; }
.c-button.small { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.c-button.text { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--c-ink) !important; }
.c-button.text::after { content: "→"; }

.c-hero { padding: 96px 0 76px; border-bottom: 1px solid var(--c-line); }
.c-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr); align-items: center; gap: 74px; min-width: 0; }
.c-hero-grid > * { min-width: 0; }
.c-eyebrow { margin: 0 0 15px; color: var(--c-ink-3); font-size: 12px; font-weight: 700; letter-spacing: 1.65px; text-transform: uppercase; }
.c-title { margin: 0; color: var(--c-ink); font-size: clamp(46px, 6vw, 72px); line-height: 1.02; letter-spacing: -2.8px; font-weight: 800; }
.c-title.medium { max-width: 840px; font-size: clamp(42px, 5vw, 62px); }
.c-gradient { background: linear-gradient(100deg, var(--c-blue), var(--c-purple)); color: transparent; -webkit-background-clip: text; background-clip: text; }
.c-lede { max-width: 700px; margin: 24px 0 0; color: var(--c-ink-2); font-size: 19px; line-height: 1.62; }
.c-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.c-proofline { margin: 23px 0 0; color: var(--c-ink-3); font-family: var(--c-mono); font-size: 12.5px; line-height: 1.6; }
.c-section { padding: 100px 0; }
.c-section.paper { background: var(--c-paper); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.c-section.dark { background: var(--c-ink); color: white; }
.c-section-head { display: grid; grid-template-columns: .72fr 1.28fr; gap: 64px; align-items: start; margin-bottom: 46px; }
.c-section-head h2, .c-centered h2 { margin: 0; color: var(--c-ink); font-size: clamp(34px, 4vw, 50px); line-height: 1.08; letter-spacing: -1.6px; }
.c-section-head p { max-width: 650px; margin: 0; font-size: 18px; line-height: 1.65; }
.c-centered { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.c-centered p { margin: 18px auto 0; font-size: 18px; line-height: 1.6; }
.c-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.c-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.c-card { display: flex; min-height: 100%; flex-direction: column; padding: 28px; border: 1px solid var(--c-line); border-radius: var(--c-radius); background: white; box-shadow: 0 8px 26px rgba(12,14,17,.045); }
.c-card:hover { border-color: #cdd2dc; }
.c-card-tag { display: inline-flex; align-items: center; align-self: flex-start; min-height: 27px; padding: 0 10px; border-radius: 999px; background: var(--c-paper); color: var(--c-ink-3); font-family: var(--c-mono); font-size: 11px; letter-spacing: .35px; }
.c-card h3 { margin: 20px 0 9px; color: var(--c-ink); font-size: 22px; line-height: 1.22; letter-spacing: -.45px; }
.c-card p { margin: 0; font-size: 15.5px; line-height: 1.62; }
.c-card .c-button.text { align-self: flex-start; margin-top: auto; padding-top: 24px; font-size: 14.5px; }
.c-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-line); }
.c-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--c-line); line-height: 1.5; }
.c-list li::before { content: ""; width: 16px; height: 16px; margin-top: 3px; border: 1.5px solid var(--c-ink); border-radius: 50%; background: radial-gradient(circle, var(--c-ink) 0 2px, transparent 3px); }
.c-meta { color: var(--c-ink-3); font-family: var(--c-mono); font-size: 12px; }

/* Product placeholder: static on purpose; it should read as workflow evidence, not a fake demo. */
.c-product-frame { overflow: hidden; min-width: 0; max-width: 100%; border: 1px solid #d9dde5; border-radius: 17px; background: white; box-shadow: 0 30px 72px rgba(12,14,17,.13); }
.c-product-bar { height: 45px; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: var(--c-ink); color: rgba(255,255,255,.76); font-family: var(--c-mono); font-size: 11px; }
.c-product-bar .file { margin: 0 auto; color: white; }
.c-product-body { min-height: 440px; display: grid; grid-template-columns: 142px 1fr 230px; }
.c-filetree { padding: 18px 12px; border-right: 1px solid var(--c-line); background: #fafbfc; }
.c-filetree strong { display: block; margin-bottom: 15px; color: var(--c-ink); font-size: 11px; }
.c-filetree span { display: block; margin: 9px 0; color: var(--c-ink-3); font-family: var(--c-mono); font-size: 9.5px; }
.c-schematic { position: relative; overflow: hidden; min-width: 0; background-color: #fbfcfd; background-image: radial-gradient(#d8dce3 1px, transparent 1px); background-size: 17px 17px; }
.c-schematic svg { position: absolute; inset: 6% 5%; width: 90%; height: 88%; }
.c-review-panel { padding: 17px; border-left: 1px solid var(--c-line); background: white; }
.c-panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: var(--c-ink); font-size: 12px; font-weight: 750; }
.c-status { padding: 4px 7px; border-radius: 999px; background: #e9f7f2; color: var(--c-green); font-family: var(--c-mono); font-size: 8.5px; }
.c-finding { margin-bottom: 10px; padding: 11px; border: 1px solid var(--c-line); border-radius: 10px; }
.c-finding .sev { color: var(--c-ink-3); font-family: var(--c-mono); font-size: 8px; text-transform: uppercase; }
.c-finding strong { display: block; margin: 6px 0 4px; color: var(--c-ink); font-size: 10px; line-height: 1.3; }
.c-finding p { margin: 0; color: var(--c-ink-3); font-size: 8.5px; line-height: 1.42; }
.c-frame-note { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 15px; border-top: 1px solid var(--c-line); color: var(--c-ink-3); font-family: var(--c-mono); font-size: 10px; }
.c-frame-note strong { color: var(--c-ink); }

.c-flow { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--c-line); border-radius: var(--c-radius); background: white; }
.c-flow-step { position: relative; min-height: 190px; padding: 27px 24px; border-right: 1px solid var(--c-line); }
.c-flow-step:last-child { border-right: 0; }
.c-flow-step:not(:last-child)::after { content: "→"; position: absolute; top: 28px; right: -11px; z-index: 2; width: 22px; height: 22px; border: 1px solid var(--c-line); border-radius: 50%; background: white; color: var(--c-ink-3); text-align: center; line-height: 20px; }
.c-flow-step .n { color: var(--c-ink-3); font-family: var(--c-mono); font-size: 11px; }
.c-flow-step h3 { margin: 28px 0 8px; color: var(--c-ink); font-size: 17px; }
.c-flow-step p { margin: 0; font-size: 14px; line-height: 1.55; }
.c-thread { padding: 34px; border: 1px solid var(--c-line); border-radius: var(--c-radius); background: white; }
.c-thread-row { display: grid; grid-template-columns: 160px 1fr; gap: 30px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.c-thread-row:last-child { border-bottom: 0; }
.c-thread-row strong { color: var(--c-ink); font-size: 14px; }
.c-thread-track { position: relative; min-height: 42px; display: grid; grid-template-columns: repeat(5,1fr); align-items: center; }
.c-thread-track::before { content: ""; position: absolute; left: 7%; right: 7%; height: 1px; background: #cfd4dd; }
.c-node { position: relative; z-index: 1; justify-self: center; min-width: 72px; padding: 8px 9px; border: 1px solid var(--c-line); border-radius: 8px; background: white; color: var(--c-ink-2); text-align: center; font-family: var(--c-mono); font-size: 9px; }
.c-node.active { border-color: var(--c-ink); background: var(--c-ink); color: white; }
.c-quote { max-width: 850px; margin: 0; color: var(--c-ink); font-size: clamp(28px,4vw,44px); line-height: 1.25; letter-spacing: -1px; }
.c-note { padding: 18px 20px; border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-paper); font-size: 14px; line-height: 1.55; }
.c-detail-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0,1.28fr); gap: 72px; }
.c-aside { position: sticky; top: 110px; align-self: start; }
.c-aside a { display: block; padding: 10px 0; border-bottom: 1px solid var(--c-line); color: var(--c-ink-3); font-size: 14px; text-decoration: none; }
.c-content h2 { margin: 0 0 18px; color: var(--c-ink); font-size: 32px; letter-spacing: -.8px; }
.c-content h2:not(:first-child) { margin-top: 64px; }
.c-content h3 { margin: 28px 0 8px; color: var(--c-ink); }
.c-content p { margin: 0 0 17px; font-size: 17px; line-height: 1.7; }
.c-related { display: flex; flex-wrap: wrap; gap: 10px; }
.c-related a { padding: 9px 13px; border: 1px solid var(--c-line); border-radius: 999px; background: white; color: var(--c-ink); font-size: 13px; text-decoration: none; }
.c-cta { padding: 96px 0; border-top: 1px solid var(--c-line); background: var(--c-paper); text-align: center; }
.c-cta h2 { max-width: 800px; margin: 0 auto; color: var(--c-ink); font-size: clamp(36px,5vw,56px); line-height: 1.08; letter-spacing: -1.6px; }
.c-cta p { max-width: 620px; margin: 18px auto 28px; font-size: 18px; line-height: 1.6; }

.c-footer { padding: 62px 0 30px; background: var(--c-ink); color: white; }
.c-footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, .75fr); gap: 46px; }
.c-footer .c-logo { color: white; }
.c-footer p { max-width: 330px; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.6; }
.c-footer h3 { margin: 3px 0 15px; font-size: 13px; }
.c-footer a:not(.c-logo) { display: block; margin: 10px 0; color: rgba(255,255,255,.62); font-size: 13.5px; text-decoration: none; }
.c-footer a:hover { color: white; }
.c-footnote { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: 12px; }

/* Homepage additions inherit the existing page variables and stay visually native. */
.cy-v2 { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.cy-v2 .c-card, .cy-v2 .c-thread { box-shadow: var(--c-shadow); }
[data-screen-label="Hero"] svg[style*="animation: cySpark"] { animation: none !important; opacity: .72; }
#office { display: none !important; }
.cy-mobile-nav { display: none; position: relative; }
.cy-mobile-nav summary { list-style: none; cursor: pointer; padding: 10px 13px; border: 1px solid var(--c-line); border-radius: 10px; color: var(--c-ink); font-size: 14px; font-weight: 600; }
.cy-mobile-nav summary::-webkit-details-marker { display: none; }
.cy-mobile-nav > div { position: absolute; top: calc(100% + 10px); right: 0; width: min(310px, calc(100vw - 32px)); padding: 8px; border: 1px solid var(--c-line); border-radius: 14px; background: white; box-shadow: var(--c-shadow); }
.cy-mobile-nav a { display: block; padding: 10px 11px; border-radius: 8px; color: var(--c-ink) !important; font-size: 14px; text-decoration: none; }
.cy-mobile-nav a:hover { background: var(--c-paper); }

@media (max-width: 980px) {
  .c-nav-row { grid-template-columns: 1fr auto; }
  .c-menu-button { display: inline-grid; place-items: center; }
  .c-links, .c-actions .c-signin { display: none; }
  .c-nav.open .c-nav-row { padding: 14px 0; }
  .c-nav.open .c-links { grid-column: 1 / -1; display: grid; width: 100%; justify-items: start; padding: 12px 0 5px; border-top: 1px solid var(--c-line); }
  .c-nav.open .c-drop { width: 100%; }
  .c-nav.open .c-drop-panel { position: static; width: 100%; margin-top: 8px; transform: none; box-shadow: none; }
  .c-hero-grid, .c-section-head, .c-detail-grid { grid-template-columns: 1fr; }
  .c-hero-grid { gap: 50px; }
  .c-detail-grid { gap: 36px; }
  .c-aside { position: static; }
  .c-grid-3 { grid-template-columns: 1fr; }
  .c-product-body { grid-template-columns: 112px 1fr 205px; }
  .c-flow { grid-template-columns: repeat(2,1fr); }
  .c-flow-step:nth-child(2) { border-right: 0; }
  .c-flow-step:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); }
  .c-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .c-shell { width: min(100% - 32px, 1160px); }
  .c-actions .c-button { display: none; }
  .c-hero { padding: 68px 0 54px; }
  .c-title { font-size: 44px; letter-spacing: -1.8px; }
  .c-lede { font-size: 17px; }
  .c-section { padding: 72px 0; }
  .c-section-head { gap: 18px; margin-bottom: 32px; }
  .c-grid-2 { grid-template-columns: 1fr; }
  .c-product-body { min-height: 380px; grid-template-columns: 1fr; }
  .c-filetree { display: none; }
  .c-review-panel { position: absolute; right: 14px; bottom: 14px; width: min(210px, calc(100% - 28px)); max-height: 250px; overflow: hidden; border: 1px solid var(--c-line); border-radius: 12px; box-shadow: var(--c-shadow); }
  .c-schematic { min-height: 380px; }
  .c-product-body { position: relative; }
  .c-flow { grid-template-columns: 1fr; }
  .c-flow-step, .c-flow-step:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .c-flow-step:last-child { border-bottom: 0; }
  .c-flow-step:not(:last-child)::after { top: auto; right: 22px; bottom: -11px; transform: rotate(90deg); }
  .c-thread { padding: 20px; }
  .c-thread-row { grid-template-columns: 1fr; gap: 12px; }
  .c-node { min-width: 52px; padding: 7px 4px; font-size: 7.5px; }
  .c-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .c-footnote { flex-direction: column; }
  #top nav[data-screen-label="Nav"] > div { min-height: 64px !important; padding: 10px 16px !important; flex-wrap: nowrap !important; }
  #top nav[data-screen-label="Nav"] > div > div:nth-child(2) { display: none !important; }
  #top nav[data-screen-label="Nav"] > div > div:nth-child(3) { display: none !important; }
  #top .cy-mobile-nav { display: block; }
  #top nav[data-screen-label="Nav"] img { max-width: 142px; height: 28px !important; }
  #top [data-screen-label="Hero"] { overflow: hidden; padding-left: 16px !important; padding-right: 16px !important; }
  #top [data-screen-label="Hero"] h1 { font-size: 41px !important; line-height: 1.05 !important; letter-spacing: -1.5px !important; }
  #top [data-screen-label="Hero"] > div:last-of-type { max-width: 100% !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
