/* Makes the old pages (Platform, Connectors, Agents, Packs, Security, ...) feel like the new home page: a dark top
   banner, rounded glowing cards, the same buttons, and sections that ease in. It only changes looks, never text.
   Loaded after the old styles.css, so selectors here are a little more specific. */
html { scroll-padding-top: 7rem; }
.eyebrow { letter-spacing: .12em; }

/* the page's top banner: full width, dark, with threads drifting behind the words */
main > .page-head { position: relative; isolation: isolate; max-width: none; margin-inline: calc(50% - 50vw); padding: clamp(3rem, 7vw, 5rem) calc(50vw - 50%) clamp(3rem, 6vw, 4.5rem); color: var(--band-fg, #f4f0e8); background: radial-gradient(48rem 24rem at 85% 0%, #14564f66, transparent 65%), radial-gradient(40rem 22rem at 0% 100%, #2b3a8a33, transparent 60%), var(--band, #0c1424); overflow: hidden; }
main > .page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='400' viewBox='0 0 1200 400'%3E%3Cg fill='none' stroke='%235cc8bb' stroke-width='1.4' stroke-dasharray='8 14' opacity='.45'%3E%3Cpath d='M0 90C300 10 500 190 800 110S1100 40 1200 120'/%3E%3Cpath d='M0 190C300 110 500 290 800 210S1100 140 1200 220'/%3E%3Cpath d='M0 290C300 210 500 390 800 310S1100 240 1200 320'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 50% / 1200px 100%; animation: page-flow 60s linear infinite; }
@keyframes page-flow { to { background-position-x: -1200px; } }
main > .page-head > * { max-width: 48rem; }
main > .page-head .eyebrow { color: var(--band-thread, #5cc8bb); }
main > .page-head h1 { color: var(--band-fg, #f4f0e8); font-size: clamp(2.3rem, 5.4vw, 3.8rem); }
main > .page-head h1 em { background: linear-gradient(100deg, var(--band-thread, #5cc8bb), #a7f0e6 45%, var(--band-thread, #5cc8bb)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: page-shine 6s ease-in-out infinite; }
@keyframes page-shine { 50% { background-position: 100% 0; } }
main > .page-head .lede { color: var(--band-muted, #aab3c5); }
main > .page-head .btn { color: var(--band-fg, #f4f0e8); border-color: var(--band-line, #2b3854); background: transparent; }
main > .page-head .btn.primary { background: var(--band-thread, #5cc8bb); border-color: var(--band-thread, #5cc8bb); color: #06201d; }
main > .page-head a:not(.btn) { color: var(--band-thread, #5cc8bb); }

/* buttons, like the home page */
.btn { border-radius: 99px; border-color: var(--line); transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary { background: var(--thread); border-color: var(--thread); color: #fff; }

/* cards: rounder, lift on hover, and a glow that follows the pointer (chrome.js sets --mx and --my) */
.card { position: relative; overflow: hidden; border-radius: 1.1rem; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(18rem circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--thread) 20%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: var(--thread); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

/* sections ease in as they scroll into view. Only when JavaScript ran (it adds .js to the page), and the failsafe
   shows everything after 3 seconds, so a script problem can never leave content hidden. */
.js main:has(> .page-head) > section:not(.rv-in) { opacity: 0; transform: translateY(26px); animation: rv-fail 0s 3s forwards; }
.js main:has(> .page-head) > section { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js main:has(> .page-head) > section.rv-in { opacity: 1; transform: none; }
@keyframes rv-fail { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main > .page-head::before, main > .page-head h1 em { animation: none; } .js main:has(> .page-head) > section:not(.rv-in) { opacity: 1; transform: none; } .card, .card:hover { transform: none; } }
main > .page-head p { color: var(--band-muted, #aab3c5); }
