import { ChipTag, cn } from '@sim/emcn' import { ShieldCheck } from '@sim/emcn/icons' import { FeatureGraphicShell } from '@/app/(landing)/enterprise/components/feature-graphics/feature-graphic-shell' import styles from '@/app/(landing)/enterprise/components/feature-graphics/standards-graphic.module.css' /** * Enterprise standards told as a certification seal, with no window * framing: a shield-check medallion at the center wearing the deploy * tile's Deploy-button chrome — the same `--text-muted` fill with * `--text-inverse` ink — so the two dark tiles' hero elements read as * siblings. It is ringed by two concentric hairlines like a certificate * mark, with the outer ring dissolving through a mask the way the row's * older elements fade. The tile's two claims anchor the seal from either * side over short hairline connectors with port dots (the access tile's * junction vocabulary): a `SOC 2` chip and an `Open source` chip, whose * mono `--surface-5` fills read as light pills on the dark ground * exactly like the deploy tile's ChipTag. Each chip is anchored by its * connector-facing edge to the connector's endpoint (not centered on a * fixed x), so both junctions stay flush regardless of label width. A `Verified` pill beneath the seal carries the emphasized * state on the deploy tile's `--text-muted` chip fill with `--text-inverse` * ink (ChipTag's solid variant would vanish here — its fill is the tile's * own `--text-secondary`). The seal blooms the row's shared 6s ring pulse * (from `standards-graphic.module.css`, removed under * `prefers-reduced-motion`). * * Inks follow the deploy tile's dark-surface palette: hairlines and dots * mix `--text-muted-inverse` toward transparent (45% on the working * lines, fainter on the decorative rings), and the port dots fill with * the tile's `--text-secondary` so the connector reads as passing * beneath them. * * The two connectors are SVG paths normalized to `pathLength=1` so they * draw in with the page's dash vocabulary (the deploy tile's stagger): * SOC 2 draws into the seal first, the seal draws out to Open source a * beat later, both hold, then un-draw forward and loop on the shared 6s * timeline. Under `prefers-reduced-motion` they render fully drawn with * no animation. * * Each ring also carries a comet arc — the deploy tile's white connector * sweep made circular: a fixed 50° arc over the hairline, stroked with a * `userSpaceOnUse` linear gradient that is bright at the clockwise * leading tip and fades to transparent along the trailing side, inside a * group that rotates around the seal center (a rotating group rather * than a dash offset, because a dash wrapping the circle's path start * renders a stray seam-cap artifact). The two orbits share one 14s * period but the outer runs phase-shifted half a revolution, so the * sweeps are never synchronized; the outer sweep sits inside the same * fade mask as its hairline so it dissolves through the bottom of the * tile like the ring it traces. Under `prefers-reduced-motion` the * sweeps are hidden entirely. * * The feature tile's visual slot bleeds `2rem` right (`1.5rem` under * `max-lg`) but not left, so the canvas sits inside a matching * right-padded box to land on the tile's visible center instead of the * bled slot's center. The canvas itself is centered with a transform * (`left-1/2` + `-translate-x-1/2`) rather than flex `justify-center` * because an overflowing fixed-size flex item start-aligns instead of * centering once the tile gets narrower than the canvas. On the narrow * grid bands where the tile drops below the canvas width (small * two-column screens and the 3-up row just past `lg`) the canvas scales * down via transform so the SOC 2 / Open source chips are never cropped. */ export function StandardsGraphic() { return (