/* pyrosoft.pro/software — light Apple-esque catalog with flame accents.
   Deliberately its own little design system: the main PHP site keeps its dark
   look; this section is the light "store front" for the app catalog. */
:root {
    --bg: #fbfbfd;
    --panel: #fff;
    --line: #d2d2d7;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --accent: #ff5b04;
    --accent-soft: #ff8a3d;
    --pill: 980px;
    --radius: 28px;
    --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(60rem 30rem at 18% -8%, rgba(255, 91, 4, 0.10), transparent 60%),
        radial-gradient(50rem 26rem at 88% 4%, rgba(255, 179, 64, 0.12), transparent 60%),
        linear-gradient(180deg, #fff6ee 0%, var(--bg) 42%);
    background-attachment: fixed;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.47;
    -webkit-font-smoothing: antialiased;
}
.ribbon {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    height: 48px; padding: 0 max(22px, calc((100% - 1240px) / 2));
    background: rgba(251, 251, 253, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.ribbon .brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 600; }
.ribbon nav { display: flex; align-items: center; gap: 24px; font-size: .8rem; }
.ribbon nav a { color: #424245; text-decoration: none; }
.ribbon nav a:hover { color: #000; }
.ribbon nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
main { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; padding-bottom: 110px; }
.hero { text-align: center; padding: 84px 0 56px; }

.eyebrow { color: var(--accent); font-weight: 600; font-size: 1rem; margin: 0 0 12px; }
h1 { font-size: clamp(2.9rem, 6.5vw, 5.2rem); font-weight: 700; letter-spacing: -.018em; line-height: 1.05; margin: 0 0 18px; }
h1 span {
    background: linear-gradient(92deg, var(--accent-soft), var(--accent) 55%, #ff3b30 110%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 640px; margin: 0 auto; }
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 26px; }
.platform-card {
    display: block; text-decoration: none; color: #f5f5f7;
    background:
        radial-gradient(26rem 16rem at 22% -10%, rgba(255, 91, 4, 0.32), transparent 70%),
        #101013;
    border: 1px solid rgba(0,0,0,.35); border-radius: var(--radius);
    padding: 44px 40px; transition: transform 180ms ease, box-shadow 180ms ease;
    box-shadow: 0 18px 44px rgba(20, 8, 0, 0.18);
}
.platform-card:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(20, 8, 0, 0.28); }
.platform-card p { color: #b9b9c0; }
.platform-card .glyph { display: block; }
.platform-card h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.02em; margin: 14px 0 8px; }
.platform-card p { margin: 0 0 18px; }
.platform-card .go { color: var(--accent-soft); font-weight: 600; }
.apps { display: grid; gap: 20px; margin-top: 10px; }
.app {
    display: grid; grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.15fr);
    gap: 0; overflow: hidden; align-items: center;
    background: linear-gradient(135deg, #fff 0%, #fff4ea 100%);
    border: 1px solid #ead9c9; border-radius: var(--radius);
    box-shadow: 0 14px 40px rgba(120, 60, 10, 0.08);
}
.app-copy { padding: 40px; }
.app h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -.02em; margin: 0 0 6px; }
.app .price {
    display: inline-block; padding: 5px 13px; border-radius: var(--pill);
    background: rgba(255, 91, 4, 0.12); color: #d64a00;
    font-weight: 600; font-size: .85rem; margin: 0 0 14px;
}
.app p.blurb { color: var(--muted); margin: 0 0 20px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 20px; border-radius: var(--pill);
    font-size: .95rem; font-weight: 500; text-decoration: none;
    transition: background 160ms ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #ff6f26; }
.btn-ghost { color: var(--text); border: 1px solid #86868b; }
.btn-ghost:hover { background: rgba(0,0,0,.05); }
.app-art { align-self: stretch; background: #000; display: grid; }
.app-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app.flip .app-copy { order: 2; }
.cat-head {
    text-align: center; font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -.02em;
    margin: 64px 0 6px;
}
.cat-head::after {
    content: ""; display: block; width: 54px; height: 4px; border-radius: 2px;
    margin: 14px auto 0; background: linear-gradient(90deg, var(--accent-soft), var(--accent));
}
.section-note { text-align: center; color: var(--muted); margin: 44px auto 0; max-width: 560px; }
.section-note a { color: var(--accent); text-decoration: none; }
footer { background: #101013; padding: 30px 0 44px; margin-top: 40px; }
footer .inner { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .78rem; color: #86868b; }
footer a { color: #a1a1a6; text-decoration: none; }
footer a:hover { color: #f5f5f7; text-decoration: underline; }
@media (max-width: 780px) {
    .app { grid-template-columns: 1fr; }
    .app.flip .app-copy { order: 0; }
    .app-art { min-height: 220px; }
    .hero { padding-top: 56px; }
}
