/* ============================================================
   LUMIOR — Apps V2 Stylesheet
   Cosmic Observatory + 5-Act Details Experience
   ============================================================ */

/* ── Shared: Universe Body ── */
.apps-universe-body {
    background: #06080d;
    min-height: 100vh;
}

/* Starfield canvas fixed behind everything */
#starfield {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* All content above the canvas */
main,
footer,
.detail-back-btn,
.sticky-cta-bar {
    position: relative;
    z-index: 2;
}


/* ============================================================
   APPS.HTML — Forge Hero
   ============================================================ */

.forge-hero {
    position: relative;
    padding: 180px 0 120px;
    text-align: center;
    overflow: hidden;
}

.forge-hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}
.forge-hero-orb-1 {
    width: 600px; height: 600px;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(244,211,79,0.14) 0%, transparent 70%);
    animation: orbPulse 8s ease-in-out infinite;
}
.forge-hero-orb-2 {
    width: 400px; height: 400px;
    bottom: 0; right: 10%;
    background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, transparent 70%);
    animation: orbPulse 11s ease-in-out infinite reverse;
}

@keyframes orbPulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
    50% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

.forge-hero-content {
    position: relative;
    z-index: 2;
}

.forge-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 28px;
}

.forge-dot {
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent-2);
    animation: dotBlink 2s ease-in-out infinite;
}
.forge-dot:last-child { animation-delay: 0.5s; }

@keyframes dotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.forge-hero-title {
    font-size: clamp(52px, 8vw, 96px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 0 0 20px;
}

.forge-title-gradient {
    background-image: linear-gradient(90deg, #FF9933, #F4D34F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background-image 1.2s ease;
    animation: fadeGradIn 0.8s ease;
}

@keyframes fadeGradIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.forge-hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.forge-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 100px;
    padding: 12px 8px;
    backdrop-filter: blur(12px);
}

.forge-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 28px;
}

.forge-stat-num {
    font-size: 26px;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.forge-stat-label {
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.forge-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.08);
}

.forge-hero-scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: hintBob 2.5s ease-in-out infinite;
}

/* ── Gallery Section ── */
.forge-gallery {
    padding: 60px 0 140px;
    position: relative;
}

.forge-section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.forge-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.08), transparent);
}

/* ── App Card Grid ── */
.forge-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Forge Card (Portrait / Vertical) ── */
.forge-card {
    --card-color: #F4D34F;
    --card-rgb: 244, 211, 79;

    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 400ms ease;
    transform-style: preserve-3d;
    will-change: transform;

    /* Start hidden for animation */
    opacity: 0;
    transform: translateY(40px) scale(0.97);
}

.forge-card.forge-card-visible {
    animation: cardAppear 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

@keyframes cardAppear {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Glass inner layer */
.forge-card-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 32px 28px 28px;
    background: rgba(255, 255, 255, 0.030);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 2;
    transition: background 300ms ease, border-color 300ms ease;
}

.forge-card:hover .forge-card-inner {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(var(--card-rgb), 0.25);
}

/* Glow blob that follows mouse */
.forge-card-glow {
    position: absolute;
    inset: -1px;
    border-radius: 25px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 300ms ease;
    z-index: 1;
}
.forge-card:hover .forge-card-glow { opacity: 1; }

/* Top gradient border accent */
.forge-card-border {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    border-radius: 24px 24px 0 0;
    background: var(--card-color);
    opacity: 0;
    transition: opacity 350ms ease;
    z-index: 3;
}
.forge-card:hover .forge-card-border { opacity: 1; }

/* Shadow on hover */
.forge-card:hover {
    box-shadow: 0 24px 64px rgba(var(--card-rgb), 0.18),
                0 4px 16px rgba(0,0,0,0.5);
}

/* Status badge */
.forge-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 100px;
    padding: 4px 10px;
    align-self: flex-start;
    margin-bottom: 24px;
}

.forge-status-live {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.forge-status-concept {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.live-pulse {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
    animation: livePing 2s ease-in-out infinite;
}

@keyframes livePing {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Icon area */
.forge-card-icon-wrap {
    position: relative;
    width: 96px; height: 96px;
    margin: 0 auto 28px;
    flex-shrink: 0;
}

.forge-card-icon-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid rgba(var(--card-rgb), 0.2);
    transition: border-color 300ms ease, transform 600ms cubic-bezier(0.34,1.56,0.64,1);
}

.forge-card:hover .forge-card-icon-ring {
    border-color: rgba(var(--card-rgb), 0.5);
    transform: scale(1.12);
}

.forge-card-icon {
    width: 96px; height: 96px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(var(--card-rgb), 0.08);
    border: 1px solid rgba(var(--card-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 400ms ease;
    position: relative;
}

.forge-card-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    display: block;
}

.forge-card-icon-svg {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forge-card-icon-svg svg,
.forge-card-icon svg {
    width: 68px;
    height: 68px;
    display: block;
}

.forge-card:hover .forge-card-icon { transform: scale(1.05); }

/* Card body text */
.forge-card-body { flex: 1; text-align: center; }

.forge-card-category {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--card-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.forge-card-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.forge-card-tagline {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 0 0 16px;
    font-weight: 500;
}

.forge-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card footer */
.forge-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.forge-platforms {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.forge-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 100px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
}

.forge-card-arrow {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--card-rgb), 0.08);
    border: 1px solid rgba(var(--card-rgb), 0.2);
    color: var(--card-color);
    flex-shrink: 0;
    transition: background 250ms ease, transform 400ms cubic-bezier(0.34,1.56,0.64,1);
}
.forge-card:hover .forge-card-arrow {
    background: rgba(var(--card-rgb), 0.18);
    transform: translateX(3px);
}


/* ============================================================
   APP-DETAILS.HTML — 5-Act Layout
   ============================================================ */

/* CSS variables injected from JS */
:root {
    --app-color: #F4D34F;
    --app-rgb: 244, 211, 79;
    --app-gradient: linear-gradient(135deg, #c47f08, #F4D34F, #fde68a);
}

/* ── Floating Back Button ── */
.detail-back-btn {
    position: fixed;
    top: 90px;
    left: 24px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    padding: 10px 16px;
    border-radius: 100px;
    transition: all 250ms ease;
}
.detail-back-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.1);
    transform: translateX(-3px);
}

/* Loading */
.detail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    color: var(--text-secondary);
    gap: 16px;
    position: relative;
    z-index: 5;
}

.detail-spinner {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.06);
    border-top-color: var(--app-color, #F4D34F);
    animation: spin 1s linear infinite;
}

/* ── ACT 1: Hero ── */
.detail-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 140px 0 100px;
    overflow: hidden;
    text-align: center;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.detail-hero-orbs { position: absolute; inset: 0; pointer-events: none; }

.detail-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
.detail-orb-1 {
    width: 700px; height: 700px;
    top: -150px; left: 50%;
    transform: translateX(-50%);
    animation: orbPulse2 9s ease-in-out infinite;
}
.detail-orb-2 {
    width: 450px; height: 450px;
    bottom: -100px; right: 5%;
    animation: orbPulse2 13s ease-in-out infinite reverse;
}

@keyframes orbPulse2 {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.18); opacity: 1; }
}
.detail-orb-1 { transform-origin: center; }

.detail-hero-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Orbital icon stage */
.detail-icon-stage {
    position: relative;
    width: 200px; height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    flex-shrink: 0;
}

.detail-orbital-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(var(--app-rgb), 0.2);
    animation: orbitalSpin linear infinite;
}
.detail-orbital-ring::before {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--app-color);
    box-shadow: 0 0 12px rgba(var(--app-rgb), 0.8);
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
}

.detail-orbital-ring-outer {
    inset: -30px;
    animation-duration: 12s;
}
.detail-orbital-ring-mid {
    inset: -12px;
    animation-duration: 7s;
    animation-direction: reverse;
    border-color: rgba(var(--app-rgb), 0.12);
}
.detail-orbital-ring-mid::before {
    width: 6px; height: 6px;
    top: auto;
    bottom: -3px;
    left: 50%;
}

@keyframes orbitalSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.detail-hero-icon {
    width: 130px; height: 130px;
    border-radius: 30px;
    background: rgba(var(--app-rgb), 0.08);
    border: 1.5px solid rgba(var(--app-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 60px rgba(var(--app-rgb), 0.15),
                0 0 120px rgba(var(--app-rgb), 0.08);
    animation: iconFloat 6s ease-in-out infinite;
}
.detail-hero-icon svg { width: 88px; height: 88px; }

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Hero text */
.detail-hero-cat {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--app-color);
    font-weight: 700;
    margin-bottom: 14px;
    opacity: 0;
    animation: fadeUp 0.6s 0.1s ease forwards;
}

.detail-hero-name {
    font-size: clamp(48px, 7vw, 84px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--text-primary);
    margin: 0 0 16px;
    opacity: 0;
    animation: fadeUp 0.6s 0.2s ease forwards;
}

.detail-hero-tagline {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.5;
    opacity: 0;
    animation: fadeUp 0.6s 0.3s ease forwards;
}

.detail-hero-platforms {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeUp 0.6s 0.4s ease forwards;
}

.detail-platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(var(--app-rgb), 0.08);
    border: 1px solid rgba(var(--app-rgb), 0.2);
    color: var(--app-color);
    letter-spacing: 0.05em;
}

.detail-hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.6s 0.5s ease forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.detail-hero-scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hintBob 2.5s ease-in-out infinite;
    opacity: 0.4;
}

@keyframes hintBob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Scroll mouse widget ── */
.scroll-mouse {
    width: 22px; height: 36px;
    border: 2px solid currentColor;
    border-radius: 100px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
}
.scroll-wheel {
    width: 3px; height: 6px;
    border-radius: 100px;
    background: currentColor;
    animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* ── Store Buttons V2 ── */
.store-btn-v2 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1.5px solid;
    backdrop-filter: blur(10px);
}

.store-btn-v2 .store-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-btn-v2 .store-sub {
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
    line-height: 1;
}

.store-btn-v2 .store-main {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.store-btn-v2:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* Play Store */
.store-play {
    background: rgba(78, 205, 196, 0.06);
    border-color: rgba(78, 205, 196, 0.25);
    color: #e2f8f5;
}
.store-play:hover { background: rgba(78, 205, 196, 0.12); border-color: rgba(78, 205, 196, 0.5); }

/* App Store */
.store-apple {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
    color: var(--text-primary);
}
.store-apple:hover { background: rgba(255,255,255,0.1); }

/* Web */
.store-web {
    background: rgba(var(--app-rgb), 0.06);
    border-color: rgba(var(--app-rgb), 0.25);
    color: var(--app-color);
}
.store-web:hover { background: rgba(var(--app-rgb), 0.12); border-color: rgba(var(--app-rgb), 0.5); }

/* Small variant (sticky bar) */
.store-btn-sm {
    padding: 8px 16px;
    border-radius: 10px;
    gap: 8px;
}
.store-btn-sm .store-sub { font-size: 8px; }
.store-btn-sm .store-main { font-size: 13px; }
.store-btn-sm svg { width: 16px; height: 16px; }

/* ── Act Sections ── */
.detail-act {
    position: relative;
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.detail-act.detail-act-visible {
    opacity: 1;
    transform: translateY(0);
}

.detail-act-label {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--app-color);
    font-weight: 700;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-act-label::after {
    content: '';
    flex: 0 0 48px;
    height: 1.5px;
    background: rgba(var(--app-rgb), 0.4);
}

/* ── ACT 2: Story ── */
.detail-act-story {
    background: linear-gradient(180deg, rgba(var(--app-rgb), 0.03) 0%, transparent 100%);
    border-top: 1px solid rgba(255,255,255,0.04);
}

.detail-story-inner { max-width: 740px; }

.detail-story-text {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin: 0;
}

/* ── ACT 3: Features ── */
.detail-act-features {
    border-top: 1px solid rgba(255,255,255,0.04);
}

.detail-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-feat-card {
    background: rgba(255,255,255,0.028);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(16px);
    transition: all 300ms ease;
    opacity: 0;
    transform: translateY(20px);
}

.detail-feat-card.detail-act-visible {
    opacity: 1;
    transform: translateY(0);
}

.detail-feat-card:hover {
    border-color: rgba(var(--app-rgb), 0.2);
    background: rgba(var(--app-rgb), 0.04);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(var(--app-rgb), 0.08);
}

.detail-feat-icon-wrap {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(var(--app-rgb), 0.1);
    border: 1px solid rgba(var(--app-rgb), 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.detail-feat-emoji { font-size: 24px; }

.detail-feat-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.detail-feat-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ── ACT 4: Tech ── */
.detail-act-tech {
    border-top: 1px solid rgba(255,255,255,0.04);
}

.detail-tech-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-tech-pill {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(var(--app-rgb), 0.06);
    border: 1px solid rgba(var(--app-rgb), 0.18);
    color: var(--app-color);
    letter-spacing: 0.03em;
    transition: all 250ms ease;
}

.detail-tech-pill:hover {
    background: rgba(var(--app-rgb), 0.14);
    border-color: rgba(var(--app-rgb), 0.4);
    transform: scale(1.04);
}

/* ── ACT 5: Final CTA ── */
.detail-act-cta {
    border-top: 1px solid rgba(255,255,255,0.04);
    text-align: center;
    padding: 120px 0 160px;
    position: relative;
    overflow: hidden;
}

.detail-cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.detail-cta-inner { position: relative; z-index: 2; }

.detail-cta-icon {
    width: 100px; height: 100px;
    border-radius: 24px;
    background: rgba(var(--app-rgb), 0.1);
    border: 1.5px solid rgba(var(--app-rgb), 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    box-shadow: 0 0 60px rgba(var(--app-rgb), 0.15);
}
.detail-cta-icon svg { width: 68px; height: 68px; }

.detail-cta-heading {
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 0 0 16px;
    line-height: 1.1;
}

.detail-cta-name-span {
    background: var(--app-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-cta-sub {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 40px;
}

.detail-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Sticky CTA Bar ── */
.sticky-cta-bar {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(10, 12, 18, 0.88);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(24px);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 320px;
    max-width: 640px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    transition: bottom 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sticky-cta-bar.sticky-cta-visible {
    bottom: 28px;
}

.sticky-cta-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: rgba(var(--app-rgb), 0.1);
    border: 1px solid rgba(var(--app-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sticky-cta-icon svg { width: 28px; height: 28px; }

.sticky-cta-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.sticky-cta-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-cta-sub {
    font-size: 11px;
    color: var(--text-tertiary);
}

.sticky-cta-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Coming soon fallback */
.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 14px;
    border: 1.5px solid rgba(255,255,255,0.12);
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 600;
}


/* ============================================================
   LIGHT THEME OVERRIDES
   ============================================================ */
[data-theme="light"] .apps-universe-body { background: var(--bg-primary); }
[data-theme="light"] #starfield { opacity: 0.12; }
[data-theme="light"] .forge-card-footer { border-top-color: rgba(0,0,0,0.06); }
[data-theme="light"] .forge-platform-badge { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.06); color: var(--text-secondary); }

[data-theme="light"] .forge-card-inner {
    background: rgba(255,255,255,0.85);
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .forge-card-icon {
    background: rgba(var(--card-rgb), 0.1);
    border-color: rgba(var(--card-rgb), 0.2);
    box-shadow: 0 4px 14px rgba(var(--card-rgb), 0.12);
}
[data-theme="light"] .forge-card-icon-ring {
    border-color: rgba(var(--card-rgb), 0.3);
}
[data-theme="light"] .forge-card:hover .forge-card-inner {
    background: rgba(255,255,255,0.95);
}
[data-theme="light"] .forge-hero-stats {
    background: rgba(255,255,255,0.7);
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .detail-back-btn {
    background: rgba(255,255,255,0.75);
    border-color: rgba(0,0,0,0.1);
    color: var(--text-secondary);
}
[data-theme="light"] .sticky-cta-bar {
    background: rgba(255,255,255,0.92);
    border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .detail-feat-card {
    background: rgba(255,255,255,0.75);
    border-color: rgba(0,0,0,0.07);
}
[data-theme="light"] .detail-feat-card:hover {
    background: rgba(255,255,255,0.95);
}
[data-theme="light"] .detail-act-story,
[data-theme="light"] .detail-act-features,
[data-theme="light"] .detail-act-tech,
[data-theme="light"] .detail-act-cta {
    border-top-color: rgba(0,0,0,0.06);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .forge-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .forge-hero { padding: 140px 0 80px; }
    .forge-hero-title { font-size: clamp(42px, 11vw, 64px); }
    .forge-hero-stats { flex-direction: row; padding: 10px 0; }
    .forge-stat { padding: 0 18px; }
    .forge-cards { grid-template-columns: 1fr; gap: 16px; }

    .detail-back-btn { top: 76px; left: 16px; font-size: 12px; padding: 8px 12px; }
    .detail-hero { padding: 120px 0 80px; min-height: auto; }
    .detail-icon-stage { width: 150px; height: 150px; }
    .detail-hero-icon { width: 100px; height: 100px; border-radius: 22px; }
    .detail-hero-icon svg { width: 68px; height: 68px; }
    .detail-orbital-ring-outer { inset: -20px; }
    .detail-orbital-ring-mid { inset: -6px; }
    .detail-features-grid { grid-template-columns: 1fr; gap: 14px; }
    .detail-act { padding: 60px 0; }
    .detail-hero-ctas { flex-direction: column; align-items: center; }
    .detail-cta-buttons { flex-direction: column; align-items: center; }
    .sticky-cta-bar { min-width: calc(100vw - 32px); max-width: calc(100vw - 32px); bottom: -120px; flex-wrap: wrap; }
    .sticky-cta-bar.sticky-cta-visible { bottom: 16px; }
    .sticky-cta-btns { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .forge-hero-title { font-size: clamp(36px, 12vw, 52px); }
    .forge-stat-num { font-size: 22px; }
    .forge-hero-stats { gap: 0; }
}
