/* ---- the /nativecad/ hub: gallery-first landing (CADSF-101365/101366) ----- */
/* .hub-hero    a shorter hero so the demos start sooner; .hero-shots holds
 *              three real renders that cross-fade (5 s each). Reduced motion:
 *              the animation is dropped below and only the first render shows.
 * .sec         a full-width section (head above, content below) — the demos,
 *              the sentence-to-STEP strip and the proof row
 * .dc          a demo card: 16:10 render, label, title, blurb, one stat
 * .sx          prompt → tool calls → finished part, three columns on desktop
 * .proof-tiles big number + label, each linking to its run
 * .cta-band    the shared Download / Free key / Pricing / sales band
 * .tools-details  the tool reference, collapsed */
.hub-hero { padding: 36px 0 44px; }
@media (min-width: 900px) { .hub-hero { min-height: 0; padding: 56px 0 64px; } }
.hub-hero .hero-grid > * { min-width: 0; }
.hub-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.4rem); }
@media (min-width: 900px) { .hub-hero .hero-grid { grid-template-columns: 1.2fr .8fr; } }
.hub-hero .eyebrow { flex-wrap: wrap; row-gap: 4px; }
.hub-hero .hero-note code { overflow-wrap: anywhere; }
.hub .card { min-width: 0; }
.hub .card p, .hub .card code, .hub .card .links a { overflow-wrap: anywhere; }
.hub .card code { white-space: pre-wrap; }
.hero-shots { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 16px;
  overflow: hidden; background: var(--wash); border: 1px solid var(--line); will-change: transform, opacity;
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .45); }
.hero-shots .hs { position: absolute; inset: 0; display: block; opacity: 0; text-decoration: none;
  animation: hs-fade 15s linear infinite; }
.hero-shots .hs:nth-child(1) { opacity: 1; animation-delay: -1s; z-index: 1; }
.hero-shots .hs:nth-child(2) { animation-delay: 4s; z-index: 2; }
.hero-shots .hs:nth-child(3) { animation-delay: 9s; z-index: 3; }
.hero-shots img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hs-cap { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 6px 12px;
  border-radius: 999px; font: 600 .74rem/1.3 var(--mono); letter-spacing: .02em; color: #e8edf2;
  background: rgba(15, 18, 22, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hs-cap b { color: #fff; font-weight: 700; margin-right: 4px; }
@keyframes hs-fade { 0% { opacity: 0; } 6% { opacity: 1; } 33% { opacity: 1; } 39% { opacity: 0; } 100% { opacity: 0; } }

.sec { padding: 64px 0 8px; }
@media (min-width: 900px) { .sec { padding: 88px 0 8px; } }
.sec-head { max-width: 720px; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(1.7rem, 4.6vw, 2.4rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800;
  margin: 12px 0 10px; text-wrap: balance; }
.sec-head p { color: var(--muted); font-size: 1rem; }
.sec-more, .sec-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.dc-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .dc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .dc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dc { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; background: var(--paper); color: var(--ink); text-decoration: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.dc:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.dc-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--wash); border-bottom: 1px solid var(--line); }
.dc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dc-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.dc-label { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.dc h3 { font-size: 1.06rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 750; }
.dc p { font-size: .9rem; color: var(--muted); line-height: 1.45; flex: 1; }
.dc-stat { font: 700 .8rem/1.3 var(--mono); color: var(--ink); }
.dc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-tags span { font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }

.sx { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .sx { grid-template-columns: 1fr 1.1fr 1.2fr; gap: 16px; } }
.sx-step { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--paper);
  display: flex; flex-direction: column; gap: 12px; }
.sx-k { font: 700 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.sx blockquote { font-size: 1.08rem; line-height: 1.45; font-weight: 500; border-left: 3px solid var(--accent); padding-left: 14px; }
.sx-calls { list-style: none; padding: 0; display: grid; gap: 8px; font-size: .84rem; color: var(--muted); counter-reset: call; }
.sx-calls li { display: grid; gap: 2px; justify-items: start; }
.sx-calls code { color: var(--ink); background: var(--code-bg); }
.sx-part { display: block; margin: 0; padding: 18px 18px 14px; }
.sx-part > * + * { margin-top: 12px; }
.sx-part img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: var(--wash); }
.sx-part figcaption { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-part figcaption span { font: 600 .72rem/1 var(--mono); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: var(--ink); }

.proof-tiles { display: grid; gap: 12px; margin-top: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .proof-tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.pt { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--wash); color: var(--ink); text-decoration: none; }
a.pt:hover { border-color: var(--accent); }
.pt b { font: 700 clamp(1.4rem, 3.4vw, 1.9rem)/1.05 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pt span { font-size: .82rem; color: var(--muted); line-height: 1.35; }

.cta-band { margin: 72px 0 0; border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  background: linear-gradient(160deg, var(--wash), var(--paper) 70%); }
.cta-band h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; }
.cta-band p { color: var(--muted); margin: 0 0 18px; max-width: 64ch; }
.cta-band .cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) { .cta-band { padding: 22px 18px; } .cta-band .cta-btns .btn { flex: 1 1 100%; justify-content: center; } }

.tools-details { border-top: 1px solid var(--line); padding-top: 20px; }
.tools-details > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.tools-details > summary::-webkit-details-marker { display: none; }
.tools-details > summary::after { content: '+'; margin-left: auto; font: 700 1.4rem/1 var(--mono); color: var(--accent); }
.tools-details[open] > summary::after { content: '\2212'; }
.tools-details .td-h { font-size: clamp(1.3rem, 3.4vw, 1.8rem); font-weight: 800; letter-spacing: -.02em; }
.tools-details .sub { margin-top: 12px; }
@media (max-width: 640px) { .hub .cta .btn { flex: 1 1 100%; justify-content: center; } .hub .cta .btn:nth-child(n+3) { flex-basis: 40%; } }
@media (prefers-reduced-motion: reduce) {
  .hero-shots .hs:nth-child(1) { opacity: 1; }
  .hero-shots .hs:nth-child(n+2) { display: none; }
}

