/* Sample applications page (sample-applications2.html). Builds on css/software.css. */

.ap { --ap-multi: #b58cff; }
.ap-hero .sw-chip-pass { left: -22px; top: 20%; font-size: 18px; letter-spacing: .14em; padding: 12px 22px; }
.ap-hero .sw-chip-done { left: auto; right: 4%; bottom: -22px; font-size: 12px; letter-spacing: .06em; }

/* jump links under the hero */
.ap-jump { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 96px; }
.ap-jump a { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border: 1px solid var(--sw-line); border-radius: 12px; background: rgba(5, 10, 28, .6); backdrop-filter: blur(6px); color: #fff; font: 700 16px var(--f-head); text-decoration: none; transition: transform .2s, border-color .2s, background-color .2s; }
.ap-jump a:hover { transform: translateY(-3px); border-color: var(--sw-cyan); background: rgba(47, 123, 255, .14); }
.ap-jump b { font-size: 13px; letter-spacing: .1em; color: var(--sw-cyan); }

/* capability rows */
.ap-caps { background: linear-gradient(#02030f, #040a1f 50%, #02030f); }
.ap-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; margin-top: 96px; scroll-margin-top: 40px; }
.ap-row:first-of-type { margin-top: 64px; }
.ap-flip .ap-media { order: 2; }
.ap-media video { aspect-ratio: 16 / 9; object-fit: cover; background: #02030f; }
.ap-num { display: flex; align-items: center; gap: 14px; font: 700 14px var(--f-head); letter-spacing: .14em; color: var(--sw-cyan); }
.ap-num::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 22%, transparent); }
.ap-num.ap-pass { color: var(--sw-pass); }
.ap-num.ap-fail { color: var(--sw-fail); }
.ap-num.ap-multi { color: var(--ap-multi); }
.ap-q { font: 400 15px var(--f-foot); letter-spacing: 0; color: var(--sw-text); }
.ap-copy h3 { margin-top: 18px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; }
.ap-copy > p:not(.ap-num) { margin-top: 18px; font-size: 17px; line-height: 1.7; color: var(--sw-text); }
.ap-uses { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.ap-uses li { padding: 8px 16px; border: 1px solid var(--sw-line); border-radius: 30px; background: rgba(255, 255, 255, .03); font-size: 14px; color: #e6eef6; }

/* materials */
.ap-mat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; }
.ap-mat { padding: 36px 24px 30px; border: 1px solid var(--sw-line); border-radius: 14px; text-align: center; background: linear-gradient(180deg, rgba(47, 123, 255, .1), rgba(5, 10, 28, .5) 60%); transition: transform .25s, border-color .25s, box-shadow .25s; }
.ap-mat:hover { transform: translateY(-6px); border-color: rgba(111, 191, 228, .6); box-shadow: 0 24px 60px rgba(0, 20, 80, .55); }
.ap-ring { width: 168px; height: 168px; margin: 0 auto; padding: 5px; border-radius: 50%; background: conic-gradient(from 210deg, var(--sw-blue), var(--sw-cyan), rgba(111, 191, 228, .1), var(--sw-blue)); transition: rotate .6s; }
.ap-mat:hover .ap-ring { rotate: 40deg; }
.ap-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #050a1c; transition: rotate .6s; }
.ap-mat:hover .ap-ring img { rotate: -40deg; }
.ap-mat h3 { margin-top: 24px; font-size: 20px; }
.ap-mat ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.ap-mat li { padding: 6px 13px; border-radius: 30px; background: rgba(255, 45, 85, .12); border: 1px solid rgba(255, 45, 85, .35); font-size: 13.5px; color: #ffc2cd; }

/* service first */
.ap-service { padding-top: 0; }
.ap-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.ap-svc { display: flex; align-items: center; gap: 20px; padding: 20px 22px; border: 1px solid var(--sw-line); border-radius: 12px; background: rgba(5, 10, 28, .6); }
.ap-svc-img { flex: none; display: grid; place-items: center; width: 96px; height: 56px; }
.ap-svc-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 4px; }
.ap-svc h3 { font-size: 17px; }
.ap-svc p { margin-top: 5px; font-size: 14.5px; line-height: 1.45; color: var(--sw-text); }

.sw-final-box p a { color: var(--sw-cyan); }

@media (max-width: 1040px) {
  .ap-jump { grid-template-columns: repeat(2, 1fr); margin-top: 72px; }
  .ap-row { grid-template-columns: 1fr; gap: 32px; margin-top: 72px; }
  .ap-flip .ap-media { order: 0; }
  .ap-mat-grid { grid-template-columns: repeat(2, 1fr); }
  .ap-svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ap-jump { grid-template-columns: 1fr; margin-top: 56px; }
  .ap-mat-grid, .ap-svc-grid { grid-template-columns: 1fr; }
  .ap-hero .sw-chip-done { right: 2%; font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-mat:hover .ap-ring, .ap-mat:hover .ap-ring img { rotate: none; }
  html { scroll-behavior: auto; }
}
