/* ═══════════════════════════════════════════════════════════════
   4ssets — publisher storefront (unitycraft.org/4ssets)
   Self-contained stylesheet. Accent = "apple red".
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg-top: #0a1628; --bg-mid: #071020; --bg-bottom: #030810;
    --accent: #E12D2D; --accent-dark: #A61B1B; --accent-light: #FF6B5E;
    --accent-glow: rgba(225, 45, 45, 0.25); --accent-glow-strong: rgba(225, 45, 45, 0.50);
    --glass-bg: rgba(255,255,255,0.04); --glass-bg-hover: rgba(255,255,255,0.07);
    --glass-border: rgba(255,255,255,0.08); --glass-border-hover: rgba(255,255,255,0.16);
    --text-primary: #f0f4ff; --text-secondary: #bec9e0; --text-muted: #6f81a3;
    --success: #22c55e; --danger: #ef4444;
    --space-xs: 8px; --space-sm: 16px; --space-md: 24px; --space-lg: 40px; --space-xl: 64px;
    --max-width: 1120px; --radius-sm: 8px; --radius-md: 16px; --radius-lg: 24px;
    --transition-fast: 0.2s ease; --transition-base: 0.3s ease;
    --font-body: 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;
    --font-cta: 'Russo One', 'Roboto', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; font-family: var(--font-body); color: var(--text-primary);
    background: linear-gradient(to bottom, #0a1220 0%, #070d18 55%, #04070d 100%);
    background-attachment: fixed; min-height: 100vh; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }

/* Buttons */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px;
    background: linear-gradient(100deg, var(--accent-dark) 0%, var(--accent) 30%, var(--accent-light) 50%, var(--accent) 70%, var(--accent-dark) 100%);
    background-size: 220% 100%; background-position: 0% 50%; color: #fff;
    font-family: var(--font-cta); font-size: 0.92rem; font-weight: 400; letter-spacing: 0.03em;
    border: none; border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; white-space: nowrap;
    box-shadow: 0 5px 16px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.30), inset 0 -2px 4px rgba(90,0,0,0.35);
    transition: background-position var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
}
.btn-primary:hover { background-position: 100% 50%; box-shadow: 0 10px 34px var(--accent-glow-strong), inset 0 1px 0 rgba(255,255,255,0.30), inset 0 -2px 4px rgba(90,0,0,0.35); }
.btn-primary:active { transform: scale(0.97); }
.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px;
    background: rgba(255,255,255,0.03); color: var(--text-primary); font-size: 0.95rem; font-weight: 500;
    border: 2px solid var(--glass-border-hover); border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-base), transform var(--transition-fast);
}
.btn-secondary:hover { color: #fff; background: rgba(225,45,45,0.10); border-color: var(--accent-dark); box-shadow: 0 8px 26px rgba(225,45,45,0.18); }
.btn-secondary:active { transform: scale(0.97); }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 64px; background: linear-gradient(90deg, rgba(12,18,28,0.90) 0%, rgba(24,30,42,0.80) 100%); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.site-header__inner { max-width: var(--max-width); margin: 0 auto; height: 100%; padding: 0 var(--space-md); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); box-shadow: 0 4px 14px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25); font-family: var(--font-cta); font-size: 1.15rem; color: #fff; }
.brand__logo { width: 36px; height: 39px; object-fit: cover; flex-shrink: 0; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-cta); font-size: 1.25rem; letter-spacing: 0.01em; }
.brand__name b { color: var(--accent); font-weight: inherit; }
.brand__sub { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.04em; }
.header__nav { display: flex; align-items: center; gap: 22px; }
.header__link { color: var(--text-secondary); text-decoration: none; font-size: 0.92rem; transition: color var(--transition-fast); }
.header__link:hover { color: var(--accent); }

/* Layout */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); }
main { padding-top: 64px; }
.back-link { display: inline-block; margin: 24px 0 4px; color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color var(--transition-fast); }
.back-link:hover { color: var(--accent); }
.eyebrow { display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: var(--accent); }
.section { margin: 56px 0; }
.section__title { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin: 0 0 10px; letter-spacing: -0.01em; }
.section__intro { color: var(--text-secondary); max-width: 720px; margin: 0 0 26px; }

/* Publisher hero */
.pub-hero { padding-top: 56px; padding-bottom: 8px; }
.pub-hero__eyebrow { margin-bottom: 12px; }
.pub-hero__title { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 14px; }
.pub-hero__title .brand__name { font-size: inherit; }
.pub-hero__lead { font-size: 1.1rem; color: var(--text-secondary); max-width: 640px; margin: 0 0 26px; }
.pub-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pub-stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 34px; }
.pub-stat__num { font-family: var(--font-cta); font-size: 1.7rem; color: var(--accent); line-height: 1; }
.pub-stat__label { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }

/* Catalog grid */
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-md); overflow: hidden; transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base); }
.card:hover { transform: translateY(-4px); border-color: var(--accent-dark); box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--accent-glow); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0a1220; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, rgba(225,45,45,0.18), rgba(225,45,45,0.02)); color: rgba(255,255,255,0.55); font-family: var(--font-cta); font-size: 1.1rem; text-align: center; padding: 16px; }
.card__badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--accent); box-shadow: 0 2px 8px var(--accent-glow); }
.card__badge--soon { background: rgba(255,255,255,0.14); color: var(--text-secondary); }
.card__body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 5px; }
.card__tagline { font-size: 0.88rem; color: var(--text-secondary); margin: 0 0 14px; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__price { font-family: var(--font-cta); color: var(--accent); font-size: 1rem; }
.card__price--free { color: var(--success); }
.pipes { display: flex; gap: 5px; }
.pipe { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em; padding: 3px 7px; border-radius: 5px; background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--glass-border); }

/* Support */
.support { background: linear-gradient(135deg, rgba(225,45,45,0.10), rgba(225,45,45,0.02)); border: 1px solid rgba(225,45,45,0.25); border-radius: var(--radius-lg); padding: 36px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
.support h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 10px; }
.support p { color: var(--text-secondary); margin: 0 0 18px; }
.support__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.support__item { display: flex; gap: 12px; align-items: flex-start; }
.support__item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.support__item b { display: block; color: #fff; font-size: 0.95rem; }
.support__item span { font-size: 0.86rem; color: var(--text-muted); }
.support__item a { color: var(--accent); text-decoration: none; }
.support__item a:hover { text-decoration: underline; }

/* Asset page */
.asset-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; margin-top: 20px; align-items: start; }
.gallery__main { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: #0a1220; border: 1px solid var(--glass-border); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 62px; height: 62px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; cursor: pointer; border: none; box-shadow: 0 6px 20px var(--accent-glow-strong); transition: transform var(--transition-fast); }
.gallery__play::after { content:''; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.gallery__play:hover { transform: translate(-50%,-50%) scale(1.08); }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumb { width: 92px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: #0a1220; padding: 0; }
.gallery__thumb.is-active { border-color: var(--accent); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, rgba(225,45,45,0.18), rgba(225,45,45,0.02)); color: rgba(255,255,255,0.5); font-family: var(--font-cta); font-size: 1.3rem; }
.buy { position: sticky; top: 88px; }
.buy__badge { margin-bottom: 10px; }
.buy__title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 900; letter-spacing: -0.01em; margin: 0 0 8px; }
.buy__tagline { color: var(--text-secondary); margin: 0 0 18px; }
.buy__price { font-family: var(--font-cta); font-size: 2rem; color: var(--accent); margin: 0 0 16px; }
.buy__price--free { color: var(--success); }
.buy__cta { display: block; text-align: center; width: 100%; margin-bottom: 10px; }
.buy__meta { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--glass-border); padding-top: 18px; }
.buy__meta li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; }
.buy__meta span { color: var(--text-muted); }
.buy__meta b { color: var(--text-primary); font-weight: 600; text-align: right; }
.pipeline-support { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 0; }
.pipeline { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.03); font-size: 0.9rem; font-weight: 600; }
.pipeline--yes { border-color: rgba(34,197,94,0.35); }
.pipeline--no { opacity: 0.5; }
.pipeline__dot { width: 9px; height: 9px; border-radius: 50%; }
.pipeline--yes .pipeline__dot { background: var(--success); box-shadow: 0 0 8px rgba(34,197,94,0.6); }
.pipeline--no .pipeline__dot { background: var(--text-muted); }
.prose p { color: var(--text-secondary); line-height: 1.8; margin: 0 0 14px; }
.feat-list, .plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feat-list li { position: relative; padding-left: 30px; color: var(--text-secondary); line-height: 1.6; }
.feat-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-glow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FF6B5E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.plain-list li { padding-left: 20px; position: relative; color: var(--text-secondary); }
.plain-list li::before { content: '•'; position: absolute; left: 4px; color: var(--accent); }
.tech-table { width: 100%; border-collapse: collapse; }
.tech-table td { padding: 11px 4px; border-bottom: 1px solid var(--glass-border); font-size: 0.92rem; }
.tech-table td:first-child { color: var(--text-muted); width: 45%; }
.tech-table td:last-child { color: var(--text-primary); font-weight: 500; }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 0.8rem; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: var(--text-secondary); }
.acc { border: 1px solid var(--glass-border); border-radius: var(--radius-md); overflow: hidden; background: var(--glass-bg); }
.acc details { border-bottom: 1px solid var(--glass-border); }
.acc details:last-child { border-bottom: none; }
.acc summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform var(--transition-fast); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc__body { padding: 0 20px 18px; color: var(--text-secondary); line-height: 1.7; }
.acc__body ul { margin: 0; padding-left: 18px; }
.acc__meta { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; margin-left: auto; margin-right: 8px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Footer */
.footer { margin-top: 80px; border-top: 1px solid rgba(255,255,255,0.06); background: rgba(4,7,13,0.6); }
.footer__inner { max-width: var(--max-width); margin: 0 auto; padding: 44px var(--space-md) 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer__tagline { color: var(--text-muted); font-size: 0.9rem; margin: 14px 0 16px; max-width: 300px; }
.footer__heading { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 0 0 14px; }
.footer__link { display: block; color: var(--text-secondary); text-decoration: none; font-size: 0.92rem; margin-bottom: 9px; transition: color var(--transition-fast); }
.footer__link:hover { color: var(--accent); }
.footer__bottom { max-width: var(--max-width); margin: 0 auto; padding: 16px var(--space-md); border-top: 1px solid rgba(255,255,255,0.05); }
.footer__copy { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
.social-links { display: flex; gap: 12px; }
.social-link { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: var(--text-secondary); transition: all var(--transition-fast); }
.social-link:hover { border-color: var(--accent-dark); color: var(--accent); }

/* Video modal */
.modal { position: fixed; inset: 0; z-index: 2000; background: rgba(3,6,12,0.85); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__shell { position: relative; width: min(960px, 100%); }
.modal__close { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border-radius: 8px; border: none; background: rgba(255,255,255,0.1); color: #fff; cursor: pointer; display: grid; place-items: center; }
.modal__player { aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.modal__player iframe { width: 100%; height: 100%; border: 0; }

/* Cookie consent */
.uc-cookie { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(3,6,12,0.4); backdrop-filter: blur(4px); }
.uc-cookie[hidden] { display: none !important; }
.uc-cookie__box { width: 100%; max-width: 440px; background: rgba(16,22,30,0.98); border: 1px solid var(--glass-border); border-radius: 18px; padding: 32px 28px; text-align: center; box-shadow: 0 24px 70px rgba(0,0,0,0.6); }
.uc-cookie__icon { width: 50px; height: 50px; margin: 0 auto 16px; display: block; color: var(--accent); }
.uc-cookie__title { font-size: 1.2rem; font-weight: 800; margin: 0 0 10px; }
.uc-cookie__text { margin: 0 0 24px; font-size: 0.9rem; line-height: 1.65; color: var(--text-secondary); }
.uc-cookie__text a { color: var(--accent); }
.uc-cookie__actions { display: flex; gap: 12px; justify-content: center; }
.uc-cookie__btn { font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; padding: 12px 26px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; transition: all var(--transition-fast); }
.uc-cookie__btn--ghost { background: transparent; border-color: rgba(255,255,255,0.16); color: var(--text-secondary); }
.uc-cookie__btn--ghost:hover { border-color: rgba(255,255,255,0.32); color: var(--text-primary); }
.uc-cookie__btn--accept { background: var(--accent); color: #fff; box-shadow: 0 4px 14px var(--accent-glow); }
.uc-cookie__btn--accept:hover { background: var(--accent-light); }
body.uc-cookie-open { overflow: hidden; }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 24px 0 4px; font-size: 0.85rem; color: var(--text-muted); }
.crumbs a { color: var(--text-muted); text-decoration: none; transition: color var(--transition-fast); }
.crumbs a:hover { color: var(--accent); }
.crumbs__sep { opacity: 0.5; }
.crumbs__current { color: var(--text-secondary); }

/* Asset body layout */
.asset-body { display: grid; grid-template-columns: 1fr; gap: 44px; margin-top: 56px; }

/* Responsive */
@media (max-width: 900px) {
    .catalog, .related { grid-template-columns: repeat(2, 1fr); }
    .asset-hero { grid-template-columns: 1fr; }
    .buy { position: static; }
    .support { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .header__nav { display: none; }
    .catalog, .related { grid-template-columns: 1fr; }
    .pub-stats { gap: 22px; }
    .footer__inner { grid-template-columns: 1fr; gap: 26px; }
    .support { padding: 26px; }
    .uc-cookie__actions { flex-direction: column-reverse; }
    .uc-cookie__btn { width: 100%; }
}
