/* platform.css — extracted from site.css (css-cleanup Step 4a).
   Loads only on /platform via @section Styles. Depends on core site.css only.
   Move, not redesign: rules are byte-identical to their former site.css home. */

/* =========================================================================
   Platform page — per-stage layout variety (Detect / Map / Prove / Operate)
   ========================================================================= */

/* Shared: icon chip on cards (Map + Operate) */
.specimen-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: var(--teal-dim);
    border: 1px solid var(--teal-20);
    color: var(--teal);
    margin-bottom: 4px;
}

/* Shared: text-only inline CTA (Detect split) */
.plat-text-cta {
    align-self: flex-start;
    margin-top: 22px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
    transition: color 0.12s ease;
}
.plat-text-cta:hover { color: var(--teal-hover); text-decoration: underline; }

/* --- Detect: split text + icon grid --- */
.plat-scan {
    background: linear-gradient(to bottom, var(--bg) 0%, var(--surface) 45%);
}

.plat-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.plat-split-text { display: flex; flex-direction: column; }
.plat-split-text .eyebrow { margin-bottom: 14px; }
.plat-split-text h2 { margin-bottom: 18px; }
.plat-icongrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.plat-ig-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--teal);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.plat-ig-tile:hover { border-color: var(--teal-40); transform: translateY(-2px); }
.plat-ig-tile span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink-2);
}

/* --- Map: gradient background + cropped Vornin mark motif --- */
.plat-map {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background:
        radial-gradient(70% 75% at 50% 48%, var(--teal-10) 0%, transparent 62%),
        linear-gradient(180deg, var(--surface) 0%, var(--bg) 50%, var(--surface) 100%);
}
.plat-map-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(100%, 1180px);
    aspect-ratio: 3 / 4;
    color: var(--teal);
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 28%, transparent 82%);
    mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 28%, transparent 82%);
}
.plat-map-mark svg { width: 100%; height: 100%; display: block; }
.plat-map .container { position: relative; z-index: 1; }

/* --- Prove: icon list --- */
.plat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 760px;
}
.plat-list li { border-top: 1px solid var(--border); }
.plat-list li:last-child { border-bottom: 1px solid var(--border); }
.plat-list-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.18s ease;
}
.plat-list-row:hover { background: var(--teal-dim); }
.plat-list-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    background: var(--teal-dim);
    border: 1px solid var(--teal-20);
    color: var(--teal);
}
.plat-list-text { display: flex; flex-direction: column; gap: 4px; }
.plat-list-text strong {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink);
}
.plat-list-text span { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.5; }
.plat-list-go {
    margin-left: auto;
    color: var(--ink-3);
    font-size: 1.125rem;
    transition: transform 0.12s ease, color 0.12s ease;
}
.plat-list-row:hover .plat-list-go { color: var(--teal); transform: translateX(3px); }

/* --- Operate: integration logo strip (light panel on dark) --- */
.plat-logos-panel {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
    padding: 0;
}
.plat-logos-label {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.plat-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
}
.plat-logos img {
    height: 26px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.15s ease;
}
.plat-logos img:hover { opacity: 1; }
/* near-black mark (Okta) -> white for visibility on the dark bg */
.plat-logos img.logo-mono { filter: brightness(0) invert(1); opacity: 0.78; }
.plat-logos img.logo-mono:hover { opacity: 0.95; }
/* GitHub: keep its black-and-white mark on a white chip (its dark-octocat form is invisible bare) */
.plat-logos img.logo-chip {
    height: 22px;
    background: #FFFFFF;
    border-radius: 50%;
    padding: 4px;
    box-sizing: content-box;
    opacity: 0.92;
}
.plat-logos img.logo-chip:hover { opacity: 1; }

@media (max-width: 820px) {
    .plat-split { grid-template-columns: 1fr; gap: 32px; }
    .plat-icongrid { grid-template-columns: repeat(3, 1fr); }
    .plat-map-mark { width: 150%; opacity: 0.05; }
    .plat-list-go { display: none; }
    .plat-logos-panel { gap: 18px; padding: 18px 20px; }
}
@media (max-width: 520px) {
    .plat-icongrid { grid-template-columns: repeat(2, 1fr); }
}
