/* showcase.css  11/04/26 TS  The public showcase pieces: films, feature explorer, phase timeline, security layers, agent stepper,
   layout mock-up, network drawing. Built on the site's own tokens (site.css). */

/* ---- the floating browser frame around a film or a still ---- */
.sc-frame { border-radius: .9rem; overflow: hidden; background: #0b1020; border: 1px solid hsl(var(--bg-border));
  box-shadow: 0 30px 70px -24px hsl(220 40% 15% / .35), 0 8px 18px -10px hsl(220 40% 15% / .2); position: relative; }
.sc-frame-media { position: relative; aspect-ratio: 16 / 9; background: #0b1020; }
.sc-frame-media video, .sc-frame-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-toggle { position: absolute; right: .75rem; bottom: .75rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0;
  background: rgba(8, 12, 24, .72); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; }
.sc-toggle:hover { background: rgba(8, 12, 24, .92); }
.sc-toggle:focus-visible { outline: 3px solid hsl(var(--bg-accent)); outline-offset: 2px; }

/* ---- status labels: the same vocabulary everywhere ---- */
.sc-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; padding: .25rem .7rem; border-radius: 50rem; white-space: nowrap; }
.sc-status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.sc-status.now { background: hsl(var(--bg-primary) / .12); color: hsl(var(--bg-primary-dark)); }
.sc-status.rolling { background: hsl(175 60% 40% / .14); color: hsl(175 60% 26%); }
.sc-status.next { background: hsl(220 15% 92%); color: hsl(220 25% 30%); }
.sc-status.soon { background: hsl(262 70% 60% / .13); color: hsl(262 55% 42%); }
.sc-status.later { background: hsl(220 15% 94%); color: hsl(220 12% 42%); }

/* ---- the feature explorer ---- */
.sc-explorer { display: grid; grid-template-columns: minmax(16rem, 21rem) minmax(0, 1fr); gap: 2rem; align-items: start; }
.sc-rail { display: flex; flex-direction: column; gap: .35rem; }
.sc-rail button { display: flex; gap: .75rem; align-items: center; width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: .75rem;
  padding: .7rem .85rem; font-weight: 600; color: hsl(var(--bg-foreground)); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.sc-rail button i { font-size: 1.15rem; color: hsl(var(--bg-primary)); flex-shrink: 0; }
.sc-rail button:hover { background: hsl(var(--bg-muted)); }
.sc-rail button[aria-selected="true"] { background: hsl(var(--bg-card)); border-color: hsl(var(--bg-primary) / .35); box-shadow: 0 6px 18px -10px hsl(220 40% 15% / .3); }
.sc-rail button:focus-visible { outline: 3px solid hsl(var(--bg-accent)); outline-offset: 2px; }
.sc-panel-copy { margin-top: 1.25rem; }
.sc-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.5rem; }
.sc-points li { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; color: hsl(var(--bg-muted-foreground)); }
.sc-points li i { color: hsl(var(--bg-accent)); margin-top: .1rem; flex-shrink: 0; }

/* ---- the story band: map, then generated, then AI ---- */
.sc-story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.sc-story-step { position: relative; padding: 1.5rem; border-radius: .9rem; background: hsl(var(--bg-card)); border: 1px solid hsl(var(--bg-border)); }
.sc-story-step .n { font-weight: 700; font-size: .8rem; letter-spacing: .08em; color: hsl(var(--bg-primary)); text-transform: uppercase; }

/* ---- screen gallery and the enlarged view ---- */
.sc-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.sc-shot { display: block; width: 100%; padding: 0; border: 1px solid hsl(var(--bg-border)); border-radius: .75rem; overflow: hidden; background: hsl(var(--bg-card)); cursor: zoom-in; text-align: left;
  transition: transform .25s ease, box-shadow .25s ease; }
.sc-shot:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -18px hsl(220 40% 15% / .4); }
.sc-shot:focus-visible { outline: 3px solid hsl(var(--bg-accent)); outline-offset: 2px; }
.sc-shot img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.sc-shot span { display: block; padding: .55rem .8rem; font-size: .85rem; font-weight: 600; color: hsl(var(--bg-foreground)); }
dialog.sc-zoom { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1400px); width: 100%; }
dialog.sc-zoom::backdrop { background: rgba(6, 9, 18, .82); }
dialog.sc-zoom img { width: 100%; height: auto; display: block; border-radius: .6rem; }
dialog.sc-zoom p { color: #fff; margin: .6rem 0 0; font-weight: 600; }
dialog.sc-zoom button { position: absolute; top: .6rem; right: .6rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: rgba(8, 12, 24, .78); color: #fff; font-size: 1.1rem; cursor: pointer; }

/* ---- the phase timeline ---- */
.sc-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.sc-filters button { border: 1px solid hsl(var(--bg-border)); background: hsl(var(--bg-card)); border-radius: 50rem; padding: .4rem .95rem; font-size: .88rem; font-weight: 600; color: hsl(var(--bg-foreground)); cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; }
.sc-filters button[aria-pressed="true"] { background: hsl(var(--bg-primary)); border-color: hsl(var(--bg-primary)); color: #fff; }
.sc-filters button:focus-visible { outline: 3px solid hsl(var(--bg-accent)); outline-offset: 2px; }
.sc-timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 2.25rem; }
.sc-timeline::before { content: ""; position: absolute; left: .7rem; top: .6rem; bottom: .6rem; width: 3px; border-radius: 3px;
  background: linear-gradient(hsl(var(--bg-primary)), hsl(175 60% 40%) 42%, hsl(262 55% 60%) 74%, hsl(220 15% 85%)); }
.sc-phase { position: relative; margin-bottom: 1.5rem; }
.sc-phase:last-child { margin-bottom: 0; }
.sc-node { position: absolute; left: -2.25rem; top: 1.05rem; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: hsl(var(--bg-background)); border: 3px solid hsl(220 15% 75%); }
.sc-phase[data-state="now"] .sc-node { background: hsl(var(--bg-primary)); border-color: hsl(var(--bg-primary)); }
.sc-phase[data-state="rolling"] .sc-node { background: hsl(175 60% 40%); border-color: hsl(175 60% 40%); }
.sc-phase[data-state="next"] .sc-node { border-color: hsl(175 60% 40%); }
.sc-phase[data-state="soon"] .sc-node { border-color: hsl(262 55% 60%); }
.sc-phase-card { background: hsl(var(--bg-card)); border: 1px solid hsl(var(--bg-border)); border-radius: .9rem; padding: 1.15rem 1.35rem; }
.sc-phase-card summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.sc-phase-card summary::-webkit-details-marker { display: none; }
.sc-phase-card summary:focus-visible { outline: 3px solid hsl(var(--bg-accent)); outline-offset: 3px; border-radius: .4rem; }
.sc-phase-card summary .sc-chev { margin-left: auto; color: hsl(var(--bg-muted-foreground)); transition: transform .2s ease; }
.sc-phase-card[open] summary .sc-chev { transform: rotate(180deg); }
.sc-phase-items { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.5rem; }
.sc-phase-items li { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; color: hsl(var(--bg-muted-foreground)); }
.sc-phase-items li i { color: hsl(var(--bg-primary)); margin-top: .1rem; flex-shrink: 0; }
.sc-phase-items li[hidden], .sc-phase[hidden] { display: none; }

/* ---- the security layers ---- */
.sc-layers { display: grid; grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr); gap: 2rem; align-items: start; }
.sc-stack { display: flex; flex-direction: column; gap: .55rem; perspective: 900px; }
.sc-stack button { display: flex; gap: .8rem; align-items: center; text-align: left; width: 100%; padding: .85rem 1rem; border-radius: .75rem; border: 1px solid hsl(var(--bg-border)); background: hsl(var(--bg-card)); color: hsl(var(--bg-foreground)); font-weight: 600; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.sc-stack button i { font-size: 1.2rem; color: hsl(var(--bg-primary)); flex-shrink: 0; }
.sc-stack button[aria-selected="true"] { transform: translateX(.5rem); border-color: hsl(var(--bg-primary) / .5); box-shadow: 0 12px 26px -16px hsl(220 40% 15% / .45); }
.sc-stack button:focus-visible { outline: 3px solid hsl(var(--bg-accent)); outline-offset: 2px; }
.sc-layer-panel { background: hsl(var(--bg-card)); border: 1px solid hsl(var(--bg-border)); border-radius: .9rem; padding: 1.5rem; }
.sc-layer-line { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: .75rem; padding: .65rem 0; border-top: 1px solid hsl(var(--bg-border)); font-size: .95rem; color: hsl(var(--bg-muted-foreground)); }
.sc-layer-line:first-of-type { border-top: 0; }
.sc-layer-line b { color: hsl(var(--bg-primary-dark)); font-weight: 600; }

/* ---- the agent stepper: a slide-out over a real screen ---- */
.sc-agent { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 23rem); border-radius: .9rem; overflow: hidden; border: 1px solid hsl(var(--bg-border)); background: hsl(var(--bg-card)); box-shadow: 0 30px 70px -28px hsl(220 40% 15% / .4); }
.sc-agent-screen { position: relative; background: #0b1020; aspect-ratio: 16 / 9; }
.sc-agent-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: opacity .35s ease; }
.sc-agent-panel { padding: 1.25rem 1.35rem; display: flex; flex-direction: column; min-width: 0; }
.sc-agent-task { font-size: .92rem; color: hsl(var(--bg-muted-foreground)); padding-bottom: .85rem; border-bottom: 1px solid hsl(var(--bg-border)); margin-bottom: .85rem; }
.sc-agent-steps { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .65rem; flex-grow: 1; }
.sc-agent-steps li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; font-weight: 500; color: hsl(220 10% 62%); }
.sc-agent-steps .tick { flex-shrink: 0; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 2px solid hsl(220 15% 82%); display: flex; align-items: center; justify-content: center; font-size: .72rem; color: #fff; }
.sc-agent-steps li.on { color: hsl(var(--bg-foreground)); }
.sc-agent-steps li.on .tick { border-color: hsl(var(--bg-primary)); box-shadow: 0 0 0 3px hsl(var(--bg-primary) / .18); }
.sc-agent-steps li.done { color: hsl(220 20% 35%); }
.sc-agent-steps li.done .tick { background: hsl(var(--bg-accent)); border-color: hsl(var(--bg-accent)); }

/* ---- Annie: a designed preview ---- */
.sc-chat { background: hsl(var(--bg-card)); border: 1px solid hsl(var(--bg-border)); border-radius: .9rem; padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; box-shadow: 0 18px 40px -26px hsl(220 40% 15% / .4); }
.sc-bubble { max-width: 88%; padding: .7rem .95rem; border-radius: .9rem; font-size: .93rem; }
.sc-bubble.me { align-self: flex-end; background: hsl(var(--bg-primary)); color: #fff; border-bottom-right-radius: .25rem; }
.sc-bubble.her { align-self: flex-start; background: hsl(var(--bg-muted)); color: hsl(var(--bg-foreground)); border-bottom-left-radius: .25rem; }
.sc-path { display: inline-block; margin-top: .4rem; font-size: .8rem; font-weight: 600; color: hsl(var(--bg-primary-dark)); }

/* ---- custom field layouts: a designed mock-up ---- */
.sc-layout { background: hsl(var(--bg-card)); border: 1px solid hsl(var(--bg-border)); border-radius: .9rem; padding: 1.25rem; }
.sc-layout-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.sc-field { border: 1px solid hsl(var(--bg-border)); border-radius: .55rem; padding: .55rem .7rem; background: hsl(var(--bg-background)); transition: transform .45s cubic-bezier(.2, .8, .2, 1), background .3s ease; min-width: 0; }
.sc-field label { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .03em; color: hsl(var(--bg-muted-foreground)); text-transform: uppercase; margin: 0; }
.sc-field span { display: block; height: .55rem; margin-top: .4rem; width: 70%; border-radius: .3rem; background: hsl(220 15% 86%); }
.sc-layout.alt .sc-field.key { background: hsl(175 60% 40% / .1); border-color: hsl(175 60% 40% / .45); }

/* ---- the network drawing: generated, no real data ---- */
.sc-network { width: 100%; height: auto; display: block; }
.sc-network line { stroke: hsl(var(--bg-primary) / .22); stroke-width: 1; }
.sc-network circle { fill: hsl(var(--bg-primary)); }
.sc-network circle.a { fill: hsl(var(--bg-accent)); }
.sc-network circle.b { fill: hsl(262 55% 60%); }

@media (max-width: 991.98px) {
  .sc-explorer, .sc-layers, .sc-agent { grid-template-columns: minmax(0, 1fr); }
  .sc-rail { flex-direction: row; flex-wrap: wrap; }
  .sc-rail button { width: auto; flex: 1 1 calc(50% - .35rem); min-width: 0; font-size: .88rem; padding: .55rem .65rem; }
  .sc-stack button[aria-selected="true"] { transform: none; }
  .sc-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .sc-rail button { flex-basis: 100%; }
  .sc-points, .sc-phase-items, .sc-story { grid-template-columns: minmax(0, 1fr); }
  .sc-gallery { grid-template-columns: minmax(0, 1fr); }
  .sc-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-layer-line { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-shot, .sc-field, .sc-stack button, .sc-agent-screen img { transition: none; }
}
